/**
  * Constructor to setup intial member variables.
  *
  * Registers the special Theme Customizer screen object when initialized.
  *
  * @since 1.0.0
  * @see Audiotheme_Settings::instance();
  */
 private function __construct()
 {
     $this->screens = array();
     $this->settings = array();
     $this->add_screen('customizer', 'customizer', array('option_name' => get_audiotheme_theme_options_name(), 'show_in_menu' => false));
     $this->current_screen = null;
     $this->current_tab = null;
     $this->current_section = null;
 }
Example #2
0
 /**
  * Returns a theme option value.
  *
  * Function called to get a theme option. The returned value defaults to false
  * unless a default is passed.
  *
  * Note that this function footprint is slightly different than get_audiotheme_option(). While working in themes, the $option_name shouldn't necessarily need to be known or required, so it should be slightly easier to use while in a theme.
  *
  * @since 1.0.0
  * @uses get_audiotheme_option()
  *
  * @param string The option key
  * @param mixed Optional. Default value to return if option key doesn't exist.
  * @param string Optional. Retrieve a non-standard option.
  * @return mixed The option value or $default or false.
  */
 function get_audiotheme_theme_option($key, $default = false, $option_name = '')
 {
     $option_name = empty($option_name) ? get_audiotheme_theme_options_name() : $option_name;
     return get_audiotheme_option($option_name, $key, $default);
 }