MPSUM_Admin.php
7 years ago
MPSUM_Admin_Advanced.php
7 years ago
MPSUM_Admin_Advanced_Preview.php
7 years ago
MPSUM_Admin_Ajax.php
7 years ago
MPSUM_Admin_Bar.php
7 years ago
MPSUM_Admin_Core.php
7 years ago
MPSUM_Admin_Dashboard.php
7 years ago
MPSUM_Admin_Help.php
7 years ago
MPSUM_Admin_Logs.php
7 years ago
MPSUM_Admin_Plugins.php
7 years ago
MPSUM_Admin_Screen_Options.php
7 years ago
MPSUM_Admin_Themes.php
7 years ago
MPSUM_Advanced_Premium.php
7 years ago
MPSUM_Check_Plugin_Install_Status.php
7 years ago
MPSUM_Check_Theme_Install_Status.php
7 years ago
MPSUM_Commands.php
7 years ago
MPSUM_Disable_Updates.php
7 years ago
MPSUM_Disable_Updates_All.php
7 years ago
MPSUM_Disable_Updates_Plugins.php
7 years ago
MPSUM_Disable_Updates_Themes.php
7 years ago
MPSUM_Disable_Updates_Translations.php
7 years ago
MPSUM_Disable_Updates_WordPress.php
7 years ago
MPSUM_Exclude_Users.php
7 years ago
MPSUM_Force_Updates.php
7 years ago
MPSUM_List_Table.php
7 years ago
MPSUM_Logs.php
7 years ago
MPSUM_Logs_List_Table.php
7 years ago
MPSUM_Plugins_List_Table.php
7 years ago
MPSUM_Reset_Options.php
7 years ago
MPSUM_Themes_List_Table.php
7 years ago
MPSUM_UpdraftCentral.php
7 years ago
MPSUM_UpdraftCentral_EUM_Commands.php
7 years ago
MPSUM_Utils.php
7 years ago
easy-updates-manager-notices.php
7 years ago
updraft-notices.php
7 years ago
MPSUM_Advanced_Premium.php
40 lines
| 1 | <?php |
| 2 | if (!defined('ABSPATH')) die('No direct access.'); |
| 3 | |
| 4 | if (class_exists('MPSUM_Advanced_Premium')) return; |
| 5 | |
| 6 | /** |
| 7 | * Class MPSUM_Advanced_Premium |
| 8 | * |
| 9 | * Add an advanced tab for going premium |
| 10 | */ |
| 11 | class MPSUM_Advanced_Premium { |
| 12 | |
| 13 | /** |
| 14 | * MPSUM_Advanced_Premium constructor. |
| 15 | */ |
| 16 | public function __construct() { |
| 17 | add_action('mpsum_admin_tab_premium', array($this, 'settings')); |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Returns a singleton instance |
| 22 | * |
| 23 | * @return MPSUM_Advanced_Premium object |
| 24 | */ |
| 25 | public static function get_instance() { |
| 26 | static $instance = null; |
| 27 | if (null === $instance) { |
| 28 | $instance = new self(); |
| 29 | } |
| 30 | return $instance; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Outputs feature settings |
| 35 | */ |
| 36 | public function settings() { |
| 37 | Easy_Updates_Manager()->include_template('advanced-premium.php'); |
| 38 | } |
| 39 | } |
| 40 |