<link href="/css/main.css" rel="stylesheet"> </head> <body> <?php $this->beginBody(); ?> <?php echo $this->render('_navbar'); ?> <div id="products"> <img src="/img/product-cover.jpg" alt="" class="img-responsive margin-bottom-30"> <div class="container"> <div class="col-sm-3"> <?php echo SidebarWidget::widget(); ?> </div> <div class="col-sm-9"> <?php echo $content; ?> </div> </div> </div> <?php echo $this->render('_footer'); ?> <?php $this->endBody(); ?>
<p> <?php $info[] = 'Hello'; if (isset(Yii::$app->user->identity->username)) { $info[] = ucfirst(\Yii::$app->user->identity->username); } echo implode(', ', $info); ?> </p> <a><i class="fa fa-circle text-success"></i> Online</a> </div> </div> <!-- sidebar menu: : style can be found in sidebar.less --> <?php echo SidebarWidget::widget(['items' => [['label' => 'Dashboard', 'url' => ['site/index'], 'icon' => 'fa fa-dashboard'], ['label' => 'Kirim SMS', 'url' => ['sms/send'], 'icon' => 'fa fa-pencil'], ['label' => 'SMS', 'url' => '#', 'options' => ['class' => 'treeview'], 'icon' => 'fa fa-envelope', 'submenu' => true, 'items' => [['label' => 'Kotak Masuk', 'url' => ['inbox/index'], 'icon' => 'fa fa-angle-double-right'], ['label' => 'Kotak Keluar', 'url' => ['outbox/index'], 'icon' => 'fa fa-angle-double-right'], ['label' => 'Pesan Terkirim', 'url' => ['sentitems/index'], 'icon' => 'fa fa-angle-double-right']]], ['label' => 'Buku Telepon', 'url' => ['pbk/index'], 'icon' => 'fa fa-book'], ['label' => 'User', 'url' => ['user/index'], 'icon' => 'fa fa-users'], ['label' => 'Setelan', 'url' => ['settings/index'], 'icon' => 'fa fa-gears']]]); ?> </section> <!-- /.sidebar --> </aside> <?php // echo $this->render('content.php',['content' => $content]) ?> <div class="content-wrapper"> <section class="content-header"> <?php if (isset($this->blocks['content-header'])) { ?> <h1><?php
<div class="container"> <?php echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> <div class="col-lg-9 col-xs-12"> <?php echo $content; ?> </div> <div class="col-lg-3 col-xs-12"> <?php echo \app\components\SidebarWidget::widget([]); ?> </div> </div> <footer class="footer"> <div class="container"> <p class="pull-left">© alterra <?php echo date('Y'); ?> </p> <p class="pull-right"></p> </div> </footer>