public function __construct($widgetkit) { parent::__construct($widgetkit); // init vars $this->assets = array(); $this->options = array('base_path' => $this['system']->path, 'base_url' => rtrim($this['path']->url('site:'), '/')); }
public function __construct($widgetkit) { parent::__construct($widgetkit); // load data $this->file = $this['system']->cache_path . '/widgetkit.php'; $this->data = $this['data']->create(file_exists($this->file) ? file_get_contents($this->file) : null); }
public function __construct($widgetkit) { parent::__construct($widgetkit); // init vars $this->type = strtolower(str_replace('WidgetkitHelper', '', get_class($this))); $this->options = $this['system']->options; // register path $this['path']->register(dirname(__FILE__), $this->type); }
public function __construct($widgetkit) { parent::__construct($widgetkit); // init vars $this->path = rtrim(str_replace(DIRECTORY_SEPARATOR, '/', ABSPATH), '/'); $this->url = rtrim(site_url(), '/'); $this->options = $this['data']->create(get_option('widgetkit_options')); $this->active = $this['request']->get('page', 'string') == 'widgetkit' || $this['request']->get('action', 'string') == 'widgetkit'; $this->use_old_editor = version_compare(get_bloginfo('version'), '3.2.1', '<='); }
public function __construct($widgetkit) { parent::__construct($widgetkit); // check available library support foreach ($this->transports as $classname) { $transport = new $classname(); if ($transport->available()) { $this->transport =& $transport; break; } } }
public function __construct($widgetkit) { parent::__construct($widgetkit); // init vars $this->type = strtolower(str_replace('WidgetkitHelper', '', get_class($this))); $this->options = $this['system']->options; // create cache $cache = $this['path']->path('cache:'); if ($cache && !file_exists($cache . '/twitter')) { mkdir($cache . '/twitter', 0777, true); } // register path $this['path']->register(dirname(__FILE__), $this->type); }
public function __construct($widgetkit) { parent::__construct($widgetkit); if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { $this->_POST = array_map('stripslashes_deep', $_POST); $this->_GET = array_map('stripslashes_deep', $_GET); $this->_COOKIE = array_map('stripslashes_deep', $_COOKIE); $this->_REQUEST = array_map('stripslashes_deep', $_REQUEST); } else { $this->_POST = $_POST; $this->_GET = $_GET; $this->_COOKIE = $_COOKIE; $this->_REQUEST = $_REQUEST; } }
public function __construct($widgetkit) { parent::__construct($widgetkit); // init vars $this->application = JFactory::getApplication(); $this->document = JFactory::getDocument(); $this->language = JFactory::getLanguage(); $this->path = JPATH_ROOT; $this->url = rtrim(JURI::root(false), '/'); $this->options = $this['data']->create($this->_getParams()); $this->cache_path = $this->path . '/cache/widgetkit'; // set cache directory if (!file_exists($this->cache_path)) { JFolder::create($this->cache_path); } }
public function __construct($widgetkit) { parent::__construct($widgetkit); if (!class_exists('OAuthConsumer')) { require_once $this['path']->path('classes:OAuth.php'); } // init vars $this->type = strtolower(str_replace('WidgetkitHelper', '', get_class($this))); $this->options = $this['system']->options; // create cache $cache = $this['path']->path('cache:'); if ($cache && !file_exists($cache . '/twitter')) { mkdir($cache . '/twitter', 0777, true); } // register path $this['path']->register('widgets:' . $this->type, $this->type); }
public function __construct($widgetkit) { parent::__construct($widgetkit); }
public function __construct($widgetkit) { parent::__construct($widgetkit); // load class require_once $this['path']->path('classes:data.php'); }
public function __construct($widgetkit) { parent::__construct($widgetkit); // set prefix $this->prefix = 'widgetkit_'; }
public function __construct($widgetkit) { parent::__construct($widgetkit); // init vars $this->db = $GLOBALS['wpdb']; }
public function __construct($widgetkit) { parent::__construct($widgetkit); // init vars $this->db = JFactory::getDBO(); }