コード例 #1
0
ファイル: admin.php プロジェクト: semnt/tp01
?>
';
        </script>
        
        <?php 
$this->head();
?>
 
    </head>
    <body>
        <?php 
$this->beginBody();
?>
        
        <?php 
echo Header::widget();
?>
        
        <section class="page container <?php 
echo $pageSectionClass;
?>
">
            <?php 
if ($breadcrumbs) {
    ?>
                <?php 
    echo Breadcrumbs::widget(['homeLink' => false, 'links' => $breadcrumbs]);
    ?>
            <?php 
}
?>
コード例 #2
0
ファイル: run.php プロジェクト: semnt/tp01
<?php

use app\modules\admin\widgets\Header as Widget;
use app\modules\admin\widgets\NavBar;
use app\modules\admin\widgets\Nav;
$widget = $this->context;
$controller = Yii::$app->controller;
$module = $controller->module;
$leftItems = $widget->getLeftItems();
$rightItems = $widget->getRightItems();
?>

<?php 
NavBar::begin(['brandGlyphicon' => 'home small', 'brandLabel' => Widget::t('APP_TITLE'), 'brandUrl' => '@admin', 'options' => ['class' => 'navbar-default navbar-fixed-top']]);
?>

    <?php 
if ($leftItems) {
    ?>
        <?php 
    echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-left'], 'items' => $leftItems]);
    ?>
    <?php 
}
?>
    
    <?php 
if ($rightItems) {
    ?>
        <?php 
    echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $rightItems]);