Beispiel #1
0
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</a>
			<div class="navbar-right">
				<?php 
echo Html::a('Logout', '/site/logout', ['class' => 'logout']);
?>
			</div>
		</nav>
	</header>

	<div class="wrapper row-offcanvas row-offcanvas-left">
		<!-- Left side column. contains the logo and sidebar -->
		<?php 
echo widgets\AdminMenu::widget();
?>
		<!-- Right side column. Contains the navbar and content of the page -->
		<aside class="right-side">
			<!-- Content Header (Page header) -->
			<section class="content-header">
				<ol class="breadcrumb">
					<?php 
echo Breadcrumbs::widget(['homeLink' => ['label' => 'Home', 'url' => '/admin'], 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
				</ol>
				<h1>
					<?php 
echo $this->title;
?>
				</h1>
Beispiel #2
0
echo Yii::$app->user->identity->getPublicIdentity();
?>
</p>
              <a href="<?php 
echo Url::to(['#']);
?>
">
                  <i class="fa fa-circle text-success"></i>
                  <?php 
echo Yii::$app->formatter->asDatetime(time());
?>
              </a>
          </div>
      </div>
      <!-- search form -->
      <form action="#" method="get" class="sidebar-form">
          <div class="input-group">
              <input type="text" name="q" class="form-control" placeholder="Search...">
              <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button>
              </span>
          </div>
      </form>
      <!-- /.search form -->
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <?php 
echo AdminMenu::widget(['options' => ['class' => 'sidebar-menu'], 'linkTemplate' => '<a href="{url}">{icon}<span>{label}</span>{right-icon}{badge}</a>', 'submenuTemplate' => "\n<ul class=\"treeview-menu\">\n{items}\n</ul>\n", 'activateParents' => true, 'items' => [['label' => Yii::t('layout', 'Main'), 'options' => ['class' => 'header']], ['label' => Yii::t('layout', 'Dashboard'), 'icon' => '<i class="fa fa-dashboard"></i>', 'url' => ['/admin/'], 'badge' => 5, 'badgeBgClass' => 'label-success'], ['label' => Yii::t('layout', 'Timeline'), 'icon' => '<i class="fa fa-bar-chart-o"></i>', 'url' => ['/admin/time-line/index'], 'badge' => \app\models\TimeLine::find()->today()->count(), 'badgeBgClass' => 'label-success'], ['label' => Yii::t('layout', 'Database'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('layout', 'Category'), 'url' => ['/admin/category/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('layout', 'Product'), 'url' => ['/admin/product/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('layout', 'Mail'), 'icon' => '<i class="fa fa-envelope"></i>', 'url' => ['/admin/mail/index'], 'badge' => 5, 'badgeBgClass' => 'label-success'], ['label' => Yii::t('layout', 'Calendar'), 'icon' => '<i class="fa fa-calendar"></i>', 'url' => ['/admin/calendar/index'], 'badge' => 5, 'badgeBgClass' => 'label-success'], ['label' => Yii::t('layout', 'You Info'), 'url' => '#', 'icon' => '<i class="fa fa-edit"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('layout', 'Profile'), 'url' => ['/admin/user/profile', 'id' => Yii::$app->user->identity->id], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('layout', 'Change Password'), 'url' => ['admin/user/change-password', 'id' => Yii::$app->user->identity->id], 'icon' => '<i class="fa fa-angle-double-right"></i>']]], ['label' => Yii::t('layout', 'System'), 'options' => ['class' => 'header']], ['label' => Yii::t('layout', 'Users'), 'icon' => '<i class="fa fa-users"></i>', 'url' => ['/admin/user/index']], ['label' => Yii::t('layout', 'Other'), 'url' => '#', 'icon' => '<i class="fa fa-cogs"></i>', 'options' => ['class' => 'treeview'], 'items' => [['label' => Yii::t('layout', 'I18n'), 'url' => ['/admin/i18n/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('layout', 'Cache'), 'url' => ['/admin/cache/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('layout', 'File Manager'), 'url' => ['/admin/file-manager/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('layout', 'System Manager'), 'url' => ['/admin/system-manager/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>'], ['label' => Yii::t('layout', 'Logs'), 'url' => ['/log/index'], 'icon' => '<i class="fa fa-angle-double-right"></i>', 'badgeBgClass' => 'label-danger']]]]]);
?>
  </section>
  <!-- /.sidebar -->
</aside>