Skip to content

Commit

Permalink
updated adminlte to 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hail committed Apr 1, 2021
1 parent c8ebaaa commit 9eedcfe
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 58 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ The preferred way to install this extension is through [composer](http://getcomp
Either run

```
php composer.phar require --prefer-dist hail812/yii2-adminlte3 "*"
composer require "hail812/yii2-adminlte3=~1.1"
```

or add

```
"hail812/yii2-adminlte3": "*"
"hail812/yii2-adminlte3": "~1.1"
```

to the require section of your `composer.json` file.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"php": ">=7.0",
"yiisoft/yii2": "~2.0.0",
"yiisoft/yii2-bootstrap4": "~2.0.8",
"almasaeed2010/adminlte": "~3.0"
"almasaeed2010/adminlte": "~3.1"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions src/views/layouts/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">
<h1 class="m-0">
<?php
if (!is_null($this->title)) {
echo \yii\helpers\Html::encode($this->title);
Expand All @@ -24,7 +24,7 @@
echo Breadcrumbs::widget([
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
'options' => [
'class' => 'float-sm-right'
'class' => 'breadcrumb float-sm-right'
]
]);
?>
Expand Down
8 changes: 3 additions & 5 deletions src/views/layouts/control-sidebar.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
<div class="p-3">
<h5>Title</h5>
<p>Sidebar content</p>
</div>
</aside>
</aside>
<!-- /.control-sidebar -->
9 changes: 4 additions & 5 deletions src/views/layouts/footer.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<footer class="main-footer">
<!-- To the right -->
<div class="float-right d-none d-sm-inline">
Anything you want
<strong>Copyright &copy; 2014-2021 <a href="https://adminlte.io">AdminLTE.io</a>.</strong>
All rights reserved.
<div class="float-right d-none d-sm-inline-block">
<b>Version</b> 3.1.0
</div>
<!-- Default to the left -->
<strong>Copyright &copy; 2014-2019 <a href="https://adminlte.io">AdminLTE.io</a>.</strong> All rights reserved.
</footer>
2 changes: 1 addition & 1 deletion src/views/layouts/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

\hail812\adminlte3\assets\FontAwesomeAsset::register($this);
\hail812\adminlte3\assets\AdminLteAsset::register($this);
$this->registerCssFile('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700');
$this->registerCssFile('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback');

$assetDir = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist');
?>
Expand Down
69 changes: 31 additions & 38 deletions src/views/layouts/navbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use yii\helpers\Html;

?>
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
<!-- Left navbar links -->
<ul class="navbar-nav">
Expand Down Expand Up @@ -65,6 +66,28 @@

<!-- Right navbar links -->
<ul class="navbar-nav ml-auto">
<!-- Navbar Search -->
<li class="nav-item">
<a class="nav-link" data-widget="navbar-search" href="#" role="button">
<i class="fas fa-search"></i>
</a>
<div class="navbar-search-block">
<form class="form-inline">
<div class="input-group input-group-sm">
<input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
<div class="input-group-append">
<button class="btn btn-navbar" type="submit">
<i class="fas fa-search"></i>
</button>
<button class="btn btn-navbar" type="button" data-widget="navbar-search">
<i class="fas fa-times"></i>
</button>
</div>
</div>
</form>
</div>
</li>

<!-- Messages Dropdown Menu -->
<li class="nav-item dropdown">
<a class="nav-link" data-toggle="dropdown" href="#">
Expand Down Expand Up @@ -153,46 +176,16 @@
<li class="nav-item">
<?= Html::a('<i class="fas fa-sign-out-alt"></i>', ['/site/logout'], ['data-method' => 'post', 'class' => 'nav-link']) ?>
</li>
<li class="nav-item dropdown user-menu">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">
<img src="<?=$assetDir?>/img/user2-160x160.jpg" class="user-image img-circle elevation-2" alt="User Image">
<span class="d-none d-md-inline">Alexander Pierce</span>
<li class="nav-item">
<a class="nav-link" data-widget="fullscreen" href="#" role="button">
<i class="fas fa-expand-arrows-alt"></i>
</a>
<ul class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
<!-- User image -->
<li class="user-header bg-primary">
<img src="<?=$assetDir?>/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">

<p>
Alexander Pierce - Web Developer
<small>Member since Nov. 2012</small>
</p>
</li>
<!-- Menu Body -->
<li class="user-body">
<div class="row">
<div class="col-4 text-center">
<a href="#">Followers</a>
</div>
<div class="col-4 text-center">
<a href="#">Sales</a>
</div>
<div class="col-4 text-center">
<a href="#">Friends</a>
</div>
</div>
<!-- /.row -->
</li>
<!-- Menu Footer-->
<li class="user-footer">
<a href="#" class="btn btn-default btn-flat">Profile</a>
<?= Html::a('Sign out', ['/site/logout'], ['data-method' => 'post', 'class' => 'btn btn-default btn-flat float-right']) ?>
</li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button"><i
class="fas fa-th-large"></i></a>
<a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
<i class="fas fa-th-large"></i>
</a>
</li>
</ul>
</nav>
</nav>
<!-- /.navbar -->
19 changes: 15 additions & 4 deletions src/views/layouts/sidebar.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="<?=\yii\helpers\Url::home()?>" class="brand-link">
<img src="<?=$assetDir?>/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
style="opacity: .8">
<a href="index3.html" class="brand-link">
<img src="<?=$assetDir?>/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
<span class="brand-text font-weight-light">AdminLTE 3</span>
</a>

Expand All @@ -18,9 +17,21 @@
</div>
</div>

<!-- SidebarSearch Form -->
<!-- href be escaped -->
<!-- <div class="form-inline">
<div class="input-group" data-widget="sidebar-search">
<input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
<div class="input-group-append">
<button class="btn btn-sidebar">
<i class="fas fa-search fa-fw"></i>
</button>
</div>
</div>
</div> -->

<!-- Sidebar Menu -->
<nav class="mt-2">

<?php
echo \hail812\adminlte3\widgets\Menu::widget([
'items' => [
Expand Down

0 comments on commit 9eedcfe

Please sign in to comment.