| 1 |
<?php |
| 2 |
// @codingStandardsIgnoreFile |
| 3 |
/** |
| 4 |
* Getting Help. |
| 5 |
* |
| 6 |
* Copyright: © 2009-2011 |
| 7 |
* {@link http://websharks-inc.com/ WebSharks, Inc.} |
| 8 |
* (coded in the USA) |
| 9 |
* |
| 10 |
* Released under the terms of the GNU General Public License. |
| 11 |
* You should have received a copy of the GNU General Public License, |
| 12 |
* along with this software. In the main directory, see: /licensing/ |
| 13 |
* If not, see: {@link http://www.gnu.org/licenses/}. |
| 14 |
* |
| 15 |
* @package s2Member\Menu_Pages |
| 16 |
* @since 151218 |
| 17 |
*/ |
| 18 |
if(!defined('WPINC')) // MUST have WordPress. |
| 19 |
exit ("Do not access this file directly."); |
| 20 |
|
| 21 |
if (!class_exists ("c_ws_plugin__s2member_menu_page_help")) |
| 22 |
{ |
| 23 |
/** |
| 24 |
* Getting Help. |
| 25 |
* |
| 26 |
* @package s2Member\Menu_Pages |
| 27 |
* @since 151218 |
| 28 |
*/ |
| 29 |
class c_ws_plugin__s2member_menu_page_help |
| 30 |
{ |
| 31 |
public function __construct () |
| 32 |
{ |
| 33 |
echo '<div class="wrap ws-menu-page">' . "\n"; |
| 34 |
|
| 35 |
echo '<div class="wp-header-end"></div>'."\n"; |
| 36 |
|
| 37 |
echo '<div class="ws-menu-page-toolbox">'."\n"; |
| 38 |
c_ws_plugin__s2member_menu_pages_tb::display (); |
| 39 |
echo '</div>'."\n"; |
| 40 |
|
| 41 |
echo '<h2>Need Help?</h2>' . "\n"; |
| 42 |
|
| 43 |
echo '<table class="ws-menu-page-table">' . "\n"; |
| 44 |
echo '<tbody class="ws-menu-page-table-tbody">' . "\n"; |
| 45 |
echo '<tr class="ws-menu-page-table-tr">' . "\n"; |
| 46 |
echo '<td class="ws-menu-page-table-l">' . "\n"; |
| 47 |
|
| 48 |
do_action("ws_plugin__s2member_during_help_page_before_left_sections", get_defined_vars ()); |
| 49 |
do_action("ws_plugin__s2member_during_help_page_during_left_sections_before_help", get_defined_vars ()); |
| 50 |
|
| 51 |
echo '<div class="ws-menu-page-group" title="Don\'t worry :)" default-state="open">' . "\n"; |
| 52 |
|
| 53 |
echo '<div class="ws-menu-page-section ws-plugin--s2member-help">' . "\n"; |
| 54 |
echo '<p>s2Member is pretty easy to setup. Most of the official documentation is inline, right next to what it applies.</p>', |
| 55 |
'<p>You can also try searching <a href="https://google.com" target="_blank" rel="external">the web</a>, our <a href="http://s2member.com/kb/" target="_blank" rel="external">knowledge base</a>, <a href="http://s2member.com/r/videos/" target="_blank" rel="external">videos</a>, <a href="http://s2member.com/r/forum/" target="_blank" rel="external">forums</a>, or <a href="http://s2member.com/r/codex/" target="_blank" rel="external">codex</a>.' . "\n"; |
| 56 |
|
| 57 |
echo '<div class="ws-menu-page-hr"></div>' . "\n"; |
| 58 |
|
| 59 |
echo '<h3>Troubleshooting Tips</h3>'; |
| 60 |
echo '<p>Here\'s a collection of good things to try when <a href="http://s2member.com/r/common-troubleshooting-tips/" target="_blank" rel="external">troubleshooting</a>. Please read this first if you\'re having trouble.</p>'."\n"; |
| 61 |
|
| 62 |
echo '<div class="ws-menu-page-hr"></div>' . "\n"; |
| 63 |
|
| 64 |
echo '<h3>Search our Knowledge Base</h3>'; |
| 65 |
echo '<form method="get" action="http://s2member.com/kb/" target="_blank" onsubmit="if(this.q.value === \'enter search terms...\') this.q.value = \'\';" autocomplete="off">'."\n"; |
| 66 |
echo '<p><input type="text" name="kb_q" value="enter search terms..." style="width:60%;" onfocus="if(this.value === \'enter search terms...\') this.value = \'\';" onblur="if(this.value === \'\') this.value = \'enter search terms...\';" /> <input type="submit" value="Search" style="font-size:120%; font-weight:normal;" /></p>'."\n"; |
| 67 |
echo '</form>'."\n"; |
| 68 |
|
| 69 |
echo '<div class="ws-menu-page-hr"></div>' . "\n"; |
| 70 |
|
| 71 |
echo '<h3>Search the Web</h3>'; |
| 72 |
|
| 73 |
echo '<p>A <a href="https://google.com" target="_blank" rel="external">Google search</a> for s2member and some keywords for what you\'re trying to solve/answer, is usually very helpful. You\'ll often get links to threads in our old forums, which are packed with helpful information, sometimes not easily found by other means.</p>'."\n"; |
| 74 |
|
| 75 |
echo '<form method="get" action="https://google.com/search" target="_blank" onsubmit="this.q.value = \'s2member \' + this.q.value;" autocomplete="off">'."\n"; |
| 76 |
echo '<p><input type="text" name="q" value="enter search terms..." style="width:60%;" onfocus="if(this.value === \'enter search terms...\') this.value = \'\';" onblur="if(this.value === \'\') this.value = \'enter search terms...\';" /> <input type="submit" value="Search" style="font-size:120%; font-weight:normal;" /></p>'."\n"; |
| 77 |
echo '</form>'."\n"; |
| 78 |
|
| 79 |
echo '<div class="ws-menu-page-hr"></div>' . "\n"; |
| 80 |
|
| 81 |
echo '<h3>Community Forum</h3>'; |
| 82 |
echo '<p>Come join us in our <a href="http://s2member.com/r/forums/" target="_blank" rel="external">community forum</a>.</p>'."\n"; |
| 83 |
|
| 84 |
do_action("ws_plugin__s2member_during_start_page_during_left_sections_during_help", get_defined_vars ()); |
| 85 |
|
| 86 |
echo '</div>' . "\n"; |
| 87 |
|
| 88 |
echo '</div>' . "\n"; |
| 89 |
|
| 90 |
do_action("ws_plugin__s2member_during_help_page_during_left_sections_after_help", get_defined_vars ()); |
| 91 |
|
| 92 |
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 ())) |
| 93 |
{ |
| 94 |
do_action("ws_plugin__s2member_during_help_page_during_left_sections_before_pro", get_defined_vars ()); |
| 95 |
|
| 96 |
echo '<div class="ws-menu-page-group" title="Upgrading to s2Member Pro<em>!</em>" default-state="open">' . "\n"; |
| 97 |
|
| 98 |
echo '<div class="ws-menu-page-section ws-plugin--s2member-pro">' . "\n"; |
| 99 |
echo '<p>Among many other features/enhancements, <a href="http://s2member.com/" target="_blank" rel="external">s2Member Pro</a> comes pre-integrated with additional payment gateways that work with s2Member Pro-Forms (a powerful s2Member Pro feature). For instance, Stripe (most popular), PayPal Payments Pro, and Authorize.Net. Each of these payment gateways allow you to accept most major credit cards on-site, so customers never leave your site! s2Member Pro-Forms also support PayPal Express Checkout, for customers who actually prefer to pay with PayPal.</p>' . "\n"; |
| 100 |
echo '<p><strong>Learn more here:</strong> <a href="http://s2member.com/features/" target="_blank" rel="external">s2Member Pro Features</a></p>'."\n"; |
| 101 |
echo '<p>For pre-sale questions, please see: <a href="http://s2member.com/kb/kb-tag/pre-sale-faqs/" target="_blank" rel="external">Pre-Sale FAQs</a>.</p>'."\n"; |
| 102 |
echo '<p>If you have other questions, please <a href="http://s2member.com/r/new-pre-sale-inquiry/" target="_blank" rel="external">contact our sales dept</a>.</p>'."\n"; |
| 103 |
do_action("ws_plugin__s2member_during_help_page_during_left_sections_during_pro", get_defined_vars ()); |
| 104 |
echo '</div>' . "\n"; |
| 105 |
|
| 106 |
echo '</div>' . "\n"; |
| 107 |
|
| 108 |
do_action("ws_plugin__s2member_during_start_page_during_left_sections_after_pro", get_defined_vars ()); |
| 109 |
} |
| 110 |
do_action("ws_plugin__s2member_during_help_page_after_left_sections", get_defined_vars ()); |
| 111 |
|
| 112 |
echo '</td>' . "\n"; |
| 113 |
|
| 114 |
echo '<td class="ws-menu-page-table-r">' . "\n"; |
| 115 |
c_ws_plugin__s2member_menu_pages_rs::display (); |
| 116 |
echo '</td>' . "\n"; |
| 117 |
|
| 118 |
echo '</tr>' . "\n"; |
| 119 |
echo '</tbody>' . "\n"; |
| 120 |
echo '</table>' . "\n"; |
| 121 |
|
| 122 |
echo '</div>' . "\n"; |
| 123 |
} |
| 124 |
} |
| 125 |
} |
| 126 |
|
| 127 |
new c_ws_plugin__s2member_menu_page_help (); |
| 128 |
|