Ejemplo n.º 1
0
        ?>
			<?php 
        if (!empty($item->children)) {
            ?>
			    <span class="caret"></span>
			<?php 
        }
        ?>
		</a>
		<?php 
        if (!empty($item->children)) {
            ?>
		<ul class="sub-nav">
		    <?php 
            foreach ($item->children as $child_array) {
                $child = \Dsc\ArrayHelper::toObject($child_array);
                ?>
		    <?php 
                if (empty($child->hidden)) {
                    ?>
			<li class="<?php 
                    if (strpos($current, $child->route) !== false && !$active_has_been_found && substr_count($current, '/') == substr_count($child->route, '/')) {
                        echo 'active';
                        $active_has_been_found = true;
                    }
                    ?>
">
			    <a href=".<?php 
                    echo $child->route;
                    ?>
">