Version Description
- 2018-01-20 =
- Compatibility: Compatible with WordPress 4.9.
- Bugfix: logo sizing
- Bugfix: Compatibility issue with PHP 5.3
Download this release
Release Info
Developer | hiddenpearls |
Plugin | Custom Login Page Customizer | LoginPress |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
- css/style-login.php +27 -10
- loginpress.php +2 -2
- readme.txt +8 -3
css/style-login.php
CHANGED
@@ -55,20 +55,37 @@ function loginpress_check_percentage( $value ) {
|
|
55 |
/**
|
56 |
* [if for login page background]
|
57 |
* @since 1.1.0
|
|
|
58 |
* @return string
|
59 |
*/
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
|
|
64 |
$loginpress_background_img = '';
|
65 |
} else { // Use selected image from gallery control.
|
66 |
-
$loginpress_background_img =
|
67 |
}
|
68 |
} else { // exceptional case (use default image).
|
69 |
$loginpress_background_img = '';
|
70 |
}
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
$loginpress_logo_img = loginpress_get_option_key( 'setting_logo', $loginpress_array );
|
73 |
$loginpress_get_logo_width = loginpress_get_option_key( 'customize_logo_width', $loginpress_array );
|
74 |
$loginpress_logo_width = loginpress_check_px( $loginpress_get_logo_width );
|
@@ -243,19 +260,19 @@ body.login {
|
|
243 |
|
244 |
.login h1 a {
|
245 |
<?php if ( ! empty( $loginpress_logo_img ) ) : ?>
|
246 |
-
background-image: url( <?php echo $loginpress_logo_img; ?> );
|
247 |
<?php endif; ?>
|
248 |
<?php if ( ! empty( $loginpress_logo_width ) ) : ?>
|
249 |
-
width: <?php echo $loginpress_logo_width; ?>;
|
250 |
<?php endif; ?>
|
251 |
<?php if ( ! empty( $loginpress_logo_height ) ) : ?>
|
252 |
-
height: <?php echo $loginpress_logo_height; ?>;
|
253 |
<?php endif; ?>
|
254 |
<?php if ( ! empty( $loginpress_logo_width ) || ! empty( $loginpress_logo_height ) ) : ?>
|
255 |
-
background-size: cover
|
256 |
<?php endif; ?>
|
257 |
<?php if ( ! empty( $loginpress_logo_padding ) ) : ?>
|
258 |
-
padding-bottom: <?php echo $loginpress_logo_padding; ?>;
|
259 |
<?php endif; ?>
|
260 |
|
261 |
}
|
55 |
/**
|
56 |
* [if for login page background]
|
57 |
* @since 1.1.0
|
58 |
+
* @version 1.1.2
|
59 |
* @return string
|
60 |
*/
|
61 |
+
$loginpress_custom_background = loginpress_get_option_key( 'setting_background', $loginpress_array );
|
62 |
+
$loginpress_gallery_background = loginpress_get_option_key( 'gallery_background', $loginpress_array );
|
63 |
+
if ( ! empty ( $loginpress_custom_background ) ) { // Use Custom Background
|
64 |
+
$loginpress_background_img = $loginpress_custom_background;
|
65 |
+
} else if ( ! empty ( $loginpress_gallery_background ) ) { // Background from Gallery Control.
|
66 |
+
if ( LOGINPRESS_DIR_URL . 'img/gallery/img-1.jpg' == $loginpress_gallery_background ) { // If user select 1st image from gallery control then show template's default image.
|
67 |
$loginpress_background_img = '';
|
68 |
} else { // Use selected image from gallery control.
|
69 |
+
$loginpress_background_img = $loginpress_gallery_background;
|
70 |
}
|
71 |
} else { // exceptional case (use default image).
|
72 |
$loginpress_background_img = '';
|
73 |
}
|
74 |
|
75 |
+
/**
|
76 |
+
* Add !important with property's value. To avoid overriding from theme.
|
77 |
+
* @return string
|
78 |
+
* @since 1.1.2
|
79 |
+
*/
|
80 |
+
function loginpress_important() {
|
81 |
+
|
82 |
+
$important = '';
|
83 |
+
if ( ! is_customize_preview() ) { // Avoid !important in customizer previewer.
|
84 |
+
$important = ' !important';
|
85 |
+
}
|
86 |
+
return $important;
|
87 |
+
}
|
88 |
+
|
89 |
$loginpress_logo_img = loginpress_get_option_key( 'setting_logo', $loginpress_array );
|
90 |
$loginpress_get_logo_width = loginpress_get_option_key( 'customize_logo_width', $loginpress_array );
|
91 |
$loginpress_logo_width = loginpress_check_px( $loginpress_get_logo_width );
|
260 |
|
261 |
.login h1 a {
|
262 |
<?php if ( ! empty( $loginpress_logo_img ) ) : ?>
|
263 |
+
background-image: url( <?php echo $loginpress_logo_img; ?> ) <?php echo loginpress_important(); ?>;
|
264 |
<?php endif; ?>
|
265 |
<?php if ( ! empty( $loginpress_logo_width ) ) : ?>
|
266 |
+
width: <?php echo $loginpress_logo_width . loginpress_important(); ?>;
|
267 |
<?php endif; ?>
|
268 |
<?php if ( ! empty( $loginpress_logo_height ) ) : ?>
|
269 |
+
height: <?php echo $loginpress_logo_height . loginpress_important(); ?>;
|
270 |
<?php endif; ?>
|
271 |
<?php if ( ! empty( $loginpress_logo_width ) || ! empty( $loginpress_logo_height ) ) : ?>
|
272 |
+
background-size: cover <?php echo loginpress_important(); ?>;
|
273 |
<?php endif; ?>
|
274 |
<?php if ( ! empty( $loginpress_logo_padding ) ) : ?>
|
275 |
+
padding-bottom: <?php echo $loginpress_logo_padding . loginpress_important(); ?>;
|
276 |
<?php endif; ?>
|
277 |
|
278 |
}
|
loginpress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: LoginPress - Customizing the WordPress Login
|
4 |
* Plugin URI: http://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: http://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: http://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.2
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: http://WPBrigade.com/
|
9 |
* Text Domain: loginpress
|
22 |
/**
|
23 |
* @var string
|
24 |
*/
|
25 |
+
public $version = '1.1.2';
|
26 |
|
27 |
/**
|
28 |
* @var The single instance of the class
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tested up to: 4.9
|
|
4 |
Contributors: WPBrigade, hiddenpearls, AbdulWahab610
|
5 |
Author URI: https://wpbrigade.com
|
6 |
Tags: wp-login, custom wp-login, login customizer, custom login, custom login logo, 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 |
|
@@ -204,6 +204,11 @@ Please visit <a target="_blank" rel="friend" href="http://WPBrigade.com/wordpres
|
|
204 |
|
205 |
== Changelog ==
|
206 |
|
|
|
|
|
|
|
|
|
|
|
207 |
= 1.1.1 - 2018-01-19 =
|
208 |
* Compatibility: Compatible with WordPress 4.9.
|
209 |
* Bugfix: default background fixed
|
@@ -343,5 +348,5 @@ Please visit <a target="_blank" rel="friend" href="http://WPBrigade.com/wordpres
|
|
343 |
|
344 |
== Upgrade Notice ==
|
345 |
|
346 |
-
= 1.1.
|
347 |
-
* Launched LoginPress addons - (Auto Login, Hide Login, Login Redirects, Social Login, Login Widget, Limit Login Attempts)
|
4 |
Contributors: WPBrigade, hiddenpearls, AbdulWahab610
|
5 |
Author URI: https://wpbrigade.com
|
6 |
Tags: wp-login, custom wp-login, login customizer, custom login, custom login logo, login customizer, custom login page, login error, login page style, loginpress
|
7 |
+
Stable tag: 1.1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
204 |
|
205 |
== Changelog ==
|
206 |
|
207 |
+
= 1.1.2 - 2018-01-20 =
|
208 |
+
* Compatibility: Compatible with WordPress 4.9.
|
209 |
+
* Bugfix: logo sizing
|
210 |
+
* Bugfix: Compatibility issue with PHP 5.3
|
211 |
+
|
212 |
= 1.1.1 - 2018-01-19 =
|
213 |
* Compatibility: Compatible with WordPress 4.9.
|
214 |
* Bugfix: default background fixed
|
348 |
|
349 |
== Upgrade Notice ==
|
350 |
|
351 |
+
= 1.1.2 =
|
352 |
+
* Launched LoginPress addons - (Auto Login, Hide Login, Login Redirects, Social Login, Login Widget, Limit Login Attempts) + couple of bug fixes.
|