Esempio n. 1
0
 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:'), '/'));
 }
Esempio n. 2
0
 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);
 }
Esempio n. 4
0
 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;
         }
     }
 }
Esempio n. 6
0
 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);
 }
Esempio n. 7
0
 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;
     }
 }
Esempio n. 8
0
 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);
     }
 }
Esempio n. 9
0
 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);
 }
Esempio n. 11
0
 public function __construct($widgetkit)
 {
     parent::__construct($widgetkit);
     // load class
     require_once $this['path']->path('classes:data.php');
 }
Esempio n. 12
0
 public function __construct($widgetkit)
 {
     parent::__construct($widgetkit);
     // set prefix
     $this->prefix = 'widgetkit_';
 }
Esempio n. 13
0
 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();
 }