<!-- END HEAD -->
    <!-- BEGIN BODY -->
    <body <?php 
echo Layout::getHtmlOptions('body', ['class' => 'page-quick-sidebar-over-content'], true);
?>
 >
    <?php 
$this->beginBody();
?>
    <!-- BEGIN NAV BAR -->
    <?php 
NavBar::begin(['brandLabel' => 'My Company', 'brandLogoUrl' => Metronic::getAssetsUrl($this) . '/img/logo.png', 'brandUrl' => Yii::$app->homeUrl, 'options' => Layout::getHtmlOptions('header', false)]);
echo HorizontalMenu::widget(['items' => [], 'search' => ['visible' => false]]);
echo '<a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse"></a>';
echo '<div class="top-menu">';
echo Nav::widget(['position' => Nav::POS_RIGHT, 'items' => [['icon' => 'fa icon-bell', 'badge' => Badge::widget(['label' => '0', 'type' => Badge::TYPE_DANGER, 'options' => ['id' => 'notify-all']]), 'label' => \Yii::t('common', 'Home'), 'dropdownType' => Nav::TYPE_NOTIFICATION, 'url' => ['/site/index'], 'items' => [['label' => '提醒', 'url' => ['#'], 'badge' => Badge::widget(['label' => '0', 'type' => Badge::TYPE_DANGER, 'options' => ['id' => 'notify-min5']])]]], ['label' => Nav::userItem(\Yii::$app->user->identity->username, Metronic::getAssetsUrl($this) . '/img/avatar.png'), 'icon' => 'fa fa-angle-down', 'url' => '#', 'dropdownType' => Nav::TYPE_USER, 'items' => [['icon' => 'icon-user', 'label' => '个人资料', 'url' => ['/account/index']], ['icon' => 'fa fa-edit ', 'label' => '修改资料', 'url' => ['/account/edit']], ['divider'], ['icon' => 'icon-logout', 'label' => '退出登陆', 'url' => ['/account/logout']]]]]]);
echo '</div>';
NavBar::end();
?>
    <!-- END NAV BAR -->
    <?php 
echo Metronic::getComponent()->layoutOption == Metronic::LAYOUT_BOXED ? Html::beginTag('div', ['class' => 'container']) : '';
?>
    <div class="clearfix"></div>
    <!-- BEGIN CONTAINER -->
    <div class="page-container">
        <!-- BEGIN SIDEBAR -->
        <?php 
echo Menu::widget(['visible' => true, 'items' => [['icon' => 'fa fa-home', 'label' => \Yii::t('common', 'Home'), 'url' => ['site/index'], 'childUrls' => ['account/index', 'account/edit']], ['icon' => 'fa fa-user', 'label' => '用户管理', 'url' => ['customer/index'], 'items' => [['label' => '用户列表', 'url' => ['customer/index'], 'childUrls' => ['customer/view', 'customer/order']], ['label' => '用户统计', 'url' => ['customer/statistic']]]], ['icon' => 'icon-docs', 'label' => '内容管理', 'url' => ['article/index'], 'items' => [['label' => '资讯列表', 'url' => ['article/index'], 'childUrls' => ['article/view']], ['label' => '资讯分类管理', 'url' => ['article/category']], ['label' => '发布资讯', 'url' => ['article/create']], ['label' => '租房列表', 'url' => ['zufang/index']], ['label' => '黄页商户管理', 'url' => ['huangye/index'], 'childUrls' => ['huangye/view', 'huangye/create', 'huangye/update']]]], ['icon' => 'icon-settings', 'label' => '系统设置', 'items' => [['label' => '基本设置', 'url' => ['config/index']], ['label' => 'UCenter设置', 'url' => ['config/operation']], ['label' => '微信设置', 'url' => ['weixin/index'], 'childUrls' => ['weixin/create', 'weixin/update', 'weixin/view']]]], ['icon' => 'fa fa-bookmark-o', 'label' => '权限管理', 'items' => [['label' => '角色管理', 'url' => ['access/role/index'], 'childUrls' => ['role/create', 'role/update', 'role/view']], ['label' => '路由管理', 'url' => ['access/route/index'], 'childUrls' => ['route/create', 'route/update', 'route/view']], ['label' => '权限管理', 'url' => ['access/permission/index'], 'childUrls' => ['permission/create', 'permission/update', 'permission/view']], ['label' => '权限分配', 'url' => ['access/assignment/index'], 'childUrls' => ['assignment/create', 'assignment/update', 'assignment/view']]]]]]);
?>
        <!-- END SIDEBAR -->
Exemple #2
0
        <meta name="MobileOptimized" content="320">
        <link rel="shortcut icon" href="favicon.ico"/>
    </head>
    <!-- END HEAD -->
    <!-- BEGIN BODY -->
    <body <?php 
echo Layout::getHtmlOptions('body');
?>
 >
        <?php 
$this->beginBody();
?>
        <?php 
