public function prepare_fields()
 {
     $model = MS_Addon_Redirect::model();
     $action = MS_Addon_Redirect::AJAX_SAVE_SETTING;
     $fields = array('redirect_login' => array('id' => 'redirect_login', 'type' => MS_Helper_Html::INPUT_TYPE_TEXT, 'title' => __('After Login', 'membership2'), 'desc' => __('This page is displayed to users right after login.', 'membership2'), 'placeholder' => MS_Model_Pages::get_url_after_login(false), 'value' => $model->get('redirect_login'), 'class' => 'ms-text-large', 'ajax_data' => array('field' => 'redirect_login', 'action' => $action)), 'redirect_logout' => array('id' => 'redirect_logout', 'type' => MS_Helper_Html::INPUT_TYPE_TEXT, 'title' => __('After Logout', 'membership2'), 'desc' => __('This page is displayed to users right after they did log out.', 'membership2'), 'placeholder' => MS_Model_Pages::get_url_after_logout(false), 'value' => $model->get('redirect_logout'), 'class' => 'ms-text-large', 'ajax_data' => array('field' => 'redirect_logout', 'action' => $action)));
     return $fields;
 }
Example #2
0
 /**
  * Outputs the options form on admin
  *
  * @since  1.0.0
  *
  * @param array $instance The widget options
  */
 public function form($instance)
 {
     $title = __('Login', MS_TEXT_DOMAIN);
     $redirect_login = '';
     $redirect_logout = '';
     $shortcode_args = '';
     if (isset($instance['title'])) {
         $title = $instance['title'];
     }
     if (isset($instance['redirect_login'])) {
         $redirect_login = $instance['redirect_login'];
     }
     if (isset($instance['redirect_logout'])) {
         $redirect_logout = $instance['redirect_logout'];
     }
     if (isset($instance['shortcode_args'])) {
         $shortcode_args = $instance['shortcode_args'];
     }
     $placeholder_login = MS_Model_Pages::get_url_after_login();
     if (strlen($placeholder_login) > 55) {
         $parts = explode('://', $placeholder_login);
         $placeholder_login = $parts[0] . '://' . substr($parts[1], 0, 5) . '…' . substr($parts[1], -38);
     }
     $placeholder_logout = MS_Model_Pages::get_url_after_logout();
     if (strlen($placeholder_logout) > 55) {
         $parts = explode('://', $placeholder_logout);
         $placeholder_logout = $parts[0] . '://' . substr($parts[1], 0, 5) . '…' . substr($parts[1], -38);
     }
     $field_title = array('id' => $this->get_field_id('title'), 'name' => $this->get_field_name('title'), 'type' => MS_Helper_Html::INPUT_TYPE_TEXT, 'title' => __('Title:', MS_TEXT_DOMAIN), 'value' => $title, 'class' => 'widefat');
     $field_redirect_login = array('id' => $this->get_field_id('redirect_login'), 'name' => $this->get_field_name('redirect_login'), 'type' => MS_Helper_Html::INPUT_TYPE_TEXT, 'title' => __('Show this page after login:'******'value' => $redirect_login, 'placeholder' => $placeholder_login, 'class' => 'widefat');
     $field_redirect_logout = array('id' => $this->get_field_id('redirect_logout'), 'name' => $this->get_field_name('redirect_logout'), 'type' => MS_Helper_Html::INPUT_TYPE_TEXT, 'title' => __('Show this page after logout:', MS_TEXT_DOMAIN), 'value' => $redirect_logout, 'placeholder' => $placeholder_logout, 'class' => 'widefat');
     $field_shortcode_args = array('id' => $this->get_field_id('shortcode_args'), 'name' => $this->get_field_name('shortcode_args'), 'type' => MS_Helper_Html::INPUT_TYPE_TEXT, 'title' => __('Shortcode Options:', MS_TEXT_DOMAIN), 'desc' => sprintf(__('Arguments to pass to the %slogin shortcode%s', MS_TEXT_DOMAIN), sprintf('<a href="%s#ms-membership-login" target="_blank">', MS_Controller_Plugin::get_admin_url('help', array('tab' => 'shortcodes'))), '</a>'), 'value' => $shortcode_args, 'placeholder' => 'header="no"', 'class' => 'widefat');
     MS_Helper_Html::html_element($field_title);
     MS_Helper_Html::html_element($field_redirect_login);
     MS_Helper_Html::html_element($field_redirect_logout);
     MS_Helper_Html::html_element($field_shortcode_args);
 }
 /**
  * Redirect user to page.
  *
  * @since  1.0.2.4
  *
  * @return void
  */
 public function logout_redirect()
 {
     wp_redirect(MS_Model_Pages::get_url_after_logout());
     exit;
 }
 /**
  * Membership logout shortcode callback function.
  *
  * @since  1.0.0
  *
  * @param mixed[] $atts Shortcode attributes.
  */
 public function membership_logout($atts)
 {
     MS_Helper_Shortcode::did_shortcode(MS_Helper_Shortcode::SCODE_LOGOUT);
     $data = apply_filters('ms_controller_shortcode_membership_logout_atts', shortcode_atts(array('holder' => 'div', 'holderclass' => 'ms-logout-form', 'redirect' => MS_Model_Pages::get_url_after_logout()), $atts));
     // The form attribute triggers the logout-link to be displayed.
     $data['form'] = 'logout';
     $data['redirect_logout'] = $data['redirect'];
     $view = MS_Factory::create('MS_View_Shortcode_Login');
     $view->data = apply_filters('ms_view_shortcode_logout_data', $data, $this);
     return $view->to_html();
 }
    /**
     * Renders the Shortcode help contents
     *
     * @since  1.0.0
     * @return string
     */
    public function render_tab_shortcodes()
    {
        ob_start();
        ?>

		<?php 
        /*********
         **********   ms-protect-content   **************************************
         *********/
        ?>
		<h2><?php 
        _ex('Common shortcodes', 'help', MS_TEXT_DOMAIN);
        ?>
</h2>

		<div id="ms-protect-content" class="ms-help-box">
			<h3><code>[ms-protect-content]</code></h3>

			<?php 
        _ex('Wrap this around any content to protect it for/from certain members (based on their Membership level)', 'help', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<ul>
					<li>
						<code>id</code>
						<?php 
        _ex('(ID list)', 'help', MS_TEXT_DOMAIN);
        ?>
						<strong><?php 
        _ex('Required', 'help', MS_TEXT_DOMAIN);
        ?>
</strong>.
						<?php 
        _ex('One or more membership IDs. Shortcode is triggered when the user belongs to at least one of these memberships', 'help', MS_TEXT_DOMAIN);
        ?>
					</li>
					<li>
						<code>access</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Defines if members of the memberships can see or not see the content', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
					<li>
						<code>silent</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Silent protection removes content without displaying any message to the user', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							no
						</span>
					</li>
					<li>
						<code>msg</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Provide a custom protection message. <em>This will only be displayed when silent is not true</em>', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p>
					<code>[ms-protect-content id="1"]</code>
					<?php 
        _ex('Only members of membership-1 can see this!', 'help', MS_TEXT_DOMAIN);
        ?>
					<code>[/ms-protect-content]</code>
				</p>
				<p>
					<code>[ms-protect-content id="2,3" access="no" silent="yes"]</code>
					<?php 
        _ex('Everybody except members of memberships 2 or 3 can see this!', 'help', MS_TEXT_DOMAIN);
        ?>
					<code>[/ms-protect-content]</code>
				</p>
			</div>
		</div>


		<?php 
        /*********
         **********   ms-user   *************************************************
         *********/
        ?>

		<div id="ms-user" class="ms-help-box">
			<h3><code>[ms-user]</code></h3>

			<?php 
        _ex('Shows the content only to certain users (ignoring the Membership level)', 'help', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<ul>
					<li>
						<code>type</code>
						<?php 
        _ex('(all|loggedin|guest|admin)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Decide, which type of users will see the message', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"loggedin"
						</span>
					</li>
					<li>
						<code>msg</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Provide a custom protection message that is displayed to users that have no access to the content', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p>
					<code>[ms-user]</code>
					<?php 
        _ex('You are logged in', 'help', MS_TEXT_DOMAIN);
        ?>
					<code>[/ms-user]</code>
				</p>
				<p>
					<code>[ms-user type="guest"]</code>
					<?php 
        printf(htmlspecialchars(_x('<a href="">Sign up now</a>! <a href="">Already have an account</a>?', 'help', MS_TEXT_DOMAIN)));
        ?>
					<code>[/ms-user]</code>
				</p>
			</div>
		</div>


		<?php 
        /*********
         **********   ms-membership-register-user   *****************************
         *********/
        ?>

		<div id="ms-membership-register-user" class="ms-help-box">
			<h3><code>[ms-membership-register-user]</code></h3>

			<?php 
        _ex('Displays a registration form. Visitors can create a WordPress user account with this form', 'help', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<ul>
					<li>
						<code>title</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Title of the register form', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Create an Account', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code>first_name</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Initial value for first name', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>last_name</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Initial value for last name', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>username</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Initial value for username', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>email</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Initial value for email address', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>membership_id</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?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', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>loginlink</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Display a login-link below the form', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"yes"
						</span>
					</li>
				</ul>

				<h4><?php 
        _e('Field labels', MS_TEXT_DOMAIN);
        ?>
</h4>
				<ul>
					<li>
						<code>label_first_name</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							"<?php 
        _e('First Name', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code>label_last_name</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							"<?php 
        _e('Last Name', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code>label_username</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							"<?php 
        _e('Choose a Username', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code>label_email</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							"<?php 
        _e('Email Address', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code>label_password</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							"<?php 
        _e('Password', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code>label_password2</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							"<?php 
        _e('Confirm Password', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code>label_register</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							"<?php 
        _e('Register My Account', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code>hint_first_name</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Placeholder inside Field', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							""
						</span>
					</li>
					<li>
						<code>hint_last_name</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Placeholder inside Field', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							""
						</span>
					</li>
					<li>
						<code>hint_username</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Placeholder inside Field', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							""
						</span>
					</li>
					<li>
						<code>hint_email</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Placeholder inside Field', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							""
						</span>
					</li>
					<li>
						<code>hint_password</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Placeholder inside Field', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							""
						</span>
					</li>
					<li>
						<code>hint_password2</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Placeholder inside Field', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							""
						</span>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p><code>[ms-membership-register-user]</code></p>
				<p><code>[ms-membership-register-user title="" hint_email="*****@*****.**" label_password2="Repeat"]</code></p>
			</div>
		</div>


		<?php 
        /*********
         **********   ms-membership-signup   ************************************
         *********/
        ?>

		<div id="ms-membership-signup" class="ms-help-box">
			<h3><code>[ms-membership-signup]</code></h3>

			<?php 
        _ex('Shows a list of all memberships which the current user can sign up for', 'help', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<h4><?php 
        _ex('Common options', 'help', MS_TEXT_DOMAIN);
        ?>
</h4>
				<ul>
					<li>
						<code><?php 
        echo esc_html(MS_Helper_Membership::MEMBERSHIP_ACTION_SIGNUP);
        ?>
_text</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Button label', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Signup', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code><?php 
        echo esc_html(MS_Helper_Membership::MEMBERSHIP_ACTION_MOVE);
        ?>
_text</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Button label', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Change', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code><?php 
        echo esc_html(MS_Helper_Membership::MEMBERSHIP_ACTION_CANCEL);
        ?>
_text</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Button label', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Cancel', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code><?php 
        echo esc_html(MS_Helper_Membership::MEMBERSHIP_ACTION_RENEW);
        ?>
_text</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Button label', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Renew', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code><?php 
        echo esc_html(MS_Helper_Membership::MEMBERSHIP_ACTION_PAY);
        ?>
_text</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Button label', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Complete Payment', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p><code>[ms-membership-signup]</code></p>
			</div>
		</div>



		<?php 
        /*********
         **********   ms-membership-login   *************************************
         *********/
        ?>

		<div id="ms-membership-login" class="ms-help-box">
			<h3><code>[ms-membership-login]</code></h3>

			<?php 
        _ex('Displays the login/lost-password form, or for logged in users a logout link', 'help', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<h4><?php 
        _ex('Common options', 'help', MS_TEXT_DOMAIN);
        ?>
</h4>
				<ul>
					<li>
						<code>title</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('The title above the login form', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>show_labels</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Set to "yes" to display the labels for username and password in front of the input fields', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							no
						</span>
					</li>
					<li>
						<code>redirect_login</code>
						<?php 
        _ex('(URL)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('The page to display after the user was logged in', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        echo MS_Model_Pages::get_url_after_login();
        ?>
"
						</span>
					</li>
					<li>
						<code>redirect_logout</code>
						<?php 
        _ex('(URL)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('The page to display after the user was logged out', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        echo MS_Model_Pages::get_url_after_logout();
        ?>
"
						</span>
					</li>
					<li>
						<code>header</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
					<li>
						<code>register</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
					<li>
						<code>autofocus</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Focus the login-form on page load', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
				</ul>

				<h4><?php 
        _ex('More options', 'help', MS_TEXT_DOMAIN);
        ?>
</h4>
				<ul>
					<li>
						<code>holder</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"div"
						</span>
					</li>
					<li>
						<code>holderclass</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"ms-login-form"
						</span>
					</li>
					<li>
						<code>item</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>itemclass</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>prefix</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>postfix</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>wrapwith</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>wrapwithclass</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>form</code>
						<?php 
        _ex('(login|lost|logout)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Defines which form should be displayed. An empty value allows the plugin to automatically choose between login/logout', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>nav_pos</code>
						<?php 
        _ex('(top|bottom)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"top"
						</span>
					</li>
				</ul>

				<h4><?php 
        printf(__('Options only for <code>%s</code>', MS_TEXT_DOMAIN), 'form="login"');
        ?>
</h4>
				<ul>
					<li>
						<code>show_note</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Show a "You are not logged in" note above the login form', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
					<li>
						<code>label_username</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Username');
        ?>
"
						</span>
					</li>
					<li>
						<code>label_password</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Password');
        ?>
"
						</span>
					</li>
					<li>
						<code>label_remember</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Remember Me');
        ?>
"
						</span>
					</li>
					<li>
						<code>label_log_in</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Log In');
        ?>
"
						</span>
					</li>
					<li>
						<code>id_login_form</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"loginform"
						</span>
					</li>
					<li>
						<code>id_username</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"user_login"
						</span>
					</li>
					<li>
						<code>id_password</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"user_pass"
						</span>
					</li>
					<li>
						<code>id_remember</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"rememberme"
						</span>
					</li>
					<li>
						<code>id_login</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"wp-submit"
						</span>
					</li>
					<li>
						<code>show_remember</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
					<li>
						<code>value_username</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>value_remember</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Set this to "yes" to default the "Remember me" checkbox to checked', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							no
						</span>
					</li>
				</ul>

				<h4><?php 
        printf(__('Options only for <code>%s</code>', MS_TEXT_DOMAIN), 'form="lost"');
        ?>
</h4>
				<ul>
					<li>
						<code>label_lost_username</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Username or E-mail', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code>label_lostpass</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Reset Password', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code>id_lost_form</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"lostpasswordform"
						</span>
					</li>
					<li>
						<code>id_lost_username</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"user_login"
						</span>
					</li>
					<li>
						<code>id_lostpass</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"wp-submit"
						</span>
					</li>
					<li>
						<code>value_username</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p><code>[ms-membership-login]</code></p>
				<p>
					<code>[ms-membership-login form="logout"]</code>
					<?php 
        _ex('is identical to', 'help', MS_TEXT_DOMAIN);
        ?>
					<code>[ms-membership-logout]</code>
				</p>
			</div>
		</div>


		<?php 
        /*********
         **********   ms-note   *************************************************
         *********/
        ?>

		<div id="ms-note" class="ms-help-box">
			<h3><code>[ms-note]</code></h3>

			<?php 
        _ex('Displays a info/success message to the user', 'help', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<ul>
					<li>
						<code>type</code>
						(info|warning)
						<?php 
        _ex('The type of the notice. Info is green and warning red', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"info"
						</span>
					</li>
					<li>
						<code>class</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('An additional CSS class that should be added to the notice', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p>
					<code>[ms-note type="info"]</code>
					<?php 
        _ex('Thanks for joining our Premium Membership!', 'help', MS_TEXT_DOMAIN);
        ?>
					<code>[/ms-note]</code>
				</p>
				<p>
					<code>[ms-note type="warning"]</code>
					<?php 
        _ex('Please log in to access this page!', 'help', MS_TEXT_DOMAIN);
        ?>
					<code>[/ms-note]</code>
				</p>
			</div>
		</div>

		<?php 
        /*********
         **********   ms-member-info   ******************************************
         *********/
        ?>

		<div id="ms-member-info" class="ms-help-box">
			<h3><code>[ms-member-info]</code></h3>

			<?php 
        _ex('Displays details about the current member, like the members first name or a list of memberships he subscribed to', 'help', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<ul>
					<li>
						<code>value</code>
						(email|firstname|lastname|fullname|memberships|custom)
						<?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', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"fullname"
						</span>
					</li>
					<li>
						<code>default</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Default value to display when the defined field is empty', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>before</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Display this text before the field value. Only used when the field is not empty', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"&lt;span&gt;"
						</span>
					</li>
					<li>
						<code>after</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Display this text after the field value. Only used when the field is not empty', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"&lt;/span&gt;"
						</span>
					</li>
					<li>
						<code>custom_field</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Only relevant for the value <code>custom</code>. This is the name of the custom field to get', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>list_separator</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Used when the field value is a list (i.e. Membership list or contents of a custom field)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							", "
						</span>
					</li>
					<li>
						<code>list_before</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Used when the field value is a list (i.e. Membership list or contents of a custom field)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>list_after</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Used when the field value is a list (i.e. Membership list or contents of a custom field)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							""
						</span>
					</li>
					<li>
						<code>user</code>
						<?php 
        _ex('(User-ID)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Use this to display data of any user. If not specified then the current user is displayed', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							0
						</span>
					</li>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p>
					<code>[ms-member-info value="fullname" default="(Guest)"]</code>
				</p>
				<p>
					<code>[ms-member-info value="memberships" default="Sign up now!" list_separator=" | " before="Your Memberships: "]</code>
				</p>
			</div>
		</div>

		<?php 
        /**
         * Allow Add-ons to add their own shortcode documentation.
         *
         * @since  1.0.1.0
         */
        do_action('ms_view_help_shortcodes-common');
        ?>



		<hr />

		<h2><?php 
        _ex('Membership shortcodes', 'help', MS_TEXT_DOMAIN);
        ?>
</h2>


		<?php 
        /*********
         **********   ms-membership-title   *************************************
         *********/
        ?>

		<div id="ms-membership-title" class="ms-help-box">
			<h3><code>[ms-membership-title]</code></h3>

			<?php 
        _ex('Displays the name of a specific membership', 'help', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<ul>
					<li>
						<code>id</code>
						<?php 
        _ex('(Single ID)', 'help', MS_TEXT_DOMAIN);
        ?>
						<strong><?php 
        _ex('Required', 'help', MS_TEXT_DOMAIN);
        ?>
</strong>.
						<?php 
        _ex('The membership ID', 'help', MS_TEXT_DOMAIN);
        ?>
					</li>
					<li>
						<code>label</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Displayed in front of the title', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Membership title:', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p><code>[ms-membership-title id="5" label=""]</code></p>
			</div>
		</div>


		<?php 
        /*********
         **********   ms-membership-price   *************************************
         *********/
        ?>

		<div id="ms-membership-price" class="ms-help-box">
			<h3><code>[ms-membership-price]</code></h3>

			<?php 
        _ex('Displays the price of a specific membership', 'help', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<ul>
					<li>
						<code>id</code>
						<?php 
        _ex('(Single ID)', 'help', MS_TEXT_DOMAIN);
        ?>
						<strong><?php 
        _ex('Required', 'help', MS_TEXT_DOMAIN);
        ?>
</strong>.
						<?php 
        _ex('The membership ID', 'help', MS_TEXT_DOMAIN);
        ?>
					</li>
					<li>
						<code>currency</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
					<li>
						<code>label</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Displayed in front of the price', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Membership price:', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p><code>[ms-membership-price id="5" currency="no" label="Only today:"]</code> $</p>
			</div>
		</div>


		<?php 
        /*********
         **********   ms-membership-details   ***********************************
         *********/
        ?>

		<div id="ms-membership-details" class="ms-help-box">
			<h3><code>[ms-membership-details]</code></h3>

			<?php 
        _ex('Displays the description of a specific membership', 'help', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<ul>
					<li>
						<code>id</code>
						<?php 
        _ex('(Single ID)', 'help', MS_TEXT_DOMAIN);
        ?>
						<strong><?php 
        _ex('Required', 'help', MS_TEXT_DOMAIN);
        ?>
</strong>.
						<?php 
        _ex('The membership ID', 'help', MS_TEXT_DOMAIN);
        ?>
					</li>
					<li>
						<code>label</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Displayed in front of the description', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Membership details:', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p><code>[ms-membership-details id="5"]</code></p>
			</div>
		</div>


		<?php 
        /*********
         **********   ms-membership-buy   *************************************
         *********/
        ?>

		<div id="ms-membership-buy" class="ms-help-box">
			<h3><code>[ms-membership-buy]</code></h3>

			<?php 
        _ex('Displays a button to buy/sign-up for the specified membership', 'help', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<ul>
					<li>
						<code>id</code>
						<?php 
        _ex('(Single ID)', 'help', MS_TEXT_DOMAIN);
        ?>
						<strong><?php 
        _ex('Required', 'help', MS_TEXT_DOMAIN);
        ?>
</strong>.
						<?php 
        _ex('The membership ID', 'help', MS_TEXT_DOMAIN);
        ?>
					</li>
					<li>
						<code>label</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('The button label', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Signup', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p><code>[ms-membership-buy id="5" label="Buy now!"]</code></p>
			</div>
		</div>

		<?php 
        /**
         * Allow Add-ons to add their own shortcode documentation.
         *
         * @since  1.0.1.0
         */
        do_action('ms_view_help_shortcodes-membership');
        ?>


		<hr />

		<h2><?php 
        _ex('Less common shortcodes', 'help', MS_TEXT_DOMAIN);
        ?>
</h2>


		<?php 
        /*********
         **********   ms-membership-logout   ************************************
         *********/
        ?>

		<div id="ms-membership-logout" class="ms-help-box">
			<h3><code>[ms-membership-logout]</code></h3>

			<?php 
        _ex('Displays a logout link. When the user is not logged in then the shortcode will return an empty string', 'help', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<h4><?php 
        _ex('Common options', 'help', MS_TEXT_DOMAIN);
        ?>
</h4>
				<ul>
					<li>
						<code>redirect</code>
						<?php 
        _ex('(URL)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('The page to display after the user was logged out', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        echo MS_Model_Pages::get_url_after_logout();
        ?>
"
						</span>
					</li>
				</ul>

				<h4><?php 
        _ex('More options', 'help', MS_TEXT_DOMAIN);
        ?>
</h4>
				<ul>
					<li>
						<code>holder</code>
						<?php 
        _ex('Wrapper element (div, span, p)', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"div"
						</span>
					</li>
					<li>
						<code>holder_class</code>
						<?php 
        _ex('Class for the wrapper', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"ms-logout-form"
						</span>
					</li>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p><code>[ms-membership-logout]</code></p>
			</div>
		</div>


		<?php 
        /*********
         **********   ms-membership-account-link   ******************************
         *********/
        ?>

		<div id="ms-membership-account-link" class="ms-help-box">
			<h3><code>[ms-membership-account-link]</code></h3>

			<?php 
        _ex('Inserts a simple link to the Account page', 'help', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<ul>
					<li>
						<code>label</code>
						<?php 
        _ex('(Text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('The contents of the link', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Visit your account page for more information', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p>
					<?php 
        _ex('Manage subscriptions in', 'help', MS_TEXT_DOMAIN);
        ?>
					<code>[ms-membership-account-link label="<?php 
        _ex('your Account', 'help', MS_TEXT_DOMAIN);
        ?>
"]!</code>
				</p>
			</div>
		</div>


		<?php 
        /*********
         **********   ms-protection-message   ***********************************
         *********/
        ?>

		<div id="ms-protection-message" class="ms-help-box">
			<h3><code>[ms-protection-message]</code></h3>

			<?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', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<ul>
					<li><em><?php 
        _ex('no arguments', 'help', MS_TEXT_DOMAIN);
        ?>
</em></li>
				</ul>

				<p>
					<?php 
        _ex('Tipp: 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', MS_TEXT_DOMAIN);
        ?>
				</p>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p><code>[ms-protection-message]</code></p>
			</div>
		</div>

		<?php 
        /*********
         **********   ms-membership-account   ***********************************
         *********/
        ?>

		<div id="ms-membership-account" class="ms-help-box">
			<h3><code>[ms-membership-account]</code></h3>

			<?php 
        _ex('Displays the "My Account" page of the currently logged in user', 'help', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<h4><?php 
        _e('Membership section', MS_TEXT_DOMAIN);
        ?>
</h4>
				<ul>
					<li>
						<code>show_membership</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Whether to display the users current memberships', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
					<li>
						<code>membership_title</code>
						<?php 
        _ex('(text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Title of the current memberships section', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Your Membership', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code>show_membership_change</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Display the link to subscribe to other memberships', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
					<li>
						<code>membership_change_label</code>
						<?php 
        _ex('(text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Title of the link', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Change', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
				</ul>

				<h4><?php 
        _e('Profile section', MS_TEXT_DOMAIN);
        ?>
</h4>
				<ul>
					<li>
						<code>show_profile</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Whether to display the users profile details', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
					<li>
						<code>profile_title</code>
						<?php 
        _ex('(text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Title of the user profile section', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Personal details', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code>show_profile_change</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Display the link to edit the users profile', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
					<li>
						<code>profile_change_label</code>
						<?php 
        _ex('(text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Title of the link', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Edit', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
				</ul>

				<h4><?php 
        _e('Invoices section', MS_TEXT_DOMAIN);
        ?>
</h4>
				<ul>
					<li>
						<code>show_invoices</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Whether to display the section listing recent invoices', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
					<li>
						<code>invoices_title</code>
						<?php 
        _ex('(text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Title of the invoices section', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Invoices', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code>limit_invoices</code>
						<?php 
        _ex('(Number)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Number of invoices to display in the recent invoices list', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							10
						</span>
					</li>
					<li>
						<code>show_all_invoices</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Display the link to the complete list of users invoices', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
					<li>
						<code>invoices_details_label</code>
						<?php 
        _ex('(text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Title of the link', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('View all', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
				</ul>

				<h4><?php 
        _e('Activities section', MS_TEXT_DOMAIN);
        ?>
</h4>
				<ul>
					<li>
						<code>show_activity</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Whether to display the section containing the users recent activities', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
					<li>
						<code>activity_title</code>
						<?php 
        _ex('(text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Title of the invoices section', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('Activities', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
					<li>
						<code>limit_activities</code>
						<?php 
        _ex('(Number)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Number of items to display in the recent activities list', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							10
						</span>
					</li>
					<li>
						<code>show_all_activities</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Display the link to the complete list of users invoices', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
					<li>
						<code>activity_details_label</code>
						<?php 
        _ex('(text)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('Title of the link', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							"<?php 
        _e('View all', MS_TEXT_DOMAIN);
        ?>
"
						</span>
					</li>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p><code>[ms-membership-account]</code></p>
				<p><code>[ms-membership-account show_profile_change="no" show_activity="no" limit_invoices="3" invoices_title="Last 3 invoices"]</code></p>
			</div>
		</div>


		<?php 
        /*********
         **********   ms-invoice   **********************************************
         *********/
        ?>

		<div id="ms-invoice" class="ms-help-box">
			<h3><code>[ms-invoice]</code></h3>

			<?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', MS_TEXT_DOMAIN);
        ?>
			<div class="ms-help-toggle"><?php 
        _ex('Expand', 'help', MS_TEXT_DOMAIN);
        ?>
</div>
			<div class="ms-help-details" style="display:none">
				<ul>
					<li>
						<code>id</code>
						<?php 
        _ex('(Single ID)', 'help', MS_TEXT_DOMAIN);
        ?>
						<strong><?php 
        _ex('Required', 'help', MS_TEXT_DOMAIN);
        ?>
</strong>.
						<?php 
        _ex('The Invoice ID', 'help', MS_TEXT_DOMAIN);
        ?>
					</li>
					<li>
						<code>pay_button</code>
						<?php 
        _ex('(yes|no)', 'help', MS_TEXT_DOMAIN);
        ?>
						<?php 
        _ex('If the invoice should contain a "Pay" button', 'help', MS_TEXT_DOMAIN);
        ?>
						<span class="ms-help-default">
							<?php 
        _ex('Default:', 'help', MS_TEXT_DOMAIN);
        ?>
							yes
						</span>
					</li>
				</ul>

				<p><em><?php 
        _ex('Example:', 'help', MS_TEXT_DOMAIN);
        ?>
</em></p>
				<p><code>[ms-invoice id="123"]</code></p>
			</div>
		</div>

		<?php 
        /**
         * Allow Add-ons to add their own shortcode documentation.
         *
         * @since  1.0.1.0
         */
        do_action('ms_view_help_shortcodes-other');
        ?>

		<hr />
		<?php 
        $html = ob_get_clean();
        return apply_filters('ms_view_help_shortcodes', $html);
    }