Commits

Christoffer Niska committed ae6dbcb

committing everything.

  • Participants
  • Parent commits 10a9dfd
  • Tags r0.9.7

Comments (0)

Files changed (1)

File widgets/BootNav.php

 	 */
 	public $brandOptions = array();
 	/**
+	 * @var string the item template.
+	 */
+	public $itemTemplate = '{menu}';
+	/**
 	 * @var array the primary menu items.
 	 */
 	public $primaryItems = array();
 	/**
 	 * @var array the secondary menu items.
 	 */
-	public $secondaryItems = array();
+	public $secondaryItems = array(); 
 	/**
 	 * @var array the HTML attributes for the primary menu.
 	 */
 			$this->primaryOptions['class'] = 'nav';
 
 		if (isset($this->secondaryOptions['class']))
-			$this->secondaryOptions['class'] .= ' secondary-nav';
+			$this->secondaryOptions['class'] .= ' nav secondary-nav';
 		else
-			$this->secondaryOptions['class'] = 'secondary-nav';
+			$this->secondaryOptions['class'] = 'nav secondary-nav';
 
 		$cssClass = $this->type === 'normal' ? 'container' : 'container-fluid';
 
 			$this->controller->widget('bootstrap.widgets.BootMenu', array(
 				'type'=>'',
 				'items'=>$this->primaryItems,
+				'itemTemplate'=>$this->itemTemplate,
+				'encodeLabel'=>false,
 				'htmlOptions'=>$this->primaryOptions,
 			));
 		}
 			$this->controller->widget('bootstrap.widgets.BootMenu', array(
 				'type'=>'',
 				'items'=>$this->secondaryItems,
+				'itemTemplate'=>$this->itemTemplate,
+				'encodeLabel'=>false,
 				'htmlOptions'=>$this->secondaryOptions,
 			));
 		}