Наследование: extends yii\widgets\Menu
Пример #1
0
                    <div class="profile_info">
                        <span>Welcome,</span>
                        <h2>John Doe</h2>
                    </div>
                </div>
                <!-- /menu prile quick info -->

                <br />

                <!-- sidebar menu -->
                <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">

                    <div class="menu_section">
                        <h3>General</h3>
                        <?php 
echo \yiister\gentelella\widgets\Menu::widget(["items" => [["label" => "Home", "url" => "/", "icon" => "home"], ["label" => "Layout", "url" => ["site/layout"], "icon" => "files-o"], ["label" => "Error page", "url" => ["site/error-page"], "icon" => "close"], ["label" => "Widgets", "icon" => "th", "url" => "#", "items" => [["label" => "Menu", "url" => ["site/menu"]], ["label" => "Panel", "url" => ["site/panel"]]]], ["label" => "Badges", "url" => "#", "icon" => "table", "items" => [["label" => "Default", "url" => "#", "badge" => "123"], ["label" => "Success", "url" => "#", "badge" => "new", "badgeOptions" => ["class" => "label-success"]], ["label" => "Danger", "url" => "#", "badge" => "!", "badgeOptions" => ["class" => "label-danger"]]]], ["label" => "Multilevel", "url" => "#", "icon" => "table", "items" => [["label" => "Second level 1", "url" => "#"], ["label" => "Second level 2", "url" => "#", "items" => [["label" => "Third level 1", "url" => "#"], ["label" => "Third level 2", "url" => "#"]]]]]]]);
?>
                    </div>

                </div>
                <!-- /sidebar menu -->

                <!-- /menu footer buttons -->
                <div class="sidebar-footer hidden-small">
                    <a data-toggle="tooltip" data-placement="top" title="Settings">
                        <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
                    </a>
                    <a data-toggle="tooltip" data-placement="top" title="FullScreen">
                        <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
                    </a>
                    <a data-toggle="tooltip" data-placement="top" title="Lock">
Пример #2
0
?>
<!--</h2>-->
<!--                    </div>-->
<!--                </div>-->
                <!-- /menu prile quick info -->

                <br />

                <!-- sidebar menu -->
                <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">

                    <div class="menu_section">
                        <h3>Меню</h3>
                        <?php 
$menuItems = [['label' => 'Главная', 'url' => ['/site/index'], "icon" => "home"], ['label' => 'Новости', "icon" => "list", "url" => "#!", 'items' => [['label' => 'Новости', 'url' => ['/news']], ['label' => 'Категории', 'url' => ['/category']]]], ['label' => 'Настройки сезонов', "url" => "#!", "icon" => "list-alt", 'items' => [['label' => 'Игры', 'url' => ['/games']], ['label' => 'Таблица', 'url' => ['/season-details']], ['label' => 'Сезоны', 'url' => ['/seasons']], ['label' => 'Команды', 'url' => ['/teams']], ['label' => 'Игроки', 'url' => ['/players']], ['label' => 'Тренерский штаб', 'url' => ['/coaching-staff']], ['label' => 'Подразделы штаба', 'url' => ['/category-caches']], ['label' => 'Категории игр', 'url' => ['/category-games']]]], ['label' => 'Настройка сайта', "url" => "#!", "icon" => "cog", 'items' => [['label' => 'Страницы', 'url' => ['/pages']], ['label' => 'Меню', 'url' => ['/menu']], ['label' => 'Галерея', 'url' => ['/gallery']], ['label' => 'Гостевая', 'url' => ['/guest-book']], ['label' => 'Голосование', 'url' => ['/questions']], ['label' => 'Вопросы клубу', 'url' => ['/club-questions']]]]];
echo \yiister\gentelella\widgets\Menu::widget(["items" => $menuItems]);
?>
                    </div>

                </div>
                <!-- /sidebar menu -->
            </div>
        </div>

        <!-- top navigation -->
        <div class="top_nav">

            <div class="nav_menu">
                <nav class="" role="navigation">
                    <div class="nav toggle">
                        <a id="menu_toggle"><i class="fa fa-bars"></i></a>