Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Vanilla 0.9.3 - Better theming support?
I've been really pleased with the Vanilla Framework and Mark has done a wonderful job! The only thing I still had some troubles with, was the theme support. Using html in php still messes up the beautyness of the application. I've found a way to still use the original theme-structure, but seperate the templates from the php code.
First, I've created the following directory structure in my themes directory:
Next, I copied all the theme php-files from the theme-directory to the subdirectory (scum in this case).
I use MiniTemplator to seperate code and templates. I've transformed the original class to a Vanilla one: Framework.Class.MiniTemplator.php. And put it in the library/Framework directory.
My theming now has neater code, and clean templates:
(Example of the discussion grid)
discussions.php
templates/DiscussionGrid.html
First, I've created the following directory structure in my themes directory:
Next, I copied all the theme php-files from the theme-directory to the subdirectory (scum in this case).
I use MiniTemplator to seperate code and templates. I've transformed the original class to a Vanilla one: Framework.Class.MiniTemplator.php. And put it in the library/Framework directory.
My theming now has neater code, and clean templates:
(Example of the discussion grid)
discussions.php
templates/DiscussionGrid.html
0
This discussion has been closed.
Comments
Vanilla source
Source with MiniTemplator class
It may not be "simpler" for theme authors to program, but it is definitely "simpler" for php to parse.