rev 672
(17 files, 19kb)
+ Added support for the $language variable in cached CSS files. Will be useful once I move the 'New' icon to CSS. (Subs-Cache.php)
! Make sure the index template is loaded before we add the RSS sidebar block. It would crash on $simpleActions otherwise. (index.php)
* $context['is_ajax'] isn't the only case where the chrome should be hidden, so I introduced a $context['hide_chrome'] variable instead, which is also set to true automatically in Ajax mode. (QueryString.php, Subs.php, Errors.template.php)
+ Added a new function, hideChrome(), which ensures Wedge will avoid showing the top and sidebar templates. You may also add a parameter that will list the main template layers you wish to use. Haven't tested most of the changes, but it should be fine. (CoppaForm.php, Load.php, ModerationCenter.php, Packages.php, Printpage.php, Reports.php, Spellcheck.php, Subs.php, VerificationCode.php)
! Fixed a cases where resetting the template layers was already done, something like that. (Help.php)
* Spacinazi. (CoppaForm.php, ManageErrors.php, Printpage.php, Subs-Cache.php, Admin.template.php, Errors.template.php, Search.template.php)
@ Note: $txt['image_lang'] isn't defined in our languages, but is used in the code. Should we remove it, or is it used for some specific languages? (Load.php)
@ Also: Pete, can you look into the hideChrome() occurrences? I didn't realize there were so many template resets... To think that most of them were broken in the previous rev, and none of us noticed it! :^^;:
(17 files, 19kb)
+ Added support for the $language variable in cached CSS files. Will be useful once I move the 'New' icon to CSS. (Subs-Cache.php)
! Make sure the index template is loaded before we add the RSS sidebar block. It would crash on $simpleActions otherwise. (index.php)
* $context['is_ajax'] isn't the only case where the chrome should be hidden, so I introduced a $context['hide_chrome'] variable instead, which is also set to true automatically in Ajax mode. (QueryString.php, Subs.php, Errors.template.php)
+ Added a new function, hideChrome(), which ensures Wedge will avoid showing the top and sidebar templates. You may also add a parameter that will list the main template layers you wish to use. Haven't tested most of the changes, but it should be fine. (CoppaForm.php, Load.php, ModerationCenter.php, Packages.php, Printpage.php, Reports.php, Spellcheck.php, Subs.php, VerificationCode.php)
! Fixed a cases where resetting the template layers was already done, something like that. (Help.php)
* Spacinazi. (CoppaForm.php, ManageErrors.php, Printpage.php, Subs-Cache.php, Admin.template.php, Errors.template.php, Search.template.php)
@ Note: $txt['image_lang'] isn't defined in our languages, but is used in the code. Should we remove it, or is it used for some specific languages? (Load.php)
@ Also: Pete, can you look into the hideChrome() occurrences? I didn't realize there were so many template resets... To think that most of them were broken in the previous rev, and none of us noticed it! :^^;:

