Custom Login Page Customizer | LoginPress - Version 1.5.5

Version Description

2021-07-24 = * Bugfix: Welcome message for the lost password & register page. * Bugfix: A live preview of current year in copyright note (A $YEAR$ variable will change in current year). * Compatibility: Compatible with WordPress 5.8.

Download this release

Release Info

Developer hiddenpearls
Plugin Icon 128x128 Custom Login Page Customizer | LoginPress
Version 1.5.5
Comparing to
See all releases

Code changes from version 1.5.4 to 1.5.5

Files changed (4) hide show
  1. custom.php +2 -2
  2. js/customize-controls.js +42 -11
  3. loginpress.php +2 -2
  4. readme.txt +9 -4
custom.php CHANGED
@@ -1927,7 +1927,7 @@ class LoginPress_Entities {
1927
  }
1928
 
1929
  //Logged In messages.
1930
- else if ( strpos( $message, __( "Please enter your username or email address. You will receive a link to create a new password via email." ) ) == true ) {
1931
 
1932
  if ( array_key_exists( 'lostpwd_welcome_message', $this->loginpress_key ) && ! empty( $this->loginpress_key['lostpwd_welcome_message'] ) ) {
1933
 
@@ -1935,7 +1935,7 @@ class LoginPress_Entities {
1935
  }
1936
  }
1937
 
1938
- else if( strpos( $message, __( "Register For This Site" ) ) == true ) {
1939
 
1940
  if ( array_key_exists( 'register_welcome_message', $this->loginpress_key ) && ! empty( $this->loginpress_key['register_welcome_message'] ) ) {
1941
 
1927
  }
1928
 
1929
  //Logged In messages.
1930
+ else if ( isset( $_GET['action'] ) && 'lostpassword' == $_GET['action'] ) {
1931
 
1932
  if ( array_key_exists( 'lostpwd_welcome_message', $this->loginpress_key ) && ! empty( $this->loginpress_key['lostpwd_welcome_message'] ) ) {
1933
 
1935
  }
1936
  }
1937
 
1938
+ else if( isset( $_GET['action'] ) && 'register' == $_GET['action'] ) {
1939
 
1940
  if ( array_key_exists( 'register_welcome_message', $this->loginpress_key ) && ! empty( $this->loginpress_key['register_welcome_message'] ) ) {
1941
 
js/customize-controls.js CHANGED
@@ -301,6 +301,27 @@ jQuery(document).ready(function($) {
301
  } );
302
  }
303
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304
  // function for change LoginPress input fields in real time...
305
  function loginpress_input_property( setting, property ) {
306
  wp.customize( setting, function( value ) {
@@ -1482,31 +1503,41 @@ jQuery(document).ready(function($) {
1482
  }
1483
  });
1484
  });
 
 
 
 
 
 
 
 
 
 
 
 
1485
  /**
1486
  * Set position of Footer link.
1487
  */
1488
- wp.customize( 'loginpress_customization[login_copy_right_display]', function( value ) {
1489
- value.bind( function( loginPressVal ) {
1490
- if ( loginPressVal == true ) {
1491
- if( loginpress_find('.copyRight').length == 0 ){
1492
- loginpress_find('.footer-cont').append('<div class="copyRight">'+$('[id="_customize-input-loginpress_customization[login_footer_copy_right]"]').val()+'</div>');
1493
  }
1494
  $('#customize-control-loginpress_customization-login_footer_copy_right').show();
1495
  $('#customize-control-loginpress_customization-copyright_background_color').show();
1496
  $('#customize-control-loginpress_customization-copyright_text_color').show();
1497
  loginpress_find('.copyRight').css( 'background-color', footerBgClr );
1498
  loginpress_find('.copyRight').css( 'color', footerTextClr );
1499
-
1500
-
1501
  // $('#customize-control-loginpress_customization-show_some_love_text_color').show();
1502
- } else {
1503
- loginpress_find('.copyRight').remove();
1504
  $('#customize-control-loginpress_customization-login_footer_copy_right').hide();
1505
  $('#customize-control-loginpress_customization-copyright_background_color').hide();
1506
  $('#customize-control-loginpress_customization-copyright_text_color').hide();
1507
  // $('#customize-control-loginpress_customization-show_some_love_text_color').hide();
1508
- }
1509
- });
1510
  });
1511
 
1512
  /**
301
  } );
302
  }
303
 
304
+ /* loginpress_footer_date_change LoginPress (Date) Change Footer year on live preview.
305
+ * @param id [ID of Section]
306
+ * @param target [Value of section]
307
+ * @param output [output with added year]
308
+ * @since 1.5.5
309
+ *
310
+ * @return string [CSS property]
311
+ */
312
+ function loginpress_footer_date_change(id, target, output) {
313
+ wp.customize(id, function(value) {
314
+ value.bind(function(loginPressVal) {
315
+
316
+ if (loginPressVal == '') {
317
+ loginpress_find(target).html('');
318
+ } else {
319
+ loginpress_find(target).html(output);
320
+ }
321
+ });
322
+ });
323
+ }
324
+
325
  // function for change LoginPress input fields in real time...
326
  function loginpress_input_property( setting, property ) {
327
  wp.customize( setting, function( value ) {
1503
  }
1504
  });
1505
  });
1506
+
1507
+ wp.customize('loginpress_customization[login_footer_copy_right]', function(value) {
1508
+ value.bind(function(loginPressVal) {
1509
+ if (loginPressVal == '') {} else {
1510
+ var date = new Date().getFullYear();
1511
+ var s = $('[id="_customize-input-loginpress_customization[login_footer_copy_right]"]').val();
1512
+ const result = s.replace('$YEAR$', date);
1513
+ loginpress_footer_date_change('loginpress_customization[login_footer_copy_right]', '.copyRight', result);
1514
+ }
1515
+ });
1516
+ });
1517
+
1518
  /**
1519
  * Set position of Footer link.
1520
  */
1521
+ wp.customize( 'loginpress_customization[login_copy_right_display]', function( value ) {
1522
+ value.bind( function( loginPressVal ) {
1523
+ if ( loginPressVal == true ) {
1524
+ if( loginpress_find('.copyRight').length == 0 ){
1525
+ loginpress_find('.footer-cont').append('<div class="copyRight">'+$('[id="_customize-input-loginpress_customization[login_footer_copy_right]"]').val()+'</div>');
1526
  }
1527
  $('#customize-control-loginpress_customization-login_footer_copy_right').show();
1528
  $('#customize-control-loginpress_customization-copyright_background_color').show();
1529
  $('#customize-control-loginpress_customization-copyright_text_color').show();
1530
  loginpress_find('.copyRight').css( 'background-color', footerBgClr );
1531
  loginpress_find('.copyRight').css( 'color', footerTextClr );
 
 
1532
  // $('#customize-control-loginpress_customization-show_some_love_text_color').show();
1533
+ } else {
1534
+ loginpress_find('.copyRight').remove();
1535
  $('#customize-control-loginpress_customization-login_footer_copy_right').hide();
1536
  $('#customize-control-loginpress_customization-copyright_background_color').hide();
1537
  $('#customize-control-loginpress_customization-copyright_text_color').hide();
1538
  // $('#customize-control-loginpress_customization-show_some_love_text_color').hide();
1539
+ }
1540
+ });
1541
  });
1542
 
1543
  /**
loginpress.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: LoginPress - Customizing the WordPress Login
4
  * Plugin URI: https://WPBrigade.com/wordpress/plugins/loginpress/
5
  * Description: LoginPress is the best <code>wp-login</code> Login Page Customizer plugin by <a href="https://wpbrigade.com/">WPBrigade</a> which allows you to completely change the layout of login, register and forgot password forms.
6
- * Version: 1.5.4
7
  * Author: WPBrigade
8
  * Author URI: https://WPBrigade.com/
9
  * Text Domain: loginpress
@@ -22,7 +22,7 @@ if ( ! class_exists( 'LoginPress' ) ) :
22
  /**
23
  * @var string
24
  */
25
- public $version = '1.5.4';
26
 
27
  /**
28
  * @var The single instance of the class
3
  * Plugin Name: LoginPress - Customizing the WordPress Login
4
  * Plugin URI: https://WPBrigade.com/wordpress/plugins/loginpress/
5
  * Description: LoginPress is the best <code>wp-login</code> Login Page Customizer plugin by <a href="https://wpbrigade.com/">WPBrigade</a> which allows you to completely change the layout of login, register and forgot password forms.
6
+ * Version: 1.5.5
7
  * Author: WPBrigade
8
  * Author URI: https://WPBrigade.com/
9
  * Text Domain: loginpress
22
  /**
23
  * @var string
24
  */
25
+ public $version = '1.5.5';
26
 
27
  /**
28
  * @var The single instance of the class
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Custom Login Page Customizer | LoginPress ===
2
  Requires at least: 4.0
3
- Tested up to: 5.7
4
  Contributors: WPBrigade, hiddenpearls, AbdulWahab610
5
  Author URI: https://wpbrigade.com/?utm_source=loginpress-lite&utm_medium=author-url-link
6
  Tags: wp-login, login, login customizer, custom login, wordpress login,
7
- Stable tag: 1.5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -220,6 +220,11 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
220
 
221
  == Changelog ==
222
 
 
 
 
 
 
223
  = 1.5.4 – 2021-06-16 =
224
  * Bugfix: Form padding was not working on default template;
225
  * Enhancement: Automate the current year in copyright note (Use `$YEAR$` variable for it in note).
@@ -601,5 +606,5 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
601
 
602
  == Upgrade Notice ==
603
 
604
- = 1.5.4 =
605
- * Important Release, upgrade immediately. Compatible with 5.7
1
  === Custom Login Page Customizer | LoginPress ===
2
  Requires at least: 4.0
3
+ Tested up to: 5.8
4
  Contributors: WPBrigade, hiddenpearls, AbdulWahab610
5
  Author URI: https://wpbrigade.com/?utm_source=loginpress-lite&utm_medium=author-url-link
6
  Tags: wp-login, login, login customizer, custom login, wordpress login,
7
+ Stable tag: 1.5.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
220
 
221
  == Changelog ==
222
 
223
+ = 1.5.5 – 2021-07-24 =
224
+ * Bugfix: Welcome message for the lost password & register page.
225
+ * Bugfix: A live preview of current year in copyright note (A `$YEAR$` variable will change in current year).
226
+ * Compatibility: Compatible with WordPress 5.8.
227
+
228
  = 1.5.4 – 2021-06-16 =
229
  * Bugfix: Form padding was not working on default template;
230
  * Enhancement: Automate the current year in copyright note (Use `$YEAR$` variable for it in note).
606
 
607
  == Upgrade Notice ==
608
 
609
+ = 1.5.5 =
610
+ * Important Release, upgrade immediately. Compatible with 5.8