<div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                </button>
                <?php 
    echo Fuel\Core\Html::anchor('admin', 'Back Office', array('class' => 'navbar-brand'));
    ?>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">                                                        
                    <?php 
    $segment = Fuel\Core\Uri::segment(2, '');
    ?>

                    <li class="<?php 
    echo $segment == '' ? 'active' : '';
    ?>
">
                        <?php 
    echo Fuel\Core\Html::anchor('admin', 'Dashboard');
    ?>
                    </li>
                    
                    <li class="dropdown" class="<?php 
    echo in_array($segment, array('report', 'report')) ? 'active' : '';
    ?>
">
Example #2
0
    <script>
        $('.sp-wrap').smoothproducts();
    </script>
<?php 
}
?>

<?php 
if ($controller === 'Controller_Category' && in_array($action, array('index')) && $total_page > 1) {
    ?>
    <?php 
    echo Asset::js(array('../../plugins/jQuery-pagination/jquery.pagination.js'));
    ?>
    <script>
        var code = "<?php 
    echo Fuel\Core\Uri::segment(2);
    ?>
";
        $('.pagination').jqueryPagination({
            totalPages: <?php 
    echo $total_page;
    ?>
,
            visiblePages: <?php 
    echo _DEFAULT_VISIBLE_PAGES_;
    ?>
,
            prev: '&laquo;',
            next: '&raquo;',
            first: false,
            last: false,
Example #3
0
if (!empty($category)) {
    ?>
                                <li class="dropdown"><a href="#" class="<?php 
    echo $controller === 'Controller_Category' ? 'active' : '';
    ?>
">Danh Mục<i class="fa fa-angle-down"></i></a>
                                    <ul role="menu" class="sub-menu">
                                        <?php 
    foreach ($category as $v) {
        ?>
                                            <li>
                                                <a href="/category/<?php 
        echo $v['code'];
        ?>
" class="<?php 
        echo $controller === 'Controller_Category' && Fuel\Core\Uri::segment(2) == $v['code'] ? 'active' : '';
        ?>
">
                                                    <?php 
        echo $v['category_name_display'];
        ?>
                                                </a>
                                            </li>
                                        <?php 
    }
    ?>
                                    </ul>
                                </li>
                            <?php 
}
?>