2017 © Pedro Peláez
 

yii2-extension yii2-adminlte-theme

AdminLTE theme for Yii2

image

thedollarsign/yii2-adminlte-theme

AdminLTE theme for Yii2

  • Wednesday, February 18, 2015
  • by thedollarsign
  • Repository
  • 2 Watchers
  • 3 Stars
  • 626 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yii2-adminlte-theme

First, add following line to the components of your config file., (*1)

'components' => [
    ...
    'view' => [
        'theme' => [
            'class' => 'thedollarsign\themes\adminlte\AdminLTETheme',
            // Your menu file.
            'menuFile' => '@app/config/adminlte_file.php',
            // Name for theme style. (eg. skin-blue, skin-black)
            'style' => 'skin-blue' 
        ],
    ],
    ...
]

Second, create new file backend/config/adminlte_menu.php and add following example for side menu., (*2)

<?php
return [
    [
        'label' => 'Dashboard',
        'url' => ['site/index'],
        'icon' => 'fa-dashboard'
    ],
    [
        'label' => 'Items',
        'icon' => 'fa-user',
        'url' => ['site/manage'],
        'items' => [
            [
                'label' => 'Item1',
                'url' => ['site/manage']
            ],
            [
                'label' => 'Item2',
                'url' => ['site/manage']
            ],
        ],
    ],
];

Example

Box widget

<?php 
// Box Widget config
$config = [
    'type' => 'default',
    'header' => 'Header Title',
    'solid' => true,
    'tool' => '<button class="btn btn-default btn-sm" data-widget="remove" data-toggle="tooltip" title="" data-original-title="Remove"><i class="fa fa-times"></i></button>',
    'icon' => 'fa-list'
];
?>
// Box Widget usage
<?php Box::begin($config);?>
    <h1>Your Content</h1>
<?php Box::end();?>

The Versions

18/02 2015

dev-master

9999999-dev

AdminLTE theme for Yii2

  Sources   Download

MIT

The Requires

 

by The Dollarsign