Esempio n. 1
0
 function __construct()
 {
     add_action('psts_page_after_modules', array(&$this, 'plug_network_page'));
     //		add_action( 'psts_settings_page', array( &$this, 'settings' ) );
     add_action('psts_withdraw', array(&$this, 'deactivate_theme'));
     add_action('psts_downgrade', array(&$this, 'deactivate_theme'));
     add_action('admin_print_styles-themes.php', array(&$this, 'themes_styles'));
     add_action('admin_footer-themes.php', array(&$this, 'themes_scripts'));
     add_action('customize_controls_print_footer_scripts', array(&$this, 'customize_controls_print_footer_scripts'));
     add_filter('theme_action_links', array(&$this, 'theme_action_links'), 100, 2);
     // WP <= 3.7
     add_filter('wp_prepare_themes_for_js', array(&$this, 'theme_action_links_js'), 100);
     //WP >= 3.8
     add_filter('site_option_allowedthemes', array(&$this, 'site_option_allowedthemes'), 100);
     self::$user_label = __('Premium Themes', 'psts');
     self::$user_description = __('Includes access to premium themes', 'psts');
 }
Esempio n. 2
0
 /**
  * 'Rename Plugin/Theme Features'
  *
  * @return string
  */
 public static function render_tab_renaming()
 {
     global $psts;
     ProSites_Helper_Settings::settings_header(ProSites_Helper_Tabs_Settings::get_active_tab());
     $modules = $psts->get_setting('modules_enabled');
     $modules = !empty($modules) ? $modules : array();
     if (in_array('ProSites_Module_PremiumThemes', $modules)) {
         $module = new ProSites_Module_PremiumThemes();
         echo $module->settings();
     }
     if (in_array('ProSites_Module_Plugins', $modules)) {
         $module = new ProSites_Module_Plugins();
         echo $module->settings();
     }
 }