function __construct() { $this->settings = op_page_option('feature_area'); $this->enabled = true; $this->get_options(op_get_var($this->settings, 'type', 'A')); parent::__construct(); }
function __construct() { $this->settings = op_page_option('feature_area'); $this->enabled = true; $this->oldFeatures = false; $this->config = new stdClass(); parent::__construct(); //var_dump(op_get_var($this->settings,'type','A')); // here we put all styles that are using old feature areas for backward compatibility $oldFeatures = array(); $which = op_get_var($this->settings, 'type', 'A'); $this->which = $which; if (in_array($which, $oldFeatures)) { op_page_clean_layouts(array()); //op_page_clear_settings(); $this->oldFeatures = true; $this->get_options($which); } else { //op_page_clean_layouts(array()); //op_page_clear_settings(); $this->oldFeatures = false; $this->getOptions($which); } //var_dump($this->options); add_filter('op_page_color_options_selectors', array($this, 'color_scheme_selectors')); add_filter('op_page_color_options', array($this, 'color_scheme_selectors')); add_filter('op_typography_elements', array($this, 'typography')); add_filter('op_typography_output_elements', array($this, 'typography_selectors')); }
function __construct() { parent::__construct(); $this->settings = op_page_option('feature_area'); $this->enabled = true; $this->get_options(); }
function __construct() { parent::__construct(); $this->settings = op_page_option('feature_area'); $this->style = op_get_var($this->settings, 'type', 'A'); $this->enabled = true; $this->config = new stdClass(); $this->get_style(); }
function __construct() { $this->settings = op_page_option('feature_area'); $this->enabled = op_get_var($this->settings, 'enabled') == 'Y'; $style = op_get_var($this->settings, 'type'); $style = $style >= 1 && $style <= 7 ? $style : 1; $this->style = $style; $this->get_options(); add_filter('op_page_feature_area_launch_selection', array($this, 'style_selector'), 10, 2); parent::__construct(); }