Version Description
- 2019-03-08 =
- Bugfix: Background repeat.
- Bugfix: Background position.
- Credit: Special thanks to nggum for highlighting the issue.
Download this release
Release Info
Developer | hiddenpearls |
Plugin | Custom Login Page Customizer | LoginPress |
Version | 1.1.21 |
Comparing to | |
See all releases |
Code changes from version 1.1.20 to 1.1.21
- css/style-login.php +48 -2
- custom.php +12 -11
- js/customize-controls.js +2 -0
- js/loginpress.js +11 -0
- loginpress.php +2 -2
- readme.txt +7 -2
css/style-login.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Get option and check the key exists in it.
|
4 |
*
|
5 |
* @since 1.0.0
|
6 |
-
* @version 1.1.
|
7 |
* * * * * * * * * * * * * * * */
|
8 |
|
9 |
|
@@ -131,6 +131,7 @@ $loginpress_btn_hover_border = loginpress_get_option_key( 'button_hover_borde
|
|
131 |
$loginpress_background_color = loginpress_get_option_key( 'setting_background_color', $loginpress_array );
|
132 |
$loginpress_background_repeat = loginpress_get_option_key( 'background_repeat_radio', $loginpress_array );
|
133 |
$loginpress_background_postion = loginpress_get_option_key( 'background_position', $loginpress_array );
|
|
|
134 |
$loginpress_background_image_size = loginpress_get_option_key( 'background_image_size', $loginpress_array );
|
135 |
$loginpress_form_background_img = loginpress_get_option_key( 'setting_form_background', $loginpress_array );
|
136 |
$loginpress_form_display_bg = loginpress_get_option_key( 'setting_form_display_bg', $loginpress_array );
|
@@ -211,7 +212,7 @@ function loginpress_box_shadow( $shadow, $opacity, $default_shadow = 0, $inset =
|
|
211 |
$loginpress_opacity = ! empty( $opacity ) ? $opacity : 80;
|
212 |
$inset = $inset ? ' inset' : '';
|
213 |
$opacity_convertion = $loginpress_opacity / 100;
|
214 |
-
$loginpress_rgba = 'rgba( 0,0,0,' . $opacity_convertion .' )';
|
215 |
|
216 |
return '0 0 ' . $loginpress_shadow . 'px ' . $loginpress_rgba . $inset . ';';
|
217 |
}
|
@@ -837,6 +838,51 @@ text-shadow: none;
|
|
837 |
margin-bottom: 18px;
|
838 |
position: relative;
|
839 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
840 |
@media screen and (max-width: 767px) {
|
841 |
.login h1 a {
|
842 |
max-width: 100%;
|
3 |
* Get option and check the key exists in it.
|
4 |
*
|
5 |
* @since 1.0.0
|
6 |
+
* @version 1.1.21
|
7 |
* * * * * * * * * * * * * * * */
|
8 |
|
9 |
|
131 |
$loginpress_background_color = loginpress_get_option_key( 'setting_background_color', $loginpress_array );
|
132 |
$loginpress_background_repeat = loginpress_get_option_key( 'background_repeat_radio', $loginpress_array );
|
133 |
$loginpress_background_postion = loginpress_get_option_key( 'background_position', $loginpress_array );
|
134 |
+
$loginpress_background_postion = str_replace( '-', ' ', $loginpress_background_postion );
|
135 |
$loginpress_background_image_size = loginpress_get_option_key( 'background_image_size', $loginpress_array );
|
136 |
$loginpress_form_background_img = loginpress_get_option_key( 'setting_form_background', $loginpress_array );
|
137 |
$loginpress_form_display_bg = loginpress_get_option_key( 'setting_form_display_bg', $loginpress_array );
|
212 |
$loginpress_opacity = ! empty( $opacity ) ? $opacity : 80;
|
213 |
$inset = $inset ? ' inset' : '';
|
214 |
$opacity_convertion = $loginpress_opacity / 100;
|
215 |
+
$loginpress_rgba = 'rgba( 0,0,0,' . $opacity_convertion . ' )';
|
216 |
|
217 |
return '0 0 ' . $loginpress_shadow . 'px ' . $loginpress_rgba . $inset . ';';
|
218 |
}
|
838 |
margin-bottom: 18px;
|
839 |
position: relative;
|
840 |
}
|
841 |
+
/* LoginPress input field since 1.1.20 */
|
842 |
+
/* .loginpress-input-wrap{
|
843 |
+
position: relative;
|
844 |
+
}
|
845 |
+
.loginpres-input-field {
|
846 |
+
transition: 0.4s;
|
847 |
+
}
|
848 |
+
.loginpres-input-field ~ .focus-border:before, .loginpres-input-field ~ .focus-border:after{
|
849 |
+
content: "";
|
850 |
+
position: absolute;
|
851 |
+
top: 0;
|
852 |
+
left: 50%;
|
853 |
+
width: 0;
|
854 |
+
height: 2px;
|
855 |
+
background-color: #3399FF;
|
856 |
+
transition: 0.4s;
|
857 |
+
z-index: 999;
|
858 |
+
}
|
859 |
+
.loginpres-input-field ~ .focus-border:after{
|
860 |
+
top: auto; bottom: 0;
|
861 |
+
}
|
862 |
+
.loginpres-input-field ~ .focus-border i:before, .loginpres-input-field ~ .focus-border i:after{
|
863 |
+
content: "";
|
864 |
+
position: absolute;
|
865 |
+
top: 50%;
|
866 |
+
left: 0;
|
867 |
+
width: 2px;
|
868 |
+
height: 0;
|
869 |
+
background-color: #3399FF;
|
870 |
+
transition: 0.6s;
|
871 |
+
}
|
872 |
+
.loginpres-input-field ~ .focus-border i:after{
|
873 |
+
left: auto; right: 0;
|
874 |
+
}
|
875 |
+
.loginpres-input-field:focus ~ .focus-border:before, .loginpres-input-field:focus ~ .focus-border:after{
|
876 |
+
left: 0;
|
877 |
+
width: 100%;
|
878 |
+
transition: 0.4s;
|
879 |
+
}
|
880 |
+
.loginpres-input-field:focus ~ .focus-border i:before, .loginpres-input-field:focus ~ .focus-border i:after{
|
881 |
+
top: 0;
|
882 |
+
height: 100%;
|
883 |
+
transition: 0.6s;
|
884 |
+
} */
|
885 |
+
/* ! LoginPress input field since 1.1.20 */
|
886 |
@media screen and (max-width: 767px) {
|
887 |
.login h1 a {
|
888 |
max-width: 100%;
|
custom.php
CHANGED
@@ -7,7 +7,7 @@ class LoginPress_Entities {
|
|
7 |
*
|
8 |
* @var string
|
9 |
* @since 1.0.0
|
10 |
-
* @version 1.1.
|
11 |
*/
|
12 |
public $loginpress_key;
|
13 |
|
@@ -518,13 +518,13 @@ class LoginPress_Entities {
|
|
518 |
'choices' => $loginpress_background
|
519 |
) ) );
|
520 |
|
521 |
-
|
522 |
$wp_customize->add_setting( 'loginpress_customization[background_repeat_radio]', array(
|
523 |
'default' => 'no-repeat',
|
524 |
'type' => 'option',
|
525 |
'capability' => 'manage_options',
|
526 |
'transport' => 'postMessage',
|
527 |
-
'sanitize_callback' => 'loginpress_sanitize_checkbox'
|
528 |
) );
|
529 |
|
530 |
$wp_customize->add_control( 'loginpress_customization[background_repeat_radio]', array(
|
@@ -543,6 +543,7 @@ class LoginPress_Entities {
|
|
543 |
),
|
544 |
) );
|
545 |
|
|
|
546 |
$wp_customize->add_setting( 'loginpress_customization[background_position]', array(
|
547 |
'default' => 'center',
|
548 |
'type' => 'option',
|
@@ -557,15 +558,15 @@ class LoginPress_Entities {
|
|
557 |
'priority' => 25,
|
558 |
'type' => 'select',
|
559 |
'choices' => array(
|
560 |
-
'left
|
561 |
-
'left
|
562 |
-
'left
|
563 |
-
'right
|
564 |
-
'right
|
565 |
-
'right
|
566 |
-
'center
|
567 |
'center' => 'center',
|
568 |
-
'center
|
569 |
),
|
570 |
) );
|
571 |
|
7 |
*
|
8 |
* @var string
|
9 |
* @since 1.0.0
|
10 |
+
* @version 1.1.21
|
11 |
*/
|
12 |
public $loginpress_key;
|
13 |
|
518 |
'choices' => $loginpress_background
|
519 |
) ) );
|
520 |
|
521 |
+
// @version 1.1.21
|
522 |
$wp_customize->add_setting( 'loginpress_customization[background_repeat_radio]', array(
|
523 |
'default' => 'no-repeat',
|
524 |
'type' => 'option',
|
525 |
'capability' => 'manage_options',
|
526 |
'transport' => 'postMessage',
|
527 |
+
// 'sanitize_callback' => 'loginpress_sanitize_checkbox'
|
528 |
) );
|
529 |
|
530 |
$wp_customize->add_control( 'loginpress_customization[background_repeat_radio]', array(
|
543 |
),
|
544 |
) );
|
545 |
|
546 |
+
// @version 1.1.21
|
547 |
$wp_customize->add_setting( 'loginpress_customization[background_position]', array(
|
548 |
'default' => 'center',
|
549 |
'type' => 'option',
|
558 |
'priority' => 25,
|
559 |
'type' => 'select',
|
560 |
'choices' => array(
|
561 |
+
'left-top' => 'left top',
|
562 |
+
'left-center' => 'left center',
|
563 |
+
'left-bottom' => 'left bottom',
|
564 |
+
'right-top' => 'right top',
|
565 |
+
'right-center' => 'right center',
|
566 |
+
'right-bottom' => 'right bottom',
|
567 |
+
'center-top' => 'center top',
|
568 |
'center' => 'center',
|
569 |
+
'center-bottom' => 'center bottom',
|
570 |
),
|
571 |
) );
|
572 |
|
js/customize-controls.js
CHANGED
@@ -786,10 +786,12 @@ jQuery(document).ready(function($) {
|
|
786 |
});
|
787 |
|
788 |
// Live Background Position Change.
|
|
|
789 |
wp.customize( 'loginpress_customization[background_position]', function(value) {
|
790 |
value.bind( function(loginPressVal) {
|
791 |
|
792 |
customizer_bg = change_theme ? change_theme : loginpress_script.login_theme;
|
|
|
793 |
|
794 |
if ( loginpress_find('#loginpress-scbg-position').length == 0 ) {
|
795 |
$("<style type='text/css' id='loginpress-scbg-position'></style>").appendTo(loginpress_find('head'));
|
786 |
});
|
787 |
|
788 |
// Live Background Position Change.
|
789 |
+
// @version 1.1.21
|
790 |
wp.customize( 'loginpress_customization[background_position]', function(value) {
|
791 |
value.bind( function(loginPressVal) {
|
792 |
|
793 |
customizer_bg = change_theme ? change_theme : loginpress_script.login_theme;
|
794 |
+
loginPressVal = loginPressVal.replace( "-", " " );
|
795 |
|
796 |
if ( loginpress_find('#loginpress-scbg-position').length == 0 ) {
|
797 |
$("<style type='text/css' id='loginpress-scbg-position'></style>").appendTo(loginpress_find('head'));
|
js/loginpress.js
CHANGED
@@ -10,6 +10,17 @@
|
|
10 |
$('.user-pass-fields').each(function() {
|
11 |
$(this).append('<div class="loginpress-caps-lock">' + loginpress_script.caps_lock + '</div>');
|
12 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
});
|
14 |
window.onload = function(e) {
|
15 |
|
10 |
$('.user-pass-fields').each(function() {
|
11 |
$(this).append('<div class="loginpress-caps-lock">' + loginpress_script.caps_lock + '</div>');
|
12 |
});
|
13 |
+
|
14 |
+
// $('.input').each(function() {
|
15 |
+
// if ( $(this).parent().hasClass('user-pass-fields') ) {
|
16 |
+
// $(this).parent().addClass( "loginpress-input-wrap" );
|
17 |
+
// $(this).addClass( "loginpres-input-field" );
|
18 |
+
// } else {
|
19 |
+
// $(this).wrap( "<div class='loginpress-input-wrap'></div>" ).addClass( "loginpres-input-field" );
|
20 |
+
// }
|
21 |
+
// $( '<span class="focus-border"><i></i></span>' ).appendTo( $(this).parent() );
|
22 |
+
// });
|
23 |
+
|
24 |
});
|
25 |
window.onload = function(e) {
|
26 |
|
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.1.
|
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.1.
|
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.1.21
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: https://WPBrigade.com/
|
9 |
* Text Domain: loginpress
|
22 |
/**
|
23 |
* @var string
|
24 |
*/
|
25 |
+
public $version = '1.1.21';
|
26 |
|
27 |
/**
|
28 |
* @var The single instance of the class
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tested up to: 5.1
|
|
4 |
Contributors: WPBrigade, hiddenpearls, AbdulWahab610
|
5 |
Author URI: https://wpbrigade.com
|
6 |
Tags: wp-login, login, login customizer, custom login, wordpress login, login customizer, custom login page, login error, login page style, loginpress
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -205,6 +205,11 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
|
|
205 |
|
206 |
== Changelog ==
|
207 |
|
|
|
|
|
|
|
|
|
|
|
208 |
= 1.1.20 - 2019-02-21 =
|
209 |
* Enhancement: Add themes details in debugging log file.
|
210 |
* Compatibility: Compatible with WordPress 5.1
|
@@ -452,5 +457,5 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
|
|
452 |
|
453 |
== Upgrade Notice ==
|
454 |
|
455 |
-
= 1.1.
|
456 |
* 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, login customizer, custom login page, login error, login page style, loginpress
|
7 |
+
Stable tag: 1.1.21
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
205 |
|
206 |
== Changelog ==
|
207 |
|
208 |
+
= 1.1.21 - 2019-03-08 =
|
209 |
+
* Bugfix: Background repeat.
|
210 |
+
* Bugfix: Background position.
|
211 |
+
* Credit: Special thanks to <a href="https://profiles.wordpress.org/nggum" rel="friend">nggum</a> for highlighting the issue.
|
212 |
+
|
213 |
= 1.1.20 - 2019-02-21 =
|
214 |
* Enhancement: Add themes details in debugging log file.
|
215 |
* Compatibility: Compatible with WordPress 5.1
|
457 |
|
458 |
== Upgrade Notice ==
|
459 |
|
460 |
+
= 1.1.21 =
|
461 |
* Important Release, upgrade immediately.
|