public function run()
    {
        $chatModel = new \nitm\widgets\models\Replies(['constrain' => ['type' => 'chat']]);
        $notificationModel = new \nitm\widgets\models\Notification(['constrain' => ['user_id' => \Yii::$app->user->getId()], 'queryOptions' => ['read' => 0]]);
        $uniqid = uniqid();
        $chatWidget = Nav::widget(['encodeLabels' => false, 'options' => ['id' => 'communication-center-messages-wrapper' . $uniqid, 'class' => 'nav navbar-right navbar-nav'], 'items' => [['label' => Icon::show('comment') . Html::tag('span', $chatModel->hasNew(), ['class' => 'badge']), 'options' => ['class' => !$chatModel->hasNew() ? 'text-disabled' : 'text-success'], 'linkOptions' => ['id' => 'communication-center-messages-button' . $uniqid, 'title' => 'Click here again to refresh the info', 'role' => 'dynamicValue', 'data-run-once' => 1, 'data-animation-target' => '#chat' . $uniqid, 'data-animation-start-only' => 1, 'data-type' => 'html', 'data-id' => '#chat' . $uniqid, 'data-url' => \Yii::$app->urlManager->createUrl(['/reply/index/chat/0', '__format' => 'html', \nitm\widgets\models\Replies::FORM_PARAM => true])], 'items' => [['label' => Html::tag('div', Html::tag('h2', 'Loading Messages...', ['class' => 'text-center']) . Html::script('$("#communication-center-messages-button' . $uniqid . '").one("mouseover", function (event) {
								$(this).trigger("click");
							})', ['type' => 'text/javascript']), ['role' => 'chatParent', 'id' => 'chat' . $uniqid, 'class' => '']), 'options' => $this->contentOptions]]]]]);
        $alertWidget = Nav::widget(['encodeLabels' => false, 'options' => ['id' => 'communication-center-notifications-wrapper' . $uniqid, 'class' => 'nav navbar-right navbar-nav'], 'items' => [['label' => Icon::show('bell') . Html::tag('span', $notificationModel->count(), ['class' => 'badge']), 'options' => ['class' => !$notificationModel->count() ? 'bg-disabled' : 'bg-success'], 'linkOptions' => ['id' => 'communication-center-notifications-button' . $uniqid, 'title' => 'Click here again to refresh the info', 'role' => 'dynamicValue', 'data-run-once' => 1, 'data-animation-target' => '#communication-center-notifications' . $uniqid, 'data-animation-start-only' => 1, 'data-type' => 'html', 'data-id' => '#communication-center-notifications' . $uniqid, 'data-url' => \Yii::$app->urlManager->createUrl(['/alerts/notifications', '__format' => 'html'])], 'items' => [['label' => Html::tag('div', Html::tag('h2', 'Loading Alerts...', ['class' => 'text-center']) . Html::script('$("#communication-center-notifications-button' . $uniqid . '").one("mouseover", function (event) {
								$(this).trigger("click");
							})', ['type' => 'text/javascript']), ['id' => 'communication-center-notifications' . $uniqid, 'class' => '']), 'options' => $this->contentOptions]]]]]);
        $widget = $alertWidget . $chatWidget;
        //$js = "\$nitm.onModuleLoad('communication-center', function (module) {
        //	module.initChatTabs('#".$this->options['id']."');
        //});";
        $js = "";
        if ($this->chatUpdateOptions['enabled']) {
            $js .= "\$nitm.onModuleLoad('polling', function (module) {\r\n\t\t\t\tmodule.initPolling('chat', {\r\n\t\t\t\t\tenabled: true,\r\n\t\t\t\t\turl: '" . $this->chatUpdateOptions['url'] . "', \r\n\t\t\t\t\tinterval: " . $this->chatUpdateOptions['interval'] . ",\r\n\t\t\t\t\tcontainer: '#nitm-communication-center-widget" . $uniqid . "'\r\n\t\t\t\t}, {object: \$nitm.module('replies'), method: 'chatStatus'});\r\n\t\t\t});";
        }
        if ($this->notificationUpdateOptions['enabled']) {
            $js .= "\r\n\t\t\t\$nitm.onModuleLoad('polling', function (module) {\r\n\t\t\t\tmodule.initPolling('notifications', {\r\n\t\t\t\t\tenabled: true,\r\n\t\t\t\t\tinterval: " . $this->notificationUpdateOptions['interval'] . ",\r\n\t\t\t\t\turl: '" . $this->notificationUpdateOptions['url'] . "',\r\n\t\t\t\t\tcontainer: '#nitm-communication-center-widget" . $uniqid . "'\r\n\t\t\t\t}, {object: \$nitm.module('notifications'), method: 'notificationStatus'});\r\n\t\t\t});";
        }
        if ($js) {
            $js = Html::script($js, ['type' => 'text/javascript']);
        }
        return $widget . $js;
    }
Example #2
1
 public function getMenu()
 {
     $isAdmin = !Yii::$app->user->isGuest ? Yii::$app->user->identity->can('editor') : false;
     $canAdmin = !Yii::$app->user->isGuest ? Yii::$app->user->identity->can('editor') : false;
     $networksVisible = count(Yii::$app->authClientCollection->clients) > 0;
     $menuItems = [['label' => 'Home', 'url' => ['/site/index']], ['label' => 'About', 'url' => ['/site/about']], ['label' => 'Contact', 'url' => ['/site/contact']]];
     if (Yii::$app->user->isGuest) {
         $menuItems[] = ['label' => Yii::t('user', 'Sign up'), 'url' => ['/user/registration/register']];
         $menuItems[] = ['label' => Yii::t('user', 'Sign in'), 'url' => ['/user/security/login']];
     } else {
         $menuItems['user'] = ['label' => $isAdmin ? Yii::$app->user->identity->profile->fullname . ' (admin)' : Yii::$app->user->identity->profile->fullname, 'items' => [['label' => Yii::t('user', 'Profile'), 'url' => ['/user/settings/profile']], ['label' => Yii::t('user', 'Account'), 'url' => ['/user/settings/account']], ['label' => Yii::t('user', 'Networks'), 'url' => ['/user/settings/networks'], 'visible' => $networksVisible], '<li class="divider"></li>', ['label' => Yii::t('user', 'Logout'), 'url' => ['/user/security/logout'], 'linkOptions' => ['data-method' => 'post']]]];
     }
     if ($canAdmin) {
         $menuItems['user']['items'][] = '<li class="divider"></li>';
         $menuItems['user']['items'][] = ['label' => Yii::t('user', 'Admin Panel'), 'url' => Yii::$app->urlManagerBackEnd->createUrl('')];
     }
     NavBar::begin(['brandLabel' => Yii::$app->params['companyName'], 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
     echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems]);
     NavBar::end();
 }
Example #3
0
 public function run()
 {
     $user = User::findOne(Yii::$app->user->id);
     echo Nav::widget(['items' => [['label' => 'Контактная информация', 'url' => ['/tor/profile']], ['label' => 'Добавить лот на продажу', 'url' => ['/tor/mng-ad']], ['label' => 'Мои объявления <span class="badge">' . TorAds::find()->count() . '</span>', 'url' => ['/tor/my-ads']], ['label' => 'Пополнить баланс ', 'url' => ['/']], ['label' => 'История платежей', 'url' => ['/']], ['label' => 'Реферальная ссылка', 'url' => ['/']]], 'options' => ['class' => 'account-nav'], 'encodeLabels' => false]);
     $view = $this->view;
     NavAsset::register($view);
 }
Example #4
0
 /**
  * @return string
  */
 public function run()
 {
     $list = [];
     list($route, $params) = Yii::$app->getUrlManager()->parseRequest(Yii::$app->getRequest());
     $params = ArrayHelper::merge($_GET, $params);
     $url = isset($params['route']) ? $params['route'] : $route;
     foreach ($this->languages as $row) {
         $list = ArrayHelper::merge($list, [['label' => $row['title'], 'url' => Yii::$app->urlManager->createUrl(ArrayHelper::merge($params, [$url, 'language' => $row['iso']]))]]);
     }
     return Nav::widget(['options' => $this->options, 'items' => [['label' => Language::getCurrentRecord()->title, 'items' => $list]]]);
 }
Example #5
0
    public function testIds()
    {
        Nav::$counter = 0;
        $out = Nav::widget(['items' => [['label' => 'Page1', 'content' => 'Page1'], ['label' => 'Dropdown1', 'items' => [['label' => 'Page2', 'content' => 'Page2'], ['label' => 'Page3', 'content' => 'Page3']]], ['label' => 'Dropdown2', 'visible' => false, 'items' => [['label' => 'Page4', 'content' => 'Page4'], ['label' => 'Page5', 'content' => 'Page5']]]]]);
        $expected = <<<EXPECTED
<ul id="w0" class="nav"><li><a href="#">Page1</a></li>
<li class="dropdown"><a class="dropdown-toggle" href="#" data-toggle="dropdown">Dropdown1 <b class="caret"></b></a><ul id="w1" class="dropdown-menu"><li class="dropdown-header">Page2</li>
<li class="dropdown-header">Page3</li></ul></li></ul>
EXPECTED;
        $this->assertEqualsWithoutLE($expected, $out);
    }
Example #6
0
 /**
  * Renders mini-toolbar at the end of page body.
  *
  * @param \yii\base\Event $event
  */
 public function renderToolbar($event)
 {
     /* @var $view View */
     /* @var $urlManagerBack \yii\web\UrlManager */
     $urlManagerBack = Yii::$app->urlManagerBack;
     $view = $event->sender;
     $view->registerCss($view->renderPhpFile(__DIR__ . '/assets/toolbar.min.css'));
     NavBar::begin(['id' => 'wd-frontend-toolbar', 'brandLabel' => Html::img('@web/img/logo-mini.png'), 'brandUrl' => $urlManagerBack->baseUrl, 'innerContainerOptions' => ['class' => 'container-fluid'], 'options' => ['class' => 'navbar navbar-inverse navbar-fixed-top']]);
     echo Nav::widget(['encodeLabels' => false, 'options' => ['class' => 'navbar-nav'], 'items' => [['label' => '<span aria-hidden="true" class="glyphicon glyphicon-dashboard"></span> ' . Option::get('sitetitle'), 'items' => [['label' => Yii::t('toolbar', 'Dashboard'), 'url' => $urlManagerBack->baseUrl], ['label' => Yii::t('toolbar', 'Themes'), 'url' => $urlManagerBack->createUrl(['/theme']), 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('toolbar', 'Menus'), 'url' => $urlManagerBack->createUrl(['/menu']), 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('toolbar', 'Modules'), 'url' => $urlManagerBack->createUrl(['/module']), 'visible' => Yii::$app->user->can('administrator')], ['label' => Yii::t('toolbar', 'Widgets'), 'url' => $urlManagerBack->createUrl(['/widget']), 'visible' => Yii::$app->user->can('administrator')]]], ['label' => '<span aria-hidden="true" class="glyphicon glyphicon-plus"></span> ' . Yii::t('toolbar', 'New'), 'items' => $this->getAddNewMenu() ? $this->getAddNewMenu() : null]]]);
     echo Nav::widget(['encodeLabels' => false, 'options' => ['class' => 'navbar-nav navbar-right'], 'items' => [['label' => '<span aria-hidden="true" class="glyphicon glyphicon-user"></span> ' . Yii::$app->user->identity->username, 'items' => [['label' => 'Profile', 'url' => $urlManagerBack->createUrl(['/user/profile'])], ['label' => 'Logout', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]]]]]);
     NavBar::end();
 }
Example #7
0
 public function run()
 {
     $items[] = ['label' => '<span class="sr-only">Вид навигации</span>', 'url' => '#', 'linkOptions' => ['class' => 'sidebar-toggle hidden-xs', 'data-toggle' => 'offcanvas', 'role' => 'button']];
     $items[] = ['label' => 'Карта сайта', 'url' => ['/map/index'], 'active' => $this->active_module && $this->active_module->id == 'map' ? true : false];
     $modules = \common\models\main\Modules::find()->where(['visible' => 1])->orderBy(['seq' => SORT_ASC])->all();
     if ($modules) {
         $model_items = array();
         foreach ($modules as $model) {
             $model_items[] = ['label' => $model->name, 'url' => [$model->url]];
         }
         $items[] = ['label' => 'Модули', 'items' => $model_items];
     }
     echo Nav::widget(['items' => $items, 'options' => ['class' => 'nav navbar-nav'], 'encodeLabels' => false]);
 }
Example #8
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->options['id'] = $this->id;
     echo Html::beginTag('div', $this->options);
     if ($this->header !== null) {
         $this->initTools();
         echo Html::beginTag('div', ['class' => 'x_title']);
         echo Html::tag('h2', ($this->icon !== null ? new Icon($this->icon) . ' ' : '') . $this->header);
         if (empty($this->tools) === false) {
             echo Nav::widget(['dropDownCaret' => '', 'items' => $this->tools, 'options' => ['class' => 'nav navbar-right panel_toolbox']]);
         }
         echo Html::tag('div', null, ['class' => 'clearfix']);
         echo Html::endTag('div');
     }
     echo Html::beginTag('div', ['class' => 'x_content', 'style' => $this->expandable === true ? 'display: none;' : null]);
 }
 /**
  * Выполнение виджета
  * @return string строка, содержащая HTML виджета
  */
 public function run()
 {
     //Заполнение заголовка
     if (isset($this->heading)) {
         $heading = '<div class="panel-heading">' . $this->heading . '</div>';
     } else {
         $heading = '';
     }
     //Заполнение подвала
     if (isset($this->footer)) {
         $footer = '<div class="panel-footer">' . $this->footer . '</div>';
     } else {
         $footer = '';
     }
     //Возврат результата
     return '<div class="panel ' . $this->type . '">' . $heading . '<div class="panel-body"> ' . Nav::widget(['options' => ['class' => 'nav-stacked'], 'items' => $this->items]) . ' </div>' . $footer . '</div>';
 }
Example #10
0
    /**
     * Render the widget.
     */
    public function run()
    {
        $menuItems = [];
        if (Yii::$app->user->isGuest) {
            $menuItems[] = ['label' => 'Регистрация', 'url' => ['/site/signup']];
            $menuItems[] = ['label' => 'Войти', 'url' => ['/site/login']];
        } else {
            $menuItems[] = ['label' => 'Счета', 'url' => ['/accounts'], 'active' => $this->controller->id === 'accounts'];
            $menuItems[] = ['label' => 'Операции', 'url' => ['/transaction'], 'active' => $this->controller->id === 'transaction'];
            $menuItems[] = ['label' => 'Цели', 'url' => ['/targets'], 'active' => $this->controller->id === 'targets'];
            $menuItems[] = ['label' => 'Категории', 'url' => ['/category'], 'active' => $this->controller->id === 'category'];
            $menuItems[] = ['label' => Yii::$app->user->identity->username, 'items' => [['label' => 'Профиль', 'url' => ['/user-panel/settings']], ['label' => 'Выход', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]]];
        }
        $menus = Nav::widget(['options' => ['class' => 'nav navbar-nav navbar-right'], 'items' => $menuItems]);
        return $HTML = <<<HTML
                {$menus}
HTML;
    }
Example #11
0
File: main.php Project: djvolk/post
echo Html::encode($this->title);
?>
</title>
    <?php 
$this->head();
?>
</head>
<body>

<?php 
$this->beginBody();
?>
    <div class="wrap">
        <?php 
NavBar::begin(['brandLabel' => 'Проверка работы почты', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => [['label' => 'Посылки', 'url' => ['/site/index']], ['label' => 'SMS', 'url' => ['/site/sms']], ['label' => 'Настройки', 'url' => ['/site/settings']]]]);
NavBar::end();
?>

        <div class="container">
            <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
            <?php 
echo $content;
?>
        </div>
    </div>

    <footer class="footer">
        <div class="container">
Example #12
0
echo Html::encode($this->title);
?>
</title>
    <?php 
$this->head();
?>
</head>
<body>

<?php 
$this->beginBody();
?>
    <div class="wrap">
        <?php 
NavBar::begin(['brandLabel' => 'Библиотека', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => [Yii::$app->user->isGuest ? ['label' => 'Вход', 'url' => ['/site/login']] : ['label' => 'Выйти (' . Yii::$app->user->identity->username . ')', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]]]);
NavBar::end();
?>

        <div class="container">
            <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
            <?php 
echo $content;
?>
        </div>
    </div>

    <footer class="footer">
        <div class="container">
Example #13
0
?>
</head>
<body>
<?php 
$this->beginBody();
?>

<div class="wrap">
    <?php 
NavBar::begin(['brandLabel' => 'Order Processing', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
if (Yii::$app->user->isGuest) {
    echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => [['label' => 'Login', 'url' => ['/site/login']]]]);
} elseif (Yii::$app->user->identity->user_role_id === 1) {
    echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => [['label' => 'User Roles', 'url' => ['/admin/userroles']], ['label' => 'Users', 'url' => ['/admin/users']], ['label' => 'Companies', 'url' => ['/admin/companies']], ['label' => 'Affiliates', 'url' => ['/admin/affiliates']], ['label' => 'Order Statuses', 'url' => ['/admin/orderstatuses']], ['label' => 'Orders', 'url' => ['/admin/orders']], ['label' => 'Logout (' . Yii::$app->user->identity->username . ')', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]]]);
} else {
    echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => [['label' => 'Orders', 'url' => ['/orders']], ['label' => 'Logout (' . Yii::$app->user->identity->username . ')', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]]]);
}
NavBar::end();
?>

    <div class="container">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
echo $content;
?>
    </div>
</div>

<footer class="footer">
Example #14
0
echo Html::encode($this->title);
?>
</title>
    <?php 
$this->head();
?>
</head>
<body>
<?php 
$this->beginBody();
?>

<div class="wrap">
    <?php 
NavBar::begin(['brandLabel' => \Yii::t('app', 'My Goals'), 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => Yii::$app->user->isGuest ? [] : [['label' => \Yii::t('dashboard', 'Dashboard'), 'url' => ['/dashboard/index']], ['label' => \Yii::t('task', 'Tasks'), 'url' => Task::urlToAll()], ['label' => \Yii::t('status', 'Statuses'), 'url' => ['/settings/status/index']], ['label' => \Yii::t('type', 'Types'), 'url' => ['/settings/type/index']], ['label' => \Yii::t('priority', 'Priorities'), 'url' => ['/settings/priority/index']], ['label' => \Yii::t('app', 'Logout ({0})', [Yii::$app->user->identity->username]), 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]]]);
NavBar::end();
?>

    <div class="container">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
echo $content;
?>
    </div>
</div>

<footer class="footer">
    <div class="container">
Example #15
0
  <div class="clearfix"></div>
	<header class="navbar navbar-inverse navbar-static">
    	<div class="container">
            <div id="main-nav-head" class="navbar-header">
                <a href="<?php 
echo Yii::$app->homeUrl;
?>
" class="navbar-brand">
                    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKYAAAAkCAYAAAAD8EGkAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAADLAAAAywBkJQcgwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABQdEVYdENvcHlyaWdodABDQyBBdHRyaWJ1dGlvbi1Ob0Rlcml2cyBodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9ieS1uZC8zLjAvZYKKLAAAD61JREFUeJztW3mUFNW5/333VlU3BpnBDRdQXBCUw3RV0woqQSagEvQd43mKS8w7jnGJcYtLjEaj44lPE30afbgECepRkyhg3NAggmMAETg93dUzjtt4xB0FWYYRprun7v3eH1Xd09N0T2ZYRHz9O+eevrfuV99d+tff/b6v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PKWMpMNjvKMQjbjPdlXvbsalFL3MfP7UspFruue2dDQEG5oaAgnEomzALwBoGVHjS2EuAmAKaV83XXd2paWFiuRSOzvuu5lruu+GVjGPGKx2NdE9AwzX4UC3z0ajS5i5k1EdJqUcnrhPbW1tR4RXcLMJySTyX/mLGcymRyaTCafgJ8/vbo4MOotgiDv+eBID2+xxr4qTGe9c4oJmc56hUf5h+prXTYi/b4gFottBjARQJyZn6quru6orq7uIKInmPlpZv79jho7iOLHMXM7M7+WzWYzRPQ5M9/HzO92dHRs4UZprR8C8LbjOMUB1oPMPDcSiXxWfI9t268Q0U+IaJQQ4u1kMskAVgI4BcB5juP8ZVvWoZS6BMDAgQMH3lbc1+c8JjMmZjoVtPb/X8nM0Frm21rrXz9yxYjt8c54C/zkM+An18vhfPgOeC5w2BzcV/bdd6310UKI3v7SjxVCfFSqIxqNrgEwJR6Pj5BSjiaizQBWOI7zeTweryKi2OjRo/OBGzNfoZQquTda658GyfRSfVOK/7gcjUY/BjA+kUhEhBCjtNZpAEuj0egXZeb6ZiqVurL4eigUejKdTrtl1g7btue2trYe0t7ePo6IBjPzainlokgksqlYVghxKoDVpfQYhnGy53ndHrLEYrGvm5ubxyil9iqW79MjyQn1Lf3XrV+Td7INKRAyJUKWhGVKhC15zwvXR6/pi84KKiiFPlnMrLdhUGHbUxq5d3u0xiNVI1ZeV+7eCiroC/pETEtji3+KaM2b0p362uV3jv3z9ptWBf/f0SdikuDCpPdqMD2YVZ33v/vApK2KzCqooBz6RMzTjh300Zr1FMsIb9WdZw1f9X3PVVZQQQUVdMP/ATEJ6OtpFOH2AAAAAElFTkSuQmCC" alt="Yii Logo">
                </a>
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"><i class="fa fa-inverse fa-bars"></i></button>
            </div>
            <div class="navbar-collapse collapse navbar-right">
                <?php 
// main navigation
echo Nav::widget(['id' => 'main-nav', 'encodeLabels' => false, 'options' => ['class' => 'nav navbar-nav navbar-main-menu'], 'activateItems' => false, 'dropDownCaret' => '<span class="caret"></span>', 'items' => [['label' => 'Learn', 'items' => [['label' => '<i class="fa fa-angle-double-right"></i> Getting started', 'url' => ['site/tour']], ['label' => '<i class="fa fa-angle-double-right"></i> The Definitive Guide', 'url' => ['guide/entry']], ['label' => '<i class="fa fa-angle-double-right"></i> API Documentation', 'url' => ['api/index', 'version' => reset(Yii::$app->params['api.versions'])]], ['label' => '<i class="fa fa-angle-double-right"></i> Books', 'url' => ['site/books']], ['label' => '<i class="fa fa-angle-double-right"></i> Resources', 'url' => ['site/resources']]]], ['label' => 'Develop', 'items' => [['label' => '<i class="fa fa-angle-double-right"></i> Install Yii', 'url' => ['site/download']], ['label' => '<i class="fa fa-angle-double-right"></i> Report an Issue', 'url' => ['site/report-issue']], ['label' => '<i class="fa fa-angle-double-right"></i> Report a Security Issue', 'url' => ['site/security']], ['label' => '<i class="fa fa-angle-double-right"></i> Contribute to Yii', 'url' => ['/site/contribute']]]], ['label' => 'Discuss', 'items' => [['label' => '<i class="fa fa-angle-double-right"></i> Forum', 'url' => '/forum'], ['label' => '<i class="fa fa-angle-double-right"></i> Live Chat', 'url' => ['site/chat']]]], ['label' => 'About', 'items' => [['label' => '<i class="fa fa-angle-double-right"></i> What is Yii?', 'url' => ['site/about']], ['label' => '<i class="fa fa-angle-double-right"></i> News', 'url' => ['site/news']], ['label' => '<i class="fa fa-angle-double-right"></i> License', 'url' => ['site/license']], ['label' => '<i class="fa fa-angle-double-right"></i> Team', 'url' => ['site/team']], ['label' => '<i class="fa fa-angle-double-right"></i> Official logo', 'url' => ['site/logo']]]], ['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest, 'options' => ['class' => 'hidden-lg']], ['label' => 'Signup', 'url' => ['site/signup'], 'visible' => Yii::$app->user->isGuest, 'options' => ['class' => 'hidden-lg']], ['label' => 'Logout', 'url' => ['site/logout'], 'visible' => !Yii::$app->user->isGuest, 'linkOptions' => ['data-method' => 'post'], 'options' => ['class' => 'hidden-lg']]]]);
?>
                <!-- Search dropdown - only visible on larger screens -->
                <ul class="nav navbar-nav visible-lg">
                    <li class="dropdown search-form-toggle">
                        <a href="#" class="dropdown-toggle" title="Search" data-toggle="dropdown"><i class="fa fa-search"></i></a>
                        <ul class="dropdown-menu navbar-search-form">
                          	<li>
                                <ul class="nav navbar-nav">
                                    <li>
                                        <?php 
echo $this->render('_searchForm');
?>
                                    </li>
                                </ul>
                            </li>
Example #16
0
	<?php 
echo Html::csrfMetaTags();
?>
	<title><?php 
echo Html::encode($this->title);
?>
</title>
	<?php 
$this->head();
?>
</head>
<body>
<?php 
$this->beginBody();
NavBar::begin(['brandLabel' => 'ivi Extension', 'brandUrl' => ['user/login'], 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
echo Nav::widget(['options' => ['class' => 'nav navbar-nav navbar-right'], 'items' => [['label' => 'Home', 'url' => ['user/login']]]]);
NavBar::end();
?>
<div class="container">
	<?php 
echo $content;
?>
</div>
<footer class="footer">
	<div class="container">
		<p class="pull-left">Open Source Project</p>
		<p class="pull-right">ivi Extension</p>
	</div>
</footer>
<?php 
$this->endBody();
Example #17
0
echo Html::encode($this->title);
?>
</title>
    <?php 
$this->head();
?>
</head>
<body>
<?php 
$this->beginBody();
?>

<?php 
NavBar::begin(['brandLabel' => Yii::t('audit', 'Audit'), 'brandUrl' => ['default/index'], 'options' => ['class' => 'navbar-default navbar-fixed-top navbar-fluid'], 'innerContainerOptions' => ['class' => 'container-fluid']]);
echo Nav::widget(['items' => [['label' => Yii::t('audit', 'Entries'), 'url' => ['entry/index']], ['label' => Yii::t('audit', 'Trails'), 'url' => ['trail/index']], ['label' => Yii::t('audit', 'Errors'), 'url' => ['error/index']]], 'options' => ['class' => 'navbar-nav']]);
echo Nav::widget(['items' => [['label' => Yii::$app->name, 'url' => Yii::$app->getHomeUrl()]], 'options' => ['class' => 'navbar-nav navbar-right']]);
NavBar::end();
?>

<div class="container-fluid">
    <?php 
if (isset($this->params['breadcrumbs'])) {
    ?>
        <div class="breadcrumbs">
            <?php 
    echo Breadcrumbs::widget(['links' => $this->params['breadcrumbs']]);
    ?>
        </div>
    <?php 
}
?>
Example #18
0
<?php

use app\components\FirstWidget;
use app\components\SecondWidget;
use yii\bootstrap\Modal;
use yii\jui\DatePicker;
use yii\bootstrap\Nav;
?>
<div class="test-default-index">

    <h1>Панель управления.</h1>

    <?php 
echo Nav::widget(['items' => [['label' => 'Ссылка1', 'url' => ['#']], ['label' => 'Ссылка2', 'url' => ['#']], ['label' => 'Выпадающий список', 'items' => [['label' => 'Ссылка1', 'url' => ['#']], '<li class="divider"></li>', '<li class="dropdown-header">Описание</li>', ['label' => 'Ссылка2', 'url' => ['#']]]]]]);
?>
    <?php 
echo FirstWidget::widget(['a' => 33, 'b' => 67]);
?>
    <?php 
SecondWidget::begin();
?>
        Этот текст сделаем красным.
    <?php 
SecondWidget::end();
?>

    <?php 
Modal::begin(['header' => '<h2>Привет МИР !!!</h2>', 'toggleButton' => ['label' => 'нажми']]);
echo 'это контент модального окна...';
Modal::end();
?>
Example #19
0
<?php

/*
 * This file is part of the Dektrium project.
 *
 * (c) Dektrium project <http://github.com/dektrium>
 *
 * For the full copyright and license information, please view the LICENSE.md
 * file that was distributed with this source code.
 */
/**
 * @var $this yii\web\View
 */
use yii\bootstrap\Nav;
?>

<?php 
echo Nav::widget(['activateParents' => true, 'options' => ['class' => 'nav nav-pills'], 'items' => [['label' => Yii::t('rbac', 'Roles'), 'url' => ['/rbac/role/index']], ['label' => Yii::t('rbac', 'Permissions'), 'url' => ['/rbac/permission/index']], ['label' => Yii::t('rbac', 'Create'), 'items' => [['label' => Yii::t('rbac', 'New role'), 'url' => ['/rbac/role/create']], ['label' => Yii::t('rbac', 'New permission'), 'url' => ['/rbac/permission/create']]]]]]);
?>

Example #20
0
echo Html::encode($this->title);
?>
</title>
    <?php 
$this->head();
?>
</head>
<body>
<?php 
$this->beginBody();
?>

<div class="wrap">
    <?php 
NavBar::begin(['brandLabel' => 'NotesCompany', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => array_merge([['label' => 'Home', 'url' => ['/site/index']]], !Yii::$app->user->isGuest ? [['label' => 'Friends notes', 'url' => ['/access/friendslist']], ['label' => 'Logout (' . Yii::$app->user->identity->username . ')', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]] : [['label' => 'Login', 'url' => ['/site/login']]], [['label' => 'About', 'url' => ['/site/about']], ['label' => 'Contact', 'url' => ['/site/contact']]])]);
NavBar::end();
?>

    <div class="container">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
echo $content;
?>
    </div>
</div>

<footer class="footer">
    <div class="container">
Example #21
0
    <?php 
$this->head();
?>
</head>
<body>
<?php 
$this->beginBody();
?>

<div class="wrap">
    <?php 
NavBar::begin(['brandLabel' => 'My Company', 'brandUrl' => '/web/', 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
if (Yii::$app->user->isGuest) {
    echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => [['label' => 'Registration', 'url' => ['/user/create']]]]);
}
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => [['label' => 'Home', 'url' => ['/']], ['label' => 'New Post', 'url' => ['/post/create']], Yii::$app->user->isGuest ? ['label' => 'Login', 'url' => ['/site/login']] : ['label' => 'User (' . Yii::$app->user->identity->nickname . ')', 'items' => [['label' => 'Edit profile', 'url' => ['/user/update?id=' . Yii::$app->user->id]], ['label' => 'Logout', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]]]]]);
NavBar::end();
?>

    <div class="container">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
		
        <?php 
echo $content;
?>
    </div>
</div>

<footer class="footer">
Example #22
0
use yii\bootstrap\NavBar;
use yii\bootstrap\ActiveForm;
use app\models\HrdPegawai;
$HrdPegawai = new HrdPegawai();
$this->title = 'Tambah Data Pelanggaran Pegawai';
$this->params['breadcrumbs'][] = $this->title;
?>
					
<?php 
$form = ActiveForm::begin(['id' => 'create-pelanggran', 'options' => ['class' => 'form-horizontal', 'data-toggle' => 'validator'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-1 control-label']]]);
?>
<div class="side">
	<div class="sub-sidebar-wrapper">
	  <ul class="nav">
		<?php 
echo Nav::widget(['items' => [['label' => 'Data Pribadi Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/profil'])]], ['label' => 'Data Penempatan Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/posisi'])]], ['label' => 'Data Departemen Perusahaan', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/departement'])]], ['label' => 'Data Prestasi Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/prestasi'])]]]]);
?>
	  </ul>
	</div>
</div>
<div class="col-md-12">
    <div class="widget widget-green">
        <div class="widget-title">
            <div class="widget-controls">
				<a href="#" class="widget-control widget-control-full-screen" data-toggle="tooltip" data-placement="top" title="" data-original-title="Full Screen"><i class="fa fa-expand"></i></a>
				<a href="#" class="widget-control widget-control-full-screen widget-control-show-when-full" data-toggle="tooltip" data-placement="left" title="" data-original-title="Exit Full Screen"><i class="fa fa-expand"></i></a>
				<a href="#" class="widget-control widget-control-refresh" data-toggle="tooltip" data-placement="top" title="" data-original-title="Refresh"><i class="fa fa-refresh"></i></a>
				<a href="#" class="widget-control widget-control-minimize" data-toggle="tooltip" data-placement="top" title="" data-original-title="Minimize"><i class="fa fa-minus-circle"></i></a>
			</div>
            <h3><i class="fa fa-ok-circle"></i><?php 
echo Html::encode($this->title);
Example #23
0
<body>
    <?php 
$this->beginBody();
?>
    <div id="wrapper">
        <?php 
NavBar::begin(['brandLabel' => 'Administration panel', 'brandUrl' => Yii::$app->homeUrl, 'renderInnerContainer' => false, 'containerOptions' => ['class' => 'navbar-header pull-right'], 'options' => ['class' => 'navbar-inverse navbar-fixed-top', 'role' => 'navigation']]);
$menuItems = [];
if (Yii::$app->user->isGuest) {
    $menuItems[] = ['label' => 'Login', 'url' => ['/site/login']];
} else {
    $menuItems[] = ['label' => '<i class="fa fa-fw fa-user"></i>' . Yii::$app->user->identity->username, 'dropDownCaret' => '<b class="caret"></b>', 'items' => [['label' => '<i class="fa fa-fw fa-user"></i> Profile', 'url' => '#'], ['label' => '<i class="fa fa-fw fa-power-off"></i> Log Out', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]]];
}
echo Nav::widget(['options' => ['class' => 'nav navbar-right top-nav'], 'items' => $menuItems, 'encodeLabels' => false]);
$sideMenuItems = [['label' => '<i class="fa fa-fw fa-dashboard"></i> Dashboard', 'url' => ['/site/index']], ['label' => '<i class="fa fa-fw fa-table"></i> Manage Technician', 'url' => ['/technician/index']], ['label' => '<i class="fa fa-fw fa-table"></i> Manage Consumer', 'url' => ['/consumer/index']], ['label' => '<i class="fa fa-fw fa-wrench"></i> Admin Settings', 'url' => ['/site/settings']]];
if (!Yii::$app->user->isGuest) {
    echo Nav::widget(['options' => ['class' => 'nav navbar-nav side-nav'], 'items' => $sideMenuItems, 'encodeLabels' => false]);
}
NavBar::end();
?>
        <?php 
echo $content;
?>
    </div>
    <?php 
$this->endBody();
?>
</body>
</html>
<?php 
$this->endPage();
Example #24
0
<?php 
$this->beginBody();
?>
    <div class="wrap">
        <?php 
$mobDetect = \Yii::$app->params['detect'];
$devType = '';
if ($mobDetect['isMobile']) {
    $devType = '- Mobile';
}
if ($mobDetect['isTablet']) {
    $devType = '- Tablet';
}
NavBar::begin(['brandLabel' => 'My Sommelier ' . $devType, 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => [['label' => 'Home', 'url' => ['/site/index']], ['label' => 'My Cellars', 'items' => [['label' => 'Wines', 'url' => ['/cellarwines/index']], ['label' => 'Orders', 'url' => ['/orders/index']], ['label' => 'Cellars', 'url' => ['/cellars/index']]], 'visible' => !Yii::$app->user->isGuest], ['label' => 'Reference Data', 'items' => [['label' => 'Wine Details', 'url' => ['/wines/index']], ['label' => 'Regions', 'url' => ['/regions/index']], ['label' => 'Appellations', 'url' => ['/appellations/index']], ['label' => 'Varietals', 'url' => ['/varietals/index']], ['label' => 'Wineries', 'url' => ['/wineries/index']]], 'visible' => !Yii::$app->user->isGuest], ['label' => 'Site Admin', 'items' => [['label' => 'User Mgmt', 'url' => ['/user/admin/index']], ['label' => 'API Access', 'url' => ['/test/index']]], 'visible' => !Yii::$app->user->isGuest], ['label' => 'About', 'url' => ['/site/about']], ['label' => 'Contact', 'url' => ['/site/contact']], Yii::$app->user->isGuest ? ['label' => 'Sign in', 'url' => ['/user/security/login']] : ['label' => 'Sign out (' . Yii::$app->user->identity->username . ')', 'url' => ['/user/security/logout'], 'linkOptions' => ['data-method' => 'post']], ['label' => 'Register', 'url' => ['/user/registration/register'], 'visible' => Yii::$app->user->isGuest]]]);
NavBar::end();
?>

        <div class="container">
            <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
            <?php 
echo $content;
?>
        </div>
    </div>

    <footer class="footer">
        <div class="container">
Example #25
0
?>
<div class="wrap">
    <?php 
NavBar::begin(['brandLabel' => getenv('APP_NAME'), 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar navbar-fixed-top navbar-bold']]);
echo Nav::widget(['options' => ['class' => 'navbar-nav'], 'encodeLabels' => false, 'items' => \dmstr\modules\pages\models\Tree::getMenuItems('root_' . Yii::$app->language)]);
$menuItems = [];
if (Yii::$app->hasModule('user')) {
    if (Yii::$app->user->isGuest) {
        $menuItems[] = ['label' => 'Signup', 'url' => ['/user/registration/register']];
        $menuItems[] = ['label' => 'Login', 'url' => ['/user/security/login']];
    } else {
        $menuItems[] = ['label' => '<i class="glyphicon glyphicon-user"></i> ' . Yii::$app->user->identity->username, 'options' => ['id' => 'link-user-menu'], 'items' => [['label' => '<i class="glyphicon glyphicon-user"></i> Profile', 'url' => ['/user/profile/show', 'id' => \Yii::$app->user->id]], '<li class="divider"></li>', ['label' => '<i class="glyphicon glyphicon-log-out"></i> Logout', 'url' => ['/user/security/logout'], 'linkOptions' => ['data-method' => 'post', 'id' => 'link-logout']]]];
        $menuItems[] = ['label' => '<i class="glyphicon glyphicon-cog"></i>', 'url' => ['/backend'], 'visible' => Yii::$app->user->can('backend_default') || isset(Yii::$app->user->identity) && Yii::$app->user->identity->isAdmin];
    }
}
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'encodeLabels' => false, 'items' => $menuItems]);
NavBar::end();
?>

    <div class="container">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
    </div>

    <?php 
echo Alert::widget();
?>

    <?php 
echo $content;
Example #26
0
use yii\helpers\Html;
/**
 * @var yii\web\View 				$this
 * @var dektrium\user\models\User 	$user
 */
$this->title = Yii::t('hass', 'Create a user account');
$this->params['breadcrumbs'][] = ['label' => Yii::t('hass', 'Users'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="row">
    <div class="col-md-3">
        <div class="panel panel-default">
            <div class="panel-body">
                <?php 
echo Nav::widget(['options' => ['class' => 'nav-pills nav-stacked'], 'items' => [['label' => Yii::t('hass', 'Account details'), 'url' => ['/user/admin/create']], ['label' => Yii::t('hass', 'Profile details'), 'options' => ['class' => 'disabled', 'onclick' => 'return false;']], ['label' => Yii::t('hass', 'Information'), 'options' => ['class' => 'disabled', 'onclick' => 'return false;']]]]);
?>
            </div>
        </div>
    </div>
    <div class="col-md-9">
        <div class="panel panel-default">
            <div class="panel-body">
                <div class="alert alert-info">
                    <?php 
echo Yii::t('hass', 'Credentials will be sent to the user by email');
?>
.
                    <?php 
echo Yii::t('hass', 'A password will be generated automatically if not provided');
?>
Example #27
0
?>
</head>
<body>
    <?php 
$this->beginBody();
?>
    <div class="wrap">
        <?php 
NavBar::begin(['brandLabel' => 'My Company', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
$menuItems = [['label' => 'Home', 'url' => ['/site/index']]];
if (Yii::$app->user->isGuest) {
    $menuItems[] = ['label' => 'Login', 'url' => ['/site/login']];
} else {
    $menuItems[] = ['label' => 'Logout (' . Yii::$app->user->identity->username . ')', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']];
}
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems]);
NavBar::end();
?>

        <div class="container">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
echo $content;
?>
        </div>
    </div>

    <footer class="footer">
        <div class="container">
Example #28
0
echo Html::encode($this->title);
?>
</title>
    <?php 
$this->head();
?>
</head>
<body>
<?php 
$this->beginBody();
?>

<div class="wrap">
    <?php 
NavBar::begin(['brandLabel' => 'Kurs Łowiecki', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => [['label' => 'Home', 'url' => ['/site/index']], ['label' => 'Study', 'url' => ['/study']], ['label' => 'Questions', 'url' => ['/questionlist']], Yii::$app->user->identity && !Yii::$app->user->identity->isAdmin || Yii::$app->user->isGuest ? ['label' => 'null', 'visible' => 0] : ['label' => 'Admin', 'url' => ['/user/admin/index']], Yii::$app->user->isGuest ? ['label' => 'null', 'visible' => 0] : ['label' => 'Profile', 'url' => ['/user/settings/profile']], Yii::$app->user->isGuest ? ['label' => 'null', 'visible' => 0] : ['label' => 'Account', 'url' => ['/user/settings/account']], Yii::$app->user->isGuest ? ['label' => 'Sign in', 'url' => ['/user/security/login']] : ['label' => 'Sign out (' . Yii::$app->user->identity->username . ')', 'url' => ['/user/security/logout'], 'linkOptions' => ['data-method' => 'post']], ['label' => 'Register', 'url' => ['/user/registration/register'], 'visible' => Yii::$app->user->isGuest]]]);
NavBar::end();
?>
    <div class="container">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
echo $content;
?>
    </div>
</div>

<footer class="footer">
    <div class="container">
        <p class="pull-left">&copy; Kurs Łowiecki <?php 
Example #29
0
echo Html::encode($this->title);
?>
</title>
    <?php 
$this->head();
?>
</head>
<body>
<?php 
$this->beginBody();
?>

<div class="wrap">
    <?php 
NavBar::begin(['brandLabel' => \Yii::$app->name, 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse']]);
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => [['label' => 'События', 'items' => [['label' => 'Категории', 'url' => ['/article/category']], ['label' => 'Список', 'url' => ['/article/events']]]], ['label' => 'Каталог', 'items' => [['url' => ['/catalog/category'], 'label' => 'Категории'], ['url' => ['/catalog/brand'], 'label' => 'Бренды']]], ['label' => 'Настройки', 'url' => ['/settings/settings']], Yii::$app->user->isGuest ? ['label' => 'Login', 'url' => ['/site/login']] : ['label' => 'Logout (' . Yii::$app->user->identity->username . ')', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]]]);
NavBar::end();
?>

    <div class="container">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
echo $content;
?>
    </div>
</div>

<footer class="footer">
    <div class="container">
Example #30
0
echo Html::encode($this->title);
?>
</title>
    <?php 
$this->head();
?>
</head>
<body>
<?php 
$this->beginBody();
?>

<div class="wrap">
    <?php 
NavBar::begin(['brandLabel' => '智慧农业云平台', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => [['label' => '实时监控', 'url' => ['/site/index']], ['label' => '数据报表', 'url' => ['/site/index']], ['label' => '质管溯源', 'url' => ['/site/index']], ['label' => '生产管理', 'url' => ['/site/index']], ['label' => '在线交流', 'url' => ['/site/index']], ['label' => '平台管理', 'items' => [['label' => '公司管理', 'url' => ['/company/index']], ['label' => '园区管理', 'url' => ['/park/index']], ['label' => '地块管理', 'url' => ['/land/index']]], 'options' => ['class' => 'submenu']], Yii::$app->user->isGuest ? ['label' => 'admin', 'url' => ['/site/login']] : ['label' => 'Logout (' . Yii::$app->user->identity->username . ')', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]]]);
?>
    <?php 
NavBar::end();
?>

    <div class="container">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>

        <?php 
echo $content;
?>
    </div>
</div>