rev 2190 -- macros rewrite, hopefully will help me with the upcoming soft-merge trick, hmm...
(5 files +2, 11kb)
* Tweaked the macro system. Default macros are *no longer* defined in index.template.php, and are instead declared in a new 'macros.xml' file in the skins folder, which you can augment with contents in custom.xml, or a sub-skin's macros.xml file. Just like for skeletons, a replace-type skin shouldn't ignore the root skin's macros, so if you want to cancel a parent macro, make sure to rewrite it entirely, otherwise it's here to stay. I think. The reason why I did this rewrite was to (1) completely clean up the index template, which is already complicated as it is with all of the blocks defined, and (2) make it easier for me to add new macros, as the xml definition style is, well, definitely better looking... Plus, the banner macro needed to be fixed with non-PHP code, so, two birds with one stone. (Load.php, Subs-Cache.php, index.template.php, macros.xml)
+ Started adding a few macros... (Msg.template.php, macros.xml)
- skin.xml no longer accepts macro redefinitions. Use macros.xml, sorry about that. (Warm/skin.xml, Warm/macros.xml)
- A couple of unused globals... (index.template.php)
(5 files +2, 11kb)
* Tweaked the macro system. Default macros are *no longer* defined in index.template.php, and are instead declared in a new 'macros.xml' file in the skins folder, which you can augment with contents in custom.xml, or a sub-skin's macros.xml file. Just like for skeletons, a replace-type skin shouldn't ignore the root skin's macros, so if you want to cancel a parent macro, make sure to rewrite it entirely, otherwise it's here to stay. I think. The reason why I did this rewrite was to (1) completely clean up the index template, which is already complicated as it is with all of the blocks defined, and (2) make it easier for me to add new macros, as the xml definition style is, well, definitely better looking... Plus, the banner macro needed to be fixed with non-PHP code, so, two birds with one stone. (Load.php, Subs-Cache.php, index.template.php, macros.xml)
+ Started adding a few macros... (Msg.template.php, macros.xml)
- skin.xml no longer accepts macro redefinitions. Use macros.xml, sorry about that. (Warm/skin.xml, Warm/macros.xml)
- A couple of unused globals... (index.template.php)


