maiconpinto/cakephp-adminlte-theme
Fork: 111 Star: 173 (更新于 2024-10-31 10:15:11)
license: MIT
Language: JavaScript .
CakePHP AdminLTE Theme
最后发布版本: 2.0.2 ( 2020-10-05 03:29:08)
CakePHP AdminLTE Theme (2.0.0)
What's the news
The AdminLTE was updated version to 2.4.5.
The CakePHP was updated version compatible to 4.0.0.
This release 2.0.0 is can be considered the stable version, as indicated in the SemVer.org recommendations.
Installation
You can install using composer.
composer require maiconpinto/cakephp-adminlte-theme
Enable Plugin
// src/Application.php
public function bootstrap()
{
$this->addPlugin('AdminLTE');
}
Enable Theme
// src/Controller/AppController.php
use Cake\Event\EventInterface;
public function beforeRender(EventInterface $event)
{
$this->viewBuilder()->setTheme('AdminLTE');
}
Enable Form
// src/View/AppView.php
public function initialize()
{
$this->loadHelper('Form', ['className' => 'AdminLTE.Form']);
}
Configure
// new config/adminlte.php file
return [
'Theme' => [
'title' => 'AdminLTE',
'logo' => [
'mini' => '<b>A</b>LT',
'large' => '<b>Admin</b>LTE'
],
'login' => [
'show_remember' => true,
'show_register' => true,
'show_social' => true
],
'folder' => ROOT,
'skin' => 'blue'
]
];
// config/bootstrap.php
Configure::load('adminlte', 'default');
Customize Layout
If you want to Customize Layout
What's the features
Layouts
There are 10 layout files.
- boxed
- collapsed
- default it's the main layout
- documentation
- fixed
- lockscreen
- login
- register
- top
View Blocks
There are 3 Blocks where you can extend your theme.
- css
<?php echo $this->fetch('css'); ?>
One example is src/Template/Pages/home.ctp
:
<?php echo $this->Html->css('AdminLTE./bower_components/morris.js/morris', ['block' => 'css']); ?>
- script
<?php echo $this->fetch('script'); ?>
One example is src/Template/Pages/home.ctp
:
<?php echo $this->Html->script('AdminLTE./bower_components/morris.js/morris.min', ['block' => 'script']); ?>
- scriptBottom
<?php echo $this->fetch('scriptBottom'); ?>
One example is src/Template/Pages/home.ctp
:
<?php $this->start('scriptBottom'); ?>
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
<?php $this->end(); ?>
Elements
There are 7 element files.
- Element/
- aside/
- form
- sidebar-menu
- user-panel
- aside-control-sidebar
- aside-main-sidebar
- footer
- nav-top
- aside/
Flash Message
The theme is prepared to show Flash Messages.
<?php echo $this->Flash->render(); ?>
<?php echo $this->Flash->render('auth'); ?>
Bake
One of the better Cake features. The theme is prepared to use Bake.
bin/cake bake all user --theme AdminLTE
View
- AdminLTEView
This is one the better theme feature. It change the pattern how Cake show view files.
Basically, you overwrite any theme, plugin and prefix files.
- src/Template/Plugin/$theme/Plugin/$plugin/$prefix/
- src/Template/Plugin/$theme/Plugin/$plugin/
- src/Template/Plugin/$theme/$prefix/
- src/Template/Plugin/$theme/
FormHelper
FormHelper by default has format template based on Foundation template. This helper overwrite these templates.
Behavior
- DatepickerBehavior
When you configure App.defaultLocale
to pt_BR
this Behavior is util.
Locale
When you configure App.defaultLocale
to pt_BR
this Locale is util.
Page debug
Added link to default page of CakePHP.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
最近版本更新:(数据更新于 2024-10-18 19:45:15)
2020-10-05 03:29:08 2.0.2
2020-10-05 03:04:34 2.0.1
2018-12-25 06:40:03 1.1.0
2017-08-27 01:40:27 1.0.7
2017-08-12 20:36:35 1.0.6
2016-11-12 08:59:55 1.0.5
2016-11-12 08:58:19 1.0.2
2016-11-12 08:57:36 1.0.1
2016-11-12 08:56:46 1.0.0
2016-08-17 12:51:42 1.0.4
主题(topics):
adminlte, cakephp, cakephp-adminlte-theme, theme
maiconpinto/cakephp-adminlte-theme同语言 JavaScript最近更新仓库
2024-11-05 19:13:47 jerryc127/hexo-theme-butterfly
2024-11-05 13:53:42 LiteLoaderQQNT/LiteLoaderQQNT
2024-11-03 02:40:36 chris81605/Degrees-of-Lewdity_Cheat_Extended
2024-11-01 21:55:46 projectdiscovery/nuclei-templates
2024-11-01 19:24:44 NumberSir/DoL-I18n-Build
2024-11-01 12:25:14 midoks/mdserver-web