init
This commit is contained in:
114
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/layouts/_sidebar.php
vendored
Normal file
114
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/layouts/_sidebar.php
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
|
||||
?>
|
||||
|
||||
<!-- Sidebar user panel -->
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<?php echo \cebe\gravatar\Gravatar::widget(
|
||||
[
|
||||
'email' => 'username@example.com',
|
||||
'options' => [
|
||||
'alt' => 'username',
|
||||
],
|
||||
'size' => 64,
|
||||
]
|
||||
); ?>
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>username</p>
|
||||
|
||||
<a href="#"><i class="fa fa-circle text-success"></i> Online</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='seach' id='search-btn' class="btn btn-flat"><i
|
||||
class="fa fa-search"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
<!-- /.search form -->
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
// prepare menu items, get all modules
|
||||
$menuItems = [];
|
||||
|
||||
$favouriteMenuItems[] = ['label' => 'MAIN NAVIGATION', 'options' => ['class' => 'header']];
|
||||
|
||||
|
||||
$developerMenuItems = [];
|
||||
$developerMenuItems[] = [
|
||||
'url' => ['/sub/action/one'],
|
||||
'icon' => 'cog',
|
||||
'label' => 'Sub 1',
|
||||
];
|
||||
$developerMenuItems[] = [
|
||||
'icon' => 'cog',
|
||||
'label' => 'No Link',
|
||||
];
|
||||
$developerMenuItems[] = [
|
||||
'icon' => 'cog',
|
||||
'label' => 'Not visible',
|
||||
'visible' => false,
|
||||
];
|
||||
$developerMenuItems[] = [
|
||||
'icon' => 'cog',
|
||||
'label' => 'Folder',
|
||||
'items' => [
|
||||
[
|
||||
'url' => ['/sub/action/two'],
|
||||
'icon' => 'cog',
|
||||
'label' => 'SubSub 2',
|
||||
],
|
||||
],
|
||||
];
|
||||
$developerMenuItems[] = [
|
||||
'url' => ['/sub/action/three'],
|
||||
'icon' => 'cog',
|
||||
'label' => 'Sub 3',
|
||||
];
|
||||
$developerMenuItems[] = [
|
||||
'url' => ['/sub/action/param', 'id' => 'a'],
|
||||
'icon' => 'cog',
|
||||
'label' => 'Param A',
|
||||
];
|
||||
$developerMenuItems[] = [
|
||||
'url' => ['/sub/action/param', 'id' => 'b'],
|
||||
'icon' => 'cog',
|
||||
'label' => 'Param B',
|
||||
];
|
||||
|
||||
|
||||
$menuItems[] = [
|
||||
'url' => ['/test'],
|
||||
'icon' => 'cog',
|
||||
'label' => 'Test',
|
||||
];
|
||||
|
||||
$menuItems[] = [
|
||||
#'url' => '#',
|
||||
'icon' => 'cog',
|
||||
'label' => 'Test with items',
|
||||
'items' => $developerMenuItems,
|
||||
];
|
||||
|
||||
for ($i = 0; $i < 25; $i++) {
|
||||
$menuItems[] = [
|
||||
'url' => ['/test/auto', 'id' => $i],
|
||||
'icon' => 'cog',
|
||||
'label' => 'Auto '.$i,
|
||||
];
|
||||
}
|
||||
|
||||
echo dmstr\widgets\Menu::widget([
|
||||
'items' => \yii\helpers\ArrayHelper::merge($favouriteMenuItems, $menuItems),
|
||||
]);
|
||||
?>
|
||||
164
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/layouts/main.php
vendored
Normal file
164
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/layouts/main.php
vendored
Normal file
@@ -0,0 +1,164 @@
|
||||
<?php
|
||||
use dmstr\widgets\Alert;
|
||||
use yii\helpers\Html;
|
||||
|
||||
/* @var $this \yii\web\View */
|
||||
/* @var $content string */
|
||||
$this->title = $this->title . ' [Backend]';
|
||||
dmstr\web\AdminLteAsset::register($this);
|
||||
?>
|
||||
|
||||
<?php $this->beginPage() ?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<?= Html::csrfMetaTags() ?>
|
||||
<title><?= Html::encode($this->title) ?></title>
|
||||
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
|
||||
<!-- Ionicons -->
|
||||
<link href="//code.ionicframework.com/ionicons/1.5.2/css/ionicons.min.css" rel="stylesheet" type="text/css"/>
|
||||
<!-- Theme style -->
|
||||
<?php $this->head() ?>
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body class="hold-transition skin-black sidebar-mini">
|
||||
<?php $this->beginBody() ?>
|
||||
|
||||
<div class="wrapper">
|
||||
|
||||
<header class="main-header">
|
||||
<!-- Logo -->
|
||||
<a href="<?= \Yii::$app->homeUrl ?>" class="logo"><?= getenv('APP_TITLE') ?></a>
|
||||
<!-- Header Navbar: style can be found in header.less -->
|
||||
<nav class="navbar navbar-static-top" role="navigation">
|
||||
<!-- Sidebar toggle button-->
|
||||
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
</a>
|
||||
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
<!-- Messages: style can be found in dropdown.less-->
|
||||
<li class="dropdown messages-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-envelope-o"></i>
|
||||
<span class="label label-success">1</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="header">You have 1 notification(s)</li>
|
||||
<li>
|
||||
<!-- inner menu: contains the actual data -->
|
||||
<ul class="menu">
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="ion ion-ios7-people info"></i> Welcome to Phundament 4!
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown tasks-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-flag"></i>
|
||||
<span class="label label-default">n/a</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="header">Languages</li>
|
||||
<li>
|
||||
<!-- inner menu: contains the actual data -->
|
||||
<ul class="menu">
|
||||
languages
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="glyphicon glyphicon-user"></i>
|
||||
<span>Username <i class="caret"></i></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<!-- User image -->
|
||||
<li class="user-header bg-light-blue">
|
||||
<?php echo \cebe\gravatar\Gravatar::widget(
|
||||
[
|
||||
'email' => 'username@example.com',
|
||||
'options' => [
|
||||
'alt' => 'username'
|
||||
],
|
||||
'size' => 128
|
||||
]
|
||||
); ?>
|
||||
<p>
|
||||
username
|
||||
<small>username@example.com</small>
|
||||
</p>
|
||||
</li>
|
||||
<!-- Menu Footer-->
|
||||
<li class="user-footer">
|
||||
<div class="pull-left">
|
||||
<a href="<?= \yii\helpers\Url::to(['/user/settings/profile']) ?>"
|
||||
class="btn btn-default btn-flat">Profile</a>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a href="<?= \yii\helpers\Url::to(['/user/security/logout']) ?>"
|
||||
class="btn btn-default btn-flat" data-method="post">Sign out</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<!-- Left side column. contains the logo and sidebar -->
|
||||
<aside class="main-sidebar">
|
||||
<!-- sidebar: style can be found in sidebar.less -->
|
||||
<section class="sidebar">
|
||||
<?= $this->render('_sidebar') ?>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
|
||||
<!-- Right side column. Contains the navbar and content of the page -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<small><?= $this->title ?></small>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li class="active">Dashboard</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
|
||||
<section class="content">
|
||||
<?= Alert::widget() ?>
|
||||
<?= $content ?>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<footer class="main-footer">
|
||||
Powered by <strong><a href="http://phundament.com">Phundament 4</a></strong>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- ./wrapper -->
|
||||
|
||||
<?php $this->endBody() ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php $this->endPage() ?>
|
||||
Reference in New Issue
Block a user