thedollarsign/yii2-adminlte-theme 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thedollarsign/yii2-adminlte-theme

Composer 安装命令:

composer require thedollarsign/yii2-adminlte-theme

包简介

AdminLTE theme for Yii2

README 文档

README

First, add following line to the components of your config file.

'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.

<?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();?>

统计信息

  • 总下载量: 642
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 2
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-29