项目作者: backstageel

项目描述 :
CakePHP Gentelella Theme
高级语言: PHP
项目地址: git://github.com/backstageel/cakephp-gentelella-theme.git
创建时间: 2016-10-22T20:51:39Z
项目社区:https://github.com/backstageel/cakephp-gentelella-theme

开源协议:Apache License 2.0

下载


CakePHP Gentelella Theme

Gentelella Theme Demo

You can view the Demo of Gentelella Theme here: https://colorlib.com/polygon/gentelella/index.html

Installation

You can install using composer.

  1. composer require backstageel/cakephp-gentelella-theme

Enable Plugin

  1. // config/bootstrap.php
  2. Plugin::load('Gentelella', ['bootstrap' => true, 'routes' => true]);

Enable theme

  1. // src/Controller/AppController.php
  2. public function beforeRender(Event $event)
  3. {
  4. $this->viewBuilder()->theme('Gentelella');
  5. }

Using Bootstrap UI Plugin

This Theme Uses the BootstrapUI Plugin for CakePHP to create Bootstrap Forms. The Plugin will be installed automatically if you use composer.

Follow BootstrapUI settings to configure other aspects of the Plugin.

https://github.com/FriendsOfCake/bootstrap-ui

Configure

  1. // src/Controller/AppController.php
  2. use Cake\Core\Configure;
  3. public function beforeRender(Event $event)
  4. {
  5. // ...
  6. $this->set('theme', Configure::read('Theme'));
  7. }
  1. // To customize configuration paste it at end of file config/bootstrap.php
  2. Configure::write('Theme', [
  3. 'title' => 'Gentelella',
  4. 'logo' => [
  5. 'mini' => '<b>G</b>T',
  6. 'large' => '<b>Gentelella</b>Theme'
  7. ],
  8. 'login' => [
  9. 'show_remember' => true,
  10. 'show_register' => true,
  11. 'show_social' => true
  12. ]
  13. ]);

Don’t forget to Symlink Assets to improve performance

  1. bin/cake plugin assets symlink

Customize Layout

Replace the files according to the image.

Dashboard

  1. src/Template/Element/nav-top.ctp
  2. src/Template/Element/aside-main-sidebar.ctp
  3. src/Template/Element/aside/user-panel.ctp
  4. src/Template/Element/aside/form.ctp
  5. src/Template/Element/aside/sidebar-menu.ctp
  6. src/Template/Element/aside-control-sidebar.ctp
  7. src/Template/Element/footer.ctp

Page debug

Added link to default page of CakePHP.

Page debug

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request