NavBar::begin(['brandLabel' => 'My Company', 'brandLogoUrl' => Metronic::getAssetsUrl($this) . '/img/logo.png', 'brandUrl' => Yii::$app->homeUrl, 'options' => Layout::getHtmlOptions('header', false)]);
echo HorizontalMenu::widget(['items' => [['label' => 'Mega menu', 'type' => HorizontalMenu::ITEM_TYPE_MEGA, 'items' => [['label' => 'Layouts', 'items' => [['label' => 'Promo Page', 'url' => ['/site/index']], ['label' => 'Email Templates']]], ['label' => 'Layouts 2', 'items' => [['label' => 'Promo Page 2'], ['label' => 'Email Templates 2']]]]], ['label' => 'Full Mega menu', 'type' => HorizontalMenu::ITEM_TYPE_FULL_MEGA, 'text' => \hustshenl\metronic\widgets\Accordion::widget(['items' => [['header' => 'Item 1', 'content' => 'Content 1...', 'contentOptions' => ['class' => 'in'], 'type' => \hustshenl\metronic\widgets\Accordion::ITEM_TYPE_SUCCESS], ['header' => 'Item 2', 'content' => 'Content 2...']], 'itemConfig' => ['showIcon' => true]]), 'items' => [['label' => 'Layouts', 'items' => [['label' => 'Promo Page', 'url' => ['/site/index']], ['label' => 'Email Templates']]], ['label' => 'Layouts 2', 'items' => [['label' => 'Promo Page 2'], ['label' => 'Email Templates 2']]]]], ['label' => 'Home', 'items' => [['label' => 'About', 'url' => ['/site/about']], ['label' => 'About', 'url' => ['/site/about']], ['label' => 'About', 'url' => ['/site/about']], ['label' => 'About', 'url' => ['/site/about']], ['label' => 'About', 'url' => ['/site/about']], ['label' => 'About', 'url' => ['/site/about']]]], ['label' => 'Home 2', 'url' => ['/site/index'], 'items' => [['badge' => Badge::widget(['label' => 'Новинка', 'round' => false]), 'label' => 'About', 'url' => ['/site/about']], ['label' => 'About', 'url' => ['/site/about']], ['label' => 'About', 'url' => ['/site/about'], 'items' => [['label' => 'About', 'url' => ['/site/about']], ['label' => 'About', 'url' => ['/site/about']], ['label' => 'Index', 'url' => ['/site/index']]]], ['label' => 'About', 'url' => ['/site/about']]]]]]);
echo Nav::widget(['items' => [['icon' => 'fa fa-warning', 'badge' => Badge::widget(['label' => 'xxx']), 'label' => 'Home', 'url' => ['/site/index'], 'title' => 'xx', 'more' => ['label' => 'xxx', 'url' => '/', 'icon' => 'm-icon-swapright'], 'scroller' => ['height' => 200], 'items' => [['label' => 'About', 'url' => ['/site/aboutz']], ['label' => 'About', 'url' => ['/site/aboutz']], ['label' => 'About', 'url' => ['/site/aboutz']], ['label' => 'About', 'url' => ['/site/aboutz']], ['label' => 'About', 'url' => ['/site/aboutz']], ['label' => 'About', 'url' => ['/site/aboutz']]]], ['label' => Nav::userItem('Bob Nilson', Metronic::getAssetsUrl($this) . '/img/avatar1_small.jpg'), 'url' => '#', 'type' => 'user', 'items' => [['icon' => 'fa fa-calendar', 'label' => 'About', 'url' => ['/site/about'], 'badge' => Badge::widget(['label' => 'xxx'])], ['label' => 'About', 'url' => ['/site/about']], ['label' => 'About', 'url' => ['/site/about']], ['label' => 'About', 'url' => ['/site/about']], ['divider'], ['label' => 'About', 'url' => ['/site/about']], ['label' => 'About', 'url' => ['/site/about']]]]]]);
NavBar::end();
?>
        <?php 
echo Metronic::getComponent()->layoutOption == Metronic::LAYOUT_BOXED ? Html::beginTag('div', ['class' => 'container']) : '';
?>
        <!-- BEGIN CONTAINER -->
        <div class="page-container">
            <!-- BEGIN SIDEBAR -->
            <?php 
echo Menu::widget(['visible' => true, 'items' => [['icon' => 'fa fa-home', 'label' => 'Home', 'url' => ['site/indea']], ['icon' => 'fa fa-cogs', 'badge' => Badge::widget(['label' => 'New', 'round' => false, 'type' => Badge::TYPE_SUCCESS]), 'label' => 'Products', 'url' => '#', 'items' => [['label' => 'New Arrivals', 'url' => ['product/index', 'tag' => 'new']], ['label' => 'Home', 'url' => '#', 'items' => [['icon' => 'fa fa-cogs', 'label' => 'Products', 'url' => ['site/index'], 'badge' => Badge::widget(['label' => 'New', 'round' => false, 'type' => Badge::TYPE_SUCCESS])]]]]], ['icon' => 'fa fa-bookmark-o', 'label' => 'UI Features', 'url' => '#', 'items' => [['label' => 'Buttons & Icons', 'url' => ['site/']]]], ['icon' => 'fa fa-user', 'label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest], ['icon' => 'fa fa-user', 'label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest]]]);
?>
            <!-- END SIDEBAR -->
            <!-- BEGIN CONTENT -->
            <div class="page-content-wrapper">
                <div class="page-content">