function __construct($options = array())
 {
     parent::__construct($options);
     if (is_string($this->name)) {
         $this->slug = sanitize_key($this->name);
     }
 }
 /**
  * Invoke the User Experience object.
  *
  * @param array $options
  */
 function __construct($options = array())
 {
     parent::__construct($options);
     $this->slplus->create_object_CountryManager();
     // Map Languages
     $this->map_languages = array(__('English', 'store-locator-le') => 'en', __('Arabic', 'store-locator-le') => 'ar', __('Basque', 'store-locator-le') => 'eu', __('Bulgarian', 'store-locator-le') => 'bg', __('Bengali', 'store-locator-le') => 'bn', __('Catalan', 'store-locator-le') => 'ca', __('Czech', 'store-locator-le') => 'cs', __('Danish', 'store-locator-le') => 'da', __('German', 'store-locator-le') => 'de', __('Greek', 'store-locator-le') => 'el', __('English (Australian)', 'store-locator-le') => 'en-AU', __('English (Great Britain)', 'store-locator-le') => 'en-GB', __('Spanish', 'store-locator-le') => 'es', __('Farsi', 'store-locator-le') => 'fa', __('Finnish', 'store-locator-le') => 'fi', __('Filipino', 'store-locator-le') => 'fil', __('French', 'store-locator-le') => 'fr', __('Galician', 'store-locator-le') => 'gl', __('Gujarati', 'store-locator-le') => 'gu', __('Hindi', 'store-locator-le') => 'hi', __('Croatian', 'store-locator-le') => 'hr', __('Hungarian', 'store-locator-le') => 'hu', __('Indonesian', 'store-locator-le') => 'id', __('Italian', 'store-locator-le') => 'it', __('Hebrew', 'store-locator-le') => 'iw', __('Japanese', 'store-locator-le') => 'ja', __('Kannada', 'store-locator-le') => 'kn', __('Korean', 'store-locator-le') => 'ko', __('Lithuanian', 'store-locator-le') => 'lt', __('Latvian', 'store-locator-le') => 'lv', __('Malayalam', 'store-locator-le') => 'ml', __('Marathi', 'store-locator-le') => 'mr', __('Dutch', 'store-locator-le') => 'nl', __('Norwegian', 'store-locator-le') => 'no', __('Polish', 'store-locator-le') => 'pl', __('Portuguese', 'store-locator-le') => 'pt', __('Portuguese (Brazil)', 'store-locator-le') => 'pt-BR', __('Portuguese (Portugal)', 'store-locator-le') => 'pt-PT', __('Romanian', 'store-locator-le') => 'ro', __('Russian', 'store-locator-le') => 'ru', __('Slovak', 'store-locator-le') => 'sk', __('Slovenian', 'store-locator-le') => 'sl', __('Serbian', 'store-locator-le') => 'sr', __('Swedish', 'store-locator-le') => 'sv', __('Tagalog', 'store-locator-le') => 'tl', __('Tamil', 'store-locator-le') => 'ta', __('Telugu', 'store-locator-le') => 'te', __('Thai', 'store-locator-le') => 'th', __('Turkish', 'store-locator-le') => 'tr', __('Ukrainian', 'store-locator-le') => 'uk', __('Vietnamese', 'store-locator-le') => 'vi', __('Chinese (Simplified)', 'store-locator-le') => 'zh-CN', __('Chinese (Traditional)', 'store-locator-le') => 'zh-TW');
     $this->create_object_settings();
 }
 /**
  * Instantiate the admin panel object.
  *
  * @param array $options
  */
 function __construct($options = array())
 {
     parent::__construct($options);
     if (!isset($this->admin_page_slug) || empty($this->admin_page_slug)) {
         $this->admin_page_slug = $this->addon->short_slug;
     }
     $this->set_addon_properties();
     $this->do_admin_startup();
     $this->add_hooks_and_filters();
 }
 /**
  * @param array $options
  */
 function __construct($options = array())
 {
     parent::__construct($options);
     // Set the plugin details table properties
     //
     $this->metatable['name'] = $this->slplus->db->prefix . 'slp_extendo_meta';
     $this->metatable['records'] = array();
     $this->plugintable['name'] = $this->slplus->db->prefix . 'slp_extendo';
     $this->plugintable['fields'] = array('id' => '%u', 'sl_id' => '%u', 'value' => '%s');
     add_filter('slp_extend_get_SQL', array($this, 'filter_ExtendedDataQueries'));
 }
