'#021728', 'theme_opt_googleAnalyticID_used' => '0', 'theme_opt_googleAnalyticID' => 'UA-XXXXXXX-Y', 'theme_opt_adRotate_group1' => '0', 'theme_opt_adRotate_group2' => '0', 'theme_opt_automaticHideLeft' => '1', 'theme_opt_delayBeforeHideLeft' => '10', 'theme_opt_keepDesignerPromoCode' => '0', 'theme_opt_image_background_show' => '1', 'theme_opt_image_background' => 'back_white_shadow_right.png', 'theme_opt_image_logoBackground_show' => '1', 'theme_opt_image_logoBackground' => 'yingYang_DavidColl_originalArt.png', 'theme_opt_image_favicon' => 'funky.ico' ); var $options_list = array(); function theme_class(){ $this->__loadThemeDetails(); load_theme_textdomain($this->domain, $this->theme_path . '/languages'); $this->theme_fn_setOptions(); add_action('wp_head', array($this, 'theme_fn_wp_head')); add_action('admin_menu',array($this, 'theme_fn_add_admin')); if (isset($_REQUEST['preview']) && current_user_can('edit_themes')) { add_action('wp_head', array($this, 'theme_fn_preview_head')); } $this->setWidgetSidebarsStyle(); } function __loadThemeDetails(){ $this->theme_url = get_theme_root_uri() . '/' . basename(dirname(__FILE__)); $this->theme_path = get_theme_root() . '/' . basename(dirname(__FILE__)); $this->domain = basename(dirname(__FILE__)); $theme_data = get_theme_data( $this->theme_path."/style.css"); $this->t_name = $theme_data['Name']; $this->t_version = $theme_data['Version']; $this->t_info_url = $theme_data['URI']; } /*---- Retrieves saved options and overwrite the defaults ----*/ function theme_fn_setOptions(){ foreach($this->options as $k => $v){ $var = esc_attr(get_option($k)); if ( $var != $v && $var != '') { $this->options[$k] = $var; } $this->options_list[] = $k; } } /*---- Set widgetized sidebars style----*/ function setWidgetSidebarsStyle(){ register_sidebar(array( 'name' => __('Left top section (fixed)', $this->domain), 'id' => 'theme_sidebar_left_top', 'before_widget' => '
', $this->domain), $this->t_name, ''); ?>
domain), $this->t_name); ?>
domain),
''.$this->t_name.''
);?>
domain),
'David Coll',
'',
'' );?>
theme_fn_donate()?>
domain),
'');?>
domain), '', '');?>
Save Options. A reset does not affect the actual theme files in any way.', $this->domain); ?>