This is the bug tracker for Photo Organizer.
FS#306 - Rework the theme infrastructure into a proper OO system.
Attached to Project:
Photo Organizer
Opened by Solomon Peachy (pizza) - Thursday, 15 November 2007, 15:28 GMT-4
Opened by Solomon Peachy (pizza) - Thursday, 15 November 2007, 15:28 GMT-4
|
DetailsCurrent:
global $theme = 'fixed theme name' global $thm_elem = array(all_buttons, etc) [Initialized during startup] theme_display_photo(); theme_display_navigator_box_[top|bottom]() theme_display_slide_[top|bottom]() print $thm_elem['button_name']; functions use $thm_elem directly, and those functions, and a few other misc variables. There's some complication thanks to the i18n framework, but that's the gist of it. Instead, I'd like to see: $po_options['theme'] = 'default_theme' // can be overridden by user prefs // in site_prolog() $include_once "themes/$po_options[theme]/theme.php" global $theme = new $po_options['theme']($language); ... $theme->display_photo(...); print $theme->element('button_name'); ...etc. |
This task depends upon