Commit 782381dc by Crisu83

Add support for non-link brand in TbNavbar (fixes #171)

parent 63a3de8a
...@@ -122,7 +122,15 @@ class TbNavbar extends CWidget ...@@ -122,7 +122,15 @@ class TbNavbar extends CWidget
} }
if ($this->brand !== false) if ($this->brand !== false)
echo CHtml::openTag('a', $this->brandOptions).$this->brand.'</a>'; {
if ($this->brandUrl !== false)
echo CHtml::openTag('a', $this->brandOptions).$this->brand.'</a>';
else
{
unset($this->brandOptions['href']); // spans cannot have a href attribute
echo CHtml::openTag('span', $this->brandOptions).$this->brand.'</span>';
}
}
if ($this->collapse !== false) if ($this->collapse !== false)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment