/** * Initializes the widget. * This method will register the bootstrap asset bundle. If you override this method, * make sure you call the parent implementation first. */ public function init() { parent::init(); $session = Yii::$app->getSession(); $flashes = $session->getAllFlashes(); $appendCss = isset($this->options['class']) ? ' ' . $this->options['class'] : ''; foreach ($flashes as $type => $data) { if (isset($this->alertTypes[$type])) { $data = (array) $data; foreach ($data as $message) { $this->options['class'] = $this->alertTypes[$type]['class'] . $appendCss; $this->options['id'] = $this->getId() . '-' . $type; echo BootstrapAlert::widget(['body' => $this->alertTypes[$type]['icon'] . $message, 'closeButton' => $this->closeButton, 'options' => $this->options]); } //$session->removeFlash($type); } } }
echo $this->render('header.php', ['directoryAsset' => $directoryAsset]); ?> <?php echo $this->render('left.php', ['directoryAsset' => $directoryAsset]); ?> <div class="content-wrapper"> <section class="content-header"> <?php echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> </section> <section class="content"> <?php echo Alert::widget(); ?> <?php echo $content; ?> </section> </div> <footer class="main-footer"> <div class="pull-right hidden-xs"> <b>Version</b> 2.0 </div> <strong>Copyright © 2014-2015 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights reserved. </footer>
echo $this->context->module->id !== \Yii::$app->id ? '<small>Module</small>' : ''; } ?> </h1> <?php } ?> <?php echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> </section> <section class="content"> <?php echo Alert::widget(['options' => ['class' => 'animate-hide']]); ?> <?php echo $content; ?> </section> </div> <footer class="main-footer"> <div class="pull-right hidden-xs"> <b>Version</b> 1.0 </div> <strong>Copyright © <?php echo Yii::$app->formatter->asDate('now', 'php:Y'); ?> <a href="https://github.com/nhatzbulawan/easypos"><?php
<?php /** * @var yii\web\View $this * @var yii\data\ActiveDataProvider $dataProvider * @var \app\models\Page $searchModel */ use kartik\dynagrid\DynaGrid; $this->title = Yii::t('app', 'Pages'); $this->params['breadcrumbs'][] = $this->title; ?> <?php echo \dmstr\widgets\Alert::widget(['id' => 'alert']); ?> <?php $this->beginBlock('buttonGroup'); ?> <div class="btn-toolbar" role="toolbar"> <div class="btn-group"> <?php echo \yii\helpers\Html::a('<i class="fa fa-plus"></i> ' . Yii::t('app', 'Add'), ['/admin-pages/edit'], ['class' => 'btn btn-success']); ?> </div> </div> <?php $this->endBlock(); ?>
echo $this->context->module->id !== \Yii::$app->id ? '<small>Module</small>' : ''; } ?> </h1> <?php } ?> <?php echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> </section> <section class="content"> <?php Alert::widget(); ?> <?php echo $content; ?> </section> </div> <footer class="main-footer"> <div class="pull-right hidden-xs"> <b>Version</b> 2.0 </div> <strong>© <?php echo Yii::powercorp(); ?> <?php
<h1> <small><?php echo $this->title; ?> </small> </h1> <?php echo \yii\widgets\Breadcrumbs::widget(['homeLink' => ['label' => 'Backend', 'url' => ['/backend']], 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> </section> <!-- Main content --> <section class="content"> <?php echo Alert::widget(['isAjaxRemoveFlash' => false]); ?> <?php echo $this->blocks['twig-main-top']; ?> <?php echo $content; ?> <?php echo $this->blocks['twig-main-bottom']; ?> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <footer class="main-footer">