Exemple #1
0
NavBar::begin(['brandLabel' => 'МикроСофт', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
$menuItems = [['label' => 'Главная', 'url' => ['/site/index']], ['label' => 'Каталог', 'url' => ['/site/catalog']], ['label' => 'Подбор товара', 'url' => ['/site/selection']], ['label' => 'Новости', 'url' => ['/site/events']], ['label' => 'О нас', 'url' => ['/site/about']], ['label' => 'Обратная связь', 'url' => ['/site/contact']]];
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems]);
NavBar::end();
?>
            </div>
            <div class="clr"></div>
            <div class="logo">
                <h1 class="mark"><a href=""> МикроСофт </a>
                    <small>Работать нужно так, чтобы последующие клиенты были друзьями предыдущих</small>
                </h1>
            </div>
            <div class="clr"></div>
            <div class="slider">
                <?php 
echo SliderWidget::widget();
?>
                <div class="clr"></div>
            </div>
            <div class="clr"></div>
        </div>
    </div>
    <div class="content">
        <div class="content_resize">
            <div class="mainbar">
                <div class="wrap">
                    <?php 
echo Alert::widget();
?>
                    <?php 
echo $content;
Exemple #2
0
echo SeoHelper::getMeta();
?>
        <?php 
echo Html::csrfMetaTags();
?>

        <?php 
$this->head();
?>
    </head>
    <body>
        <?php 
$this->beginBody();
echo $this->render('parts/_header_no_slider');
?>
        <?php 
echo SliderWidget::widget(['source' => 'slider']);
?>
        <?php 
echo $content;
?>
        <?php 
echo $this->render('parts/_footer');
?>
        <?php 
$this->endBody();
?>
    </body>  
</html>
        <?php 
$this->endPage();
Exemple #3
0
?>
">
<head>
    <meta charset="<?php 
echo Yii::$app->charset;
?>
"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php 
echo Html::csrfMetaTags();
?>
    <?php 
echo SeoHelper::getMeta();
?>
    <?php 
$this->head();
?>
</head>
<body>
<?php 
$this->beginBody();
echo $this->render('parts/_header_no_slider');
echo SliderWidget::widget(['source' => 'photo']);
echo $content;
echo $this->render('parts/_footer');
$this->endBody();
?>
</body>
</html>
<?php 
$this->endPage();