Example #1
0
 function __construct()
 {
     global $psts;
     //		add_action( 'psts_settings_page', array( &$this, 'settings' ) );
     add_filter('psts_settings_filter', array(&$this, 'settings_process'), 10, 2);
     add_action('admin_menu', array(&$this, 'plug_page'), 100);
     add_action('psts_extend', array(&$this, 'extend'), 10, 2);
     add_action('psts_withdraw', array(&$this, 'withdraw'), 10, 2);
     add_filter('the_content', array(&$this, 'advertising_output'));
     self::$user_label = __('Ads', 'psts');
     self::$user_description = __('Advertising module', 'psts');
     //update install script if necessary
     if ($psts->get_setting('ads_version') != $psts->version) {
         $this->install();
     }
 }
Example #2
0
 /**
  * 'Advertising'
  *
  * @return string
  */
 public static function render_tab_ads()
 {
     ProSites_Helper_Settings::settings_header(ProSites_Helper_Tabs_Settings::get_active_tab());
     $module = new ProSites_Module_Ads();
     echo $module->settings();
 }