MS_View_Help

Renders Help and Documentation Page.

Defined (1)

The class is defined in the following location(s).

/app/view/class-ms-view-help.php  
  1. class MS_View_Help extends MS_View { 
  2.  
  3. /** 
  4. * Overrides parent's to_html() method. 
  5. * Creates an output buffer, outputs the HTML and grabs the buffer content before releasing it. 
  6. * Creates a wrapper 'ms-wrap' HTML element to contain content and navigation. The content inside 
  7. * the navigation gets loaded with dynamic method calls. 
  8. * e.g. if key is 'settings' then render_settings() gets called, if 'bob' then render_bob(). 
  9. * @since 1.0.0 
  10. * @return object 
  11. */ 
  12. public function to_html() { 
  13. $this->check_simulation(); 
  14.  
  15. // Setup navigation tabs. 
  16. $tabs = $this->data['tabs']; 
  17.  
  18. ob_start(); 
  19. // Render tabbed interface. 
  20. ?> 
  21. <div class="ms-wrap wrap"> 
  22. <?php 
  23. MS_Helper_Html::settings_header( 
  24. array( 
  25. 'title' => __( 'Help and documentation', 'membership2' ),  
  26. 'title_icon_class' => 'wpmui-fa wpmui-fa-info-circle',  
  27. ); 
  28. $active_tab = MS_Helper_Html::html_admin_vertical_tabs( $tabs ); 
  29.  
  30. // Call the appropriate form to render. 
  31. $callback_name = 'render_tab_' . str_replace( '-', '_', $active_tab ); 
  32. $render_callback = apply_filters( 
  33. 'ms_view_help_render_callback',  
  34. array( $this, $callback_name ),  
  35. $active_tab,  
  36. $this->data 
  37. ); 
  38. ?> 
  39. <div class="ms-settings ms-help-content"> 
  40. <?php 
  41. $html = call_user_func( $render_callback ); 
  42. $html = apply_filters( 'ms_view_help_' . $callback_name, $html ); 
  43. echo $html; 
  44. ?> 
  45. </div> 
  46. </div> 
  47. <?php 
  48. return ob_get_clean(); 
  49.  
  50. /** 
  51. * Renders the General help contents 
  52. * @since 1.0.0 
  53. * @return string 
  54. */ 
  55. public function render_tab_general() { 
  56. ob_start(); 
  57. ?> 
  58. <h2> 
  59. <?php _e( 'You\'re awesome :)', 'membership2' ); ?><br /> 
  60. </h2> 
  61. <p> 
  62. <em><?php _e( 'Thank you for using Membership 2', 'membership2' ); ?></em> 
  63. <br/ ><br /> 
  64. <?php _ex( 'Here is a quick overview:', 'help', 'membership2' ); ?> 
  65. </p> 
  66. <div> 
  67. <?php 
  68. printf( 
  69. _x( 'You use verion <strong>%s</strong> of Membership 2', 'help', 'membership2' ),  
  70. MS_PLUGIN_VERSION 
  71. ); 
  72. if ( function_exists( 'membership2_init_pro_app' ) ) { 
  73. printf( 
  74. '<br />' . 
  75. _x( 'Hey, this is the <strong>PRO version</strong> of Membership 2 - thanks a lot for supporting us!', 'help', 'membership2' ) 
  76. ); 
  77. } else { 
  78. printf( 
  79. '<br />' . 
  80. _x( 'This is the <strong>Free version</strong> of Membership 2 - did you check out our %sPRO version%s already?', 'help', 'membership2' ),  
  81. '<a href="https://premium.wpmudev.org/project/membership/" target="_blank">',  
  82. '</a>' 
  83. ); 
  84. if ( is_multisite() ) { 
  85. if ( MS_Plugin::is_network_wide() ) { 
  86. printf( 
  87. '<br />' . 
  88. _x( 'Your Protection mode is <strong>%s network-wide</strong>.', 'help', 'membership2' ),  
  89. '<i class="wpmui-fa wpmui-fa-globe"></i>' 
  90. ); 
  91. } else { 
  92. printf( 
  93. '<br />' . 
  94. _x( 'Your Protection covers <strong>%s only this site</strong>.', 'help', 'membership2' ),  
  95. '<i class="wpmui-fa wpmui-fa-home"></i>' 
  96. ); 
  97. $admin_cap = MS_Plugin::instance()->controller->capability; 
  98. if ( $admin_cap ) { 
  99. printf( 
  100. '<br />' . 
  101. _x( 'All users with capability <strong>%s</strong> are M2 Admin-users.', 'help', 'membership2' ),  
  102. $admin_cap 
  103. ); 
  104. } else { 
  105. printf( 
  106. '<br />' . 
  107. _x( 'Only the <strong>Network-Admin</strong> can manage M2.', 'help', 'membership2' ) 
  108. ); 
  109. if ( defined( 'MS_STOP_EMAILS' ) && MS_STOP_EMAILS ) { 
  110. printf( 
  111. '<br />' . 
  112. _x( 'Currently M2 is configured to <strong>not send</strong> any emails.', 'help', 'membership2' ) 
  113. ); 
  114. if ( defined( 'MS_LOCK_SUBSCRIPTIONS' ) && MS_LOCK_SUBSCRIPTIONS ) { 
  115. printf( 
  116. '<br />' . 
  117. _x( 'Currently M2 is configured <strong>not expire/change</strong> any subscription status.', 'help', 'membership2' ) 
  118. ); 
  119. if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { 
  120. printf( 
  121. '<br />' . 
  122. _x( 'WP_DEBUG is <strong>enabled</strong> on this site.', 'help', 'membership2' ) 
  123. ); 
  124. } else { 
  125. printf( 
  126. '<br />' . 
  127. _x( 'WP_DEBUG is <strong>disabled</strong> on this site.', 'help', 'membership2' ) 
  128. ); 
  129. ?> 
  130. </div> 
  131. <?php MS_Helper_Html::html_separator(); ?> 
  132. <h2> 
  133. <?php _ex( 'Plugin menu', 'help', 'membership2' ); ?> 
  134. </h2> 
  135. <table cellspacing="0" cellpadding="4" border="0" width="100%"> 
  136. <tr> 
  137. <td> 
  138. <span class="top-menu"> 
  139. <div class="menu-image dashicons dashicons-lock"></div> 
  140. <?php _e( 'Membership 2', 'membership2' ); ?> 
  141. </span> 
  142. </td> 
  143. <td></td> 
  144. </tr> 
  145. <tr class="alternate"> 
  146. <td><span><?php _e( 'Memberships', 'membership2' ); ?></span></td> 
  147. <td><?php _ex( 'Create and manage Membership-Plans that users can sign up for', 'help', 'membership2' ); ?></td> 
  148. </tr> 
  149. <tr> 
  150. <td><span><?php _e( 'Protection Rules', 'membership2' ); ?></span></td> 
  151. <td><?php _ex( 'Set the protection options, i.e. which pages are protected by which membership', 'help', 'membership2' ); ?></td> 
  152. </tr> 
  153. <tr class="alternate"> 
  154. <td><span><?php _e( 'All Members', 'membership2' ); ?></span></td> 
  155. <td><?php _ex( 'Lists all your WordPress users and allows you to manage their Memberships', 'help', 'membership2' ); ?></td> 
  156. </tr> 
  157. <tr> 
  158. <td><span><?php _e( 'Add Member', 'membership2' ); ?></span></td> 
  159. <td><?php _ex( 'Create a new WP User or edit subscriptions of an existing user', 'help', 'membership2' ); ?></td> 
  160. </tr> 
  161. <tr class="alternate"> 
  162. <td><span><?php _e( 'Billing', 'membership2' ); ?></span></td> 
  163. <td><?php _ex( 'Manage sent invoices, including details such as the payment status. <em>Only visible when you have at least one paid membership</em>', 'help', 'membership2' ); ?></td> 
  164. </tr> 
  165. <tr> 
  166. <td><span><?php _e( 'Coupons', 'membership2' ); ?></span></td> 
  167. <td><?php _ex( 'Manage your discount coupons. <em>Requires Add-on "Coupons"</em>', 'help', 'membership2' ); ?></td> 
  168. </tr> 
  169. <tr class="alternate"> 
  170. <td><span><?php _e( 'Invitation Codes', 'membership2' ); ?></span></td> 
  171. <td><?php _ex( 'Manage your invitation codes. <em>Requires Add-on "Invitation Codes"</em>', 'help', 'membership2' ); ?></td> 
  172. </tr> 
  173. <tr> 
  174. <td><span><?php _e( 'Add-ons', 'membership2' ); ?></span></td> 
  175. <td><?php _ex( 'Activate Add-ons', 'help', 'membership2' ); ?></td> 
  176. </tr> 
  177. <tr class="alternate"> 
  178. <td><span><?php _e( 'Settings', 'membership2' ); ?></span></td> 
  179. <td><?php _ex( 'Global plugin options, such as Membership pages, payment options and email templates', 'help', 'membership2' ); ?></td> 
  180. </tr> 
  181. </table> 
  182. <?php 
  183. return ob_get_clean(); 
  184.  
  185. /** 
  186. * Renders the Shortcode help contents 
  187. * @since 1.0.0 
  188. * @return string 
  189. */ 
  190. public function render_tab_shortcodes() { 
  191. ob_start(); 
  192. ?> 
  193.  
  194. <?php 
  195. /********* 
  196. ********** ms-protect-content ************************************** 
  197. *********/ 
  198. ?> 
  199. <h2><?php _ex( 'Common shortcodes', 'help', 'membership2' ); ?></h2> 
  200.  
  201. <div id="ms-protect-content" class="ms-help-box"> 
  202. <h3><code>[ms-protect-content]</code></h3> 
  203.  
  204. <?php _ex( 'Wrap this around any content to protect it for/from certain members (based on their Membership level)', 'help', 'membership2' ); ?> 
  205. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  206. <div class="ms-help-details" style="display:none"> 
  207. <ul> 
  208. <li> 
  209. <code>id</code> 
  210. <?php _ex( '(ID list)', 'help', 'membership2' ); ?> 
  211. <strong><?php _ex( 'Required', 'help', 'membership2' ); ?></strong>. 
  212. <?php _ex( 'One or more membership IDs. Shortcode is triggered when the user belongs to at least one of these memberships', 'help', 'membership2' ); ?> 
  213. </li> 
  214. <li> 
  215. <code>access</code> 
  216. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  217. <?php _ex( 'Defines if members of the memberships can see or not see the content', 'help', 'membership2' ); ?> 
  218. <span class="ms-help-default"> 
  219. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  220. yes 
  221. </span> 
  222. </li> 
  223. <li> 
  224. <code>silent</code> 
  225. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  226. <?php _ex( 'Silent protection removes content without displaying any message to the user', 'help', 'membership2' ); ?> 
  227. <span class="ms-help-default"> 
  228. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  229. no 
  230. </span> 
  231. </li> 
  232. <li> 
  233. <code>msg</code> 
  234. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  235. <?php _ex( 'Provide a custom protection message. <em>This will only be displayed when silent is not true</em>', 'help', 'membership2' ); ?> 
  236. <span class="ms-help-default"> 
  237. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  238. "" 
  239. </span> 
  240. </li> 
  241. </ul> 
  242.  
  243. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  244. <p> 
  245. <code>[ms-protect-content id="1"]</code> 
  246. <?php _ex( 'Only members of membership-1 can see this!', 'help', 'membership2' ); ?> 
  247. <code>[/ms-protect-content]</code> 
  248. </p> 
  249. <p> 
  250. <code>[ms-protect-content id="2, 3" access="no" silent="yes"]</code> 
  251. <?php _ex( 'Everybody except members of memberships 2 or 3 can see this!', 'help', 'membership2' ); ?> 
  252. <code>[/ms-protect-content]</code> 
  253. </p> 
  254. </div> 
  255. </div> 
  256.  
  257.  
  258. <?php 
  259. /********* 
  260. ********** ms-user ************************************************* 
  261. *********/ 
  262. ?> 
  263.  
  264. <div id="ms-user" class="ms-help-box"> 
  265. <h3><code>[ms-user]</code></h3> 
  266.  
  267. <?php _ex( 'Shows the content only to certain users (ignoring the Membership level)', 'help', 'membership2' ); ?> 
  268. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  269. <div class="ms-help-details" style="display:none"> 
  270. <ul> 
  271. <li> 
  272. <code>type</code> 
  273. <?php _ex( '(all|loggedin|guest|admin)', 'help', 'membership2' ); ?> 
  274. <?php _ex( 'Decide, which type of users will see the message', 'help', 'membership2' ); ?> 
  275. <span class="ms-help-default"> 
  276. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  277. "loggedin" 
  278. </span> 
  279. </li> 
  280. <li> 
  281. <code>msg</code> 
  282. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  283. <?php _ex( 'Provide a custom protection message that is displayed to users that have no access to the content', 'help', 'membership2' ); ?> 
  284. <span class="ms-help-default"> 
  285. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  286. "" 
  287. </span> 
  288. </li> 
  289. </ul> 
  290.  
  291. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  292. <p> 
  293. <code>[ms-user]</code> 
  294. <?php _ex( 'You are logged in', 'help', 'membership2' ); ?> 
  295. <code>[/ms-user]</code> 
  296. </p> 
  297. <p> 
  298. <code>[ms-user type="guest"]</code> 
  299. <?php printf( htmlspecialchars( _x( '<a href="">Sign up now</a>! <a href="">Already have an account</a>?', 'help', 'membership2' ) ) ); ?> 
  300. <code>[/ms-user]</code> 
  301. </p> 
  302. </div> 
  303. </div> 
  304.  
  305.  
  306. <?php 
  307. /********* 
  308. ********** ms-membership-register-user ***************************** 
  309. *********/ 
  310. ?> 
  311.  
  312. <div id="ms-membership-register-user" class="ms-help-box"> 
  313. <h3><code>[ms-membership-register-user]</code></h3> 
  314.  
  315. <?php _ex( 'Displays a registration form. Visitors can create a WordPress user account with this form', 'help', 'membership2' ); ?> 
  316. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  317. <div class="ms-help-details" style="display:none"> 
  318. <ul> 
  319. <li> 
  320. <code>title</code> 
  321. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  322. <?php _ex( 'Title of the register form', 'help', 'membership2' ); ?> 
  323. <span class="ms-help-default"> 
  324. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  325. "<?php _e( 'Create an Account', 'membership2' ); ?>" 
  326. </span> 
  327. </li> 
  328. <li> 
  329. <code>first_name</code> 
  330. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  331. <?php _ex( 'Initial value for first name', 'help', 'membership2' ); ?> 
  332. <span class="ms-help-default"> 
  333. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  334. "" 
  335. </span> 
  336. </li> 
  337. <li> 
  338. <code>last_name</code> 
  339. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  340. <?php _ex( 'Initial value for last name', 'help', 'membership2' ); ?> 
  341. <span class="ms-help-default"> 
  342. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  343. "" 
  344. </span> 
  345. </li> 
  346. <li> 
  347. <code>username</code> 
  348. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  349. <?php _ex( 'Initial value for username', 'help', 'membership2' ); ?> 
  350. <span class="ms-help-default"> 
  351. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  352. "" 
  353. </span> 
  354. </li> 
  355. <li> 
  356. <code>email</code> 
  357. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  358. <?php _ex( 'Initial value for email address', 'help', 'membership2' ); ?> 
  359. <span class="ms-help-default"> 
  360. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  361. "" 
  362. </span> 
  363. </li> 
  364. <li> 
  365. <code>membership_id</code> 
  366. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  367. <?php _ex( 'Membership ID to assign to the new user. This field is hidden and cannot be changed during registration. <em>Note: If this membership requires payment, the user will be redirected to the payment gateway after registration</em>', 'help', 'membership2' ); ?> 
  368. <span class="ms-help-default"> 
  369. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  370. "" 
  371. </span> 
  372. </li> 
  373. <li> 
  374. <code>loginlink</code> 
  375. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  376. <?php _ex( 'Display a login-link below the form', 'help', 'membership2' ); ?> 
  377. <span class="ms-help-default"> 
  378. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  379. "yes" 
  380. </span> 
  381. </li> 
  382. </ul> 
  383.  
  384. <h4><?php _e( 'Field labels', 'membership2' ); ?></h4> 
  385. <ul> 
  386. <li> 
  387. <code>label_first_name</code> 
  388. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  389. <span class="ms-help-default"> 
  390. "<?php _e( 'First Name', 'membership2' ); ?>" 
  391. </span> 
  392. </li> 
  393. <li> 
  394. <code>label_last_name</code> 
  395. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  396. <span class="ms-help-default"> 
  397. "<?php _e( 'Last Name', 'membership2' ); ?>" 
  398. </span> 
  399. </li> 
  400. <li> 
  401. <code>label_username</code> 
  402. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  403. <span class="ms-help-default"> 
  404. "<?php _e( 'Choose a Username', 'membership2' ); ?>" 
  405. </span> 
  406. </li> 
  407. <li> 
  408. <code>label_email</code> 
  409. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  410. <span class="ms-help-default"> 
  411. "<?php _e( 'Email Address', 'membership2' ); ?>" 
  412. </span> 
  413. </li> 
  414. <li> 
  415. <code>label_password</code> 
  416. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  417. <span class="ms-help-default"> 
  418. "<?php _e( 'Password', 'membership2' ); ?>" 
  419. </span> 
  420. </li> 
  421. <li> 
  422. <code>label_password2</code> 
  423. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  424. <span class="ms-help-default"> 
  425. "<?php _e( 'Confirm Password', 'membership2' ); ?>" 
  426. </span> 
  427. </li> 
  428. <li> 
  429. <code>label_register</code> 
  430. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  431. <span class="ms-help-default"> 
  432. "<?php _e( 'Register My Account', 'membership2' ); ?>" 
  433. </span> 
  434. </li> 
  435. <li> 
  436. <code>hint_first_name</code> 
  437. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  438. <?php _ex( 'Placeholder inside Field', 'help', 'membership2' ); ?> 
  439. <span class="ms-help-default"> 
  440. "" 
  441. </span> 
  442. </li> 
  443. <li> 
  444. <code>hint_last_name</code> 
  445. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  446. <?php _ex( 'Placeholder inside Field', 'help', 'membership2' ); ?> 
  447. <span class="ms-help-default"> 
  448. "" 
  449. </span> 
  450. </li> 
  451. <li> 
  452. <code>hint_username</code> 
  453. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  454. <?php _ex( 'Placeholder inside Field', 'help', 'membership2' ); ?> 
  455. <span class="ms-help-default"> 
  456. "" 
  457. </span> 
  458. </li> 
  459. <li> 
  460. <code>hint_email</code> 
  461. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  462. <?php _ex( 'Placeholder inside Field', 'help', 'membership2' ); ?> 
  463. <span class="ms-help-default"> 
  464. "" 
  465. </span> 
  466. </li> 
  467. <li> 
  468. <code>hint_password</code> 
  469. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  470. <?php _ex( 'Placeholder inside Field', 'help', 'membership2' ); ?> 
  471. <span class="ms-help-default"> 
  472. "" 
  473. </span> 
  474. </li> 
  475. <li> 
  476. <code>hint_password2</code> 
  477. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  478. <?php _ex( 'Placeholder inside Field', 'help', 'membership2' ); ?> 
  479. <span class="ms-help-default"> 
  480. "" 
  481. </span> 
  482. </ul> 
  483.  
  484. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  485. <p><code>[ms-membership-register-user]</code></p> 
  486. <p><code>[ms-membership-register-user title="" hint_email="john@email.com" label_password2="Repeat"]</code></p> 
  487. </div> 
  488. </div> 
  489.  
  490.  
  491. <?php 
  492. /********* 
  493. ********** ms-membership-signup ************************************ 
  494. *********/ 
  495. ?> 
  496.  
  497. <div id="ms-membership-signup" class="ms-help-box"> 
  498. <h3><code>[ms-membership-signup]</code></h3> 
  499.  
  500. <?php _ex( 'Shows a list of all memberships which the current user can sign up for', 'help', 'membership2' ); ?> 
  501. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  502. <div class="ms-help-details" style="display:none"> 
  503. <h4><?php _ex( 'Common options', 'help', 'membership2' ); ?></h4> 
  504. <ul> 
  505. <li> 
  506. <code><?php echo esc_html( MS_Helper_Membership::MEMBERSHIP_ACTION_SIGNUP ); ?>_text</code> 
  507. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  508. <?php _ex( 'Button label', 'help', 'membership2' ); ?> 
  509. <span class="ms-help-default"> 
  510. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  511. "<?php _e( 'Signup', 'membership2' ); ?>" 
  512. </span> 
  513. </li> 
  514. <li> 
  515. <code><?php echo esc_html( MS_Helper_Membership::MEMBERSHIP_ACTION_MOVE ); ?>_text</code> 
  516. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  517. <?php _ex( 'Button label', 'help', 'membership2' ); ?> 
  518. <span class="ms-help-default"> 
  519. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  520. "<?php _e( 'Change', 'membership2' ); ?>" 
  521. </span> 
  522. </li> 
  523. <li> 
  524. <code><?php echo esc_html( MS_Helper_Membership::MEMBERSHIP_ACTION_CANCEL ); ?>_text</code> 
  525. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  526. <?php _ex( 'Button label', 'help', 'membership2' ); ?> 
  527. <span class="ms-help-default"> 
  528. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  529. "<?php _e( 'Cancel', 'membership2' ); ?>" 
  530. </span> 
  531. </li> 
  532. <li> 
  533. <code><?php echo esc_html( MS_Helper_Membership::MEMBERSHIP_ACTION_RENEW ); ?>_text</code> 
  534. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  535. <?php _ex( 'Button label', 'help', 'membership2' ); ?> 
  536. <span class="ms-help-default"> 
  537. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  538. "<?php _e( 'Renew', 'membership2' ); ?>" 
  539. </span> 
  540. </li> 
  541. <li> 
  542. <code><?php echo esc_html( MS_Helper_Membership::MEMBERSHIP_ACTION_PAY ); ?>_text</code> 
  543. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  544. <?php _ex( 'Button label', 'help', 'membership2' ); ?> 
  545. <span class="ms-help-default"> 
  546. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  547. "<?php _e( 'Complete Payment', 'membership2' ); ?>" 
  548. </span> 
  549. </li> 
  550. </ul> 
  551.  
  552. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  553. <p><code>[ms-membership-signup]</code></p> 
  554. </div> 
  555. </div> 
  556.  
  557.  
  558.  
  559. <?php 
  560. /********* 
  561. ********** ms-membership-login ************************************* 
  562. *********/ 
  563. ?> 
  564.  
  565. <div id="ms-membership-login" class="ms-help-box"> 
  566. <h3><code>[ms-membership-login]</code></h3> 
  567.  
  568. <?php _ex( 'Displays the login/lost-password form, or for logged in users a logout link', 'help', 'membership2' ); ?> 
  569. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  570. <div class="ms-help-details" style="display:none"> 
  571. <h4><?php _ex( 'Common options', 'help', 'membership2' ); ?></h4> 
  572. <ul> 
  573. <li> 
  574. <code>title</code> 
  575. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  576. <?php _ex( 'The title above the login form', 'help', 'membership2' ); ?> 
  577. <span class="ms-help-default"> 
  578. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  579. "" 
  580. </span> 
  581. </li> 
  582. <li> 
  583. <code>show_labels</code> 
  584. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  585. <?php _ex( 'Set to "yes" to display the labels for username and password in front of the input fields', 'help', 'membership2' ); ?> 
  586. <span class="ms-help-default"> 
  587. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  588. no 
  589. </span> 
  590. </li> 
  591. <li> 
  592. <code>redirect_login</code> 
  593. <?php _ex( '(URL)', 'help', 'membership2' ); ?> 
  594. <?php _ex( 'The page to display after the user was logged in', 'help', 'membership2' ); ?> 
  595. <span class="ms-help-default"> 
  596. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  597. "<?php echo MS_Model_Pages::get_url_after_login(); ?>" 
  598. </span> 
  599. </li> 
  600. <li> 
  601. <code>redirect_logout</code> 
  602. <?php _ex( '(URL)', 'help', 'membership2' ); ?> 
  603. <?php _ex( 'The page to display after the user was logged out', 'help', 'membership2' ); ?> 
  604. <span class="ms-help-default"> 
  605. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  606. "<?php echo MS_Model_Pages::get_url_after_logout(); ?>" 
  607. </span> 
  608. </li> 
  609. <li> 
  610. <code>header</code> 
  611. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  612. <span class="ms-help-default"> 
  613. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  614. yes 
  615. </span> 
  616. </li> 
  617. <li> 
  618. <code>register</code> 
  619. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  620. <span class="ms-help-default"> 
  621. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  622. yes 
  623. </span> 
  624. </li> 
  625. <li> 
  626. <code>autofocus</code> 
  627. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  628. <?php _ex( 'Focus the login-form on page load', 'help', 'membership2' ); ?> 
  629. <span class="ms-help-default"> 
  630. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  631. yes 
  632. </span> 
  633. </li> 
  634. </ul> 
  635.  
  636. <h4><?php _ex( 'More options', 'help', 'membership2' ); ?></h4> 
  637. <ul> 
  638. <li> 
  639. <code>holder</code> 
  640. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  641. <span class="ms-help-default"> 
  642. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  643. "div" 
  644. </span> 
  645. </li> 
  646. <li> 
  647. <code>holderclass</code> 
  648. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  649. <span class="ms-help-default"> 
  650. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  651. "ms-login-form" 
  652. </span> 
  653. </li> 
  654. <li> 
  655. <code>item</code> 
  656. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  657. <span class="ms-help-default"> 
  658. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  659. "" 
  660. </span> 
  661. </li> 
  662. <li> 
  663. <code>itemclass</code> 
  664. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  665. <span class="ms-help-default"> 
  666. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  667. "" 
  668. </span> 
  669. </li> 
  670. <li> 
  671. <code>prefix</code> 
  672. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  673. <span class="ms-help-default"> 
  674. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  675. "" 
  676. </span> 
  677. </li> 
  678. <li> 
  679. <code>postfix</code> 
  680. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  681. <span class="ms-help-default"> 
  682. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  683. "" 
  684. </span> 
  685. </li> 
  686. <li> 
  687. <code>wrapwith</code> 
  688. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  689. <span class="ms-help-default"> 
  690. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  691. "" 
  692. </span> 
  693. </li> 
  694. <li> 
  695. <code>wrapwithclass</code> 
  696. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  697. <span class="ms-help-default"> 
  698. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  699. "" 
  700. </span> 
  701. </li> 
  702. <li> 
  703. <code>form</code> 
  704. <?php _ex( '(login|lost|logout)', 'help', 'membership2' ); ?> 
  705. <?php _ex( 'Defines which form should be displayed. An empty value allows the plugin to automatically choose between login/logout', 'help', 'membership2' ); ?> 
  706. <span class="ms-help-default"> 
  707. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  708. "" 
  709. </span> 
  710. </li> 
  711. <li> 
  712. <code>nav_pos</code> 
  713. <?php _ex( '(top|bottom)', 'help', 'membership2' ); ?> 
  714. <span class="ms-help-default"> 
  715. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  716. "top" 
  717. </span> 
  718. </li> 
  719. </ul> 
  720.  
  721. <h4><?php 
  722. printf( 
  723. __( 'Options only for <code>%s</code>', 'membership2' ),  
  724. 'form="login"' 
  725. ); 
  726. ?></h4> 
  727. <ul> 
  728. <li> 
  729. <code>show_note</code> 
  730. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  731. <?php _ex( 'Show a "You are not logged in" note above the login form', 'help', 'membership2' ); ?> 
  732. <span class="ms-help-default"> 
  733. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  734. yes 
  735. </span> 
  736. </li> 
  737. <li> 
  738. <code>label_username</code> 
  739. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  740. <span class="ms-help-default"> 
  741. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  742. "<?php _e( 'Username' ); ?>" 
  743. </span> 
  744. </li> 
  745. <li> 
  746. <code>label_password</code> 
  747. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  748. <span class="ms-help-default"> 
  749. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  750. "<?php _e( 'Password' ); ?>" 
  751. </span> 
  752. </li> 
  753. <li> 
  754. <code>label_remember</code> 
  755. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  756. <span class="ms-help-default"> 
  757. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  758. "<?php _e( 'Remember Me' ); ?>" 
  759. </span> 
  760. </li> 
  761. <li> 
  762. <code>label_log_in</code> 
  763. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  764. <span class="ms-help-default"> 
  765. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  766. "<?php _e( 'Log In' ); ?>" 
  767. </span> 
  768. </li> 
  769. <li> 
  770. <code>id_login_form</code> 
  771. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  772. <span class="ms-help-default"> 
  773. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  774. "loginform" 
  775. </span> 
  776. </li> 
  777. <li> 
  778. <code>id_username</code> 
  779. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  780. <span class="ms-help-default"> 
  781. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  782. "user_login" 
  783. </span> 
  784. </li> 
  785. <li> 
  786. <code>id_password</code> 
  787. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  788. <span class="ms-help-default"> 
  789. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  790. "user_pass" 
  791. </span> 
  792. </li> 
  793. <li> 
  794. <code>id_remember</code> 
  795. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  796. <span class="ms-help-default"> 
  797. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  798. "rememberme" 
  799. </span> 
  800. </li> 
  801. <li> 
  802. <code>id_login</code> 
  803. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  804. <span class="ms-help-default"> 
  805. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  806. "wp-submit" 
  807. </span> 
  808. </li> 
  809. <li> 
  810. <code>show_remember</code> 
  811. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  812. <span class="ms-help-default"> 
  813. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  814. yes 
  815. </span> 
  816. </li> 
  817. <li> 
  818. <code>value_username</code> 
  819. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  820. <span class="ms-help-default"> 
  821. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  822. "" 
  823. </span> 
  824. </li> 
  825. <li> 
  826. <code>value_remember</code> 
  827. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  828. <?php _ex( 'Set this to "yes" to default the "Remember me" checkbox to checked', 'help', 'membership2' ); ?> 
  829. <span class="ms-help-default"> 
  830. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  831. no 
  832. </span> 
  833. </li> 
  834. </ul> 
  835.  
  836. <h4><?php 
  837. printf( 
  838. __( 'Options only for <code>%s</code>', 'membership2' ),  
  839. 'form="lost"' 
  840. ); 
  841. ?></h4> 
  842. <ul> 
  843. <li> 
  844. <code>label_lost_username</code> 
  845. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  846. <span class="ms-help-default"> 
  847. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  848. "<?php _e( 'Username or E-mail', 'membership2' ); ?>" 
  849. </span> 
  850. </li> 
  851. <li> 
  852. <code>label_lostpass</code> 
  853. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  854. <span class="ms-help-default"> 
  855. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  856. "<?php _e( 'Reset Password', 'membership2' ); ?>" 
  857. </span> 
  858. </li> 
  859. <li> 
  860. <code>id_lost_form</code> 
  861. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  862. <span class="ms-help-default"> 
  863. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  864. "lostpasswordform" 
  865. </span> 
  866. </li> 
  867. <li> 
  868. <code>id_lost_username</code> 
  869. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  870. <span class="ms-help-default"> 
  871. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  872. "user_login" 
  873. </span> 
  874. </li> 
  875. <li> 
  876. <code>id_lostpass</code> 
  877. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  878. <span class="ms-help-default"> 
  879. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  880. "wp-submit" 
  881. </span> 
  882. </li> 
  883. <li> 
  884. <code>value_username</code> 
  885. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  886. <span class="ms-help-default"> 
  887. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  888. "" 
  889. </span> 
  890. </li> 
  891. </ul> 
  892.  
  893. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  894. <p><code>[ms-membership-login]</code></p> 
  895. <p> 
  896. <code>[ms-membership-login form="logout"]</code> 
  897. <?php _ex( 'is identical to', 'help', 'membership2' ); ?> 
  898. <code>[ms-membership-logout]</code> 
  899. </p> 
  900. </div> 
  901. </div> 
  902.  
  903.  
  904. <?php 
  905. /********* 
  906. ********** ms-note ************************************************* 
  907. *********/ 
  908. ?> 
  909.  
  910. <div id="ms-note" class="ms-help-box"> 
  911. <h3><code>[ms-note]</code></h3> 
  912.  
  913. <?php _ex( 'Displays a info/success message to the user', 'help', 'membership2' ); ?> 
  914. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  915. <div class="ms-help-details" style="display:none"> 
  916. <ul> 
  917. <li> 
  918. <code>type</code> 
  919. (info|warning) 
  920. <?php _ex( 'The type of the notice. Info is green and warning red', 'help', 'membership2' ); ?> 
  921. <span class="ms-help-default"> 
  922. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  923. "info" 
  924. </span> 
  925. </li> 
  926. <li> 
  927. <code>class</code> 
  928. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  929. <?php _ex( 'An additional CSS class that should be added to the notice', 'help', 'membership2' ); ?> 
  930. <span class="ms-help-default"> 
  931. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  932. "" 
  933. </span> 
  934. </li> 
  935. </ul> 
  936.  
  937. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  938. <p> 
  939. <code>[ms-note type="info"]</code> 
  940. <?php _ex( 'Thanks for joining our Premium Membership!', 'help', 'membership2' ); ?> 
  941. <code>[/ms-note]</code> 
  942. </p> 
  943. <p> 
  944. <code>[ms-note type="warning"]</code> 
  945. <?php _ex( 'Please log in to access this page!', 'help', 'membership2' ); ?> 
  946. <code>[/ms-note]</code> 
  947. </p> 
  948. </div> 
  949. </div> 
  950.  
  951. <?php 
  952. /********* 
  953. ********** ms-member-info ****************************************** 
  954. *********/ 
  955. ?> 
  956.  
  957. <div id="ms-member-info" class="ms-help-box"> 
  958. <h3><code>[ms-member-info]</code></h3> 
  959.  
  960. <?php _ex( 'Displays details about the current member, like the members first name or a list of memberships he subscribed to', 'help', 'membership2' ); ?> 
  961. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  962. <div class="ms-help-details" style="display:none"> 
  963. <ul> 
  964. <li> 
  965. <code>value</code> 
  966. (email|firstname|lastname|fullname|memberships|custom) 
  967. <?php _ex( 'Defines which value to display.<br>A custom field can be set via the API (you find the API docs on the Advanced Settings tab)', 'help', 'membership2' ); ?> 
  968. <span class="ms-help-default"> 
  969. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  970. "fullname" 
  971. </span> 
  972. </li> 
  973. <li> 
  974. <code>default</code> 
  975. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  976. <?php _ex( 'Default value to display when the defined field is empty', 'help', 'membership2' ); ?> 
  977. <span class="ms-help-default"> 
  978. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  979. "" 
  980. </span> 
  981. </li> 
  982. <li> 
  983. <code>before</code> 
  984. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  985. <?php _ex( 'Display this text before the field value. Only used when the field is not empty', 'help', 'membership2' ); ?> 
  986. <span class="ms-help-default"> 
  987. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  988. "<span>" 
  989. </span> 
  990. </li> 
  991. <li> 
  992. <code>after</code> 
  993. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  994. <?php _ex( 'Display this text after the field value. Only used when the field is not empty', 'help', 'membership2' ); ?> 
  995. <span class="ms-help-default"> 
  996. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  997. "</span>" 
  998. </span> 
  999. </li> 
  1000. <li> 
  1001. <code>custom_field</code> 
  1002. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  1003. <?php _ex( 'Only relevant for the value <code>custom</code>. This is the name of the custom field to get', 'help', 'membership2' ); ?> 
  1004. <span class="ms-help-default"> 
  1005. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1006. "" 
  1007. </span> 
  1008. </li> 
  1009. <li> 
  1010. <code>list_separator</code> 
  1011. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  1012. <?php _ex( 'Used when the field value is a list (i.e. Membership list or contents of a custom field)', 'help', 'membership2' ); ?> 
  1013. <span class="ms-help-default"> 
  1014. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1015. ", " 
  1016. </span> 
  1017. </li> 
  1018. <li> 
  1019. <code>list_before</code> 
  1020. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  1021. <?php _ex( 'Used when the field value is a list (i.e. Membership list or contents of a custom field)', 'help', 'membership2' ); ?> 
  1022. <span class="ms-help-default"> 
  1023. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1024. "" 
  1025. </span> 
  1026. </li> 
  1027. <li> 
  1028. <code>list_after</code> 
  1029. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  1030. <?php _ex( 'Used when the field value is a list (i.e. Membership list or contents of a custom field)', 'help', 'membership2' ); ?> 
  1031. <span class="ms-help-default"> 
  1032. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1033. "" 
  1034. </span> 
  1035. </li> 
  1036. <li> 
  1037. <code>user</code> 
  1038. <?php _ex( '(User-ID)', 'help', 'membership2' ); ?> 
  1039. <?php _ex( 'Use this to display data of any user. If not specified then the current user is displayed', 'help', 'membership2' ); ?> 
  1040. <span class="ms-help-default"> 
  1041. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1042. </span> 
  1043. </li> 
  1044. </ul> 
  1045.  
  1046. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  1047. <p> 
  1048. <code>[ms-member-info value="fullname" default="(Guest)"]</code> 
  1049. </p> 
  1050. <p> 
  1051. <code>[ms-member-info value="memberships" default="Sign up now!" list_separator=" | " before="Your Memberships: "]</code> 
  1052. </p> 
  1053. </div> 
  1054. </div> 
  1055.  
  1056. <?php 
  1057. /** 
  1058. * Allow Add-ons to add their own shortcode documentation. 
  1059. * @since 1.0.1.0 
  1060. */ 
  1061. do_action( 'ms_view_help_shortcodes-common' ); 
  1062. ?> 
  1063.  
  1064.  
  1065.  
  1066. <hr /> 
  1067.  
  1068. <h2><?php _ex( 'Membership shortcodes', 'help', 'membership2' ); ?></h2> 
  1069.  
  1070.  
  1071. <?php 
  1072. /********* 
  1073. ********** ms-membership-title ************************************* 
  1074. *********/ 
  1075. ?> 
  1076.  
  1077. <div id="ms-membership-title" class="ms-help-box"> 
  1078. <h3><code>[ms-membership-title]</code></h3> 
  1079.  
  1080. <?php _ex( 'Displays the name of a specific membership', 'help', 'membership2' ); ?> 
  1081. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  1082. <div class="ms-help-details" style="display:none"> 
  1083. <ul> 
  1084. <li> 
  1085. <code>id</code> 
  1086. <?php _ex( '(Single ID)', 'help', 'membership2' ); ?> 
  1087. <strong><?php _ex( 'Required', 'help', 'membership2' ); ?></strong>. 
  1088. <?php _ex( 'The membership ID', 'help', 'membership2' ); ?> 
  1089. </li> 
  1090. <li> 
  1091. <code>label</code> 
  1092. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  1093. <?php _ex( 'Displayed in front of the title', 'help', 'membership2' ); ?> 
  1094. <span class="ms-help-default"> 
  1095. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1096. "<?php _e( 'Membership title:', 'membership2' ) ?>" 
  1097. </span> 
  1098. </li> 
  1099. </ul> 
  1100.  
  1101. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  1102. <p><code>[ms-membership-title id="5" label=""]</code></p> 
  1103. </div> 
  1104. </div> 
  1105.  
  1106.  
  1107. <?php 
  1108. /********* 
  1109. ********** ms-membership-price ************************************* 
  1110. *********/ 
  1111. ?> 
  1112.  
  1113. <div id="ms-membership-price" class="ms-help-box"> 
  1114. <h3><code>[ms-membership-price]</code></h3> 
  1115.  
  1116. <?php _ex( 'Displays the price of a specific membership', 'help', 'membership2' ); ?> 
  1117. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  1118. <div class="ms-help-details" style="display:none"> 
  1119. <ul> 
  1120. <li> 
  1121. <code>id</code> 
  1122. <?php _ex( '(Single ID)', 'help', 'membership2' ); ?> 
  1123. <strong><?php _ex( 'Required', 'help', 'membership2' ); ?></strong>. 
  1124. <?php _ex( 'The membership ID', 'help', 'membership2' ); ?> 
  1125. </li> 
  1126. <li> 
  1127. <code>currency</code> 
  1128. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  1129. <span class="ms-help-default"> 
  1130. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1131. yes 
  1132. </span> 
  1133. </li> 
  1134. <li> 
  1135. <code>label</code> 
  1136. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  1137. <?php _ex( 'Displayed in front of the price', 'help', 'membership2' ); ?> 
  1138. <span class="ms-help-default"> 
  1139. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1140. "<?php _e( 'Membership price:', 'membership2' ) ?>" 
  1141. </span> 
  1142. </li> 
  1143. </ul> 
  1144.  
  1145. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  1146. <p><code>[ms-membership-price id="5" currency="no" label="Only today:"]</code> $</p> 
  1147. </div> 
  1148. </div> 
  1149.  
  1150.  
  1151. <?php 
  1152. /********* 
  1153. ********** ms-membership-details *********************************** 
  1154. *********/ 
  1155. ?> 
  1156.  
  1157. <div id="ms-membership-details" class="ms-help-box"> 
  1158. <h3><code>[ms-membership-details]</code></h3> 
  1159.  
  1160. <?php _ex( 'Displays the description of a specific membership', 'help', 'membership2' ); ?> 
  1161. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  1162. <div class="ms-help-details" style="display:none"> 
  1163. <ul> 
  1164. <li> 
  1165. <code>id</code> 
  1166. <?php _ex( '(Single ID)', 'help', 'membership2' ); ?> 
  1167. <strong><?php _ex( 'Required', 'help', 'membership2' ); ?></strong>. 
  1168. <?php _ex( 'The membership ID', 'help', 'membership2' ); ?> 
  1169. </li> 
  1170. <li> 
  1171. <code>label</code> 
  1172. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  1173. <?php _ex( 'Displayed in front of the description', 'help', 'membership2' ); ?> 
  1174. <span class="ms-help-default"> 
  1175. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1176. "<?php _e( 'Membership details:', 'membership2' ) ?>" 
  1177. </span> 
  1178. </li> 
  1179. </ul> 
  1180.  
  1181. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  1182. <p><code>[ms-membership-details id="5"]</code></p> 
  1183. </div> 
  1184. </div> 
  1185.  
  1186.  
  1187. <?php 
  1188. /********* 
  1189. ********** ms-membership-buy ************************************* 
  1190. *********/ 
  1191. ?> 
  1192.  
  1193. <div id="ms-membership-buy" class="ms-help-box"> 
  1194. <h3><code>[ms-membership-buy]</code></h3> 
  1195.  
  1196. <?php _ex( 'Displays a button to buy/sign-up for the specified membership', 'help', 'membership2' ); ?> 
  1197. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  1198. <div class="ms-help-details" style="display:none"> 
  1199. <ul> 
  1200. <li> 
  1201. <code>id</code> 
  1202. <?php _ex( '(Single ID)', 'help', 'membership2' ); ?> 
  1203. <strong><?php _ex( 'Required', 'help', 'membership2' ); ?></strong>. 
  1204. <?php _ex( 'The membership ID', 'help', 'membership2' ); ?> 
  1205. </li> 
  1206. <li> 
  1207. <code>label</code> 
  1208. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  1209. <?php _ex( 'The button label', 'help', 'membership2' ); ?> 
  1210. <span class="ms-help-default"> 
  1211. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1212. "<?php _e( 'Signup', 'membership2' ); ?>" 
  1213. </span> 
  1214. </li> 
  1215. </ul> 
  1216.  
  1217. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  1218. <p><code>[ms-membership-buy id="5" label="Buy now!"]</code></p> 
  1219. </div> 
  1220. </div> 
  1221.  
  1222. <?php 
  1223. /** 
  1224. * Allow Add-ons to add their own shortcode documentation. 
  1225. * @since 1.0.1.0 
  1226. */ 
  1227. do_action( 'ms_view_help_shortcodes-membership' ); 
  1228. ?> 
  1229.  
  1230.  
  1231. <hr /> 
  1232.  
  1233. <h2><?php _ex( 'Less common shortcodes', 'help', 'membership2' ); ?></h2> 
  1234.  
  1235.  
  1236. <?php 
  1237. /********* 
  1238. ********** ms-membership-logout ************************************ 
  1239. *********/ 
  1240. ?> 
  1241.  
  1242. <div id="ms-membership-logout" class="ms-help-box"> 
  1243. <h3><code>[ms-membership-logout]</code></h3> 
  1244.  
  1245. <?php _ex( 'Displays a logout link. When the user is not logged in then the shortcode will return an empty string', 'help', 'membership2' ); ?> 
  1246. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  1247. <div class="ms-help-details" style="display:none"> 
  1248. <h4><?php _ex( 'Common options', 'help', 'membership2' ); ?></h4> 
  1249. <ul> 
  1250. <li> 
  1251. <code>redirect</code> 
  1252. <?php _ex( '(URL)', 'help', 'membership2' ); ?> 
  1253. <?php _ex( 'The page to display after the user was logged out', 'help', 'membership2' ); ?> 
  1254. <span class="ms-help-default"> 
  1255. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1256. "<?php echo MS_Model_Pages::get_url_after_logout(); ?>" 
  1257. </span> 
  1258. </li> 
  1259. </ul> 
  1260.  
  1261. <h4><?php _ex( 'More options', 'help', 'membership2' ); ?></h4> 
  1262. <ul> 
  1263. <li> 
  1264. <code>holder</code> 
  1265. <?php _ex( 'Wrapper element (div, span, p)', 'help', 'membership2' ); ?> 
  1266. <span class="ms-help-default"> 
  1267. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1268. "div" 
  1269. </span> 
  1270. </li> 
  1271. <li> 
  1272. <code>holder_class</code> 
  1273. <?php _ex( 'Class for the wrapper', 'help', 'membership2' ); ?> 
  1274. <span class="ms-help-default"> 
  1275. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1276. "ms-logout-form" 
  1277. </span> 
  1278. </li> 
  1279. </ul> 
  1280.  
  1281. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  1282. <p><code>[ms-membership-logout]</code></p> 
  1283. </div> 
  1284. </div> 
  1285.  
  1286.  
  1287. <?php 
  1288. /********* 
  1289. ********** ms-membership-account-link ****************************** 
  1290. *********/ 
  1291. ?> 
  1292.  
  1293. <div id="ms-membership-account-link" class="ms-help-box"> 
  1294. <h3><code>[ms-membership-account-link]</code></h3> 
  1295.  
  1296. <?php _ex( 'Inserts a simple link to the Account page', 'help', 'membership2' ); ?> 
  1297. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  1298. <div class="ms-help-details" style="display:none"> 
  1299. <ul> 
  1300. <li> 
  1301. <code>label</code> 
  1302. <?php _ex( '(Text)', 'help', 'membership2' ); ?> 
  1303. <?php _ex( 'The contents of the link', 'help', 'membership2' ); ?> 
  1304. <span class="ms-help-default"> 
  1305. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1306. "<?php _e( 'Visit your account page for more information', 'membership2' ) ?>" 
  1307. </span> 
  1308. </li> 
  1309. </ul> 
  1310.  
  1311. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  1312. <p> 
  1313. <?php _ex( 'Manage subscriptions in', 'help', 'membership2' ); ?> 
  1314. <code>[ms-membership-account-link label="<?php _ex( 'your Account', 'help', 'membership2' ); ?>"]!</code> 
  1315. </p> 
  1316. </div> 
  1317. </div> 
  1318.  
  1319.  
  1320. <?php 
  1321. /********* 
  1322. ********** ms-protection-message *********************************** 
  1323. *********/ 
  1324. ?> 
  1325.  
  1326. <div id="ms-protection-message" class="ms-help-box"> 
  1327. <h3><code>[ms-protection-message]</code></h3> 
  1328.  
  1329. <?php _ex( 'Displays the protection message on pages that the user cannot access. This shortcode should only be used on the Membership Page "Membership2"', 'help', 'membership2' ); ?> 
  1330. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  1331. <div class="ms-help-details" style="display:none"> 
  1332. <ul> 
  1333. <li><em><?php _ex( 'no arguments', 'help', 'membership2' ); ?></em></li> 
  1334. </ul> 
  1335.  
  1336. <p> 
  1337. <?php _ex( 'Tip: If the user is not logged in this shortcode will also display the default login form. <em>If you provide your own login form via the shortcode [ms-membership-login] then this shortcode will not add a second login form.</em>', 'help', 'membership2' ); ?> 
  1338. </p> 
  1339.  
  1340. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  1341. <p><code>[ms-protection-message]</code></p> 
  1342. </div> 
  1343. </div> 
  1344.  
  1345. <?php 
  1346. /********* 
  1347. ********** ms-membership-account *********************************** 
  1348. *********/ 
  1349. ?> 
  1350.  
  1351. <div id="ms-membership-account" class="ms-help-box"> 
  1352. <h3><code>[ms-membership-account]</code></h3> 
  1353.  
  1354. <?php _ex( 'Displays the "My Account" page of the currently logged in user', 'help', 'membership2' ); ?> 
  1355. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  1356. <div class="ms-help-details" style="display:none"> 
  1357. <h4><?php _e( 'Membership section', 'membership2' ); ?></h4> 
  1358. <ul> 
  1359. <li> 
  1360. <code>show_membership</code> 
  1361. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  1362. <?php _ex( 'Whether to display the users current memberships', 'help', 'membership2' ); ?> 
  1363. <span class="ms-help-default"> 
  1364. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1365. yes 
  1366. </span> 
  1367. </li> 
  1368. <li> 
  1369. <code>membership_title</code> 
  1370. <?php _ex( '(text)', 'help', 'membership2' ); ?> 
  1371. <?php _ex( 'Title of the current memberships section', 'help', 'membership2' ); ?> 
  1372. <span class="ms-help-default"> 
  1373. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1374. "<?php _e( 'Your Membership', 'membership2' ); ?>" 
  1375. </span> 
  1376. </li> 
  1377. <li> 
  1378. <code>show_membership_change</code> 
  1379. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  1380. <?php _ex( 'Display the link to subscribe to other memberships', 'help', 'membership2' ); ?> 
  1381. <span class="ms-help-default"> 
  1382. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1383. yes 
  1384. </span> 
  1385. </li> 
  1386. <li> 
  1387. <code>membership_change_label</code> 
  1388. <?php _ex( '(text)', 'help', 'membership2' ); ?> 
  1389. <?php _ex( 'Title of the link', 'help', 'membership2' ); ?> 
  1390. <span class="ms-help-default"> 
  1391. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1392. "<?php _e( 'Change', 'membership2' ); ?>" 
  1393. </span> 
  1394. </li> 
  1395. </ul> 
  1396.  
  1397. <h4><?php _e( 'Profile section', 'membership2' ); ?></h4> 
  1398. <ul> 
  1399. <li> 
  1400. <code>show_profile</code> 
  1401. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  1402. <?php _ex( 'Whether to display the users profile details', 'help', 'membership2' ); ?> 
  1403. <span class="ms-help-default"> 
  1404. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1405. yes 
  1406. </span> 
  1407. </li> 
  1408. <li> 
  1409. <code>profile_title</code> 
  1410. <?php _ex( '(text)', 'help', 'membership2' ); ?> 
  1411. <?php _ex( 'Title of the user profile section', 'help', 'membership2' ); ?> 
  1412. <span class="ms-help-default"> 
  1413. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1414. "<?php _e( 'Personal details', 'membership2' ); ?>" 
  1415. </span> 
  1416. </li> 
  1417. <li> 
  1418. <code>show_profile_change</code> 
  1419. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  1420. <?php _ex( 'Display the link to edit the users profile', 'help', 'membership2' ); ?> 
  1421. <span class="ms-help-default"> 
  1422. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1423. yes 
  1424. </span> 
  1425. </li> 
  1426. <li> 
  1427. <code>profile_change_label</code> 
  1428. <?php _ex( '(text)', 'help', 'membership2' ); ?> 
  1429. <?php _ex( 'Title of the link', 'help', 'membership2' ); ?> 
  1430. <span class="ms-help-default"> 
  1431. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1432. "<?php _e( 'Edit', 'membership2' ); ?>" 
  1433. </span> 
  1434. </li> 
  1435. </ul> 
  1436.  
  1437. <h4><?php _e( 'Invoices section', 'membership2' ); ?></h4> 
  1438. <ul> 
  1439. <li> 
  1440. <code>show_invoices</code> 
  1441. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  1442. <?php _ex( 'Whether to display the section listing recent invoices', 'help', 'membership2' ); ?> 
  1443. <span class="ms-help-default"> 
  1444. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1445. yes 
  1446. </span> 
  1447. </li> 
  1448. <li> 
  1449. <code>invoices_title</code> 
  1450. <?php _ex( '(text)', 'help', 'membership2' ); ?> 
  1451. <?php _ex( 'Title of the invoices section', 'help', 'membership2' ); ?> 
  1452. <span class="ms-help-default"> 
  1453. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1454. "<?php _e( 'Invoices', 'membership2' ); ?>" 
  1455. </span> 
  1456. </li> 
  1457. <li> 
  1458. <code>limit_invoices</code> 
  1459. <?php _ex( '(Number)', 'help', 'membership2' ); ?> 
  1460. <?php _ex( 'Number of invoices to display in the recent invoices list', 'help', 'membership2' ); ?> 
  1461. <span class="ms-help-default"> 
  1462. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1463. 10 
  1464. </span> 
  1465. </li> 
  1466. <li> 
  1467. <code>show_all_invoices</code> 
  1468. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  1469. <?php _ex( 'Display the link to the complete list of users invoices', 'help', 'membership2' ); ?> 
  1470. <span class="ms-help-default"> 
  1471. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1472. yes 
  1473. </span> 
  1474. </li> 
  1475. <li> 
  1476. <code>invoices_details_label</code> 
  1477. <?php _ex( '(text)', 'help', 'membership2' ); ?> 
  1478. <?php _ex( 'Title of the link', 'help', 'membership2' ); ?> 
  1479. <span class="ms-help-default"> 
  1480. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1481. "<?php _e( 'View all', 'membership2' ); ?>" 
  1482. </span> 
  1483. </li> 
  1484. </ul> 
  1485.  
  1486. <h4><?php _e( 'Activities section', 'membership2' ); ?></h4> 
  1487. <ul> 
  1488. <li> 
  1489. <code>show_activity</code> 
  1490. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  1491. <?php _ex( 'Whether to display the section containing the users recent activities', 'help', 'membership2' ); ?> 
  1492. <span class="ms-help-default"> 
  1493. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1494. yes 
  1495. </span> 
  1496. </li> 
  1497. <li> 
  1498. <code>activity_title</code> 
  1499. <?php _ex( '(text)', 'help', 'membership2' ); ?> 
  1500. <?php _ex( 'Title of the invoices section', 'help', 'membership2' ); ?> 
  1501. <span class="ms-help-default"> 
  1502. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1503. "<?php _e( 'Activities', 'membership2' ); ?>" 
  1504. </span> 
  1505. </li> 
  1506. <li> 
  1507. <code>limit_activities</code> 
  1508. <?php _ex( '(Number)', 'help', 'membership2' ); ?> 
  1509. <?php _ex( 'Number of items to display in the recent activities list', 'help', 'membership2' ); ?> 
  1510. <span class="ms-help-default"> 
  1511. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1512. 10 
  1513. </span> 
  1514. </li> 
  1515. <li> 
  1516. <code>show_all_activities</code> 
  1517. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  1518. <?php _ex( 'Display the link to the complete list of users invoices', 'help', 'membership2' ); ?> 
  1519. <span class="ms-help-default"> 
  1520. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1521. yes 
  1522. </span> 
  1523. </li> 
  1524. <li> 
  1525. <code>activity_details_label</code> 
  1526. <?php _ex( '(text)', 'help', 'membership2' ); ?> 
  1527. <?php _ex( 'Title of the link', 'help', 'membership2' ); ?> 
  1528. <span class="ms-help-default"> 
  1529. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1530. "<?php _e( 'View all', 'membership2' ); ?>" 
  1531. </span> 
  1532. </li> 
  1533. </ul> 
  1534.  
  1535. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  1536. <p><code>[ms-membership-account]</code></p> 
  1537. <p><code>[ms-membership-account show_profile_change="no" show_activity="no" limit_invoices="3" invoices_title="Last 3 invoices"]</code></p> 
  1538. </div> 
  1539. </div> 
  1540.  
  1541.  
  1542. <?php 
  1543. /********* 
  1544. ********** ms-invoice ********************************************** 
  1545. *********/ 
  1546. ?> 
  1547.  
  1548. <div id="ms-invoice" class="ms-help-box"> 
  1549. <h3><code>[ms-invoice]</code></h3> 
  1550.  
  1551. <?php _ex( 'Display an invoice to the user. Not very useful in most cases, as the invoice can only be viewed by the invoice recipient', 'help', 'membership2' ); ?> 
  1552. <div class="ms-help-toggle"><?php _ex( 'Expand', 'help', 'membership2' ); ?></div> 
  1553. <div class="ms-help-details" style="display:none"> 
  1554. <ul> 
  1555. <li> 
  1556. <code>id</code> 
  1557. <?php _ex( '(Single ID)', 'help', 'membership2' ); ?> 
  1558. <strong><?php _ex( 'Required', 'help', 'membership2' ); ?></strong>. 
  1559. <?php _ex( 'The Invoice ID', 'help', 'membership2' ); ?> 
  1560. </li> 
  1561. <li> 
  1562. <code>pay_button</code> 
  1563. <?php _ex( '(yes|no)', 'help', 'membership2' ); ?> 
  1564. <?php _ex( 'If the invoice should contain a "Pay" button', 'help', 'membership2' ); ?> 
  1565. <span class="ms-help-default"> 
  1566. <?php _ex( 'Default:', 'help', 'membership2' ); ?> 
  1567. yes 
  1568. </span> 
  1569. </li> 
  1570. </ul> 
  1571.  
  1572. <p><em><?php _ex( 'Example:', 'help', 'membership2' ); ?></em></p> 
  1573. <p><code>[ms-invoice id="123"]</code></p> 
  1574. </div> 
  1575. </div> 
  1576.  
  1577. <?php 
  1578. /** 
  1579. * Allow Add-ons to add their own shortcode documentation. 
  1580. * @since 1.0.1.0 
  1581. */ 
  1582. do_action( 'ms_view_help_shortcodes-other' ); 
  1583. ?> 
  1584.  
  1585. <hr /> 
  1586. <?php 
  1587. $html = ob_get_clean(); 
  1588.  
  1589. return apply_filters( 
  1590. 'ms_view_help_shortcodes',  
  1591. $html 
  1592. ); 
  1593.  
  1594. /** 
  1595. * Renders the Network-Wide Protection help contents 
  1596. * @since 1.0.0 
  1597. * @return string 
  1598. */ 
  1599. public function render_tab_network() { 
  1600. ob_start(); 
  1601. ?> 
  1602. <h2><?php _ex( 'Network-Wide Protection', 'help', 'membership2' ); ?></h2> 
  1603. <?php if ( function_exists( 'membership2_init_pro_app' ) ) : ?> 
  1604. <p> 
  1605. <strong><?php _ex( 'Enable Network-Wide mode', 'help', 'membership2' ); ?></strong><br /> 
  1606. <?php _ex( 'In wp-config.php add the line <code>define( "MS_PROTECT_NETWORK", true );</code> to enable network wide protection. Important: Settings for Network-Wide mode are stored differently than normal (site-wide) settings. After switching to network wide mode the first time you have to set up the plugin again.<br />Note: The plugin will automatically enable itself network wide, you only need to add the option above.', 'help', 'membership2' ); ?> 
  1607. </p> 
  1608. <p> 
  1609. <strong><?php _ex( 'Disable Network-Wide mode', 'help', 'membership2' ); ?></strong><br /> 
  1610. <?php _ex( 'Simply remove the line <code>define( "MS_PROTECT_NETWORK", true );</code> from wp-config.php to switch back to site-wide protection. All your previous Memberships will still be there (if you created site-wide memberships before enabling network-wide mode)<br />Note: After this change the plugin will still be enabled network wide, you have to go to Network Admin > Plugins and disable it if you only want to protect certain sites in your network.', 'help', 'membership2' ); ?> 
  1611. </p> 
  1612. <?php else : ?> 
  1613. <p> 
  1614. <?php 
  1615. printf( 
  1616. _x( 'Network wide protection is a Pro feature. %sRead more about the Pro Version here%s!', 'help', 'membership2' ),  
  1617. '<a href="http://premium.wpmudev.org/project/membership" target="_blank">',  
  1618. '</a>' 
  1619. ); 
  1620. ?> 
  1621. </p> 
  1622. <?php endif; ?> 
  1623. <hr /> 
  1624. <?php 
  1625. return ob_get_clean(); 
  1626.  
  1627. /** 
  1628. * Renders the Advanced settings help contents 
  1629. * @since 1.0.0 
  1630. * @return string 
  1631. */ 
  1632. public function render_tab_advanced() { 
  1633. ob_start(); 
  1634. ?> 
  1635. <h2><?php _ex( 'Advanced Settings', 'help', 'membership2' ); ?></h2> 
  1636. <p> 
  1637. <strong><?php _ex( 'Reset', 'help', 'membership2' ); ?></strong><br /> 
  1638. <?php _ex( 'Open the Settings page and add <code>&reset=1</code> to the URL. A prompt is displayed that can be used to reset all Membership2 settings. Use this to clean all traces after testing the plugin.', 'help', 'membership2' ); ?> 
  1639. </p> 
  1640. <p> 
  1641. <strong><?php _ex( 'Stop Emails', 'help', 'membership2' ); ?></strong><br /> 
  1642. <?php _ex( 'In wp-config.php add the line <code>define( "MS_STOP_EMAILS", true );</code> to force Procted Content to <em>not</em> send any emails to Members. This can be used when testing to prevent your users from getting email notifications.', 'help', 'membership2' ); ?> 
  1643. </p> 
  1644. <p> 
  1645. <strong><?php _ex( 'Reduce Emails', 'help', 'membership2' ); ?></strong><br /> 
  1646. <?php _ex( 'By default your members will get an email for every event that is handled (see the "Settings > Automated Email Responses" section). However, you can reduce the emails sent to your users by adding the following line to your wp-config.php <code>define( "MS_DUPLICATE_EMAIL_HOURS", 24 );</code>. This will prevent the same email being sent more than once every 24 hours.', 'help', 'membership2' ); ?> 
  1647. </p> 
  1648. <p> 
  1649. <strong><?php _ex( 'Lock Subscription Status', 'help', 'membership2' ); ?></strong><br /> 
  1650. <?php _ex( 'In wp-config.php add the line <code>define( "MS_LOCK_SUBSCRIPTIONS", true );</code> to disable automatic status-checks of subscriptions. Registration is still possible, but after this the Subscription status will not change anymore. Effectively Subscriptions will not expire anymore.', 'help', 'membership2' ); ?> 
  1651. </p> 
  1652. <p> 
  1653. <strong><?php _ex( 'No Admin Shortcode Preview', 'help', 'membership2' ); ?></strong><br /> 
  1654. <?php _ex( 'By default the user will see additional information on the page when using the shortcode <code>[ms-protect-content]</code>. To disable this additional output add the line <code>define( "MS_NO_SHORTCODE_PREVIEW", true );</code> in wp-config.php.', 'help', 'membership2' ); ?> 
  1655. </p> 
  1656. <p> 
  1657. <strong><?php _ex( 'Define Membership 2 Admin users', 'help', 'membership2' ); ?></strong><br /> 
  1658. <?php _ex( 'By default all users with capability <code>manage_options</code> are considered Membership 2 admin users and have unlimited access to the whole site (including protected content). To change the required capability add the line <code>define( "MS_ADMIN_CAPABILITY", "manage_options" );</code> in wp-config.php. When you set the value to <code>false</code> then only the Superadmin has full access to the site.', 'help', 'membership2' ); ?> 
  1659. </p> 
  1660. <p> 
  1661. <strong><?php _ex( 'Debugging incorrect page access', 'help', 'membership2' ); ?></strong><br /> 
  1662. <?php _ex( 'M2 has a small debugging tool built into it, that allows you to analyze access issues for the current user. To use this tool you have to set <code>define( "WP_DEBUG", true );</code> on your site. Next open the page that you want to analyze and add <code>?explain=access</code> to the page URL. As a result you will not see the normal page contents but a lot of useful details on the access permissions.', 'help', 'membership2' ); ?> 
  1663. </p> 
  1664. <hr /> 
  1665. <?php 
  1666. return ob_get_clean(); 
  1667.  
  1668. /** 
  1669. * Renders the Customize Membership 2 help contents 
  1670. * @since 1.0.1.2 
  1671. * @return string 
  1672. */ 
  1673. public function render_tab_branding() { 
  1674. ob_start(); 
  1675. ?> 
  1676. <h2><?php _ex( 'Template Hierarchy', 'help', 'membership2' ); ?></h2> 
  1677. <p> 
  1678. <?php 
  1679. printf( 
  1680. _x( 'By default Membership 2 will render the page contents defined in your %sMembership 2 Pages%s using the themes standard template for single pages. However, you can customize this very easy by creating special %stemplate files%s in the theme.', 'help', 'membership2' ),  
  1681. '<a href="' . MS_Controller_Plugin::get_admin_url( 'settings' ) . '">',  
  1682. '</a>',  
  1683. '<a href="https://developer.wordpress.org/themes/basics/template-files/" target="_blank">',  
  1684. '</a>' 
  1685. ); 
  1686. ?> 
  1687. </p> 
  1688. <p> 
  1689. <strong><?php _ex( 'Account Page', 'help', 'membership2' ); ?></strong><br /> 
  1690. <?php _ex( '1. <tt>m2-account.php</tt>', 'help', 'membership2' ); ?><br /> 
  1691. <?php _ex( '2. Default single-page template', 'help', 'membership2' ); ?> 
  1692. </p> 
  1693. <p> 
  1694. <strong><?php _ex( 'Membership List Page', 'help', 'membership2' ); ?></strong><br /> 
  1695. <?php _ex( '1. <tt>m2-memberships-100.php</tt> (Not the list, only checkout for Membership 100)', 'help', 'membership2' ); ?><br /> 
  1696. <?php _ex( '2. <tt>m2-memberships.php</tt>', 'help', 'membership2' ); ?><br /> 
  1697. <?php _ex( '3. Default single-page template', 'help', 'membership2' ); ?> 
  1698. </p> 
  1699. <p> 
  1700. <strong><?php _ex( 'Registration Page', 'help', 'membership2' ); ?></strong><br /> 
  1701. <?php _ex( '1. <tt>m2-register-100.php</tt> (Not the list, only checkout for Membership 100)', 'help', 'membership2' ); ?><br /> 
  1702. <?php _ex( '2. <tt>m2-register.php</tt>', 'help', 'membership2' ); ?><br /> 
  1703. <?php _ex( '3. Default single-page template', 'help', 'membership2' ); ?> 
  1704. </p> 
  1705. <p> 
  1706. <strong><?php _ex( 'Thank-You Page', 'help', 'membership2' ); ?></strong><br /> 
  1707. <?php _ex( '1. <tt>m2-registration-complete-100.php</tt> (After subscribing to Membership 100)', 'help', 'membership2' ); ?><br /> 
  1708. <?php _ex( '2. <tt>m2-registration-complete.php</tt>', 'help', 'membership2' ); ?><br /> 
  1709. <?php _ex( '3. Default single-page template', 'help', 'membership2' ); ?> 
  1710. </p> 
  1711. <p> 
  1712. <strong><?php _ex( 'Protected Content Page', 'help', 'membership2' ); ?></strong><br /> 
  1713. <?php _ex( '1. <tt>m2-protected-content-100.php</tt> (Page is protected by Membership 100)', 'help', 'membership2' ); ?><br /> 
  1714. <?php _ex( '2. <tt>m2-protected-content.php</tt>', 'help', 'membership2' ); ?><br /> 
  1715. <?php _ex( '3. Default single-page template', 'help', 'membership2' ); ?> 
  1716. </p> 
  1717. <p> 
  1718. <strong><?php _ex( 'Invoice Layout', 'help', 'membership2' ); ?></strong><br /> 
  1719. <?php _ex( '1. <tt>m2-invoice-100.php</tt> (Used by all invoices for Membership 100)', 'help', 'membership2' ); ?><br /> 
  1720. <?php _ex( '2. <tt>m2-invoice.php</tt>', 'help', 'membership2' ); ?><br /> 
  1721. <?php _ex( '3. <tt>single-ms_invoice.php</tt>', 'help', 'membership2' ); ?><br /> 
  1722. <?php _ex( '4. Default invoice template by Membership 2', 'help', 'membership2' ); ?> 
  1723. </p> 
  1724. <hr /> 
  1725. <?php 
  1726. return ob_get_clean();