Exemplo n.º 1
0
<?php

/**
 * Created by PhpStorm.
 * User: ivphpan
 * Date: 17.12.15
 * Time: 11:17
 * @var $this \yii\web\View
 */
use app\modules\core\components\BreadcrumbsLang;
if (!empty($this->params['breadcrumbs'])) {
    echo BreadcrumbsLang::widget(['links' => $this->params['breadcrumbs'], 'options' => ['class' => 'mod-breadcrumbs font-alt align-right'], 'itemTemplate' => '<li>{link} &nbsp;/&nbsp;</li>']);
}
Exemplo n.º 2
0
Arquivo: main.php Projeto: ivphpan/gwm
</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' => Language::t('portfolio', 'Работы'), 'url' => UrlLang::to(['/portfolio/default/list'])], ['label' => Language::t('article', 'События'), 'url' => UrlLang::to(['/article/default/list'])], ['label' => Language::t('team', 'Команда'), 'url' => UrlLang::to(['/team/default/list'])], ['label' => Language::t('clients', 'Клиенты'), 'url' => UrlLang::to(['/clients/default/list'])], ['label' => Language::t('services', 'Услуги'), 'url' => UrlLang::to(['/services/default/list'])], ['label' => Language::t('page', 'О нас'), 'url' => UrlLang::to(['/core/default/view', 'alias' => 'o-nas'])]]]);
NavBar::end();
?>

    <div class="container">
        <?php 
echo \app\modules\core\components\BreadcrumbsLang::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
echo \app\modules\core\widgets\LanguageChange::widget();
?>
        <?php 
echo $content;
?>
    </div>
</div>

<footer class="footer">
    <div class="container">
        <p class="pull-left">&copy; My Company <?php 
echo date('Y');
?>
Exemplo n.º 3
0
<?php

/**
 * @this
 */
if (isset($this->params['breadcrumbs'])) {
    ?>

<!-- end breadcrumbs -->
<div class="breadcrumbs">
    <div class="container">
        <div class="row">

            <?php 
    echo \app\modules\core\components\BreadcrumbsLang::widget(['itemTemplate' => "{link}\n <span>&mdash;›</span> ", 'activeItemTemplate' => "{link}", 'links' => $this->params['breadcrumbs']]);
    ?>
        </div>
    </div>
</div>
<!-- end breadcrumbs -->
<?php 
}
?>