コード例 #1
0
    <header>
        <div class="top-bar">
            <div class="row">
                <div class="top-bar-left">
                    <ul class="menu">
                        <li class="menu-text">
                            <a href="<?php 
echo Yii::$app->homeUrl;
?>
">My Company</a>
                        </li>
                    </ul>
                </div>
                <div class="top-bar-right">
                    <?php 
echo Nav::widget(['options' => ['class' => 'menu'], 'items' => [['label' => 'Home', 'url' => ['/site/index']], ['label' => 'About', 'url' => ['/site/about']], ['label' => 'Contact', 'url' => ['/site/contact']], Yii::$app->user->isGuest ? ['label' => 'Login', 'url' => ['/site/login']] : '<li>' . Html::beginForm(['/site/logout'], 'post') . Html::submitButton('Logout (' . Yii::$app->user->identity->username . ')', ['class' => 'button']) . Html::endForm() . '</li>']]);
?>
                </div>
            </div>
        </div>
    </header>
    <div class="row">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], 'options' => ['class' => 'breadcrumbs']]);
?>
        <?php 
echo $content;
?>
    </div>
</div>
コード例 #2
0
ファイル: main.php プロジェクト: andreyvaslv/crb
    ?>
        <?php 
    NavBar::end();
    ?>
    <?php 
}
?>

    <?php 
NavBar::begin();
?>
    <?php 
echo Nav::widget(['options' => ['class' => 'navbar-nav'], 'items' => Menu::getNavItems('main')]);
?>
    <?php 
echo Nav::widget(['options' => ['class' => 'navbar-nav entry-nav pull-right'], 'items' => [['label' => '<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Запись на прием', 'url' => Url::to(['/appointment/ticket/entry']), 'encode' => false]]]);
?>
    <?php 
NavBar::end();
?>

    <header class="header">
        <div class="container">
            <div class="row">
                <div class="col-sm-2 text-center">
                    <img src="/img/kirovsk_h120.png" alt="">
                </div>
                <div class="col-sm-8 text-center">
                    <div class="site-name">
                        <div class="small">Государственное бюджетное учреждение здравоохранения Ленинградской области</div>
                        <div class="large">Кировская межрайонная больница</div>
コード例 #3
0
ファイル: _adminMenu.php プロジェクト: andreyvaslv/crb
<?php

echo \app\components\Nav::widget(['options' => ['class' => 'navbar-nav'], 'items' => [['label' => '<span class="glyphicon glyphicon-cog" aria-hidden="true"></span>', 'url' => ['/site/admin'], 'encode' => false], ['label' => 'Меню', 'url' => ['/menu/view', 'id' => 1]], ['label' => 'Контент', 'items' => [['label' => 'Новости', 'url' => ['/news/admin']], ['label' => 'Страницы', 'url' => ['/page/admin']], ['label' => 'Блоки', 'url' => ['/block/admin']]]], ['label' => 'Отзывы', 'url' => ['/review/admin']], ['label' => 'Населенные пункты', 'url' => ['/appointment/locality/admin']], ['label' => 'Файлы', 'items' => [['label' => 'Файлы', 'url' => ['/file/admin']], ['label' => 'Коллекции', 'url' => ['/collection/admin']]]], ['label' => 'Пользователи', 'items' => [['label' => 'Пользователи', 'url' => ['/user/admin']], ['label' => 'Управление ролями', 'url' => ['/permit/access/role']], ['label' => 'Управление правами доступа', 'url' => ['/permit/access/permission']]]], ['label' => 'Запись', 'items' => [['label' => 'Талоны', 'url' => ['/appointment/ticket/admin']], ['label' => 'Пациенты', 'url' => ['/appointment/patient/admin']], ['label' => 'Специальности', 'url' => ['/appointment/specialty/admin']], ['label' => 'Врачи', 'url' => ['/appointment/physician/admin']]]]]]);