Example #1
0
 public function __construct()
 {
     global $psp;
     parent::__construct();
     //init page types array!
     $this->the_plugin = $psp;
     $this->module_folder = $this->the_plugin->cfg['paths']['plugin_dir_url'] . 'modules/title_meta_format/';
     $this->plugin_settings = $this->the_plugin->get_theoption($this->the_plugin->alias . '_title_meta_format');
     self::$fb_locale_path = $this->the_plugin->cfg['paths']['plugin_dir_path'] . 'fb_locale.xml';
     if (isset($this->plugin_settings['social_validation_type']) && !empty($this->plugin_settings['social_validation_type'])) {
         self::$doctype = $this->plugin_settings['social_validation_type'];
     }
     if (!$this->the_plugin->verify_module_status('title_meta_format')) {
     } else {
         $this->init();
     }
 }
Example #2
0
 /**
  * Singleton pattern
  *
  * @return pspSEOImages Singleton instance
  */
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }