loadTheme

Description

This function loads the theme with the specified ID.

Syntax

void loadTheme ([int $ID_THEME[, bool $initialize]])



Parameter $ID_THEME

Expected type: Integer
Description: The ID of the theme to load. Default is 0 (which loads the user's selected theme)



Parameter $initialize

Expected type: Boolean
Description: Whether or not to initialize - this loads a lot of additional data about the environment and the user. Default is true.


Notes

  • Loads $settings global variable (theme settings)
  • Loads $options global variable (member's theme options)
  • Loads $context['server'] and $context['browser'] if $initialize is true
Advertisement: