Custom Login Page Customizer | LoginPress - Version 1.4.3

Version Description

2020-02-27 = * New Feature: Created a new control for button text color on hover. * Bugfix: Video background works on iOS devices as well. * Bugfix: Compatible with Listing Pro Themes. Dequeue their stylesheet on login page only. * Enhancement: Added a filter loginpress_footer_copyright to extend the copyright note functionality.

Download this release

Release Info

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

Code changes from version 1.4.2 to 1.4.3

css/style-login.php CHANGED
@@ -125,6 +125,7 @@ $loginpress_btn_bg = loginpress_get_option_key( 'custom_button_color', $l
125
  $loginpress_btn_border = loginpress_get_option_key( 'button_border_color', $loginpress_array );
126
  $loginpress_btn_shadow = loginpress_get_option_key( 'custom_button_shadow', $loginpress_array );
127
  $loginpress_btn_color = loginpress_get_option_key( 'button_text_color', $loginpress_array );
 
128
  $loginpress_btn_hover_bg = loginpress_get_option_key( 'button_hover_color', $loginpress_array );
129
  $loginpress_btn_hover_border = loginpress_get_option_key( 'button_hover_border', $loginpress_array );
130
  // $loginpress_background_img = loginpress_get_option_key( 'setting_background', $loginpress_array );
@@ -478,6 +479,9 @@ body.login {
478
  <?php if ( ! empty( $loginpress_btn_hover_border ) ) : ?>
479
  border-color: <?php echo $loginpress_btn_hover_border; ?>;
480
  <?php endif; ?>
 
 
 
481
  }
482
  .wp-core-ui #login .button-primary, .wp-core-ui #login .two-factor-email-resend .button{
483
 
@@ -541,7 +545,7 @@ box-shadow: <?php echo loginpress_box_shadow( $loginpress_textfield_shadow, $log
541
 
542
  #login {
543
  <?php if ( ! empty( $loginpress_form_width ) ) : ?>
544
- max-width: <?php echo loginpress_check_px( $loginpress_form_width ); ?>;
545
  <?php else : ?>
546
  <?php endif; ?>
547
  }
@@ -1046,16 +1050,16 @@ padding-left: 15px;
1046
  <?php if ( ( $loginpress_theme_tem == 'default6' || $loginpress_theme_tem == 'default10' || $loginpress_theme_tem == 'default17' ) ) : ?>
1047
  <script>
1048
  document.addEventListener( 'DOMContentLoaded', function(){
1049
- // document.body.innerHTML="<video autoplay loop id=\"loginpress_video-background\" muted plays-inline>\n" + "<source src=\"<?php // echo $loginpress_bg_video;?>\">\n" + "</video>\n"+document.body.innerHTML;
1050
- // '"<video autoplay loop id=\"loginpress_video-background\" muted plays-inline>\n" + "<source src=\"<?php // echo $loginpress_bg_video;?>\">\n" + "</video>\n"'.
1051
- // document.getElementById("login").appendChild("<video autoplay loop id=\"loginpress_video-background\" muted plays-inline>\n" + "<source src=\"<?php // echo $loginpress_bg_video;?>\">\n" + "</video>\n");
1052
  // (function($){
1053
- // $('<div id="loginpress_video-background-wrapper"><video autoplay loop id="loginpress_video-background" <?php echo $loginpress_video_voice; ?> plays-inline><source src="<?php //echo $loginpress_bg_video;?>"></video></div>').appendTo($('#login'));
1054
  // }(jQuery));
1055
  var el = document.getElementById('login');
1056
  var elChild = document.createElement('div');
1057
  elChild.setAttribute( 'id', 'loginpress_video-background-wrapper' );
1058
- elChild.innerHTML = '<video autoplay loop id=\"loginpress_video-background\" <?php echo $loginpress_video_voice; ?> plays-inline>\n" + "<source src=\"<?php echo $loginpress_bg_video; ?>\">\n" + "</video>';
1059
 
1060
  // Prepend it
1061
  el.appendChild(elChild);
@@ -1068,7 +1072,7 @@ padding-left: 15px;
1068
  var el = document.getElementsByClassName('login')[0];
1069
  var elChild = document.createElement('div');
1070
  elChild.setAttribute( 'id', 'loginpress_video-background-wrapper' );
1071
- elChild.innerHTML = '<video autoplay loop id=\"loginpress_video-background\" <?php echo $loginpress_video_voice; ?> plays-inline>\n" + "<source src=\"<?php echo $loginpress_bg_video; ?>\">\n" + "</video>';
1072
 
1073
  // Prepend it
1074
  el.appendChild(elChild);
@@ -1079,7 +1083,7 @@ padding-left: 15px;
1079
  var el = document.getElementsByClassName('login')[0];
1080
  var elChild = document.createElement('div');
1081
  elChild.setAttribute( 'id', 'loginpress_video-background-wrapper' );
1082
- elChild.innerHTML = '<video autoplay loop id=\"loginpress_video-background\" <?php echo $loginpress_video_voice; ?> plays-inline>\n" + "<source src=\"<?php echo $loginpress_bg_video; ?>\">\n" + "</video>';
1083
 
1084
  // Prepend it
1085
  el.appendChild(elChild);
@@ -1090,7 +1094,7 @@ padding-left: 15px;
1090
  var el = document.getElementsByClassName('login')[0];
1091
  var elChild = document.createElement('div');
1092
  elChild.setAttribute( 'id', 'loginpress_video-background-wrapper' );
1093
- elChild.innerHTML = '<video autoplay loop id=\"loginpress_video-background\" <?php echo $loginpress_video_voice; ?> plays-inline>\n" + "<source src=\"<?php echo $loginpress_bg_video; ?>\">\n" + "</video>';
1094
 
1095
  // Prepend it
1096
  el.appendChild(elChild);
125
  $loginpress_btn_border = loginpress_get_option_key( 'button_border_color', $loginpress_array );
126
  $loginpress_btn_shadow = loginpress_get_option_key( 'custom_button_shadow', $loginpress_array );
127
  $loginpress_btn_color = loginpress_get_option_key( 'button_text_color', $loginpress_array );
128
+ $loginpress_btn_hover_color = loginpress_get_option_key( 'button_hover_text_color', $loginpress_array );
129
  $loginpress_btn_hover_bg = loginpress_get_option_key( 'button_hover_color', $loginpress_array );
130
  $loginpress_btn_hover_border = loginpress_get_option_key( 'button_hover_border', $loginpress_array );
131
  // $loginpress_background_img = loginpress_get_option_key( 'setting_background', $loginpress_array );
479
  <?php if ( ! empty( $loginpress_btn_hover_border ) ) : ?>
480
  border-color: <?php echo $loginpress_btn_hover_border; ?>;
481
  <?php endif; ?>
482
+ <?php if ( ! empty( $loginpress_btn_hover_color ) ) : ?>
483
+ color: <?php echo $loginpress_btn_hover_color; ?>;
484
+ <?php endif; ?>
485
  }
486
  .wp-core-ui #login .button-primary, .wp-core-ui #login .two-factor-email-resend .button{
487
 
545
 
546
  #login {
547
  <?php if ( ! empty( $loginpress_form_width ) ) : ?>
548
+ max-width: <?php echo loginpress_check_px( $loginpress_form_width ) . loginpress_important(); ?>;
549
  <?php else : ?>
550
  <?php endif; ?>
551
  }
1050
  <?php if ( ( $loginpress_theme_tem == 'default6' || $loginpress_theme_tem == 'default10' || $loginpress_theme_tem == 'default17' ) ) : ?>
1051
  <script>
1052
  document.addEventListener( 'DOMContentLoaded', function(){
1053
+ // document.body.innerHTML="<video autoplay loop id=\"loginpress_video-background\" muted playsinline>\n" + "<source src=\"<?php // echo $loginpress_bg_video;?>\">\n" + "</video>\n"+document.body.innerHTML;
1054
+ // '"<video autoplay loop id=\"loginpress_video-background\" muted playsinline>\n" + "<source src=\"<?php // echo $loginpress_bg_video;?>\">\n" + "</video>\n"'.
1055
+ // document.getElementById("login").appendChild("<video autoplay loop id=\"loginpress_video-background\" muted playsinline>\n" + "<source src=\"<?php // echo $loginpress_bg_video;?>\">\n" + "</video>\n");
1056
  // (function($){
1057
+ // $('<div id="loginpress_video-background-wrapper"><video autoplay loop id="loginpress_video-background" <?php echo $loginpress_video_voice; ?> playsinline><source src="<?php //echo $loginpress_bg_video;?>"></video></div>').appendTo($('#login'));
1058
  // }(jQuery));
1059
  var el = document.getElementById('login');
1060
  var elChild = document.createElement('div');
1061
  elChild.setAttribute( 'id', 'loginpress_video-background-wrapper' );
1062
+ elChild.innerHTML = '<video autoplay loop id=\"loginpress_video-background\" <?php echo $loginpress_video_voice; ?> playsinline>\n" + "<source src=\"<?php echo $loginpress_bg_video; ?>\">\n" + "</video>';
1063
 
1064
  // Prepend it
1065
  el.appendChild(elChild);
1072
  var el = document.getElementsByClassName('login')[0];
1073
  var elChild = document.createElement('div');
1074
  elChild.setAttribute( 'id', 'loginpress_video-background-wrapper' );
1075
+ elChild.innerHTML = '<video autoplay loop id=\"loginpress_video-background\" <?php echo $loginpress_video_voice; ?> playsinline>\n" + "<source src=\"<?php echo $loginpress_bg_video; ?>\">\n" + "</video>';
1076
 
1077
  // Prepend it
1078
  el.appendChild(elChild);
1083
  var el = document.getElementsByClassName('login')[0];
1084
  var elChild = document.createElement('div');
1085
  elChild.setAttribute( 'id', 'loginpress_video-background-wrapper' );
1086
+ elChild.innerHTML = '<video autoplay loop id=\"loginpress_video-background\" <?php echo $loginpress_video_voice; ?> playsinline>\n" + "<source src=\"<?php echo $loginpress_bg_video; ?>\">\n" + "</video>';
1087
 
1088
  // Prepend it
1089
  el.appendChild(elChild);
1094
  var el = document.getElementsByClassName('login')[0];
1095
  var elChild = document.createElement('div');
1096
  elChild.setAttribute( 'id', 'loginpress_video-background-wrapper' );
1097
+ elChild.innerHTML = '<video autoplay loop id=\"loginpress_video-background\" <?php echo $loginpress_video_voice; ?> playsinline>\n" + "<source src=\"<?php echo $loginpress_bg_video; ?>\">\n" + "</video>';
1098
 
1099
  // Prepend it
1100
  el.appendChild(elChild);
custom.php CHANGED
@@ -70,7 +70,7 @@ class LoginPress_Entities {
70
  function loginpress_customizer_js() {
71
 
72
  wp_enqueue_script('jquery');
73
- wp_enqueue_script( 'loginpress-customize-control', plugins_url( 'js/customize-controls.js' , LOGINPRESS_ROOT_FILE ), array( 'jquery', 'customize-preview' ), LOGINPRESS_VERSION, true );
74
 
75
  /*
76
  * Our Customizer script
@@ -953,6 +953,7 @@ class LoginPress_Entities {
953
  $this->loginpress_color_setting( $wp_customize, $button_control, $button_label, 'section_button', 3, 20 );
954
  $this->loginpress_color_setting( $wp_customize, $button_control, $button_label, 'section_button', 4, 25 );
955
  $this->loginpress_color_setting( $wp_customize, $button_control, $button_label, 'section_button', 5, 30 );
 
956
 
957
  /**
958
  * [ Change Button CSS Properties with LoginPress_Range_Control ]
@@ -1541,6 +1542,7 @@ class LoginPress_Entities {
1541
  /**
1542
  * Add brand postion class.
1543
  * @since 1.1.3
 
1544
  */
1545
  $position = ''; // Empty variable for storing position class.
1546
  if ( $this->loginpress_key ) {
@@ -1559,18 +1561,15 @@ class LoginPress_Entities {
1559
  echo '<div class="footer-cont">';
1560
 
1561
  if ( $this->loginpress_key ) {
1562
-
1563
  // do_action( 'loginpress_footer_wrapper' );
1564
  do_action( 'loginpress_footer_menu' );
1565
 
1566
  if ( array_key_exists( 'login_copy_right_display', $this->loginpress_key ) && true == $this->loginpress_key['login_copy_right_display'] ) {
1567
- if ( array_key_exists( 'login_footer_copy_right', $this->loginpress_key ) && ! empty( $this->loginpress_key['login_footer_copy_right'] ) ) {
1568
- echo '<div class="copyRight">'.$this->loginpress_key['login_footer_copy_right'].'</div>';
1569
- } else {
1570
- echo '<div class="copyRight">'. sprintf( __('© %1$s %2$s, All Rights Reserved.', 'loginpress'), date("Y"), get_bloginfo('name') ) .'</div>';
1571
- }
1572
- }
1573
 
 
 
 
 
1574
  }
1575
  echo '</div></div>';
1576
 
70
  function loginpress_customizer_js() {
71
 
72
  wp_enqueue_script('jquery');
73
+ wp_enqueue_script( 'loginpress-customize-control', plugins_url( 'js/customize-controls.js' , LOGINPRESS_ROOT_FILE ), array( 'jquery' ), LOGINPRESS_VERSION, true );
74
 
75
  /*
76
  * Our Customizer script
953
  $this->loginpress_color_setting( $wp_customize, $button_control, $button_label, 'section_button', 3, 20 );
954
  $this->loginpress_color_setting( $wp_customize, $button_control, $button_label, 'section_button', 4, 25 );
955
  $this->loginpress_color_setting( $wp_customize, $button_control, $button_label, 'section_button', 5, 30 );
956
+ $this->loginpress_color_setting( $wp_customize, $button_control, $button_label, 'section_button', 6, 35 );
957
 
958
  /**
959
  * [ Change Button CSS Properties with LoginPress_Range_Control ]
1542
  /**
1543
  * Add brand postion class.
1544
  * @since 1.1.3
1545
+ * @version 1.4.3
1546
  */
1547
  $position = ''; // Empty variable for storing position class.
1548
  if ( $this->loginpress_key ) {
1561
  echo '<div class="footer-cont">';
1562
 
1563
  if ( $this->loginpress_key ) {
 
1564
  // do_action( 'loginpress_footer_wrapper' );
1565
  do_action( 'loginpress_footer_menu' );
1566
 
1567
  if ( array_key_exists( 'login_copy_right_display', $this->loginpress_key ) && true == $this->loginpress_key['login_copy_right_display'] ) {
 
 
 
 
 
 
1568
 
1569
+ $footer_text = ( array_key_exists( 'login_footer_copy_right', $this->loginpress_key ) && ! empty( $this->loginpress_key['login_footer_copy_right'] ) ) ? $this->loginpress_key['login_footer_copy_right'] : sprintf( __('© %1$s %2$s, All Rights Reserved.', 'loginpress'), date("Y"), get_bloginfo('name') );
1570
+
1571
+ echo '<div class="copyRight">'. apply_filters( 'loginpress_footer_copyright', $footer_text ) .'</div>';
1572
+ }
1573
  }
1574
  echo '</div></div>';
1575
 
include/compatibility.php CHANGED
@@ -83,14 +83,14 @@ if ( ! class_exists( 'LoginPress_Compatibility' ) ) :
83
  add_action( 'wp_loaded', array( $this, 'wp_loaded_remove_action' ), 9 );
84
  add_action( 'init', array( $this, 'init_remove_action' ), 9 );
85
 
86
- /*************************************
87
- Thrive Theme Compatibility Fix // v1.3.2
88
- *************************************/
89
- add_action( 'login_enqueue_scripts', array( $this, 'dequeue_thrive_conflicting_scripts' ), 99 );
90
 
91
- /*************************************
92
  Oxygen Builder Compatibility Fix // v1.4.0
93
- *************************************/
94
  add_filter( 'template_include', array( $this, 'template_include_ob' ), 100 );
95
 
96
  /***************************************************************
@@ -100,15 +100,26 @@ if ( ! class_exists( 'LoginPress_Compatibility' ) ) :
100
  }
101
 
102
  /**
103
- * Dequeue thrive theme login page styles.
104
- * This will enable the loginpress customization with thrive themes.
105
  *
106
  * @since 1.3.2
 
107
  */
108
- function dequeue_thrive_conflicting_scripts() {
 
 
 
 
109
  wp_dequeue_style( 'thrive-custom-login' );
110
- wp_dequeue_script( 'thrive-custom-login' );
111
- }
 
 
 
 
 
 
 
112
 
113
  /**
114
  * Overide the oxygen template with loginpress on login customizer screen.
83
  add_action( 'wp_loaded', array( $this, 'wp_loaded_remove_action' ), 9 );
84
  add_action( 'init', array( $this, 'init_remove_action' ), 9 );
85
 
86
+ /***************************************
87
+ Login page Compatibility Fix // v1.3.2
88
+ ****************************************/
89
+ add_action( 'login_enqueue_scripts', array( $this, 'dequeue_login_page_conflicting_scripts' ), 99 );
90
 
91
+ /********************************************
92
  Oxygen Builder Compatibility Fix // v1.4.0
93
+ *********************************************/
94
  add_filter( 'template_include', array( $this, 'template_include_ob' ), 100 );
95
 
96
  /***************************************************************
100
  }
101
 
102
  /**
103
+ * Dequeue login page styles.
 
104
  *
105
  * @since 1.3.2
106
+ * @version 1.4.3
107
  */
108
+ function dequeue_login_page_conflicting_scripts() {
109
+ /**
110
+ * Dequeue thrive theme login page styles.
111
+ * @since 1.3.2
112
+ */
113
  wp_dequeue_style( 'thrive-custom-login' );
114
+ wp_dequeue_script( 'thrive-custom-login' );
115
+
116
+ /**
117
+ * Dequeue listingpro theme login page styles.
118
+ * @since 1.4.3
119
+ */
120
+ wp_dequeue_style( 'listable-custom-login' );
121
+
122
+ }
123
 
124
  /**
125
  * Overide the oxygen template with loginpress on login customizer screen.
include/customizer-strings.php CHANGED
@@ -97,16 +97,18 @@ $form_sanitization = array( 'wp_strip_all_tags', 'wp_strip_all_tags', 'wp_strip_
97
  /**
98
  * [ Customizer strings for the section button beauty. ]
99
  * @since 1.1.3
 
100
  */
101
- $button_control = array( 'custom_button_color', 'button_border_color', 'button_hover_color', 'button_hover_border', 'custom_button_shadow', 'button_text_color' );
102
- $button_default = array( '#2EA2CC', '#0074A2', '#1E8CBE', '#0074A2', '#78C8E6', '#FFF' );
103
  $button_label = array(
104
  __( 'Button Color:', 'loginpress' ),
105
  __( 'Button Border Color:', 'loginpress' ),
106
  __( 'Button Color (Hover):', 'loginpress' ),
107
  __( 'Button Border (Hover):', 'loginpress' ),
108
  __( 'Button Box Shadow:', 'loginpress' ),
109
- __( 'Button Text Color:', 'loginpress' )
 
110
  );
111
 
112
  $button_range_control = array( 'login_button_size', 'login_button_top', 'login_button_bottom', 'login_button_radius', 'login_button_shadow', 'login_button_shadow_opacity', 'login_button_text_size' );
97
  /**
98
  * [ Customizer strings for the section button beauty. ]
99
  * @since 1.1.3
100
+ * @version 1.4.3
101
  */
102
+ $button_control = array( 'custom_button_color', 'button_border_color', 'button_hover_color', 'button_hover_border', 'custom_button_shadow', 'button_text_color', 'button_hover_text_color' );
103
+ $button_default = array( '#2EA2CC', '#0074A2', '#1E8CBE', '#0074A2', '#78C8E6', '#FFF', '#FFF' );
104
  $button_label = array(
105
  __( 'Button Color:', 'loginpress' ),
106
  __( 'Button Border Color:', 'loginpress' ),
107
  __( 'Button Color (Hover):', 'loginpress' ),
108
  __( 'Button Border (Hover):', 'loginpress' ),
109
  __( 'Button Box Shadow:', 'loginpress' ),
110
+ __( 'Button Text Color:', 'loginpress' ),
111
+ __( 'Button Text Color (Hover):', 'loginpress' )
112
  );
113
 
114
  $button_range_control = array( 'login_button_size', 'login_button_top', 'login_button_bottom', 'login_button_radius', 'login_button_shadow', 'login_button_shadow_opacity', 'login_button_text_size' );
js/customize-controls.js CHANGED
@@ -240,9 +240,9 @@ jQuery(document).ready(function($) {
240
  } else {
241
 
242
  if(change_theme == 'default8' || change_theme == 'default3' || change_theme == 'default5' ){
243
- $('<div id="loginpress_video-background-wrapper"><video autoplay loop muted id="loginpress_video-background" plays-inline><source src="'+response+'"></video></div>').appendTo(loginpress_find('body'));
244
  }else{
245
- $('<div id="loginpress_video-background-wrapper"><video autoplay loop id="loginpress_video-background" plays-inline muted><source src="'+response+'"></video></div>').appendTo(loginpress_find('#login'));
246
  var video = loginpress_find( '#loginpress_video-background' )[0];
247
  video.load();
248
  video.play();
@@ -467,11 +467,11 @@ jQuery(document).ready(function($) {
467
  }
468
  if ( $('#customize-control-loginpress_customization-background_video video').length > 0 ) {
469
  if( $('#customize_presets_settingsdefault6').is(':checked') || $('#customize_presets_settingsdefault10').is(':checked') || $('#customize_presets_settingsdefault17').is(':checked')) {
470
- $( '#customize-preview iframe' ).contents().find('#login').append("<div id=\"loginpress_video-background-wrapper\"><video autoplay loop id=\"loginpress_video-background\"" + muted_video + " plays-inline>\n" + video + "</video></div>\n");
471
  } else if( $('#customize_presets_settingsdefault17').is(':checked') || $('#customize_presets_settingsdefault18').is(':checked') ) {
472
- $( '#customize-preview iframe' ).contents().find('.login').append("<div id=\"loginpress_video-background-wrapper\"><video autoplay loop id=\"loginpress_video-background\"" + muted_video + " plays-inline>\n" + video + "</video></div>\n");
473
  } else {
474
- $( '#customize-preview iframe' ).contents().find('.login').append("<video autoplay loop id=\"loginpress_video-background\"" + muted_video + " plays-inline>\n" + video + "</video>\n");
475
  }
476
  $( '#customize-preview iframe' ).contents().find( '.login #loginpress_video-background' )[0].play();
477
  }
@@ -1145,6 +1145,27 @@ jQuery(document).ready(function($) {
1145
  });
1146
  });
1147
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1148
  // Update the login form button border-color in real time...
1149
  wp.customize( 'loginpress_customization[custom_button_shadow]', function(value) {
1150
  value.bind( function(loginPressVal) {
240
  } else {
241
 
242
  if(change_theme == 'default8' || change_theme == 'default3' || change_theme == 'default5' ){
243
+ $('<div id="loginpress_video-background-wrapper"><video autoplay loop muted id="loginpress_video-background" playsinline><source src="'+response+'"></video></div>').appendTo(loginpress_find('body'));
244
  }else{
245
+ $('<div id="loginpress_video-background-wrapper"><video autoplay loop id="loginpress_video-background" playsinline muted><source src="'+response+'"></video></div>').appendTo(loginpress_find('#login'));
246
  var video = loginpress_find( '#loginpress_video-background' )[0];
247
  video.load();
248
  video.play();
467
  }
468
  if ( $('#customize-control-loginpress_customization-background_video video').length > 0 ) {
469
  if( $('#customize_presets_settingsdefault6').is(':checked') || $('#customize_presets_settingsdefault10').is(':checked') || $('#customize_presets_settingsdefault17').is(':checked')) {
470
+ $( '#customize-preview iframe' ).contents().find('#login').append("<div id=\"loginpress_video-background-wrapper\"><video autoplay loop id=\"loginpress_video-background\"" + muted_video + " playsinline>\n" + video + "</video></div>\n");
471
  } else if( $('#customize_presets_settingsdefault17').is(':checked') || $('#customize_presets_settingsdefault18').is(':checked') ) {
472
+ $( '#customize-preview iframe' ).contents().find('.login').append("<div id=\"loginpress_video-background-wrapper\"><video autoplay loop id=\"loginpress_video-background\"" + muted_video + " playsinline>\n" + video + "</video></div>\n");
473
  } else {
474
+ $( '#customize-preview iframe' ).contents().find('.login').append("<video autoplay loop id=\"loginpress_video-background\"" + muted_video + " playsinline>\n" + video + "</video>\n");
475
  }
476
  $( '#customize-preview iframe' ).contents().find( '.login #loginpress_video-background' )[0].play();
477
  }
1145
  });
1146
  });
1147
 
1148
+ // Update the login form button text color in real time...
1149
+ wp.customize( 'loginpress_customization[button_hover_text_color]', function(value) {
1150
+ value.bind( function(loginPressVal) {
1151
+ if ( loginPressVal == '' ) {
1152
+ loginpress_find('.wp-core-ui #login .button-primary').on( 'mouseover', function() {
1153
+ $(this).css( 'color', loginPressVal );
1154
+ });
1155
+ } else {
1156
+ loginpress_find('.wp-core-ui #login .button-primary').on( 'mouseover', function() {
1157
+ $(this).css( 'color', loginPressVal );
1158
+ }).on( 'mouseleave', function() {
1159
+ if ( typeof loginPressBtnBrdrClr !== "undefined" || loginPressBtnBrdrClr === null ) {
1160
+ $(this).css( 'color', loginPressBtnBrdrClr );
1161
+ } else {
1162
+ $(this).css( 'color', '' );
1163
+ }
1164
+ });
1165
+ }
1166
+ });
1167
+ });
1168
+
1169
  // Update the login form button border-color in real time...
1170
  wp.customize( 'loginpress_customization[custom_button_shadow]', function(value) {
1171
  value.bind( function(loginPressVal) {
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.4.2
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.4.2';
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.4.3
7
  * Author: WPBrigade
8
  * Author URI: https://WPBrigade.com/
9
  * Text Domain: loginpress
22
  /**
23
  * @var string
24
  */
25
+ public $version = '1.4.3';
26
 
27
  /**
28
  * @var The single instance of the class
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tested up to: 5.3
4
  Contributors: WPBrigade, hiddenpearls, AbdulWahab610
5
  Author URI: https://wpbrigade.com
6
  Tags: wp-login, login, login customizer, custom login, wordpress login,
7
- Stable tag: 1.4.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -216,6 +216,11 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
216
  23. Custom Login page (Company theme) Example #23 with Captcha [Pro feature](https://WPBrigade.com/wordpress/plugins/loginpress-pro/?utm_source=loginpress-lite&utm_medium=screenshots&utm_campaign=pro-upgrade)
217
 
218
  == Changelog ==
 
 
 
 
 
219
 
220
  = 1.4.2 – 2020-01-14 =
221
  * Compatibility: LoginPress is compatible with Polish (Poland) language now. Special thanks to <a href="https://profiles.wordpress.org/xszejdi/" rel="friend">Mateusz</a> for contribution.
@@ -554,5 +559,5 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
554
 
555
  == Upgrade Notice ==
556
 
557
- = 1.4.2 =
558
  * Important Release, upgrade immediately.
4
  Contributors: WPBrigade, hiddenpearls, AbdulWahab610
5
  Author URI: https://wpbrigade.com
6
  Tags: wp-login, login, login customizer, custom login, wordpress login,
7
+ Stable tag: 1.4.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
216
  23. Custom Login page (Company theme) Example #23 with Captcha [Pro feature](https://WPBrigade.com/wordpress/plugins/loginpress-pro/?utm_source=loginpress-lite&utm_medium=screenshots&utm_campaign=pro-upgrade)
217
 
218
  == Changelog ==
219
+ = 1.4.3 – 2020-02-27 =
220
+ * New Feature: Created a new control for button text color on hover.
221
+ * Bugfix: Video background works on iOS devices as well.
222
+ * Bugfix: Compatible with Listing Pro Themes. Dequeue their stylesheet on login page only.
223
+ * Enhancement: Added a filter `loginpress_footer_copyright` to extend the copyright note functionality.
224
 
225
  = 1.4.2 – 2020-01-14 =
226
  * Compatibility: LoginPress is compatible with Polish (Poland) language now. Special thanks to <a href="https://profiles.wordpress.org/xszejdi/" rel="friend">Mateusz</a> for contribution.
559
 
560
  == Upgrade Notice ==
561
 
562
+ = 1.4.3 =
563
  * Important Release, upgrade immediately.