function __construct() { parent::__construct(); $this->theme_info = $this->theme_cfg(); $this->prefix = $this->theme_info['prefix']; define('TF_THEME_PREFIX', $this->prefix); $this->load_developer_settings(); $this->mods_version = $this->theme_info['mods_version']; $this->theme_version = $this->theme_info['theme_version']; $custom_theme_name = get_option($this->prefix . '_theme_display_name'); //$this->disabled_extensions = $this->theme_info['disabled_extensions']; $this->theme_name = $custom_theme_name != '' ? $custom_theme_name : $this->theme_info['theme_name']; $this->author_name = $this->theme_info['author_name']; $this->theme_author = $this->theme_info['theme_author']; $this->forum_url = $this->theme_info['forum_url']; $this->manual_url = $this->theme_info['manual_url']; $this->action = !empty($_REQUEST['action']) ? strtolower(trim(strip_tags($_REQUEST['action']))) : ''; $this->page = !empty($_REQUEST['page']) ? strtolower(trim(strip_tags($_REQUEST['page']))) : ''; $this->taxonomy = !empty($_REQUEST['taxonomy']) ? strtolower(trim(strip_tags($_REQUEST['taxonomy']))) : ''; $this->redirect_after_activation(); #do some actions when theme is loaded do_action($this->prefix . "_preinit"); do_action("themefuse_preinit"); $this->add_js_constants(); }
public function __construct() { parent::__construct(); $this->template_directory = str_replace('//', '/', str_replace('\\', '/', get_template_directory())); $this->template_directory_uri = get_template_directory_uri(); $this->stylesheet_directory = str_replace('//', '/', str_replace('\\', '/', get_stylesheet_directory())); $this->stylesheet_directory_uri = get_stylesheet_directory_uri(); }
function __construct() { parent::__construct(); // Hack: Remove bloginfo_rss('name') form title because SEO maybe allready added it $this->bloginfo_rss_name = ''; ob_start(); bloginfo_rss('name'); $this->bloginfo_rss_name = ob_get_clean(); }
public function __construct() { if (self::$instance === NULL) { self::$instance =& $this; self::$_restricted_names = get_config('restricted_names'); } foreach (self::$_restricted_names as $property_name) { if (property_exists($this, $property_name)) { die(__('Property ', 'tfuse') . $property_name . ' ' . __('not allowed in class:', 'tfuse') . ' ' . $this->_the_class_name); } } if (property_exists($this, '_the_class_name')) { $this->__autoload(); if (method_exists($this, '__init')) { collect_init($this->_the_class_name); } } }
function &get_instance() { return TF_TFUSE::get_instance(); }
function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->magic_quotes_gpc = get_magic_quotes_gpc(); }
function __construct() { parent::__construct(); $this->wp_option = TF_THEME_PREFIX . '_tfuse_framework_options'; }
public function &__get($name) { if (array_key_exists(strtolower($name), $this->_loaded)) { return $this->_loaded[strtolower($name)]; } else { if (parent::magic_get($name) !== NULL) { return parent::magic_get($name); } } die(__('Tried to access extension that is not loaded', 'tfuse') . ': ' . $name); }
function __construct() { parent::__construct(); $this->wp_option = TF_THEME_PREFIX . '_tfuse_sidebars'; }
function __construct() { parent::__construct(); //$this->framework=&get_instance(); }
function __get($name) { if ($name == 'mc_api') { require_once dirname(__FILE__) . '/library/MCAPI.class.php'; $api_key = $this->model->get_mc_key(); if (!$api_key) { return NULL; } $this->mc_api = new MCAPI($api_key); return $this->mc_api; } if ($name == 'cm_general') { require_once dirname(__FILE__) . '/library/csrest_general.php'; $api_key = $this->model->get_cm_key(); if (!$api_key) { return NULL; } $this->cm_general = new CS_REST_General($api_key); return $this->cm_general; } if (in_array(strtolower($name), array('cm_clients', 'cm_lists', 'cm_subscribers'))) { $lib = str_replace('cm_', '', strtolower($name)); require_once dirname(__FILE__) . '/library/csrest_' . $lib . '.php'; $api_key = $this->model->get_cm_key(); if (!$api_key) { return NULL; } $class_name = 'CS_REST_' . ucfirst($lib); $this->{'cm_' . $lib} = new $class_name('', $api_key); return $this->{'cm_' . $lib}; } return parent::__get($name); }
function __construct() { parent::__construct(); $this->wp_option_general = TF_THEME_PREFIX . '_tfuse_reservation_form_general'; }
function __construct() { parent::__construct(); $this->wp_option = TF_THEME_PREFIX . '_tfuse_contact_forms'; $this->wp_option_general = TF_THEME_PREFIX . '_tfuse_contact_form_general'; }
function __construct() { parent::__construct(); $this->wp_option = TF_THEME_PREFIX . '_tfuse_newsletter'; }
public function __construct() { parent::__construct(); //$this->check_url = 'http://' . $_SERVER['HTTP_HOST'] . '/wp-updater/'; $this->check_url = 'http://themefuse.com/update-themes/'; }
function __construct() { parent::__construct(); $this->wp_option = TF_THEME_PREFIX . '_tfuse_slider'; include_once ABSPATH . 'wp-admin/includes/theme.php'; }