Commits

Christoffer Niska  committed 01cc754

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

  • Participants
  • Parent commits 5d9c03a

Comments (0)

Files changed (1)

File widgets/TbNavbar.php

 		}
 
 		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)
 		{