Version Description
- Update immediately - compatible with 5.7
=
Download this release
Release Info
Developer | hiddenpearls |
Plugin | Custom Login Page Customizer |
Version | 2.1.4 |
Comparing to | |
See all releases |
Code changes from version 2.1.3 to 2.1.4
login-customizer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Custom Login Page Customizer
|
4 |
* Plugin URI: https://loginpress.pro/?utm_source=login-customizer-lite&utm_medium=plugin-url-link
|
5 |
* Description: Custom Login Customizer plugin allows you to easily customize your login page straight from your WordPress Customizer! Awesome, right?
|
6 |
-
* Version: 2.1.
|
7 |
* Requires at least: 5.0
|
8 |
* Requires PHP: 5.6
|
9 |
* Author: Hardeep Asrani
|
3 |
* Plugin Name: Custom Login Page Customizer
|
4 |
* Plugin URI: https://loginpress.pro/?utm_source=login-customizer-lite&utm_medium=plugin-url-link
|
5 |
* Description: Custom Login Customizer plugin allows you to easily customize your login page straight from your WordPress Customizer! Awesome, right?
|
6 |
+
* Version: 2.1.4
|
7 |
* Requires at least: 5.0
|
8 |
* Requires PHP: 5.6
|
9 |
* Author: Hardeep Asrani
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tested up to: 5.7
|
|
4 |
Contributors: hardeepasrani, hiddenpearls
|
5 |
Author URI: https://loginpress.pro/?utm_source=login-customizer-lite&utm_medium=author-url-link
|
6 |
Tags: login, customizer, logo, login logo, login customizer, login page,admin, branding, customization, custom login, error, login error, custom login pro
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -46,11 +46,15 @@ Please visit <a target="_blank" rel="nofollow" href="https://loginpress.pro/?utm
|
|
46 |
|
47 |
== Upgrade Notice ==
|
48 |
|
49 |
-
= 2.1.
|
50 |
* Update immediately - compatible with 5.7
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
|
|
54 |
= 2.1.3 - 2021-04-17 =
|
55 |
|
56 |
* Enhancement: Compatible with <a href="https://wordpress.org/plugins/two-factor/" rel="plugin">2FA Two Factor Authentication</a> plugin.
|
4 |
Contributors: hardeepasrani, hiddenpearls
|
5 |
Author URI: https://loginpress.pro/?utm_source=login-customizer-lite&utm_medium=author-url-link
|
6 |
Tags: login, customizer, logo, login logo, login customizer, login page,admin, branding, customization, custom login, error, login error, custom login pro
|
7 |
+
Stable tag: 2.1.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
46 |
|
47 |
== Upgrade Notice ==
|
48 |
|
49 |
+
= 2.1.4 =
|
50 |
* Update immediately - compatible with 5.7
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 2.1.4 - 2021-06-16 =
|
55 |
+
* New Feature: Introducing a new control for change wp-login.php page title.
|
56 |
+
* Enhancement: Optimized Code & fix PHP 8.0 Error.
|
57 |
+
|
58 |
= 2.1.3 - 2021-04-17 =
|
59 |
|
60 |
* Enhancement: Compatible with <a href="https://wordpress.org/plugins/two-factor/" rel="plugin">2FA Two Factor Authentication</a> plugin.
|
src/Customizer/Panel/Functions.php
CHANGED
@@ -28,6 +28,7 @@ namespace LoginCustomizer\Customizer\Panel;
|
|
28 |
}
|
29 |
add_filter( 'gettext', array( $this, 'change_username_label'), 20, 3 );
|
30 |
}
|
|
|
31 |
add_action( 'login_head', array( $this, 'login_page_custom_head' ) );
|
32 |
|
33 |
|
@@ -36,6 +37,13 @@ namespace LoginCustomizer\Customizer\Panel;
|
|
36 |
add_filter( 'login_headerurl', array( $this, 'logincust_login_logo_url' ), 99 );
|
37 |
}
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
/**
|
41 |
* Compare WP version: login_headertitle was deprecated in WordPress 5.2
|
@@ -94,6 +102,21 @@ namespace LoginCustomizer\Customizer\Panel;
|
|
94 |
return $options['logincust_logo_link'];
|
95 |
}
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
/**
|
99 |
* Change Label of the Username from login Form.
|
@@ -102,6 +125,7 @@ namespace LoginCustomizer\Customizer\Panel;
|
|
102 |
* @param [string] $text
|
103 |
* @param [string] $domain
|
104 |
* @return string
|
|
|
105 |
* @since 2.2.0
|
106 |
* @version 2.2.0
|
107 |
*
|
@@ -156,8 +180,10 @@ namespace LoginCustomizer\Customizer\Panel;
|
|
156 |
|
157 |
/**
|
158 |
* logincust_always_checked_rememberme
|
|
|
159 |
* @since 2.2.0
|
160 |
* @version 2.0.0
|
|
|
161 |
* @return void
|
162 |
*/
|
163 |
function logincust_always_checked_rememberme() {
|
@@ -177,10 +203,7 @@ namespace LoginCustomizer\Customizer\Panel;
|
|
177 |
|
178 |
}
|
179 |
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
}
|
184 |
|
185 |
|
186 |
|
28 |
}
|
29 |
add_filter( 'gettext', array( $this, 'change_username_label'), 20, 3 );
|
30 |
}
|
31 |
+
|
32 |
add_action( 'login_head', array( $this, 'login_page_custom_head' ) );
|
33 |
|
34 |
|
37 |
add_filter( 'login_headerurl', array( $this, 'logincust_login_logo_url' ), 99 );
|
38 |
}
|
39 |
|
40 |
+
/**
|
41 |
+
* Change login page title
|
42 |
+
* @since 2.1.4
|
43 |
+
*/
|
44 |
+
if ( ! empty( $options['logincust_login_title'] ) ) {
|
45 |
+
add_filter( 'login_title', array( $this, 'logincust_login_page_title' ), 99 );
|
46 |
+
}
|
47 |
|
48 |
/**
|
49 |
* Compare WP version: login_headertitle was deprecated in WordPress 5.2
|
102 |
return $options['logincust_logo_link'];
|
103 |
}
|
104 |
|
105 |
+
/**
|
106 |
+
* Change login page title
|
107 |
+
* @since 2.1.4
|
108 |
+
*/
|
109 |
+
|
110 |
+
function logincust_login_page_title() {
|
111 |
+
|
112 |
+
// Return logo link option
|
113 |
+
$logincust_setting = get_option( 'login_customizer_options' );
|
114 |
+
$login_title = isset( $logincust_setting['logincust_login_title'] ) ? $logincust_setting['logincust_login_title'] : '';
|
115 |
+
|
116 |
+
return $login_title;
|
117 |
+
}
|
118 |
+
|
119 |
+
|
120 |
|
121 |
/**
|
122 |
* Change Label of the Username from login Form.
|
125 |
* @param [string] $text
|
126 |
* @param [string] $domain
|
127 |
* @return string
|
128 |
+
*
|
129 |
* @since 2.2.0
|
130 |
* @version 2.2.0
|
131 |
*
|
180 |
|
181 |
/**
|
182 |
* logincust_always_checked_rememberme
|
183 |
+
*
|
184 |
* @since 2.2.0
|
185 |
* @version 2.0.0
|
186 |
+
|
187 |
* @return void
|
188 |
*/
|
189 |
function logincust_always_checked_rememberme() {
|
203 |
|
204 |
}
|
205 |
|
206 |
+
}
|
|
|
|
|
|
|
207 |
|
208 |
|
209 |
|
src/Customizer/Panel/Sections/Logo.php
CHANGED
@@ -24,7 +24,7 @@ use LoginCustomizer\Customizer\Panel\Controls\Range_Slider;
|
|
24 |
class Logo{
|
25 |
|
26 |
function __construct( $wp_customize ) {
|
27 |
-
|
28 |
$wp_customize->add_section(
|
29 |
'logincust_logo_section',
|
30 |
array(
|
@@ -197,5 +197,25 @@ class Logo{
|
|
197 |
'settings' => 'login_customizer_options[logincust_logo_link]',
|
198 |
)
|
199 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
}
|
201 |
}
|
24 |
class Logo{
|
25 |
|
26 |
function __construct( $wp_customize ) {
|
27 |
+
|
28 |
$wp_customize->add_section(
|
29 |
'logincust_logo_section',
|
30 |
array(
|
197 |
'settings' => 'login_customizer_options[logincust_logo_link]',
|
198 |
)
|
199 |
);
|
200 |
+
$wp_customize->add_setting(
|
201 |
+
'login_customizer_options[logincust_login_title]',
|
202 |
+
array(
|
203 |
+
'default' => '',
|
204 |
+
'type' => 'option',
|
205 |
+
'capability' => 'edit_theme_options',
|
206 |
+
'sanitize_callback' => 'esc_html',
|
207 |
+
)
|
208 |
+
);
|
209 |
+
|
210 |
+
$wp_customize->add_control(
|
211 |
+
'login_customizer_options[logincust_login_title]',
|
212 |
+
array(
|
213 |
+
'label' => __( 'Login Page title', 'login-customizer' ),
|
214 |
+
'description' => __( 'Login page title that is shown on WordPress login page.', 'login-customizer' ),
|
215 |
+
'section' => 'logincust_logo_section',
|
216 |
+
'priority' => 30,
|
217 |
+
'settings' => 'login_customizer_options[logincust_login_title]',
|
218 |
+
)
|
219 |
+
);
|
220 |
}
|
221 |
}
|
src/Customizer/Panel/Sections/Other.php
CHANGED
@@ -85,7 +85,29 @@ class Other{
|
|
85 |
)
|
86 |
)
|
87 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
$wp_customize->add_setting(
|
90 |
'login_customizer_options[logincust_field_back_blog]',
|
91 |
array(
|
85 |
)
|
86 |
)
|
87 |
);
|
88 |
+
$wp_customize->add_setting(
|
89 |
+
'login_customizer_options[logincust_privacy_policy_link]',
|
90 |
+
array(
|
91 |
+
'default' => false,
|
92 |
+
'type' => 'option',
|
93 |
+
'capability' => 'edit_theme_options',
|
94 |
+
'sanitize_callback' => 'absint',
|
95 |
+
'transport' => 'postMessage',
|
96 |
+
)
|
97 |
+
);
|
98 |
|
99 |
+
$wp_customize->add_control(
|
100 |
+
new Toggle(
|
101 |
+
$wp_customize,
|
102 |
+
'login_customizer_options[logincust_privacy_policy_link]',
|
103 |
+
array(
|
104 |
+
'label' => __( 'Disable Privacy policy?', 'login-customizer' ),
|
105 |
+
'section' => 'logincust_other_section',
|
106 |
+
'priority' => 10,
|
107 |
+
'settings' => 'login_customizer_options[logincust_privacy_policy_link]',
|
108 |
+
)
|
109 |
+
)
|
110 |
+
);
|
111 |
$wp_customize->add_setting(
|
112 |
'login_customizer_options[logincust_field_back_blog]',
|
113 |
array(
|
src/Customizer/template-login-customizer.php
CHANGED
@@ -116,12 +116,16 @@
|
|
116 |
?>
|
117 |
</a>
|
118 |
</p>
|
|
|
|
|
|
|
119 |
</div>
|
120 |
<?php
|
121 |
do_action( 'login_footer' );
|
122 |
$options = get_option( 'login_customizer_options' );
|
123 |
-
|
124 |
-
|
|
|
125 |
wp_footer();
|
126 |
?>
|
127 |
</body>
|
116 |
?>
|
117 |
</a>
|
118 |
</p>
|
119 |
+
<div class="privacy-policy-page-link">
|
120 |
+
<a class="privacy-policy-link" href="<?php get_privacy_policy_url()?>">Privacy Policy</a>
|
121 |
+
</div>
|
122 |
</div>
|
123 |
<?php
|
124 |
do_action( 'login_footer' );
|
125 |
$options = get_option( 'login_customizer_options' );
|
126 |
+
if ( ! empty( $options['logincust_other_js'] ) ) {
|
127 |
+
echo '<script type="text/javascript">' . "\n" . $options['logincust_other_js'] . "\n" . '</script>' . "\n";
|
128 |
+
}
|
129 |
wp_footer();
|
130 |
?>
|
131 |
</body>
|