Custom Login Page Customizer | LoginPress - Version 1.5.4

Version Description

2021-06-16 = * Bugfix: Form padding was not working on default template; * Enhancement: Automate the current year in copyright note (Use $YEAR$ variable for it in note).

Download this release

Release Info

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

Code changes from version 1.5.3 to 1.5.4

Files changed (4) hide show
  1. css/themes/default-1.php +1 -1
  2. custom.php +40 -24
  3. loginpress.php +2 -2
  4. readme.txt +12 -5
css/themes/default-1.php CHANGED
@@ -98,7 +98,7 @@ function first_presets() {
98
  .login form {
99
  margin-top: 20px;
100
  margin-left: 0;
101
- padding: 0 24px 12px !important;
102
  background: #fff;
103
  -webkit-box-shadow: none;
104
  box-shadow: none;
98
  .login form {
99
  margin-top: 20px;
100
  margin-left: 0;
101
+ padding: 0 24px 12px;
102
  background: #fff;
103
  -webkit-box-shadow: none;
104
  box-shadow: none;
custom.php CHANGED
@@ -1490,21 +1490,26 @@ class LoginPress_Entities {
1490
  // 'priority' => 76,
1491
  // 'settings' => 'loginpress_customization[show_some_love_text_color]'
1492
  // ) ) );
1493
-
1494
- $wp_customize->add_setting( 'loginpress_customization[login_footer_copy_right]', array(
1495
- 'default' => sprintf( __('© %1$s %2$s, All Rights Reserved.', 'loginpress'), date("Y"), get_bloginfo('name') ),
1496
- 'type' => 'option',
1497
- 'capability' => 'manage_options',
1498
- 'transport' => 'postMessage',
1499
- 'sanitize_callback' => 'wp_kses_post'
1500
- ) );
1501
- $wp_customize->add_control( 'loginpress_customization[login_footer_copy_right]', array(
1502
- 'label' => __( 'Copyright Note:', 'loginpress' ),
1503
- 'type' => 'textarea',
1504
- 'section' => 'section_fotter',
1505
- 'priority' => 77,
1506
- 'settings' => 'loginpress_customization[login_footer_copy_right]'
1507
- ) );
 
 
 
 
 
1508
 
1509
  /**
1510
  * [Enable / Disabe Footer Text with LoginPress_Radio_Control]
@@ -1512,12 +1517,12 @@ class LoginPress_Entities {
1512
  * @version 1.0.23
1513
  */
1514
  $wp_customize->add_control( new LoginPress_Radio_Control( $wp_customize, 'loginpress_customization[loginpress_show_love]', array(
1515
- 'settings' => 'loginpress_customization[loginpress_show_love]',
1516
- 'section' => 'section_fotter',
1517
- 'priority' => 80,
1518
- 'type' => 'ios',// light, ios, flat
1519
- 'label' => __( 'Show some Love. Please help others learn about this free plugin by placing small link in footer. Thank you very much!', 'loginpress' ),
1520
- ) ) );
1521
 
1522
  /**
1523
  * [Love position on footer.]
@@ -1592,14 +1597,14 @@ class LoginPress_Entities {
1592
  * Manage the Login Footer Links
1593
  *
1594
  * @since 1.0.0
1595
- * @version 1.2.2
1596
  * * * * * * * * * * * * * * * */
1597
  public function login_page_custom_footer() {
1598
 
1599
  /**
1600
  * Add brand postion class.
1601
  * @since 1.1.3
1602
- * @version 1.4.3
1603
  */
1604
  $position = ''; // Empty variable for storing position class.
1605
  if ( $this->loginpress_key ) {
@@ -1623,8 +1628,19 @@ class LoginPress_Entities {
1623
 
1624
  if ( array_key_exists( 'login_copy_right_display', $this->loginpress_key ) && true == $this->loginpress_key['login_copy_right_display'] ) {
1625
 
1626
- $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'], 'loginpress' ) : sprintf( __('© %1$s %2$s, All Rights Reserved.', 'loginpress'), date("Y"), get_bloginfo('name') );
 
 
 
 
 
 
 
 
1627
 
 
 
 
1628
  echo '<div class="copyRight">'. apply_filters( 'loginpress_footer_copyright', $footer_text ) .'</div>';
1629
  }
1630
  }
1490
  // 'priority' => 76,
1491
  // 'settings' => 'loginpress_customization[show_some_love_text_color]'
1492
  // ) ) );
1493
+ /**
1494
+ * [Add Copyright string in the footer along with year]
1495
+ *
1496
+ * @version 1.5.4
1497
+ */
1498
+ $wp_customize->add_setting( 'loginpress_customization[login_footer_copy_right]', array(
1499
+ 'default' => sprintf( __('© %1$s %2$s, All Rights Reserved.', 'loginpress'), '$YEAR$' , get_bloginfo('name') ),
1500
+ 'type' => 'option',
1501
+ 'capability' => 'manage_options',
1502
+ 'transport' => 'postMessage',
1503
+ 'sanitize_callback' => 'wp_kses_post'
1504
+ ) );
1505
+ $wp_customize->add_control( 'loginpress_customization[login_footer_copy_right]', array(
1506
+ 'label' => __( 'Copyright Note:', 'loginpress' ),
1507
+ 'description' => sprintf( __( '%1$s will be replaced with the current year.', 'loginpress' ), '<code>$YEAR$</code>' ),
1508
+ 'type' => 'textarea',
1509
+ 'section' => 'section_fotter',
1510
+ 'priority' => 77,
1511
+ 'settings' => 'loginpress_customization[login_footer_copy_right]'
1512
+ ) );
1513
 
1514
  /**
1515
  * [Enable / Disabe Footer Text with LoginPress_Radio_Control]
1517
  * @version 1.0.23
1518
  */
1519
  $wp_customize->add_control( new LoginPress_Radio_Control( $wp_customize, 'loginpress_customization[loginpress_show_love]', array(
1520
+ 'settings' => 'loginpress_customization[loginpress_show_love]',
1521
+ 'section' => 'section_fotter',
1522
+ 'priority' => 80,
1523
+ 'type' => 'ios', // light, ios, flat
1524
+ 'label' => __( 'Show some Love. Please help others learn about this free plugin by placing small link in footer. Thank you very much!', 'loginpress' ),
1525
+ ) ) );
1526
 
1527
  /**
1528
  * [Love position on footer.]
1597
  * Manage the Login Footer Links
1598
  *
1599
  * @since 1.0.0
1600
+ * @version 1.5.4
1601
  * * * * * * * * * * * * * * * */
1602
  public function login_page_custom_footer() {
1603
 
1604
  /**
1605
  * Add brand postion class.
1606
  * @since 1.1.3
1607
+ * @version 1.5.4
1608
  */
1609
  $position = ''; // Empty variable for storing position class.
1610
  if ( $this->loginpress_key ) {
1628
 
1629
  if ( array_key_exists( 'login_copy_right_display', $this->loginpress_key ) && true == $this->loginpress_key['login_copy_right_display'] ) {
1630
 
1631
+ /**
1632
+ * Replace the "$YEAR$" with current year if and where found.
1633
+ * @since 1.5.4
1634
+ */
1635
+ if( strpos( $this->loginpress_key['login_footer_copy_right'], '$YEAR$' ) !== false ) {
1636
+ $year = date( "Y" );
1637
+ //Setting the value with current year and saving in the 'login_footer_copy_right' key
1638
+ $this->loginpress_key['login_footer_copy_right'] = str_replace( '$YEAR$', $year, $this->loginpress_key['login_footer_copy_right'] );
1639
+ }
1640
 
1641
+ // Show a default value if not changed or show the changed text string for 'login_footer_copy_right'
1642
+ $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' ) );
1643
+
1644
  echo '<div class="copyRight">'. apply_filters( 'loginpress_footer_copyright', $footer_text ) .'</div>';
1645
  }
1646
  }
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.3
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.3';
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.4
7
  * Author: WPBrigade
8
  * Author URI: https://WPBrigade.com/
9
  * Text Domain: loginpress
22
  /**
23
  * @var string
24
  */
25
+ public $version = '1.5.4';
26
 
27
  /**
28
  * @var The single instance of the class
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -118,10 +118,13 @@ After going through this extensive list of features you can imagine Why LoginPre
118
  = What's Next =
119
 
120
 
121
- If you like this plugin, then consider checking out our other projects:
 
 
 
 
 
122
 
123
- * <a href="https://analytify.io/" rel="friend" title="Google Analytics by Analytify">Google Analytics by Analytify</a> - Google Analytics by Analytify
124
- * <a href="https://wpbrigade.com/" rel="friend" title="Related Posts">Related Posts</a> - Best Related Posts Plugin
125
 
126
  == Notes ==
127
 
@@ -217,6 +220,10 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
217
 
218
  == Changelog ==
219
 
 
 
 
 
220
  = 1.5.3 – 2021-05-18 =
221
  * Bugfix: Remove depreciative method jQuery.fn.load().
222
  * Enhancement: Translations added for custom login messages.
@@ -594,5 +601,5 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
594
 
595
  == Upgrade Notice ==
596
 
597
- = 1.5.3 =
598
  * Important Release, upgrade immediately. Compatible with 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
 
118
  = What's Next =
119
 
120
 
121
+ If you like this plugin, then consider checking out our other amazing plugins:
122
+
123
+ * <a href="https://analytify.io/ref/73/?utm_source=loginpress&amp;utm_medium=readme&amp;utm_campaign=pro-upgrade" rel="friend" title="Google Analytics by Analytify">Analytify - Google Analytics WordPress Plugin</a>
124
+ * <a href="https://wordpress.org/plugins/related-posts-thumbnails/" rel="friend" title="Related Posts">WordPress Related Posts</a> - Best Related Posts Plugin
125
+ * <a href="https://simplesocialbuttons.com?utm_source=loginpress&amp;utm_medium=readme&amp;utm_campaign=pro-upgrade" rel="friend" title="Simple Social Buttons">Simple Social Buttons</a> - Simple Social Sharing WordPress Plugin
126
+ * [Under Construction, Coming Soon & Maintenance Mode](https://wpbrigade.com/recommend/maintenance-mode?utm_source=loginpress&amp;utm_medium=readme&amp;utm_campaign=pro-upgrade) - Plugin for Under construction & Coming soon page
127
 
 
 
128
 
129
  == Notes ==
130
 
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).
226
+
227
  = 1.5.3 – 2021-05-18 =
228
  * Bugfix: Remove depreciative method jQuery.fn.load().
229
  * Enhancement: Translations added for custom login messages.
601
 
602
  == Upgrade Notice ==
603
 
604
+ = 1.5.4 =
605
  * Important Release, upgrade immediately. Compatible with 5.7