Beispiel #5
0
 /**
  * Initialize a new data object.
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     global $wpdb;
     $this->db = $wpdb;
     $this->createobject_DatabaseExtension();
     $db_version = get_option(SLPLUS_PREFIX . "-db_version", '');
     if (!empty($db_version)) {
         $this->set_database_meta();
     }
 }
 /**
  * Invoke the AdminUI class.
  *
  * @param	array	$options
  *
  */
 function __construct($options = array())
 {
     add_action('admin_enqueue_scripts', array($this, 'enqueue_admin_stylesheet'));
     parent::__construct($options);
     $this->styleHandle = $this->slplus->styleHandle;
     $this->add_janitor_hooks();
     // Called after admin_menu and admin_init when the current screen info is available.
     //
     add_action('current_screen', array($this, 'setup_admin_screen'));
     /**
      * HOOK: slp_admin_init_complete
      */
     do_action('slp_admin_init_complete');
 }
 /**
  * @param array $options
  */
 function __construct($options = array())
 {
     parent::__construct($options);
     // In order called
     //
     add_action('init', array($this, 'init'), 11);
     add_action("load-post.php", array($this, 'action_AddToPageHelp'), 20);
     add_action("load-post-new.php", array($this, 'action_AddToPageHelp'), 20);
     add_action('wp_head', array($this, 'wp_head'));
     // UI
     add_action('wp_footer', array($this, 'wp_footer'));
     // UI
     add_action('shutdown', array($this, 'shutdown'));
     // BOTH
     add_action('dmp_addpanel', array($this, 'create_DMPPanels'));
 }
 /**
  * @param array $options
  */
 function __construct($options = array())
 {
     parent::__construct($options);
     $this->create_object_settings();
 }
 /**
  * Set some pre-load defaults.
  *
  * @param array $options
  */
 function __construct($options = array())
 {
     $this->save_text = __('Save Changes', 'store-locator-le');
     $this->name = __('Store Locator Plus', 'store-locator-le');
     parent::__construct($options);
 }
 /**
  * Instantiate the admin panel object.
  *
  * Sets short_action property.
  * Calls do_ajax_startup.
  * - sets Query Params (formdata)
  * - Calls process_{short_action} if method exists.
  *
  * @param mixed[] $options
  */
 function __construct($options = array())
 {
     parent::__construct($options);
     $this->short_action = str_replace('csl_ajax_', '', $_REQUEST['action']);
     $this->do_ajax_startup();
 }
Beispiel #11
0
 /**
  * @param array $options
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->startup_register_text();
 }
 /**
  * Invoke a new object.
  */
 function __construct($options = array())
 {
     parent::__construct($options);
     $this->make_always_available();
 }
 /**
  * Create a Country Manager and make sure we have access to the country object.
  */
 function __construct($options = array())
 {
     parent::__construct($options);
     require_once SLPLUS_PLUGINDIR . 'include/class.country.php';
     $this->load_country_data();
 }
 /**
  * Constructor.
  *
  * @param mixed[] $options
  */
 function __construct($options = array())
 {
     parent::__construct($options);
     $this->set_defaults();
 }
 /**
  * Instantiate the admin panel object.
  *
  * @param mixed[] $options
  *      @type boolean 'uses_slp' true if $this->slplus is to be set.
  *      @type string 'file' set to the php loader (main add-on) file path with __FILE__
  */
 function __construct($options = array())
 {
     parent::__construct($options);
     // Calculate file if not specified
     //
     if (is_null($this->file)) {
         $matches = array();
         preg_match('/^.*?\\/(.*?)\\.php/', $this->slug, $matches);
         $slug_base = !empty($matches) ? $matches[1] : $this->slug;
         $this->file = str_replace($slug_base . '/', '', $this->dir) . $this->slug;
         // If file was specified, check to set slug, url, dir if necessary
         //
     } else {
         if (!isset($this->dir)) {
             $this->dir = plugin_dir_path($this->file);
         }
         if (!isset($this->slug)) {
             $this->slug = plugin_basename($this->file);
         }
         if (!isset($this->url)) {
             $this->url = plugins_url('', $this->file);
         }
     }
     $this->short_slug = $this->get_short_slug();
     // When SLP finished initializing do this
     //
     add_action('slp_init_complete', array($this, 'slp_init'));
 }
Beispiel #16
0
 /**
  * Theme constructor.
  *
  * @param mixed[] $options named array of properties
  */
 function __construct($options = array())
 {
     parent::__construct($options);
     $this->css_url = SLPLUS_PLUGINURL . '/' . $this->css_dir;
     $this->css_dir = SLPLUS_PLUGINDIR . $this->css_dir;
 }