Admin Custom Login - Version 3.4.1

Version Description

Download this release

Release Info

Developer weblizar
Plugin Icon 128x128 Admin Custom Login
Version 3.4.1
Comparing to
See all releases

Code changes from version 3.4.0 to 3.4.1

Files changed (4) hide show
  1. admin-custom-login.php +1 -1
  2. css/acl-custom.css +19 -0
  3. init.php +20 -1
  4. readme.txt +4 -1
admin-custom-login.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Admin Custom Login
4
- * Version: 3.4.0
5
  * Description: Customize Your WordPress Login Screen Amazingly - Add Own Logo, Add Social Profiles, Login Form Positions, Background Image Slide Show
6
  * Author: Weblizar
7
  * Author URI: https://weblizar.com/plugins/
1
  <?php
2
  /**
3
  * Plugin Name: Admin Custom Login
4
+ * Version: 3.4.1
5
  * Description: Customize Your WordPress Login Screen Amazingly - Add Own Logo, Add Social Profiles, Login Form Positions, Background Image Slide Show
6
  * Author: Weblizar
7
  * Author URI: https://weblizar.com/plugins/
css/acl-custom.css CHANGED
@@ -26,6 +26,25 @@ body.login div#login h1 a,#login_error{
26
  z-index:3;
27
  }
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  .custom-text {
30
  padding:6px 6px 6px 30px ;
31
  }
26
  z-index:3;
27
  }
28
 
29
+ .icon-end {
30
+ display: inline-block;
31
+ width: 15px;
32
+ height: 15px;
33
+ min-width: 16px;
34
+ padding: 4px 5px;
35
+ font-size: 20px;
36
+ font-weight: normal;
37
+ line-height: 20px;
38
+ text-align: center;
39
+ text-shadow: 0 1px 0 #ffffff;
40
+ background-color: transparent;
41
+ position:absolute;
42
+ right:6px;
43
+ top:5px;
44
+ bottom:3px;
45
+ z-index:3;
46
+ }
47
+
48
  .custom-text {
49
  padding:6px 6px 6px 30px ;
50
  }
init.php CHANGED
@@ -267,11 +267,13 @@ function acl_footer_func()
267
  jQuery('#loginform p.forgetmenot').attr('id', 'forgetmenot_input');
268
  jQuery('#loginform p.submit').attr('id', 'submit_input');
269
  jQuery('#loginform .user-pass-wrap').attr('id', 'lable_password_input');
 
 
270
 
271
  <?php if($enable_inputbox_icon=='yes'){ ?>
272
  if (jQuery('#lable_login_input').length) {
273
  document.getElementById("lable_login_input").innerHTML="<?php echo esc_attr($label_username); ?><div class='input-container'> <div class='icon-ph'><i class='fa <?php echo esc_attr($user_input_icon); ?>'></i></div> <input id='user_login' name='log' class='input' type='text' placeholder='<?php echo esc_attr($user_cust_lbl); ?>'></div>";
274
- document.getElementById("lable_password_input").innerHTML="<?php echo esc_attr($label_password); ?><div class='input-container'> <div class='icon-ph'><i class='fa <?php echo esc_attr($password_input_icon); ?>'></i></div> <input id='user_pass' name='pwd' class='input' type='password' placeholder='<?php echo esc_attr($pass_cust_lbl); ?>'></div>";
275
  jQuery('body.login div#login form .input, .login input[type="text"]').css('padding','5px 5px 5px 45px');
276
  }
277
  <?php } else { ?>
@@ -326,6 +328,23 @@ function acl_footer_func()
326
  }
327
  ?>
328
  jQuery( "#backtoblog" ).append('<div class="divfooter"><?php echo esc_html($edit_tagline_msg);?></div>');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
329
  });
330
 
331
  <?php
267
  jQuery('#loginform p.forgetmenot').attr('id', 'forgetmenot_input');
268
  jQuery('#loginform p.submit').attr('id', 'submit_input');
269
  jQuery('#loginform .user-pass-wrap').attr('id', 'lable_password_input');
270
+
271
+
272
 
273
  <?php if($enable_inputbox_icon=='yes'){ ?>
274
  if (jQuery('#lable_login_input').length) {
275
  document.getElementById("lable_login_input").innerHTML="<?php echo esc_attr($label_username); ?><div class='input-container'> <div class='icon-ph'><i class='fa <?php echo esc_attr($user_input_icon); ?>'></i></div> <input id='user_login' name='log' class='input' type='text' placeholder='<?php echo esc_attr($user_cust_lbl); ?>'></div>";
276
+ document.getElementById("lable_password_input").innerHTML="<?php echo esc_attr($label_password); ?><div class='input-container'> <div class='icon-ph'><i class='fa <?php echo esc_attr($password_input_icon); ?>'></i></div> <div class='icon-end'><i id='togglePassword' class='fa fa-eye'></i></div><input id='user_pass' name='pwd' class='input' type='password' placeholder='<?php echo esc_attr($pass_cust_lbl); ?>'></div>";
277
  jQuery('body.login div#login form .input, .login input[type="text"]').css('padding','5px 5px 5px 45px');
278
  }
279
  <?php } else { ?>
328
  }
329
  ?>
330
  jQuery( "#backtoblog" ).append('<div class="divfooter"><?php echo esc_html($edit_tagline_msg);?></div>');
331
+ const togglePassword = document.querySelector("#togglePassword");
332
+ const password = document.querySelector("#user_pass");
333
+
334
+ togglePassword.addEventListener("click", function () {
335
+ // toggle the type attribute
336
+ const type = password.getAttribute("type") === "password" ? "text" : "password";
337
+ password.setAttribute("type", type);
338
+
339
+ // toggle the icon
340
+ this.classList.toggle("bi-eye");
341
+ });
342
+
343
+ // prevent form submit
344
+ const form = document.querySelector("form");
345
+ form.addEventListener('submit', function (e) {
346
+ e.preventDefault();
347
+ });
348
  });
349
 
350
  <?php
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.weblizar.com/
4
  Tags: admin login page, custom login page, custom admin login, custom login, customize wordpress login page, design wordpress login
5
  Requires at least: 4.0
6
  Tested up to: 6.0
7
- Stable tag: 3.4.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -190,6 +190,9 @@ Please use WordPress [support forum](http://wordpress.org/support/plugin/admin-c
190
  For more information, see [Weblizar](http://www.weblizar.com/)
191
 
192
 
 
 
 
193
  3.4.0 - [18-05-2022]
194
  * Fixed: Settings issue fixed.
195
  * Fixed: custom css option added.
4
  Tags: admin login page, custom login page, custom admin login, custom login, customize wordpress login page, design wordpress login
5
  Requires at least: 4.0
6
  Tested up to: 6.0
7
+ Stable tag: 3.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
190
  For more information, see [Weblizar](http://www.weblizar.com/)
191
 
192
 
193
+ 3.4.1 - [03-06-2022]
194
+ * Added: password toggle button.
195
+
196
  3.4.0 - [18-05-2022]
197
  * Fixed: Settings issue fixed.
198
  * Fixed: custom css option added.