示例#1
0
文件: left.php 项目: bessonov87/bw
<aside class="main-sidebar">

    <section class="sidebar">

        <?php 
echo \app\components\widgets\UserWidget::widget();
?>

        <!-- search form -->
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="Search..."/>
              <span class="input-group-btn">
                <button type='submit' name='search' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
            </div>
        </form>
        <!-- /.search form -->

        <?php 
echo dmstr\widgets\Menu::widget(['options' => ['class' => 'sidebar-menu'], 'items' => [['label' => 'Меню Yii2', 'options' => ['class' => 'header']], ['label' => 'Dashboard', 'icon' => 'fa fa-dashboard', 'url' => Yii::$app->homeUrl], ['label' => 'Статьи', 'icon' => 'fa fa-file-text-o', 'url' => ['post/index']], ['label' => 'Категории', 'icon' => 'fa fa-file-text-o', 'url' => ['category/index']], ['label' => 'Комментарии', 'icon' => 'fa fa-comment-o', 'url' => ['comment/index']], ['label' => 'Пользователи', 'icon' => 'fa fa-users', 'url' => ['user/index']], ['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest], ['label' => 'Логи', 'icon' => 'fa fa-list', 'url' => '#', 'items' => [['label' => 'Файловый', 'icon' => 'fa fa-file-text-o', 'url' => ['logs/file']], ['label' => 'MySQL', 'icon' => 'fa fa-database', 'url' => ['logs/db']]]], ['label' => 'Gii', 'icon' => 'fa fa-file-code-o', 'url' => ['/gii'], 'visible' => YII_ENV != 'prod'], ['label' => 'Debug', 'icon' => 'fa fa-dashboard', 'url' => ['/debug'], 'visible' => YII_ENV != 'prod'], ['label' => 'Same tools', 'icon' => 'fa fa-share', 'url' => '#', 'items' => [['label' => 'Gii', 'icon' => 'fa fa-file-code-o', 'url' => ['/gii']], ['label' => 'Debug', 'icon' => 'fa fa-dashboard', 'url' => ['/debug']], ['label' => 'Level One', 'icon' => 'fa fa-circle-o', 'url' => '#', 'items' => [['label' => 'Level Two', 'icon' => 'fa fa-circle-o', 'url' => '#'], ['label' => 'Level Two', 'icon' => 'fa fa-circle-o', 'url' => '#', 'items' => [['label' => 'Level Three', 'icon' => 'fa fa-circle-o', 'url' => '#'], ['label' => 'Level Three', 'icon' => 'fa fa-circle-o', 'url' => '#']]]]]]]]]);
?>

    </section>

</aside>
示例#2
0
            <?php 
echo $this->render('_nav');
?>
            <div class="blog">

                <?php 
echo Alert::widget();
?>
                <div class="row">
                    <div class="col-md-9"><?php 
echo $content;
?>
</div>
                    <div class="col-md-3">
                        <?php 
echo UserWidget::widget();
?>
                        <?php 
echo VkWidget::widget([]);
?>
                        <?php 
echo TagsWidget::widget(['title' => '<i class="glyphicon glyphicon-tags"></i> Облако тегов', 'maxTags' => 20]);
?>
                        <?php 
echo GoogleAdsenseWidget::widget([]);
?>
                    </div>
                </div>

            </div>
示例#3
0
echo $content;
?>
                <!-- Таблица контент-->

            </div>
            <div id="sidebar">

                <!-- Блок Пользователь -->
                <div id="sidebar-item">
                    <div id="sidebar-item-top" class="sidebar-item-pink"><?php 
echo Html::encode(Yii::$app->request->get('username'));
?>
</div>
                    <div id="sidebar-item-content">
                        <?php 
echo UserWidget::widget(['username' => Yii::$app->request->get('username')]);
?>
                    </div>
                </div>
                <!-- Конец Пользователь -->

                <!-- Блок Боковое меню -->
                <div id="sidebar-item">
                    <div id="sidebar-item-top" class="sidebar-item-blue">Навигация</div>
                    <div id="sidebar-item-content">
                        <?php 
if (!Yii::$app->user->isGuest && Yii::$app->request->get('username') === Yii::$app->user->identity->username) {
    $items[] = ['label' => 'Моя страница'];
}
echo SidebarMenuWidget::widget(['items' => [['label' => 'Онлайн тесты', 'url' => ['tests/index']], ['label' => 'Секреты красоты', 'url' => '/beautysecrets/'], ['label' => 'Секреты макияжа', 'url' => '/makeupsecrets/'], ['label' => 'Мода и стиль', 'url' => '/fashion/'], ['label' => 'Парфюм и ароматы', 'url' => '/aromat/', 'allowedOn' => '2,3,11,12,49,61'], ['label' => 'Эфирные масла', 'url' => '/jefirnye-masla/'], ['label' => 'Маски для лица', 'url' => '/maski-dlja-lica-v-domashnih-uslovijah/'], ['label' => 'Диеты', 'url' => '/diets/'], ['label' => 'Диета Дюкана', 'url' => '/diets/dieta-djukana/', 'allowedOn' => '4,5,10,45,57'], ['label' => 'Калькулятор ИМТ', 'url' => '/calculator/', 'allowedOn' => '4,5,10,45,57'], ['label' => 'Здоровое питание', 'url' => '/healthyfood/', 'allowedOn' => '4,5,10,45,57'], ['label' => 'Великолепная фигура', 'url' => '/magnificent/', 'allowedOn' => '4,5,10,45,57'], ['label' => 'Кулинария', 'url' => '/cookery/', 'allowedOn' => '4,5,10,45,57'], ['label' => 'Женское здоровье', 'url' => '/femalehealth/'], ['label' => 'Народная медицина', 'url' => '/nationalmedicine/'], ['label' => 'Беременность и роды', 'url' => '/pregnancy/'], ['label' => 'Месячные', 'url' => '/mesjachnye/', 'allowedOn' => '6,7,8,9,27,28,52,54,55,56,58,59,60'], ['label' => 'Овуляция', 'url' => '/ovuljacija/', 'allowedOn' => '6,7,8,9,27,28,52,54,55,56,58,59,60'], ['label' => 'Тест на беременность', 'url' => '/pregnancy/test-na-beremennost/', 'allowedOn' => '6,7,8,9,27,28,52,54,55,56,58,59,60'], ['label' => 'Базальная температура', 'url' => '/pregnancy/bazalnaja-temperatura/', 'allowedOn' => '6,7,8,9,27,28,52,54,55,56,58,59,60'], ['label' => 'Первые признаки беременности', 'url' => '/pregnancy/pervye-priznaki-beremennosti/', 'allowedOn' => '6,7,8,9,27,28,52,54,55,56,58,59,60'], ['label' => 'Определение пола ребенка', 'url' => '/pregnancy/pol-rebenka/', 'allowedOn' => '6,7,8,9,27,28,52,54,55,56,58,59,60'], ['label' => 'Календарь беременности', 'url' => '/pregnancy/kalendar-beremennosti/', 'allowedOn' => '6,7,8,9,27,28,52,54,55,56,58,59,60'], ['label' => 'Семья и дети', 'url' => '/family/'], ['label' => 'Домашний очаг', 'url' => '/home/'], ['label' => 'Любовь и секс', 'url' => '/lovesex/'], ['label' => 'Психология отношений', 'url' => '/psychology/'], ['label' => 'Карьера и деньги', 'url' => '/career/'], ['label' => 'Свадьба', 'url' => '/wedding/'], ['label' => 'Гороскоп', 'url' => '/horoscope/'], ['label' => 'Лунный календарь на 2016 год', 'url' => '/horoscope/lunnyj-kalendar-na-god/'], ['label' => 'Лунный календарь стрижек 2016', 'url' => '/horoscope/lunnyj-kalendar-strizhek/', 'allowedOn' => '19,47,51,53,21'], ['label' => 'Лунный календарь огородника 2016', 'url' => '/horoscope/lunnyj-kalendar-ogorodnika-sadovoda/', 'allowedOn' => '19,47,51,53,21'], ['label' => 'Разное', 'url' => '/raznoe/']], 'cssClass' => 'blockmenu']);
?>