Closed ghost closed 8 years ago
require 3rd party module?
Nope. All built with ZF2.
The way I made it is this:
return [ /* * These are mandatory as well, but if anyone don't want to put text, just leave them empty: => '' / 'description' => 'Application default theme that comes with the installation', 'title' => 'Default', 'screenshot' => 'default.png', 'author' => 'Stanimir Dimitrov',
/**
* The only path structure that is a must and must stay this way is /themes/THEME_NAME/.
* /themes/THEME_NAME/ is built automatically by the system.
*
* Every other file structure can be orginized according to the users needs.
* Which means that these examples are fully valid.
*
* You can omit the first trailing slash. The system will always include one for you.
*
*
* 'css' => [
* '/habalababala/Anotherpath/to/style.css',
* 'css/style.css',
* 'scss/style.css',
* '/css/scss/style.css',
* ],
* 'js' => [
* '/habalababala/Anotherpath/to/custom.js',
* '/assets//js/ember.js',
* '3rdparty/jquery.js',
* ],
*
*/
'css' => [
'/front/css/front.min.css',
],
'js' => [
'/front/js/front.min.js',
],
/**
* This is not necessary, but it's good for performance.
*/
'template_map' => include __DIR__.'/../template_map.php',
'template_path_stack' => [
'default' => __DIR__.'/../view',
],
];
EDIT:
Forgot to mention that there is also a ThemeController inside the Admin module which activates the existing themes wtih 1 click!
Suggestions are welcome.
I personally think it's too complicated, even user to install, too many steps will be required to get it working, also, we need to have module that shows the power of zf2, like #157 ( controller plugin ), user can just download, paste in module, and run it. I am against about "Admin" module as we need a "single easy module" to be picked and try.
It only sounds complicated. Also, there won't be an admin module here. I was refering to my CMS. Give me a day for the first drafts.
ok :+1:
Module done. Closing.
I'm going to create a theme switcher module.