Custom Login Page Customizer | LoginPress - Version 1.1.6

Version Description

  • 2018-06-25 =
  • Bugfix: Forget & Registration Form Transparency issue.
  • Bugfix: license issue fix for premium users.
  • Update: LoginPress addons ( Auto Login, Login Redirects, Social Login ) and LoginPress Pro.
  • Compatibility: Compatible with WordPress 4.9.
Download this release

Release Info

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

Code changes from version 1.1.5 to 1.1.6

classes/class-loginpress-addons.php CHANGED
@@ -45,8 +45,8 @@ if ( ! class_exists( 'LoginPress_Addons' ) ) :
45
  $url = 'https://wpbrigade.com/wp-json/wpbrigade/v1/plugins?addons=loginpress-pro-add-ons';
46
 
47
  // Get data from the remote URL.
48
- $response = wp_remote_get( $url, array( 'timeout' => 20) );
49
-
50
  if ( ! is_wp_error( $response ) ) {
51
 
52
  // Decode the data that we got.
@@ -155,11 +155,12 @@ if ( ! class_exists( 'LoginPress_Addons' ) ) :
155
  function is_addon_licensed( $categories ) {
156
 
157
  if( LoginPress_Pro::get_license_id() == 2 and in_array('loginpress-pro-small-business', $categories) ){
158
-
159
  return true;
160
  }
161
  else if( LoginPress_Pro::get_license_id() == 3 and in_array('loginpress-pro-agency', $categories) ){
162
  return true;
 
 
163
  }else if( LoginPress_Pro::get_license_id() == 1 and in_array('loginpress-free-add-ons', $categories) ){
164
  return true;
165
  }else{
45
  $url = 'https://wpbrigade.com/wp-json/wpbrigade/v1/plugins?addons=loginpress-pro-add-ons';
46
 
47
  // Get data from the remote URL.
48
+ $response = wp_remote_get( $url, array( 'timeout' => 20 ) );
49
+
50
  if ( ! is_wp_error( $response ) ) {
51
 
52
  // Decode the data that we got.
155
  function is_addon_licensed( $categories ) {
156
 
157
  if( LoginPress_Pro::get_license_id() == 2 and in_array('loginpress-pro-small-business', $categories) ){
 
158
  return true;
159
  }
160
  else if( LoginPress_Pro::get_license_id() == 3 and in_array('loginpress-pro-agency', $categories) ){
161
  return true;
162
+ }else if( LoginPress_Pro::get_license_id() == 4 and in_array('loginpress-pro-agency', $categories) ){
163
+ return true;
164
  }else if( LoginPress_Pro::get_license_id() == 1 and in_array('loginpress-free-add-ons', $categories) ){
165
  return true;
166
  }else{
classes/class-loginpress-settings-api.php CHANGED
@@ -562,7 +562,7 @@ if ( !class_exists( 'LoginPress_Settings_API' ) ):
562
  *
563
  * This function displays every sections in a different form.
564
  * @since 1.0.9
565
- * @version 1.0.23
566
  */
567
  function show_forms() {
568
  ?>
@@ -619,7 +619,16 @@ if ( !class_exists( 'LoginPress_Settings_API' ) ):
619
  */
620
  if ( $form['id'] == 'loginpress_register_fields' ) :
621
  do_action( 'loginpress_register_fields_script' );
622
- endif;?>
 
 
 
 
 
 
 
 
 
623
  </div>
624
  <?php endforeach; ?>
625
 
562
  *
563
  * This function displays every sections in a different form.
564
  * @since 1.0.9
565
+ * @version 1.1.6
566
  */
567
  function show_forms() {
568
  ?>
619
  */
620
  if ( $form['id'] == 'loginpress_register_fields' ) :
621
  do_action( 'loginpress_register_fields_script' );
622
+ endif;
623
+ /**
624
+ * Add Social Login Addon Action Hook.
625
+ * @since 1.1.6
626
+ * @return string
627
+ */
628
+ if ( $form['id'] == 'loginpress_social_logins' ) :
629
+ do_action( 'loginpress_social_login_help_tab_script' );
630
+ endif;
631
+ ?>
632
  </div>
633
  <?php endforeach; ?>
634
 
css/style-login.php CHANGED
@@ -3,6 +3,7 @@
3
  * Get option and check the key exists in it.
4
  *
5
  * @since 1.0.0
 
6
  * * * * * * * * * * * * * * * */
7
 
8
 
@@ -21,6 +22,14 @@ function loginpress_get_option_key( $loginpress_key, $loginpress_array ) {
21
  }
22
  }
23
 
 
 
 
 
 
 
 
 
24
  function loginpress_bg_option( $loginpress_key, $loginpress_array ) {
25
 
26
  if ( array_key_exists( $loginpress_key, $loginpress_array ) ) {
@@ -31,6 +40,12 @@ function loginpress_bg_option( $loginpress_key, $loginpress_array ) {
31
  }
32
  }
33
 
 
 
 
 
 
 
34
  function loginpress_check_px( $value ) {
35
 
36
  if ( strpos( $value, "px" ) ) {
@@ -42,6 +57,12 @@ function loginpress_check_px( $value ) {
42
  }
43
  }
44
 
 
 
 
 
 
 
45
  function loginpress_check_percentage( $value ) {
46
 
47
  if ( strpos( $value, "%" ) ) {
@@ -241,7 +262,7 @@ function loginpress_box_shadow( $shadow, $opacity, $default_shadow = 0, $inset =
241
  <?php if ( ! empty( $loginpress_form_display_bg ) && true == $loginpress_form_display_bg ) : ?>
242
  background: transparent;
243
  <?php endif; ?>
244
- <?php if ( ! empty( $loginpress_form_background_clr ) ) : ?>
245
  background-color: <?php echo $loginpress_form_background_clr; ?>;
246
  <?php endif; ?>
247
  <?php if ( ! empty( $loginpress_login_form_radius ) ) : ?>
@@ -381,7 +402,7 @@ body.login {
381
  <?php if ( ! empty( $loginpress_form_background_img ) ) : ?>
382
  background-image: url(<?php echo $loginpress_form_background_img; ?>);
383
  <?php endif; ?>
384
- <?php if ( ! empty( $loginpress_form_background_clr ) ) : ?>
385
  background-color: <?php echo $loginpress_form_background_clr; ?>;
386
  <?php endif; ?>
387
  <?php if ( ! empty( $loginpress_form_height ) ) : ?>
@@ -464,7 +485,7 @@ box-shadow: <?php echo loginpress_box_shadow( $loginpress_textfield_shadow, $log
464
  <?php if ( ! empty( $loginpress_form_padding ) ) : ?>
465
  padding: <?php echo $loginpress_form_padding; ?>;
466
  <?php endif; ?>
467
- <?php if ( ! empty( $loginpress_form_background_clr ) ) : ?>
468
  background-color: <?php echo $loginpress_form_background_clr; ?>;
469
  <?php endif; ?>
470
  <?php if ( ! empty( $loginpress_form_display_bg ) && true == $loginpress_form_display_bg ) : ?>
@@ -476,7 +497,7 @@ box-shadow: <?php echo loginpress_box_shadow( $loginpress_textfield_shadow, $log
476
  <?php if ( ! empty( $loginpress_form_padding ) ) : ?>
477
  padding: <?php echo $loginpress_form_padding; ?>;
478
  <?php endif; ?>
479
- <?php if ( ! empty( $loginpress_form_background_clr ) ) : ?>
480
  background-color: <?php echo $loginpress_form_background_clr; ?>;
481
  <?php endif; ?>
482
  <?php if ( ! empty( $loginpress_form_display_bg ) && true == $loginpress_form_display_bg ) : ?>
3
  * Get option and check the key exists in it.
4
  *
5
  * @since 1.0.0
6
+ * @version 1.1.6
7
  * * * * * * * * * * * * * * * */
8
 
9
 
22
  }
23
  }
24
 
25
+ /**
26
+ * [loginpress_bg_option Check the background image of the template.]
27
+ * @param string $loginpress_key [description]
28
+ * @param array $loginpress_array [description]
29
+ * @return string [description]
30
+ * @since 1.1.0
31
+ * @version 1.1.1
32
+ */
33
  function loginpress_bg_option( $loginpress_key, $loginpress_array ) {
34
 
35
  if ( array_key_exists( $loginpress_key, $loginpress_array ) ) {
40
  }
41
  }
42
 
43
+ /**
44
+ * [loginpress_check_px Return the value with 'px']
45
+ * @param string $value [description]
46
+ * @return string [description]
47
+ * @since 1.1.0
48
+ */
49
  function loginpress_check_px( $value ) {
50
 
51
  if ( strpos( $value, "px" ) ) {
57
  }
58
  }
59
 
60
+ /**
61
+ * [loginpress_check_percentage Return the value with '%']
62
+ * @param string $value [description]
63
+ * @return string [description]
64
+ * @since 1.1.0
65
+ */
66
  function loginpress_check_percentage( $value ) {
67
 
68
  if ( strpos( $value, "%" ) ) {
262
  <?php if ( ! empty( $loginpress_form_display_bg ) && true == $loginpress_form_display_bg ) : ?>
263
  background: transparent;
264
  <?php endif; ?>
265
+ <?php if ( true != $loginpress_form_display_bg && ! empty( $loginpress_form_background_clr ) ) : ?>
266
  background-color: <?php echo $loginpress_form_background_clr; ?>;
267
  <?php endif; ?>
268
  <?php if ( ! empty( $loginpress_login_form_radius ) ) : ?>
402
  <?php if ( ! empty( $loginpress_form_background_img ) ) : ?>
403
  background-image: url(<?php echo $loginpress_form_background_img; ?>);
404
  <?php endif; ?>
405
+ <?php if ( true != $loginpress_form_display_bg && ! empty( $loginpress_form_background_clr ) ) : ?>
406
  background-color: <?php echo $loginpress_form_background_clr; ?>;
407
  <?php endif; ?>
408
  <?php if ( ! empty( $loginpress_form_height ) ) : ?>
485
  <?php if ( ! empty( $loginpress_form_padding ) ) : ?>
486
  padding: <?php echo $loginpress_form_padding; ?>;
487
  <?php endif; ?>
488
+ <?php if ( true != $loginpress_form_display_bg && ! empty( $loginpress_form_background_clr ) ) : ?>
489
  background-color: <?php echo $loginpress_form_background_clr; ?>;
490
  <?php endif; ?>
491
  <?php if ( ! empty( $loginpress_form_display_bg ) && true == $loginpress_form_display_bg ) : ?>
497
  <?php if ( ! empty( $loginpress_form_padding ) ) : ?>
498
  padding: <?php echo $loginpress_form_padding; ?>;
499
  <?php endif; ?>
500
+ <?php if ( true != $loginpress_form_display_bg && ! empty( $loginpress_form_background_clr ) ) : ?>
501
  background-color: <?php echo $loginpress_form_background_clr; ?>;
502
  <?php endif; ?>
503
  <?php if ( ! empty( $loginpress_form_display_bg ) && true == $loginpress_form_display_bg ) : ?>
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.5
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.5';
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.6
7
  * Author: WPBrigade
8
  * Author URI: http://WPBrigade.com/
9
  * Text Domain: loginpress
22
  /**
23
  * @var string
24
  */
25
+ public $version = '1.1.6';
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.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -204,6 +204,12 @@ Please visit <a target="_blank" rel="friend" href="http://WPBrigade.com/wordpres
204
 
205
  == Changelog ==
206
 
 
 
 
 
 
 
207
  = 1.1.5 - 2018-06-05 =
208
  * Bugfix: RTL customizer issue.
209
  * Bugfix: Label Translation issue.
@@ -378,5 +384,5 @@ Please visit <a target="_blank" rel="friend" href="http://WPBrigade.com/wordpres
378
 
379
  == Upgrade Notice ==
380
 
381
- = 1.1.5 =
382
- * Launched LoginPress addons - Bugfix release.
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.6
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.6 - 2018-06-25 =
208
+ * Bugfix: Forget & Registration Form Transparency issue.
209
+ * Bugfix: license issue fix for premium users.
210
+ * Update: LoginPress addons ( Auto Login, Login Redirects, Social Login ) and LoginPress Pro.
211
+ * Compatibility: Compatible with WordPress 4.9.
212
+
213
  = 1.1.5 - 2018-06-05 =
214
  * Bugfix: RTL customizer issue.
215
  * Bugfix: Label Translation issue.
384
 
385
  == Upgrade Notice ==
386
 
387
+ = 1.1.6 =
388
+ * Bugfix release, upgrade immediately.