| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
class FrmWelcomeController { |
| 7 |
|
| 8 |
public static $menu_slug = 'formidable-welcome'; |
| 9 |
|
| 10 |
public static $option_name = 'frm_activation_redirect'; |
| 11 |
|
| 12 |
/** |
| 13 |
* Register all of the hooks related to the welcome screen functionality |
| 14 |
* |
| 15 |
* @access public |
| 16 |
* |
| 17 |
* @return void |
| 18 |
*/ |
| 19 |
public static function load_hooks() { |
| 20 |
_deprecated_function( __METHOD__, '6.8' ); |
| 21 |
} |
| 22 |
|
| 23 |
/** |
| 24 |
* Performs a safe (local) redirect to the welcome screen |
| 25 |
* when the plugin is activated |
| 26 |
* |
| 27 |
* @deprecated 6.8 |
| 28 |
* @return void |
| 29 |
*/ |
| 30 |
public static function redirect() { |
| 31 |
_deprecated_function( __METHOD__, '6.8' ); |
| 32 |
} |
| 33 |
|
| 34 |
/** |
| 35 |
* Add a submenu welcome screen for the formidable parent menu |
| 36 |
* |
| 37 |
* @deprecated 6.8 |
| 38 |
* @return void |
| 39 |
*/ |
| 40 |
public static function screen_page() { |
| 41 |
_deprecated_function( __METHOD__, '6.8' ); |
| 42 |
} |
| 43 |
|
| 44 |
/** |
| 45 |
* Include html content for the welcome screem |
| 46 |
* |
| 47 |
* @deprecated 6.8 |
| 48 |
* @return void |
| 49 |
*/ |
| 50 |
public static function screen_content() { |
| 51 |
_deprecated_function( __METHOD__, '6.8' ); |
| 52 |
} |
| 53 |
|
| 54 |
/** |
| 55 |
* Remove the welcome screen submenu page from the formidable parent menu |
| 56 |
* since it is not necessary to show that link there |
| 57 |
* |
| 58 |
* @deprecated 6.8 |
| 59 |
* @return void |
| 60 |
*/ |
| 61 |
public static function remove_menu() { |
| 62 |
_deprecated_function( __METHOD__, '6.8' ); |
| 63 |
} |
| 64 |
|
| 65 |
/** |
| 66 |
* Register the stylesheets for the welcome screen. |
| 67 |
* |
| 68 |
* @deprecated 6.8 |
| 69 |
* @return void |
| 70 |
*/ |
| 71 |
public static function enqueue_styles() { |
| 72 |
_deprecated_function( __METHOD__, '6.8' ); |
| 73 |
} |
| 74 |
|
| 75 |
/** |
| 76 |
* Helps to confirm if the user is currently on the welcome screen |
| 77 |
* |
| 78 |
* @deprecated 6.8 |
| 79 |
* @return bool |
| 80 |
*/ |
| 81 |
public static function is_welcome_screen() { |
| 82 |
_deprecated_function( __METHOD__, '6.8' ); |
| 83 |
return false; |
| 84 |
} |
| 85 |
|
| 86 |
/** |
| 87 |
* Build the admin URL link for the welcome screen |
| 88 |
* |
| 89 |
* @deprecated 6.8 |
| 90 |
* @return string |
| 91 |
*/ |
| 92 |
public static function settings_link() { |
| 93 |
_deprecated_function( __METHOD__, '6.8' ); |
| 94 |
return ''; |
| 95 |
} |
| 96 |
|
| 97 |
/** |
| 98 |
* @deprecated 6.8 |
| 99 |
* @return void |
| 100 |
*/ |
| 101 |
public static function upgrade_to_pro_button() { |
| 102 |
_deprecated_function( __METHOD__, '6.8' ); |
| 103 |
} |
| 104 |
|
| 105 |
/** |
| 106 |
* @deprecated 6.8 |
| 107 |
* @return void |
| 108 |
*/ |
| 109 |
public static function maybe_show_license_box() { |
| 110 |
_deprecated_function( __METHOD__, '6.8' ); |
| 111 |
} |
| 112 |
|
| 113 |
/** |
| 114 |
* @param string $plugin |
| 115 |
* @param string $upgrade_link_args |
| 116 |
* |
| 117 |
* @deprecated 6.8 |
| 118 |
* @return void |
| 119 |
*/ |
| 120 |
public static function maybe_show_conditional_action_button( $plugin, $upgrade_link_args ) { |
| 121 |
_deprecated_function( __METHOD__, '6.8' ); |
| 122 |
} |
| 123 |
} |
| 124 |
|