Ejemplo n.º 1
0
use yii\bootstrap\NavBar;
/* @var $this \app\components\MainView */
include_once 'header.php';
$this->beginBody();
?>
<div class="wrap">
    <?php 
NavBar::begin(['brandLabel' => 'Beacon-CMS', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-default navbar-fixed-top']]);
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-left'], 'items' => $this->getLayoutData(SiteLayout::place_left_nav)]);
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $this->getLayoutData(SiteLayout::place_right_nav)]);
NavBar::end();
?>

    <div class="container">
        <?php 
echo Alert::printAlert($this);
?>
        <?php 
echo Nav::widget(['options' => ['class' => 'nav-tabs'], 'items' => $this->getLayoutData(TabbedLayout::place_tabs)]);
?>
        <div class="col-md-2">
            <?php 
echo Nav::widget(['options' => ['class' => 'nav-tabs nav-stacked'], 'items' => $this->getLayoutData(SubTabbedLayout::place_left_sub_tabs)]);
?>
        </div>
        <div class="col-md-10">
            <?php 
echo $content;
?>
        </div>
    </div>