diff --git a/.gitchange b/.gitchange index 45345fea..7f4f2b6e 100644 --- a/.gitchange +++ b/.gitchange @@ -1 +1 @@ -1450450975 +1450452152 diff --git a/s2member/includes/classes/menu-pages.inc.php b/s2member/includes/classes/menu-pages.inc.php index 9d7f4acf..c712f803 100644 --- a/s2member/includes/classes/menu-pages.inc.php +++ b/s2member/includes/classes/menu-pages.inc.php @@ -154,6 +154,9 @@ public static function add_admin_options() if(apply_filters('ws_plugin__s2member_during_add_admin_options_add_start_page', TRUE, get_defined_vars())) add_submenu_page($menu, 'Getting Started w/ s2Member', 'Getting Started', 'create_users', 'ws-plugin--s2member-start', 'c_ws_plugin__s2member_menu_pages::start_page'); + if(apply_filters('ws_plugin__s2member_during_add_admin_options_add_help_page', !is_multisite () || !c_ws_plugin__s2member_utils_conds::is_multisite_farm () || is_main_site (), get_defined_vars())) + add_submenu_page($menu, 'Getting Help w/ s2Member', 'Getting Help', 'create_users', 'ws-plugin--s2member-help', 'c_ws_plugin__s2member_menu_pages::help_page'); + if(apply_filters('ws_plugin__s2member_during_add_admin_options_add_divider_1', TRUE, get_defined_vars())) add_submenu_page($menu, '', '', 'create_users', '#'); @@ -510,6 +513,21 @@ public static function start_page() do_action('ws_plugin__s2member_after_start_page', get_defined_vars()); } + /** + * Builds and handles the Getting Help page. + * + * @package s2Member\Menu_Pages + * @since 151218 + */ + public static function help_page() + { + do_action('ws_plugin__s2member_before_help_page', get_defined_vars()); + + include_once dirname(dirname(__FILE__)).'/menu-pages/help.inc.php'; + + do_action('ws_plugin__s2member_after_help_page', get_defined_vars()); + } + /** * Builds and handles the Main Multisite Options page. * diff --git a/s2member/includes/menu-pages/help.inc.php b/s2member/includes/menu-pages/help.inc.php new file mode 100644 index 00000000..d8b0d865 --- /dev/null +++ b/s2member/includes/menu-pages/help.inc.php @@ -0,0 +1,135 @@ +' . "\n"; + + echo '
'."\n"; + + echo '' . "\n"; + + do_action("ws_plugin__s2member_during_help_page_before_left_sections", get_defined_vars ()); + do_action("ws_plugin__s2member_during_help_page_during_left_sections_before_help", get_defined_vars ()); + + echo ' | ' . "\n"; + + echo ' ' . "\n"; + + do_action("ws_plugin__s2member_during_help_page_during_left_sections_after_help", get_defined_vars ()); + + do_action("ws_plugin__s2member_during_help_page_during_left_sections_before_support", get_defined_vars ()); + + echo ' ' . "\n"; + + do_action("ws_plugin__s2member_during_help_page_during_left_sections_after_support", get_defined_vars ()); + + if (apply_filters("ws_plugin__s2member_during_help_page_during_left_sections_display_pro", !c_ws_plugin__s2member_utils_conds::pro_is_installed(), get_defined_vars ())) + { + do_action("ws_plugin__s2member_during_help_page_during_left_sections_before_pro", get_defined_vars ()); + + echo ' ' . "\n"; + + do_action("ws_plugin__s2member_during_start_page_during_left_sections_after_pro", get_defined_vars ()); + } + do_action("ws_plugin__s2member_during_help_page_after_left_sections", get_defined_vars ()); + + echo '' . "\n"; + c_ws_plugin__s2member_menu_pages_rs::display (); + echo ' | ' . "\n"; + + echo '