Exemple #1
0
 function __construct()
 {
     //		add_action( 'psts_settings_page', array( &$this, 'settings' ) );
     add_filter('psts_settings_filter', array(&$this, 'settings_process'), 10, 2);
     add_action('template_redirect', array(&$this, 'disable_front'));
     add_filter('psts_prevent_dismiss', create_function(null, 'return true;'));
     add_filter('psts_force_redirect', array(&$this, 'force_redirect'));
     add_filter('pre_option_psts_signed_up', array(&$this, 'force_redirect'));
     self::$user_label = __('Pay to Blog', 'psts');
     self::$user_description = __('Site disabled until payment is cleared', 'psts');
     //checkout message, show before gateways
     add_filter('psts_checkout_output', array(&$this, 'checkout_screen'), 9, 2);
 }
Exemple #2
0
 /**
  * 'Pay to Blog'
  *
  * @return string
  */
 public static function render_tab_paytoblog()
 {
     ProSites_Helper_Settings::settings_header(ProSites_Helper_Tabs_Settings::get_active_tab());
     $module = new ProSites_Module_PayToBlog();
     echo $module->settings();
 }