PluginProbe
Easy Basic Authentication – Add basic auth to site or admin area / 2.5
Easy Basic Authentication – Add basic auth to site or admin area v2.5
trunk 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4 1.4.1 1.5 1.5.1 1.5.2 1.5.3 1.6 1.6.1 1.6.2 1.6.3 1.6.4 1.7 1.7.1 1.8 1.8.1 1.9 All 50 releases
← All changes | template/settings_page.php +22 -36 trunk2.5 View file →
@@ -6,55 +6,36 @@
6 6 <div class="wrap easy-basic-settings">
7 7 <div class="error-message">
8 8 <?php settings_errors(); ?>
9 9 </div>
10 -
11 - <?php if ( ! is_ssl() ) : ?>
12 - <div class="notice notice-warning">
13 - <p>
14 - <strong><?php echo __('Warning:', 'easy-basic-authentication'); ?></strong>
15 - <?php echo __('Your site is currently not using HTTPS. Basic Authentication may not work correctly over HTTP due to browser and server restrictions.', 'easy-basic-authentication'); ?>
16 - </p>
17 - </div>
18 - <?php endif; ?>
19 -
20 10 <form method="post" action="options.php" class="easy-basic-form">
21 11 <?php
22 - easy_basic_authentication_compatcheck_class::render_button_html();
23 -
24 12 settings_fields( 'basic-auth-plugin-settings' );
25 13 do_settings_sections( 'basic-auth-plugin-settings' );
26 - submit_button(__('Save Settings', 'easy-basic-authentication'), 'primary', 'eba_submit', false);
14 + submit_button(__('save', 'easy-basic-authentication'), 'primary', 'eba_submit', false);
27 15 ?>
28 16 </form>
29 -
30 17 <div id="password-recovery-alert" class="container">
31 18 <div class="alert alert-warning alert-dismissible fade show" role="alert">
32 - <strong><?php echo esc_html__('Attention:', 'easy-basic-authentication'); ?></strong>
33 - <?php echo esc_html__('To recover your password, you need to comment out a line in a file via FTP.', 'easy-basic-authentication'); ?>
34 - <?php echo esc_html__('Please follow the instructions', 'easy-basic-authentication'); ?>
35 - <a href="#" class="alert-link" onclick="toggleInstructions()"><?php echo esc_html__('here.', 'easy-basic-authentication');?></a>
19 + <strong><?php echo esc_html__('Attention:', 'easy-basic-authentication'); ?></strong> <?php echo esc_html__('To recover your password, you need to comment out a line in a file via FTP.', 'easy-basic-authentication'); ?>
20 + <?php echo esc_html__('Please follow the instructions', 'easy-basic-authentication'); ?> <a href="#" class="alert-link" onclick="toggleInstructions()"><?php echo esc_html__('here.', 'easy-basic-authentication');?></a>
36 21 </div>
37 22
38 23 <div id="instructions" style="display: none;" class="mt-3">
39 24 <p><strong><?php echo esc_html__('Instructions:', 'easy-basic-authentication'); ?></strong></p>
40 25 <ol>
41 - <li><?php echo esc_html__('Connect to your website via FTP.', 'easy-basic-authentication'); ?></li>
42 - <li><?php echo esc_html__('Navigate to the plugin directory.', 'easy-basic-authentication'); ?></li>
43 - <li><?php
44 - echo sprintf(
45 - esc_html__('Locate the file named %s.', 'easy-basic-authentication'),
46 - esc_attr($dir_file)
47 - ); ?>
48 - </li>
49 - <li><?php
50 - echo sprintf(
51 - esc_html__('Find the line containing %s.', 'easy-basic-authentication'),
52 - esc_attr($content_file)
53 - ); ?>
54 - </li>
55 - <li><?php echo esc_html__('Comment out that line by adding "#" at the beginning.', 'easy-basic-authentication'); ?></li>
56 - <li><?php echo esc_html__('Save the file and re-upload it to your server.', 'easy-basic-authentication'); ?></li>
26 + <li><?php echo esc_html__('Connect to your website via FTP.', 'easy-basic-authentication'); ?></li>
27 + <li><?php echo esc_html__('Navigate to the plugin directory.', 'easy-basic-authentication'); ?></li>
28 + <li><?php
29 + // translators: %s è il percorso del file del plugin
30 + echo sprintf(esc_html__('Locate the file named %s.', 'easy-basic-authentication'), esc_attr($dir_file)); ?>
31 + </li>
32 + <li><?php
33 + // translators: %s is the content file path
34 + echo sprintf(esc_html__('Find the line containing %s.', 'easy-basic-authentication'), esc_attr($content_file)); ?>
35 + </li>
36 + <li><?php echo esc_html__('Comment out that line by adding "#" at the beginning.', 'easy-basic-authentication'); ?></li>
37 + <li><?php echo esc_html__('Save the file and re-upload it to your server.', 'easy-basic-authentication'); ?></li>
57 38 </ol>
58 39 </div>
59 40 </div>
60 41
@@ -60,11 +41,16 @@
60 41
61 42 <script>
62 43 function toggleInstructions() {
63 44 var instructions = document.getElementById("instructions");
64 - instructions.style.display = (instructions.style.display === "none") ? "block" : "none";
45 + if (instructions.style.display === "none") {
46 + instructions.style.display = "block";
47 + } else {
48 + instructions.style.display = "none";
49 + }
65 50 }
66 51 </script>
52 +
67 53 </div>
68 54
69 55 <style>
70 56 .easy-basic-settings {
@@ -115,5 +101,5 @@
115 101
116 102 .easy-basic-settings #password-recovery-alert {
117 103 margin-top: 30px;
118 104 }
119 -</style>
105 +</style>