Commits

Legos  committed 0509189

Sometimes BrandName doesn't needed

  • Participants
  • Parent commits 31173f5
  • Branches bootstrap2

Comments (0)

Files changed (1)

File bootstrap/widgets/BootNavbar.php

 		echo CHtml::openTag('div', $this->htmlOptions);
 		echo '<div class="navbar-inner"><div class="'.$containerCssClass.'">';
 		echo '<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"></a>';
-		echo CHtml::openTag('a', $this->brandOptions).$this->brand.'</a>';
+
+        if ($this->brand)
+            echo CHtml::openTag('a', $this->brandOptions).$this->brand.'</a>';
+        
 		echo '<div class="nav-collapse">';
 
 		foreach ($this->items as $item)