helpers/Nav.php
public static function sub($items, $htmlOptions = array())
    {
        ArrayHelper::addValue('class', Enum::NAV_SUB, $htmlOptions);
        ob_start();
        echo \CHtml::openTag('dl', $htmlOptions);
        foreach ($items as $item) {
            $itemOptions = ArrayHelper::getValue($item, 'itemOptions', array());
            $linkOptions = ArrayHelper::getValue($item, 'linkOptions', array());
            $label       = ArrayHelper::getValue($item, 'label', 'Item');
            $url         = ArrayHelper::getValue($item, 'url', '#');
            echo \CHtml::openTag('dt', $itemOptions);
            echo \CHtml::link($label, $url, $linkOptions);
            echo \CHtml::closeTag('dt');
        }
        echo \CHtml::closeTag('dl');

        return ob_get_clean();
    }
public static function sub($items, $htmlOptions = array())
    {
        ArrayHelper::addValue('class', Enum::NAV_SUB, $htmlOptions);
        ob_start();
        echo \CHtml::openTag('dl', $htmlOptions);
        foreach ($items as $item) {
            $itemOptions = ArrayHelper::getValue($item, 'itemOptions', array());
            $linkOptions = ArrayHelper::getValue($item, 'linkOptions', array());
            $label       = ArrayHelper::getValue($item, 'label', 'Item');
            $url         = ArrayHelper::getValue($item, 'url', '#');
            echo \CHtml::openTag('dt', $itemOptions);
            echo \CHtml::link($label, $url, $linkOptions);
            echo \CHtml::closeTag('dt');
        }
        echo \CHtml::closeTag('dl');

        return ob_get_clean();
    }
public static function sub ( $ items , $ htmlOptions = array ( ) ) { ArrayHelper :: addValue ( 'class' , Enum :: NAV_SUB , $ htmlOptions ) ; ob_start ( ) ; echo \ CHtml :: openTag ( 'dl' , $ htmlOptions ) ; foreach ( $ items as $ item ) { $ itemOptions = ArrayHelper :: getValue ( $ item , 'itemOptions' , array ( ) ) ; $ linkOptions = ArrayHelper :: getValue ( $ item , 'linkOptions' , array ( ) ) ; $ label = ArrayHelper :: getValue ( $ item , 'label' , 'Item' ) ; $ url = ArrayHelper :: getValue ( $ item , 'url' , '#' ) ; echo \ CHtml :: openTag ( 'dt' , $ itemOptions ) ; echo \ CHtml :: link ( $ label , $ url , $ linkOptions ) ; echo \ CHtml :: closeTag ( 'dt' ) ; } echo \ CHtml :: closeTag ( 'dl' ) ; return ob_get_clean ( ) ; }
Generates a foundation sub nav

@param array $items the link items to display as a side nav. The items have the following format:
<pre>
array('label'=>'Item', 'url'=>'#', 'linkOptions'=>array(), 'itemOptions'=>array())
</pre>
@param array $htmlOptions
@return string
@see http://foundation.zurb.com/docs/components/sub-nav.html
Generates a foundation sub nav