| 1 |
<p class="simba_tfa_personal_settings_notice simba_tfa_intro_notice"> |
| 2 |
<?php |
| 3 |
|
| 4 |
echo __('These are your personal settings.', 'two-factor-authentication').' '.__('Nothing you change here will have any effect on other users.', 'two-factor-authentication'); |
| 5 |
|
| 6 |
if (is_multisite()) { |
| 7 |
if (is_super_admin()) { |
| 8 |
// Since WP 4.9 |
| 9 |
$main_site_id = function_exists('get_main_site_id') ? get_main_site_id() : 1; |
| 10 |
$switched = switch_to_blog($main_site_id); |
| 11 |
echo ' <a href="'.admin_url('options-general.php?page=two-factor-auth').'">'.__('The site-wide administration options are here.', 'two-factor-authentication').'</a>'; |
| 12 |
if ($switched) restore_current_blog(); |
| 13 |
} |
| 14 |
} elseif (current_user_can($simba_tfa->get_management_capability())) { |
| 15 |
echo ' <a href="'.admin_url('options-general.php?page=two-factor-auth').'">'.__('The site-wide administration options are here.', 'two-factor-authentication').'</a>'; |
| 16 |
} |
| 17 |
|
| 18 |
?> |
| 19 |
</p> |
| 20 |
|
| 21 |
<p class="simba_tfa_verify_tfa_notice simba_tfa_intro_notice"><strong> |
| 22 |
|
| 23 |
<?php echo apply_filters('simbatfa_message_you_should_verify', __('If you activate two-factor authentication, then verify that your two-factor application and this page show the same One-Time Password (within a minute of each other) before you log out.', 'two-factor-authentication')); ?></strong> |
| 24 |
|
| 25 |
<?php if (current_user_can($simba_tfa->get_management_capability())) { ?> |
| 26 |
<a href="https://wordpress.org/plugins/two-factor-authentication/faq/"><?php _e('You should also bookmark the FAQs, which explain how to de-activate the plugin even if you cannot log in.', 'two-factor-authentication');?></a> |
| 27 |
<?php } ?> |
| 28 |
</p> |
| 29 |
|