Static Public Member Functions | |
| static | get_all () |
| static | get_all_data () |
| static | get_theme_dir ($nopreview=false) |
| static | get_active ($nopreview=false) |
| static | get_active_data ($nopreview=false) |
| static | activate_theme ($theme_name, $theme_dir) |
| static | preview_theme ($theme_name, $theme_dir) |
| static | cancel_preview () |
| static | create ($name= '', $template_engine= '', $theme_dir= '') |
| static | class_from_filename ($file, $check_realpath=false) |
| static | get_theme_classes () |
| static | extends_theme ($class) |
Definition at line 11 of file themes.php.
| static Themes::activate_theme | ( | $ | theme_name, | |
| $ | theme_dir | |||
| ) | [static] |
function activate_theme Updates the database with the name of the new theme to use
| string | the name of the theme |
Definition at line 163 of file themes.php.
Referenced by AdminThemesHandler::get_activate_theme().
| static Themes::cancel_preview | ( | ) | [static] |
Cancel the viewing of any preview theme
Definition at line 209 of file themes.php.
Referenced by AdminThemesHandler::get_preview_theme().
| static Themes::create | ( | $ | name = '', |
|
| $ | template_engine = '', |
|||
| $ | theme_dir = '' | |||
| ) | [static] |
Returns a named Theme descendant. If no parameter is supplied, then load the active theme from the database.
If no theme option is set, a fatal error is thrown
| name | ( optional ) override the default theme lookup | |
| template_engine | ( optional ) specify a template engine | |
| theme_dir | ( optional ) specify a theme directory |
Definition at line 229 of file themes.php.
Referenced by AdminHandler::__construct(), FeedbackHandler::act_add_comment(), InstallHandler::act_begin_install(), activate_theme(), FeedbackHandler::add_comment(), AdminCommentsHandler::ajax_comments(), AdminDashboardHandler::ajax_dashboard(), AdminGroupsHandler::ajax_groups(), AdminPostsHandler::ajax_posts(), AdminTagsHandler::ajax_tags(), FormContainer::get_theme(), UserHandler::login_form(), preview_theme(), AdminHandler::setup_admin_theme(), and ActionHandler::setup_theme().
| static Themes::get_active | ( | $ | nopreview = false |
) | [static] |
Returns the active theme information from the database boolean $nopreview If true, return the real active theme, not the preview
Definition at line 122 of file themes.php.
Referenced by create(), and AdminDashboardHandler::get_dashboard().
| static Themes::get_active_data | ( | $ | nopreview = false |
) | [static] |
Returns theme information for the active theme -- dir, path, theme.xml, screenshot url boolean $nopreview If true, return the real active theme, not the preview
Definition at line 150 of file themes.php.
Referenced by AdminThemesHandler::ajax_add_block(), AdminThemesHandler::ajax_delete_block(), AdminThemesHandler::ajax_save_areas(), AdminPluginsHandler::get_plugins(), and AdminThemesHandler::get_themes().
| static Themes::get_all | ( | ) | [static] |
Returns the theme dir and path information
Definition at line 20 of file themes.php.
| static Themes::get_all_data | ( | ) | [static] |
Returns all theme information -- dir, path, theme.xml, screenshot url
Definition at line 43 of file themes.php.
Referenced by get_active_data(), and AdminThemesHandler::get_themes().
| static Themes::get_theme_dir | ( | $ | nopreview = false |
) | [static] |
Returns the name of the active or previewed theme
boolean $nopreview If true, return the real active theme, not the preview
Definition at line 78 of file themes.php.
Referenced by Site::get_dir(), Site::get_path(), AdminThemesHandler::get_preview_theme(), AdminThemesHandler::get_themes(), and Site::get_url().
| static Themes::preview_theme | ( | $ | theme_name, | |
| $ | theme_dir | |||
| ) | [static] |
Sets a theme to be the current user's preview theme
| string | $theme_name The name of the theme to preview | |
| string | $theme_dir The directory of the theme to preview |
Definition at line 196 of file themes.php.
Referenced by AdminThemesHandler::get_preview_theme().
1.7.1