type = 'main'; $this->name = 'General Settings'; $this->slug = strtolower(str_replace(' ', '_', $this->name)); if(isset($var['template_styles'])) $this->template_styles = $var['template_styles']; if(isset($var['layout'])) $this->layout = $var['layout']; if(isset($var['logo'])) $this->logo = $var['logo']; if(isset($var['favicon'])) $this->favicon = $var['favicon']; if(isset($var['apple_icon'])) $this->apple_icon = $var['apple_icon']; if(isset($var['tracking'])) $this->tracking = $var['tracking']; } function register_settings(){ parent::register_settings(); if(isset($this->template_styles)) register_setting('ab_custom_options', 'ab_template_styles'); if(isset($this->layout)) register_setting('ab_custom_options', 'ab_layout'); if(isset($this->logo)) register_setting('ab_custom_options', 'ab_logo'); if(isset($this->favicon)) register_setting('ab_custom_options', 'ab_favicon'); if(isset($this->apple_icon)) register_setting('ab_custom_options', 'ab_apple_icon'); if(isset($this->tracking)) register_setting('ab_custom_options', 'ab_tracking'); } function print_settings(){ ?>
' .$this->description .'
'; ?>' .$this->description .'
'; ?>