示例#1
0
    <div class="uk-navbar-flip">

        <?php 
echo Nav::widget(['navbar' => true, 'options' => ['class' => 'uk-hidden-small'], 'items' => [['label' => '<i class="uk-icon-home"></i>', 'encodeLabels' => false, 'url' => '/', 'linkOptions' => ['target' => '_blank']], Yii::$app->user->isGuest ? ['label' => 'Войти', 'url' => ['/user/default/login'], 'items' => [['label' => 'Зарегистрироваться', 'url' => ['/user/default/signup']]]] : ['label' => Yii::$app->user->identity->username, 'url' => ['/user/default/update'], 'items' => [['label' => 'Выйти', 'url' => ['/user/default/logout'], 'linkOptions' => ['data-method' => 'post']]]]]]);
?>

    </div>

<?php 
NavBar::end();
?>

<section id="content" class="uk-container uk-container-center uk-margin-top">  
    <?php 
echo Alert::widget();
?>
    <?php 
echo Breadcrumbs::widget(['homeLink' => ['label' => 'Админка', 'url' => ['/zooadmin/default/index']], 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
    <?php 
echo $content;
?>
</section>

<?php 
$this->endBody();
?>
</body>
</html>
<?php 
$this->endPage();
示例#2
0
use yii\helpers\Html;
use yii\helpers\Url;
use worstinme\uikit\Breadcrumbs;
$this->registerJs('$.pjax.defaults.scrollTo = false', $this::POS_READY);
$this->title = 'Ваш заказ';
$this->params['breadcrumbs'][] = $this->title;
\yii\widgets\Pjax::begin(['id' => 'z-cart', 'timeout' => 5000, 'options' => ['data-uk-observe' => true, 'scrollTo' => false, 'class' => 'cart']]);
?>
 

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

	<h1 class="uk-text-center"><span><?php 
echo $this->title;
?>
</span></h1>

	<?php 
if (count($cart->items) <= 0) {
    ?>
		<div class="uk-text-center empty-cart"><?php