function mo2f_show_help_and_troubleshooting($current_user)
{
    ?>
	<div class="mo2f_table_layout">
		<?php 
    echo mo2f_check_if_registered_with_miniorange($current_user);
    ?>
		<br>
		<ul class="mo2f_faqs">
			<?php 
    if (current_user_can('manage_options')) {
        ?>
			
			<h3><a  data-toggle="collapse" href="#question1" aria-expanded="false" ><li>How to enable PHP cURL extension? (Pre-requisite)</li></a></h3>
				<div class="collapse" id="question1">
				cURL is enabled by default but in case you have disabled it, follow the steps to enable
				<ol>
					<li>Open php.ini(it's usually in /etc/ or in php folder on the server).</li>
					<li>Search for extension=php_curl.dll. Uncomment it by removing the semi-colon( ; ) in front of it.</li>
					<li>Restart the Apache Server.</li>
					</ol>
					For any further queries, please submit a query on right hand side in our <b>Support Section</b>.
				
				</div>
				<hr>
				<h3><a  data-toggle="collapse" href="#question2" aria-expanded="false" ><li>I am getting error - curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set.
				</li></a></h3>
				<div class="collapse" id="question2">
				Just setsafe_mode = Off in your php.ini file (it's usually in /etc/ on the server). If that's already off, then look around for the open_basedir in the php.ini file, and change it to open_basedir = .
				</div>
				<hr>
				<h3><a  data-toggle="collapse" href="#question3" aria-expanded="false" ><li>I did not recieve OTP while trying to register with miniOrange. What should I do?
				</li></a></h3>
				<div class="collapse" id="question3">
				The OTP is sent to your email address with which you have registered with miniOrange. If you can't see the email from miniOrange in your mails, please make sure to check your <b>SPAM folder</b>. If you don't see an email even in SPAM folder, please submit a query on right hand side in our <b>Support Section</b> or you can contact us at info@miniorange.com.
				</div>
				<hr>
				<h3><a  data-toggle="collapse" href="#question4" aria-expanded="false" ><li>I forgot the password of my miniOrange account. How can I reset it?
				</li></a></h3>
				<div class="collapse" id="question4">
				There are two cases according to the page you see -
				<ul>
				<li>1. <b>Login with miniOrange screen:</b> You should click on forgot password link. You will get a new password on your email address with which you have registered with miniOrange . Now you can login with the new password.</li><br>
				<li>2. <b>Register with miniOrange screen:</b> Enter your email ID and any random password in password and confirm password input box. This will redirect you to Login with miniOrange screen. Now follow first step.</li>
				</ul>

				</div>
				<hr>
				<h3><a  data-toggle="collapse" href="#question5" aria-expanded="false" ><li>I have a custom / front-end login page on my site and I want the look and feel to remain the same when I add 2 factor ?</li></a></h3>
				<div class="collapse" id="question5">
					 If you have a custom login form other than wp-login.php then you can copy the shortcode from <b>Advanced Options Tab</b> and embed in your login form. If you need any help setting up 2-Factor for your custom login form, please submit a query in our <b>Support Section</b> on right hand side.
				</div>
				<hr>
				<h3><a  data-toggle="collapse" href="#question6" aria-expanded="false" ><li>I have Woocommerce theme login page on my site. How can I enable Two Factor ?</li></a></h3>
				<div class="collapse" id="question6">
					 If you have Woocommerce theme login then go to Advanced Options Tab and check <b>Enable Two-Factor for Woocommerce Front End Login</b>. If you need any help setting up 2-Factor for your Woocommerce theme login form, please submit a query in our <b>Support Section</b> on right hand side.
				</div>
				<hr>
				<h3><a  data-toggle="collapse" href="#question7" aria-expanded="false" ><li>I am trying to login with Two-Factor but my screen got blank after entering username and password. I am locked out of my account. What to do now ?</li></a></h3>
				<div class="collapse" id="question7">
					If you have an additional administrator account whose Two Factor is not enabled yet. Login with it. Otherwise,
					Go to WordPress Database. Select wp_options, search for mo2f_activate_plugin key and update its value to 0. Two Factor will get disabled.
				</div>
				<hr>
				<h3><a  data-toggle="collapse" href="#question8" aria-expanded="false" ><li>If you are using any Security Plugin in WordPress like Simple Security Firewall, All in One WP Security Plugin and you are not able to login with Two-Factor.</li></a></h3>
				<div class="collapse" id="question8">
					Our Two-Factor plugin is compatible with most of the security plugins, but if it is not working for you.
				   Please submit a query in our <b>Support Section</b> on right hand side or you can contact us at <b>info@miniorange.com</b>.
				</div>
				<hr>
				<h3><a  data-toggle="collapse" href="#question9" aria-expanded="false" ><li>If you are using any render blocking javascript and css plugin like Async JS and CSS Plugin and you are not able to login with Two-Factor or your screen got blank.</li></a></h3>
				<div class="collapse" id="question9">
					If you are using <b>Async JS and CSS Plugin</b>. Please go to its settings and add jquery in the list of exceptions and save settings. It will work. If you are still not able to get it right,
				   Please submit a query in our <b>Support Section</b> on right hand side or you can contact us at <b>info@miniorange.com</b>.
				</div>
				<hr>
				<h3><a  data-toggle="collapse" href="#question10" aria-expanded="false" ><li>I want to enable 2-factor only for administrators ?</li></a></h3>
				<div class="collapse" id="question10">
					2-Factor is enabled by default for administrators on plugin activation. You just need to complete your account setup and configure your mobile from <b>Configure Mobile Tab</b>. Once this is done administrators can login using 2-Factor and other users can still login with their password.
				</div>
				<hr>
			<h3><a  data-toggle="collapse" href="#question11" aria-expanded="false" ><li>I want to enable 2 factor for administrators and end users ?</li></a></h3>
				<div class="collapse" id="question11">
					Go to <b>Login Settings Tab</b> and check <b>Enable 2-Factor for all other users</b>. Enable 2-Factor for admins is checked by default.
				</div>
				<hr>

				<h3><a  data-toggle="collapse" href="#question12" aria-expanded="false" ><li>My phone has no internet connectivity, how can I login?</li></a></h3>
				<div class="collapse" id="question12">
				   You can login using our alternate login method. Please follow below steps to login or <a href="admin.php?page=miniOrange_2_factor_settings&amp;mo2f_tab=mo2f_demo#myCarousel2">click here</a> to see how it works.<br>
					<br><ol>
					 <li>Enter your username and click on login with your phone.</li>
					  <li>Click on <b>Phone is Offline?</b> button below QR Code.</li>
					   <li>You will see a textbox to enter one time passcode.</li>
					   <li>Open miniOrange Authenticator app and Go to Soft Token Tab.</li>
					   <li>Enter the one time passcode shown in miniOrange Authenticator app in textbox.</li>
					   <li>Click on submit button to validate the otp.</li>
					   <li>Once you are authenticated, you will be logged in.</li>
					  </ol>
				</div>
				<hr>
			<h3><a  data-toggle="collapse" href="#question13" aria-expanded="false" ><li>My users have different types of phones. What phones are supported?</li></a></h3>
				<div class="collapse" id="question13">
					We support all types of phone. Smart Phones, Basic Phones, Landlines, etc. Go to Setup Two-Factor Tab and select Two-Factor method of your choice from a range of 6 different options.
				</div>
				<hr>
			<h3><a  data-toggle="collapse" href="#question14" aria-expanded="false" ><li>What if a user does not have a smart phone?</li></a></h3>
				<div class="collapse" id="question14">
					You can select OTP over SMS, Phone Call Verification or Email Verification as your Two-Factor method. All these methods are supported on basic phones.
				</div>
				<hr>
			<?php 
    }
    ?>
	
			<h3><a data-toggle="collapse" href="#question15" aria-expanded="false" ><li>What if I am trying to login from my phone ?</li></a></h3>
				<div class="collapse" id="question15">
					If you are logging in from your phone, just enter the one time passcode from miniOrange Authenticator App.
					Go to Soft Token Tab to see one time passcode.
				</div>
				<hr>
			<?php 
    if (current_user_can('manage_options')) {
        ?>
				
			
			<h3><a  data-toggle="collapse" href="#question16" aria-expanded="false" ><li>I want to hide default login form and just want to show login with phone?</li></a></h3>
				<div class="collapse" id="question16">
					You should go to <a href="admin.php?page=miniOrange_2_factor_settings&amp;mo2f_tab=mo2f_login">Login Settings Tab</a> and check <b>I want to hide default login form.</b> checkbox to hide the default login form. 
					
					
				</div>
				<hr>
			<?php 
    }
    ?>
			<h3><a  data-toggle="collapse" href="#question17" aria-expanded="false" ><li>My phone has no internet connectivity, how can I login?</li></a></h3>
				<div class="collapse" id="question17">
				   You can login using our alternate login method. Please follow below steps to login or <a href="admin.php?page=miniOrange_2_factor_settings&amp;mo2f_tab=mo2f_demo#myCarousel2">click here</a> to see how it works.<br>
					<br><ol>
					 <li>Enter your username and click on login with your phone.</li>
					  <li>Click on <b>Phone is Offline?</b> button below QR Code.</li>
					   <li>You will see a textbox to enter one time passcode.</li>
					   <li>Open miniOrange Authenticator app and Go to Soft Token Tab.</li>
					   <li>Enter the one time passcode shown in miniOrange Authenticator app in textbox.</li>
					   <li>Click on submit button to validate the otp.</li>
					   <li>Once you are authenticated, you will be logged in.</li>
					  </ol>
				</div>
				<hr>
			<h3><a  data-toggle="collapse" href="#question18" aria-expanded="false" ><li>My phone is lost, stolen or discharged. How can I login?</li></a></h3>
				<div class="collapse" id="question18">
				    You can login using our alternate login method. Please follow below steps to login or <a href="admin.php?page=miniOrange_2_factor_settings&amp;mo2f_tab=mo2f_demo#myCarousel3">click here</a> to see how it works.
					<br><br>
					<ol>
					<li>Enter your username and click on login with your phone.</li>
					  <li>Click on <b>Forgot Phone?</b> button below QR Code.</li>
					   <li>You will see a textbox to enter one time passcode.</li>
					   <li>Check your registered email and copy the one time passcode in this textbox.</li>
					   <li>Click on submit button to validate the otp.</li>
					   <li>Once you are authenticated, you will be logged in.</li>
					   </ol>
				</div>
				<hr>
			<h3><a  data-toggle="collapse" href="#question19" aria-expanded="false" ><li>My phone has no internet connectivity and i am entering the one time passcode from miniOrange Authenticator App, it says Invalid OTP.</li></a></h3>
				<div class="collapse" id="question19">
					Click on the <b>Settings Icon</b> on top right corner in <b>miniOrange Authenticator App</b> and then press <b>Sync button</b> under 'Time correction for codes' to sync your time with miniOrange Servers. If you still can't get it right, submit a query here in our <b>support section</b>.<br><br>
				</div>
				<hr>
				<?php 
    if (current_user_can('manage_options')) {
        ?>
			
		
			<h3><a  data-toggle="collapse" href="#question20" aria-expanded="false" ><li>I want to go back to default login with password.</li></a></h3>
				<div class="collapse" id="question20">
					You can disable Two Factor from Login settings Tab by unchecking Enable Two Factor Plugin checkbox.
				</div>
				<hr>
		
	
		
	
		
			<h3><a>For any other query/problem/request, please feel free to submit a query in our support section on right hand side. We are happy to help you and will get back to you as soon as possible.</a></h3>
		   	<?php 
    }
    ?>
		</ul>
					
	</div>
	<?php 
}
function show_2_factor_pricing_page($current_user)
{
    ?>
		<div class="mo2f_table_layout">
		<?php 
    echo mo2f_check_if_registered_with_miniorange($current_user);
    ?>
		<table class="mo2f_pricing_table">
		<h2>Licensing Plans
		<span style="float:right"><input type="button" name="ok_btn" id="ok_btn" class="button button-primary button-large" value="OK, Got It" onclick="window.location.href='admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mobile_configure'" /></span>
		</h2><hr>
		<tr>
			<td><div class="mo2f_thumbnail mo2f_pricing_free_tab" >
				<h3 class="mo2f_pricing_header">Free</h3>
				<h4 class="mo2f_pricing_sub_header">( You are automatically on this plan )</h4>
				<hr>
				<p class="mo2f_pricing_text">$0 / year</p>
				<hr>
				<p class="mo2f_pricing_text">For 1 user - Forever</p>
				<hr>
				<p><br></p>
				<p class="mo2f_pricing_text">All Authentication methods included here</p>
				<br>
				<hr>
				<p class="mo2f_pricing_text">Basic Support by Email</p>
			</div></td>
			<td><div class="mo2f_thumbnail mo2f_pricing_paid_tab">
				<h3 class="mo2f_pricing_header">Premium</h3>
				<h4 class="mo2f_pricing_sub_header">( Contact us to upgrade to this plan ) *</h4>
				<hr>
				<p class="mo2f_pricing_text">$1 / user / year **</p>
				<hr>
				<p class="mo2f_pricing_text">Unlimited Users ***</p>
				<hr>
				<p class="mo2f_pricing_text">All features included here<br>
				(All Authentication methods, User Management, Dashboard Access, Device Profile Views, Customized UI for login screens)</p>
				
				<hr>
				<p class="mo2f_pricing_text">Premium Support Plans Available</p>
			</div></td>
		</td>
		</tr>
		
		</table>
		<p>* You can mail us at <a href="mailto:info@miniorange.com"><b>info@miniorange.com</b></a> or submit the support form on right hand-side to contact us.</p>
		<p>** Telephony credits are needed for certain authentication methods and they need to be bought separately.</p>
		<p>*** Volume discounts are available.</p>
		<br>
		
						
		</div>
		
	<?php 
}
<div class="mo2f_table_layout">
		<?php 
echo mo2f_check_if_registered_with_miniorange($current_user);
?>
	
	<h3>How to Setup OTP Over SMS ? 
	<div style="float:right;"><a href="admin.php?page=miniOrange_2_factor_settings&amp;mo2f_tab=mobile_configure">←Back</a></div></h3><hr>
	    <div class="mo2f_help_container">
		<div id="myCarousel8" class="carousel slide" data-ride="carousel" >
		<ol class="carousel-indicators">
						<li data-target="#myCarousel8" data-slide-to="0" class="active"></li>
						<li data-target="#myCarousel8" data-slide-to="1"></li>
						<li data-target="#myCarousel8" data-slide-to="2"></li>
						<li data-target="#myCarousel8" data-slide-to="3"></li>
					
					
						</ol>
						<div class="carousel-inner" role="listbox">
						<div class="item active">
							      <center><p>Select OTP Over SMS from Setup Two-Factor Tab.</p></center>
							  <img class="first-slide" style="padding-left:3%;" src="http://miniorange.com/images/help/mo2f_sms1.png" alt="First slide">
							 </div>
							<div class="item">
							   <center><p>Enter your phone number and click on verify button.</p></center>
							 <img class="first-slide" style="padding-left:13%;" src="http://miniorange.com/images/help/mo2f_sms2.png" alt="First slide">
							 </div>
							<div class="item">
							 <p>A one time passcode is sent to your mobile number. Enter the one time passcode here and click on <b>Validate OTP</b> button.</p>
							  <img class="first-slide" style="padding-left:13%;" src="http://miniorange.com/images/help/mo2f_sms3.png" alt="First slide">
							</div>
						   <div class="item">
function show_2_factor_login_settings($current_user)
{
    $opt = (array) get_option('mo2f_auth_methods_for_users');
    ?>
	<div class="mo2f_table_layout">
			<?php 
    echo mo2f_check_if_registered_with_miniorange($current_user);
    ?>
				
			    <form name="f"  id="login_settings_form" method="post" action="">
				<input type="hidden" name="option" value="mo_auth_login_settings_save" />
				<span>
				<h3>Select Roles to enable 2-Factor
				<input type="submit" name="submit" value="Save Settings" style="float:right;" class="button button-primary button-large" <?php 
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 /></h3><span>
				<hr><br>
				
				<?php 
    echo miniorange_2_factor_user_roles($current_user);
    ?>
				<br>
				<div id="mo2f_note"><b>Note:</b> Selecting the above roles will enable 2-Factor for all users associated with that role.Users of the selected role who have not setup their 2-Factor will be able to setup 2 factor during inline registration.</div>
				<br />
				<div style="margin-left:6%;">
				<input type='checkbox' name='mo2f_authmethods[]'  value='OUT OF BAND EMAIL' <?php 
    echo in_array("OUT OF BAND EMAIL", $opt) ? 'checked="checked"' : '';
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />Email Verification&nbsp;&nbsp;
				<input type='checkbox' name='mo2f_authmethods[]'  value='SMS' <?php 
    echo in_array("SMS", $opt) ? 'checked="checked"' : '';
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />OTP Over SMS&nbsp;&nbsp;
				<input type='checkbox' name='mo2f_authmethods[]'  value='PHONE VERIFICATION' <?php 
    echo in_array("PHONE VERIFICATION", $opt) ? 'checked="checked"' : '';
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />Phone Call Verification&nbsp;&nbsp;
				<input type='checkbox' name='mo2f_authmethods[]'  value='KBA' <?php 
    echo in_array("KBA", $opt) ? 'checked="checked"' : '';
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />Security Questions (KBA)&nbsp;&nbsp;<br /><br />
				<input type='checkbox' name='mo2f_authmethods[]'  value='SOFT TOKEN' <?php 
    echo in_array("SOFT TOKEN", $opt) ? 'checked="checked"' : '';
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />Soft Token&nbsp;&nbsp;
				<input type='checkbox' name='mo2f_authmethods[]'  value='MOBILE AUTHENTICATION' <?php 
    echo in_array("MOBILE AUTHENTICATION", $opt) ? 'checked="checked"' : '';
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />QR Code Authentication&nbsp;&nbsp;
				<input type='checkbox' name='mo2f_authmethods[]'  value='PUSH NOTIFICATIONS' <?php 
    echo in_array("PUSH NOTIFICATIONS", $opt) ? 'checked="checked"' : '';
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />Push Notifications&nbsp;&nbsp;
				<input type='checkbox' name='mo2f_authmethods[]'  value='GOOGLE AUTHENTICATOR' <?php 
    echo in_array("GOOGLE AUTHENTICATOR", $opt) ? 'checked="checked"' : '';
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />Google Authenticator&nbsp;&nbsp;
				
				 <br><br><div id="mo2f_note"><b>Note:</b> You can select which Two Factor methods you want to enable for your users. By default all Two Factor methods are enabled for all users of the role you have selected above.</div>
				
				<br>
				
				 <input type="radio" name="mo2f_inline_registration" value="1" <?php 
    checked(get_option('mo2f_inline_registration') == 1);
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />
				 Enforce 2 Factor registration for users at login time.&nbsp;&nbsp;
				 <input type="radio" name="mo2f_inline_registration" value="0" <?php 
    checked(get_option('mo2f_inline_registration') == 0);
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />
				 Skip 2 Factor registration at login.
				 <br><br>
				 <div id="mo2f_note"><b>Note:</b> If this option is enabled then users have to setup their two-factor account forcefully during their login. By selecting second option, you will provide your users to skip their two-factor setup during login.</div>
				 <br />
				 </div>
				
				
				
				<h3>Select Login Screen Options</h3><hr><br>
				<input type="radio"   name="mo2f_login_policy"  value="1"
						<?php 
    checked(get_option('mo2f_login_policy'));
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />
						Login with password + 2nd Factor <span style="color:red">(Recommended)</span>&nbsp;&nbsp;
				<br><br>
				<div id="mo2f_note"><b>Note:</b> By default 2nd Factor is enabled after password authentication. If you do not want to remember passwords anymore and just login with 2nd Factor, please select 2nd option.</div>
				<br>
				<div style="margin-left:6%;">
				 <input type="checkbox" id="mo2f_deviceid_enabled" name="mo2f_deviceid_enabled" value="1" <?php 
    checked(get_option('mo2f_deviceid_enabled') == 1);
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />Enable '<b>Remember device</b>' option <span style="color:red">&nbsp;&nbsp (Applicable only for <i>Login with password + 2nd Factor)</i></span>
				 <br /><br />
				 <div id="mo2f_note"><b>Note:</b> Checking this option will display an option '<b>Remember this device</b>' on 2nd factor screen. In the next login from the same device, user will bypass 2nd factor, i.e. user will be logged in through username + password only.</div>
				 </div>
				<br>
				
				<input type="radio"   name="mo2f_login_policy"  value="0"
						<?php 
    checked(!get_option('mo2f_login_policy'));
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />
						Login with 2nd Factor only <span style="color:red">(No password required.)</span> &nbsp;<a class="btn btn-link" data-toggle="collapse" href="#preview1" aria-expanded="false">See preview</a>
				<br>
				<div class="collapse" id="preview1" style="height:300px;">
					<center><br>
					<img style="height:300px;" src="http://miniorange.com/images/help/login-help-1.png" >
					</center>
				 </div> 
			    <br><div id="mo2f_note"><b>Note:</b> Checking this option will add login with your phone button below default login form. Click above link to see the preview.</div>
				<div id="loginphonediv" hidden>	<br>
				<input type="checkbox" id="mo2f_loginwith_phone" name="mo2f_loginwith_phone" value="1" <?php 
    checked(get_option('mo2f_show_loginwith_phone') == 1);
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 /> 
				I want to hide default login form. &nbsp;<a class="btn btn-link" data-toggle="collapse" href="#preview2" aria-expanded="false">See preview</a>
				<br>
				<div class="collapse" id="preview2" style="height:300px;">
					<center><br>
					<img style="height:300px;" src="http://miniorange.com/images/help/login-help-3.png" >
					</center>
				 </div> 
				<br><div id="mo2f_note"><b>Note:</b> Checking this option will hide default login form and just show login with your phone. Click above link to see the preview.</div>
			
				 </div>
				 <br>
				 <h3>What happens if my phone is lost, discharged or not with me</h3><hr>
				 <br>
				 <input type="checkbox" id="mo2f_forgotphone" name="mo2f_forgotphone" value="1" <?php 
    checked(get_option('mo2f_enable_forgotphone') == 1);
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />
				 Enable Forgot Phone.
				 <span style="color:red;">( If you disable this checkbox, then users will not get this option.)</span><br />
				 <br /><div id="mo2f_note"><b>Note:</b> A one time passcode over registered email will be sent to verify the user. User has to enter one time passcode to bypass login with your phone.</div>
				<br>
				
				<h3>Enable Two-Factor plugin</h3>
				<hr>
				 <br>
				 <input type="checkbox" id="mo2f_activate_plugin" name="mo2f_activate_plugin" value="1" <?php 
    checked(get_option('mo2f_activate_plugin') == 1);
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />
				 Enable Two-Factor plugin. <span style="color:red;">( If you disable this checkbox, Two-Factor plugin will not invoke for any user during login.)</span><br />
				 <br /><div id="mo2f_note"><b>Note:</b> Disabling this option will allow all users to login with their username and password.Two-Factor will not invoke during login.</div>
				<br>
				
				<br>
				<input type="submit" name="submit" value="Save Settings" class="button button-primary button-large" <?php 
    if (get_user_meta($current_user->ID, 'mo_2factor_user_registration_status', true) == 'MO_2_FACTOR_PLUGIN_SETTINGS') {
    } else {
        echo 'disabled';
    }
    ?>
 />
				<br /><br />
			</form>
			<script>
				
				if(jQuery("input[name=mo2f_login_policy]:radio:checked").val() == 0){
					jQuery('#loginphonediv').show();
				}
				jQuery("input[name=mo2f_login_policy]:radio").change(function () {
					if (this.value == 1) {
						jQuery('#loginphonediv').hide();
					}else{
						jQuery('#loginphonediv').show();
					}
				});
				
				<?php 
    if (isset($_REQUEST['true']) && get_option('mo2f_msg_counter') == 1) {
        $logouturl = wp_login_url() . '?action=logout';
        ?>
				jQuery("#messages").append("<div class='updated notice is-dismissible mo2f_success_container'> <p class='mo2f_msgs'>If you are OK with default settings. <a href=<?php 
        echo $logouturl;
        ?>
><b>Click Here</b></a> to logout and try login with 2-Factor.</p></div>");
				<?php 
    }
    ?>
				
			</script>
		</div>

	<?php 
}