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_Admin_Help.php
104 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Help Screen for Easy Updates Manager |
| 4 | * Initializes and outputs the help screen for the plugin. |
| 5 | * |
| 6 | * @package WordPress |
| 7 | * @since 5.0.0 |
| 8 | */ |
| 9 | class MPSUM_Admin_Help { |
| 10 | |
| 11 | /** |
| 12 | * Class constructor. |
| 13 | * |
| 14 | * Initialize the class |
| 15 | * |
| 16 | * @since 5.0.0 |
| 17 | * @access public |
| 18 | */ |
| 19 | public function __construct() { |
| 20 | $screen = get_current_screen(); |
| 21 | |
| 22 | $screen = get_current_screen(); |
| 23 | $content1 = '<p>'; |
| 24 | $content1_strings = array( |
| 25 | 'website' => esc_html__('Our Website', 'stops-core-theme-and-plugin-updates'), |
| 26 | 'donate' => esc_html__('Donate', 'stops-core-theme-and-plugin-updates'), |
| 27 | 'support' => esc_html__('Support on WordPress', 'stops-core-theme-and-plugin-updates'), |
| 28 | 'premium_support' => esc_html__('Premium Support', 'stops-core-theme-and-plugin-updates'), |
| 29 | 'official' => esc_html__('Documentation', 'stops-core-theme-and-plugin-updates'), |
| 30 | ); |
| 31 | $content1 = <<<CONTENT1 |
| 32 | <p> |
| 33 | <a href="https://easyupdatesmanager.com" class="button">{$content1_strings['website']}</a> |
| 34 | <a href="http://wordpress.org/support/plugin/stops-core-theme-and-plugin-updates" class="button">{$content1_strings['support']}</a> |
| 35 | <a href="https://easyupdatesmanager.com/support/" class="button">{$content1_strings['premium_support']}</a> |
| 36 | <a href="https://easyupdatesmanager.com/documentation/" class="button">{$content1_strings['official']}</a> |
| 37 | </p> |
| 38 | CONTENT1; |
| 39 | $content1 .= esc_html__('This is the Easy Updates Manager settings help tab. Here you will find helpful information on what Easy Updates Manager does and how to use it.', 'stops-core-theme-and-plugin-updates'); |
| 40 | $content1 .= '</p>'; |
| 41 | $content1 .= sprintf('<div><p><strong>%s - </strong>%s</p></div>', esc_html__('Please Note!', 'stops-core-theme-and-plugin-updates'), esc_html__('If either your WordPress core, theme, or plugins get too out of date, you may run into compatibility problems. Check the capability tab for more information.', 'stops-core-theme-and-plugin-updates')); |
| 42 | |
| 43 | $content2 = sprintf('<div><p><a href="https://easyupdatesmanager.com/documentation/">%s</a></p></div>', esc_html__('Check out our Documentation for updated documentation and videos.', 'stops-core-theme-and-plugin-updates')); |
| 44 | |
| 45 | $content4_strings = array( |
| 46 | 'intro' => esc_html__('You will see multiple tabs where you can configure the update options.', 'stops-core-theme-and-plugin-updates'), |
| 47 | 'general' => sprintf('<strong>%s</strong> - %s', esc_html__('General', 'stops-core-theme-and-plugin-updates'), esc_html__('Use this screen to finely tune which updates and automatic updates you would like to see.', 'stops-core-theme-and-plugin-updates')), |
| 48 | 'plugins' => sprintf('<strong>%s</strong> - %s', esc_html__('Plugins', 'stops-core-theme-and-plugin-updates'), esc_html__('If plugin updates are enabled and/or automatic updates for plugins are enabled, you can configure which plugins will receive updates and/or automatic updates.', 'stops-core-theme-and-plugin-updates')), |
| 49 | 'themes' => sprintf('<strong>%s</strong> - %s', esc_html__('Themes', 'stops-core-theme-and-plugin-updates'), esc_html__('If theme updates are enabled and/or automatic updates for themes are enabled, you can configure which themes will receive updates and/or automatic updates.', 'stops-core-theme-and-plugin-updates')), |
| 50 | 'logs' => sprintf('<strong>%s</strong> - %s', esc_html__('Logs', 'stops-core-theme-and-plugin-updates'), esc_html__('Logs all plugin, theme, and core updates. This tab is only visible if enabled in the "General" tab.', 'stops-core-theme-and-plugin-updates')), |
| 51 | 'advanced' => sprintf('<strong>%s</strong> - %s', esc_html__('Advanced', 'stops-core-theme-and-plugin-updates'), esc_html__('Reset all options or allow certain users to see all updates regardless of what settings you have set.', 'stops-core-theme-and-plugin-updates')), |
| 52 | |
| 53 | ); |
| 54 | $content4 = <<<CONTENT4 |
| 55 | <p> |
| 56 | {$content4_strings['intro']} |
| 57 | <br> |
| 58 | {$content4_strings['general']} |
| 59 | <br> |
| 60 | {$content4_strings['plugins']} |
| 61 | <br> |
| 62 | {$content4_strings['themes']} |
| 63 | <br> |
| 64 | {$content4_strings['logs']} |
| 65 | <br> |
| 66 | {$content4_strings['advanced']} |
| 67 | <br> |
| 68 | <br> |
| 69 | </p> |
| 70 | |
| 71 | CONTENT4; |
| 72 | |
| 73 | $content6 = '<p>'; |
| 74 | $content6 .= esc_html__('WordPress encourages you to update your plugins, themes, and core to make sure that there are no bugs. Even though you most likely want to disable all the updates and never think about updating again, you should still consider updating every once in a while to avoid major bugs and errors on your WordPress website.', 'stops-core-theme-and-plugin-updates'); |
| 75 | $content6 .= sprintf('<h4>%s</h4>', esc_html__('This plugin is tested with the most recent versions of WordPress to ensure that there are no major issues.', 'stops-core-theme-and-plugin-updates')); |
| 76 | $content6 .= '</p>'; |
| 77 | |
| 78 | $screen->add_help_tab(array( |
| 79 | 'id' => 'help_tab_content_1', |
| 80 | 'title' => __('Overview', 'stops-core-theme-and-plugin-updates'), |
| 81 | 'content' => $content1, |
| 82 | )); |
| 83 | |
| 84 | $screen->add_help_tab(array( |
| 85 | 'id' => 'help_tab_content_4', |
| 86 | 'title' => __('Navigation', 'stops-core-theme-and-plugin-updates'), |
| 87 | 'content' => wpautop($content4), |
| 88 | )); |
| 89 | |
| 90 | $screen->add_help_tab(array( |
| 91 | 'id' => 'help_tab_content_2', |
| 92 | 'title' => __('Documentation', 'stops-core-theme-and-plugin-updates'), |
| 93 | 'content' => wpautop($content2), |
| 94 | )); |
| 95 | |
| 96 | $screen->add_help_tab(array( |
| 97 | 'id' => 'help_tab_content_6', |
| 98 | 'title' => __('Capability', 'stops-core-theme-and-plugin-updates'), |
| 99 | 'content' => wpautop($content6), |
| 100 | )); |
| 101 | |
| 102 | } //end constructor |
| 103 | } |
| 104 |