Custom Login Page Customizer by Colorlib - Version 1.2.7

Version Description

  • Added options to edit register form
  • Added options to edit lost password form
Download this release

Release Info

Developer machothemes
Plugin Icon wp plugin Custom Login Page Customizer by Colorlib
Version 1.2.7
Comparing to
See all releases

Code changes from version 1.2.6 to 1.2.7

LICENSE → LICENSE.txt RENAMED
File without changes
assets/js/clc-customizer.js CHANGED
@@ -17,6 +17,28 @@
17
  });
18
  });
19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  wp.customize.controlConstructor['clc-templates'] = wp.customize.Control.extend({
21
  ready: function() {
22
  var control = this;
17
  });
18
  });
19
 
20
+ wp.customize.section( 'clc_register-form', function( section ) {
21
+ section.expanded.bind( function( isExpanding ) {
22
+ // Value of isExpanding will = true if you're entering the section, false if you're leaving it.
23
+ if ( isExpanding ) {
24
+ wp.customize.previewer.send( 'change-form', 'register' );
25
+ } else {
26
+ wp.customize.previewer.send( 'change-form', 'login' );
27
+ }
28
+ });
29
+ });
30
+
31
+ wp.customize.section( 'clc_lostpassword-form', function( section ) {
32
+ section.expanded.bind( function( isExpanding ) {
33
+ // Value of isExpanding will = true if you're entering the section, false if you're leaving it.
34
+ if ( isExpanding ) {
35
+ wp.customize.previewer.send( 'change-form', 'lostpassword' );
36
+ } else {
37
+ wp.customize.previewer.send( 'change-form', 'login' );
38
+ }
39
+ });
40
+ });
41
+
42
  wp.customize.controlConstructor['clc-templates'] = wp.customize.Control.extend({
43
  ready: function() {
44
  var control = this;
assets/js/clc-preview.js CHANGED
@@ -170,11 +170,11 @@
170
  } );
171
 
172
  // Back to site text
173
- wp.customize( 'clc-options[back-to-text]', function( value ) {
174
- value.bind( function( to ) {
175
- $( '#clc-back-to-text' ).html( '← ' + to );
176
- } );
177
  } );
 
178
 
179
  // Login label
180
  wp.customize( 'clc-options[login-label]', function( value ) {
@@ -182,10 +182,80 @@
182
  if( ! to ) {
183
  return;
184
  }
185
- $( '#wp-submit' ).val( to );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  } );
187
  } );
188
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
189
  // Columns width
190
  wp.customize( 'clc-options[columns-width]', function( value ) {
191
  value.bind( function( to ) {
@@ -211,4 +281,22 @@
211
  wp.customize.preview.send( 'clc-focus-section', $( this ).data( 'section' ) );
212
  } );
213
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
214
  })( jQuery );
170
  } );
171
 
172
  // Back to site text
173
+ wp.customize( 'clc-options[back-to-text]', function( value ) {
174
+ value.bind( function( to ) {
175
+ $( '#clc-back-to-text' ).html( '← ' + to );
 
176
  } );
177
+ } );
178
 
179
  // Login label
180
  wp.customize( 'clc-options[login-label]', function( value ) {
182
  if( ! to ) {
183
  return;
184
  }
185
+ $( '#loginform input[name="wp-submit"]' ).val( to );
186
+ } );
187
+ } );
188
+
189
+ // Register username label
190
+ wp.customize( 'clc-options[register-username-label]', function( value ) {
191
+ value.bind( function( to ) {
192
+ $( '#clc-register-sername-label' ).html( to );
193
+ } );
194
+ } );
195
+
196
+ // Register email label
197
+ wp.customize( 'clc-options[register-email-label]', function( value ) {
198
+ value.bind( function( to ) {
199
+ $( '#clc-register-email-label' ).html( to );
200
+ } );
201
+ } );
202
+
203
+ // Register confirmation text
204
+ wp.customize( 'clc-options[register-confirmation-email]', function( value ) {
205
+ value.bind( function( to ) {
206
+ $( '#reg_passmail' ).html( to );
207
+ } );
208
+ } );
209
+
210
+
211
+ // Register button text
212
+ wp.customize( 'clc-options[register-button-label]', function( value ) {
213
+ value.bind( function( to ) {
214
+ if( ! to ) {
215
+ return;
216
+ }
217
+ $( '#registerform input[name="wp-submit"]' ).val( to );
218
  } );
219
  } );
220
 
221
+ // Register link text
222
+ wp.customize( 'clc-options[register-link-label]', function( value ) {
223
+ value.bind( function( to ) {
224
+ if( ! to ) {
225
+ return;
226
+ }
227
+ $( '#register-link-label' ).text( to );
228
+ } );
229
+ } );
230
+
231
+ // Login link text
232
+ wp.customize( 'clc-options[login-link-label]', function( value ) {
233
+ value.bind( function( to ) {
234
+ if( ! to ) {
235
+ return;
236
+ }
237
+ $( '#login-link-label' ).text( to );
238
+ } );
239
+ } );
240
+
241
+ // Lost password button text
242
+ wp.customize( 'clc-options[lostpassword-button-label]', function( value ) {
243
+ value.bind( function( to ) {
244
+ if( ! to ) {
245
+ return;
246
+ }
247
+ $( '#lostpasswordform input[name="wp-submit"]' ).val( to );
248
+ } );
249
+ } );
250
+
251
+ // Username label
252
+ wp.customize( 'clc-options[lostpassword-username-label]', function( value ) {
253
+ value.bind( function( to ) {
254
+ $( '#lostpasswordform label span' ).text( to );
255
+ } );
256
+ } );
257
+
258
+
259
  // Columns width
260
  wp.customize( 'clc-options[columns-width]', function( value ) {
261
  value.bind( function( to ) {
281
  wp.customize.preview.send( 'clc-focus-section', $( this ).data( 'section' ) );
282
  } );
283
 
284
+ wp.customize.bind( 'preview-ready', function() {
285
+ wp.customize.preview.bind( 'change-form', function( form ) {
286
+ if ( 'register' == form ) {
287
+ $('.show-only_login').hide();
288
+ $('.show-only_lostpassword').hide();
289
+ $('.show-only_register').show();
290
+ }else if( 'lostpassword' == form ){
291
+ $('.show-only_login').hide();
292
+ $('.show-only_register').hide();
293
+ $('.show-only_lostpassword').show();
294
+ }else{
295
+ $('.show-only_register').hide();
296
+ $('.show-only_lostpassword').hide();
297
+ $('.show-only_login').show();
298
+ }
299
+ } );
300
+ } );
301
+
302
  })( jQuery );
colorlib-login-customizer.php CHANGED
@@ -1,20 +1,33 @@
1
  <?php
2
- /*
3
- * Plugin Name: Colorlib Login Customizer
4
- * Version: 1.2.6
5
- * Description: Colorlib Login Customizer is an awesome and intuitive plugin that helps you personalize your login form directly from the Customizer. The plugin fully supports the Live Customizer feature and you can see all the changes in real time and edit them.
6
- * Author: Colorlib
7
- * Author URI: https://colorlib.com/
8
- * Requires at least: 4.0
9
- * Tested up to: 5.0
10
- *
11
- * Text Domain: colorlib-login-customizer
12
- * Domain Path: /languages/
13
- *
14
- * @package WordPress
15
- * @author Colorlib
16
- * @since 1.0.0
17
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  if ( ! defined( 'ABSPATH' ) ) {
20
  exit;
@@ -34,7 +47,7 @@ require_once 'includes/class-colorlib-login-customizer-autoloader.php';
34
  * @return object Colorlib_Login_Customizer
35
  */
36
  function colorlib_login_customizer() {
37
- $instance = Colorlib_Login_Customizer::instance( __FILE__, '1.2.6' );
38
 
39
  if ( is_null( $instance->settings ) ) {
40
  $instance->settings = Colorlib_Login_Customizer_Settings::instance( $instance );
1
  <?php
2
+ /**
3
+ * Plugin Name: Colorlib Login Customizer
4
+ * Version: 1.2.7
5
+ * Description: Colorlib Login Customizer is an awesome and intuitive plugin that helps you personalize your login form directly from the Customizer. The plugin fully supports the Live Customizer feature and you can see all the changes in real time and edit them.
6
+ * Author: Colorlib
7
+ * Author URI: https://colorlib.com/
8
+ * Tested up to: 5.1
9
+ * Requires: 4.6 or higher
10
+ * License: GPLv3 or later
11
+ * License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
+ * Requires PHP: 5.6
13
+ * Text Domain: colorlib-login-customizer
14
+ * Domain Path: /languages
15
+ *
16
+ * Copyright 2018-2019 Colorlib support@colorlib.com
17
+ *
18
+ * This program is free software; you can redistribute it and/or modify
19
+ * it under the terms of the GNU General Public License, version 3, as
20
+ * published by the Free Software Foundation.
21
+ *
22
+ * This program is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with this program; if not, write to the Free Software
29
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
+ */
31
 
32
  if ( ! defined( 'ABSPATH' ) ) {
33
  exit;
47
  * @return object Colorlib_Login_Customizer
48
  */
49
  function colorlib_login_customizer() {
50
+ $instance = Colorlib_Login_Customizer::instance( __FILE__, '1.2.7' );
51
 
52
  if ( is_null( $instance->settings ) ) {
53
  $instance->settings = Colorlib_Login_Customizer_Settings::instance( $instance );
includes/class-colorlib-login-customizer.php CHANGED
@@ -266,4 +266,103 @@ class Colorlib_Login_Customizer {
266
 
267
  return $template;
268
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
269
  }
266
 
267
  return $template;
268
  }
269
+
270
+ public function get_defaults(){
271
+ return array(
272
+ /**
273
+ * Templates
274
+ */
275
+ 'templates' => 'default',
276
+ /**
277
+ * Layout
278
+ */
279
+ 'columns' => '1',
280
+ 'columns-width' => array(
281
+ 'left' => 6,
282
+ 'right' => 6,
283
+ ),
284
+ 'form-column-align' => '3',
285
+ 'form-vertical-align' => '2',
286
+ /**
287
+ * Logo section
288
+ */
289
+ 'hide-logo' => 0,
290
+ 'use-text-logo' => 0,
291
+ 'logo-url' => site_url(),
292
+ 'custom-logo' => '',
293
+ 'logo-text-color' => '#444',
294
+ 'logo-text-size' => '20',
295
+ 'logo-text-color-hover' => '#00a0d2',
296
+ 'logo-width' => '',
297
+ 'logo-height' => '',
298
+ /**
299
+ * Background section
300
+ */
301
+ 'custom-background' => '',
302
+ 'custom-background-form' => '',
303
+ 'custom-background-color' => '',
304
+ 'custom-background-color-form' => '',
305
+ /**
306
+ * Form section
307
+ */
308
+ 'form-width' => '',
309
+ 'form-height' => '',
310
+ 'form-background-image' => '',
311
+ 'form-background-color' => '#fff',
312
+ 'form-padding' => '',
313
+ 'form-border' => '',
314
+ 'form-border-radius' => '',
315
+ 'form-shadow' => '',
316
+ 'form-field-width' => '',
317
+ 'form-field-margin' => '',
318
+ 'form-field-border-radius' => 'unset',
319
+ 'form-field-border' => '1px solid #ddd',
320
+ 'form-field-background' => '',
321
+ 'form-field-color' => '',
322
+ 'username-label' => 'Username or Email Address',
323
+ 'password-label' => 'Password',
324
+ 'rememberme-label' => 'Remember Me',
325
+ 'lost-password-text' => 'Lost your password?',
326
+ 'back-to-text' => '&larr; Back to %s',
327
+ 'register-link-label' => 'Register',
328
+
329
+ 'login-label' => 'Log In',
330
+ 'form-label-color' => '',
331
+ 'hide-extra-links' => false,
332
+ /**
333
+ * Registration section
334
+ */
335
+ 'register-username-label' => 'Username',
336
+ 'register-email-label' => 'Email',
337
+ 'register-button-label' => 'Register',
338
+ 'register-confirmation-email' => 'Registration confirmation will be emailed to you.',
339
+ 'login-link-label' => 'Log in',
340
+ /**
341
+ * Lost Password
342
+ */
343
+ 'lostpassword-username-label' => 'Username or Email Address',
344
+ 'lostpassword-button-label' => 'Get New Password',
345
+ /**
346
+ * Others section ( misc )
347
+ */
348
+ 'button-background' => '',
349
+ 'button-background-hover' => '',
350
+ 'button-border-color' => '',
351
+ 'button-border-color-hover' => '',
352
+ 'button-shadow' => '',
353
+ 'button-text-shadow' => '',
354
+ 'button-color' => '',
355
+ 'link-color' => '',
356
+ 'link-color-hover' => '',
357
+ 'hide-rememberme' => false,
358
+ /**
359
+ * Custom CSS
360
+ */
361
+ 'custom-css' => '',
362
+ /**
363
+ * Reset value is not dynamic
364
+ */
365
+ 'initial' => 'initial',
366
+ );
367
+ }
368
  }
includes/lib/class-colorlib-login-customizer-css-customization.php CHANGED
@@ -20,24 +20,29 @@ class Colorlib_Login_Customizer_CSS_Customization {
20
  */
21
  private $base = '';
22
 
 
 
23
  /**
24
  * Colorlib_Login_Customizer_CSS_Customization constructor.
25
  */
26
  public function __construct() {
27
  $plugin = Colorlib_Login_Customizer::instance();
28
  $this->key_name = $plugin->key_name;
 
29
  $this->set_options();
30
 
31
- add_action( 'login_head', array( $this, 'check_labels' ) );
32
- add_action( 'login_head', array( $this, 'check_texts' ) );
 
 
 
 
33
  add_action( 'login_header', array( $this, 'add_extra_div' ) );
34
  add_action( 'login_head', array( $this, 'generate_css' ), 15 );
35
  add_action( 'login_footer', array( $this, 'close_extra_div' ) );
36
-
37
  add_filter( 'login_body_class', array( $this, 'body_class' ) );
38
  add_filter( 'login_headerurl', array( $this, 'logo_url' ), 99 );
39
- add_filter( 'login_headertitle', array( $this, 'logo_title' ), 99 );
40
-
41
  //
42
  add_action( 'customize_preview_init', array( $this, 'output_css_object' ), 26 );
43
  }
@@ -74,91 +79,7 @@ class Colorlib_Login_Customizer_CSS_Customization {
74
  public function set_options() {
75
 
76
  $options = get_option( $this->key_name, array() );
77
-
78
- $defaults = array(
79
- /**
80
- * Templates
81
- */
82
- 'templates' => 'default',
83
- /**
84
- * Layout
85
- */
86
- 'columns' => '1',
87
- 'columns-width' => array(
88
- 'left' => 6,
89
- 'right' => 6,
90
- ),
91
- 'form-column-align' => '3',
92
- 'form-vertical-align' => '2',
93
- /**
94
- * Logo section
95
- */
96
- 'hide-logo' => 0,
97
- 'use-text-logo' => 0,
98
- 'logo-url' => site_url(),
99
- 'custom-logo' => '',
100
- 'logo-text-color' => '#444',
101
- 'logo-text-size' => '20',
102
- 'logo-text-color-hover' => '#00a0d2',
103
- 'logo-width' => '',
104
- 'logo-height' => '',
105
- /**
106
- * Background section
107
- */
108
- 'custom-background' => '',
109
- 'custom-background-form' => '',
110
- 'custom-background-color' => '',
111
- 'custom-background-color-form' => '',
112
- /**
113
- * Form section
114
- */
115
- 'form-width' => '',
116
- 'form-height' => '',
117
- 'form-background-image' => '',
118
- 'form-background-color' => '#fff',
119
- 'form-padding' => '',
120
- 'form-border' => '',
121
- 'form-border-radius' => '',
122
- 'form-shadow' => '',
123
- 'form-field-width' => '',
124
- 'form-field-margin' => '',
125
- 'form-field-border-radius' => 'unset',
126
- 'form-field-border' => '1px solid #ddd',
127
- 'form-field-background' => '',
128
- 'form-field-color' => '',
129
- 'username-label' => 'Username or Email Address',
130
- 'password-label' => 'Password',
131
- 'rememberme-label' => 'Remember Me',
132
- 'lost-password-text' => 'Lost your password?',
133
- 'back-to-text' => '&larr; Back to %s',
134
-
135
- 'login-label' => 'Log In',
136
- 'form-label-color' => '',
137
- 'hide-extra-links' => false,
138
- /**
139
- * Others section ( misc )
140
- */
141
- 'button-background' => '',
142
- 'button-background-hover' => '',
143
- 'button-border-color' => '',
144
- 'button-border-color-hover' => '',
145
- 'button-shadow' => '',
146
- 'button-text-shadow' => '',
147
- 'button-color' => '',
148
- 'link-color' => '',
149
- 'link-color-hover' => '',
150
- 'hide-rememberme' => false,
151
- /**
152
- * Custom CSS
153
- */
154
- 'custom-css' => '',
155
- /**
156
- * Reset value is not dynamic
157
- */
158
- 'initial' => 'initial',
159
- );
160
-
161
- $this->options = wp_parse_args( $options, $defaults );
162
 
163
  $this->selectors = array(
164
  '.wp-core-ui .button-primary.focus, .wp-core-ui .button-primary.hover, .wp-core-ui .button-primary:focus, .wp-core-ui .button-primary:hover' => array(
@@ -211,7 +132,7 @@ class Colorlib_Login_Customizer_CSS_Customization {
211
  'form-width',
212
  ),
213
  ),
214
- '#loginform,#registerform' => array(
215
  'attributes' => array(
216
  'height',
217
  'background-image',
@@ -454,7 +375,7 @@ class Colorlib_Login_Customizer_CSS_Customization {
454
  * Set form variables
455
  */
456
  $string .= $this->create_css_lines(
457
- '#loginform,#registerform',
458
  array(
459
  'height',
460
  'background-image',
@@ -750,7 +671,7 @@ class Colorlib_Login_Customizer_CSS_Customization {
750
 
751
  }
752
 
753
- echo '<style type="text/css">.login.clc-text-logo h1 a{ background-image: none !important;text-indent: unset;width:auto !important;height: auto !important; }#login form p label br{display:none}body:not( .ml-half-screen ) .ml-form-container{background:transparent !important;}.login h1 a{background-position: center;background-size:contain !important;}.ml-container #login{ position:relative;padding: 0;width:100%;max-width:320px;margin:0;}#loginform,#registerform{box-sizing: border-box;max-height: 100%;background-position: center;background-repeat: no-repeat;background-size: cover;}.ml-container{position:relative;min-height:100vh;display:flex;height:100%;min-width:100%;}.ml-container .ml-extra-div{background-position:center;background-size:cover;background-repeat:no-repeat}body .ml-form-container{display:flex;align-items:center;justify-content:center}body:not( .ml-half-screen ) .ml-container .ml-extra-div{position:absolute;top:0;left:0;width:100%;height:100%}body:not( .ml-half-screen ) .ml-container .ml-form-container{width:100%;min-height:100vh}body.ml-half-screen .ml-container{flex-wrap:wrap}body.ml-half-screen .ml-container>.ml-extra-div,body.ml-half-screen .ml-container>.ml-form-container{width:50%}body.ml-half-screen.ml-login-align-2 .ml-container>div,body.ml-half-screen.ml-login-align-4 .ml-container>div{width:100%;flex-basis:50%;}body.ml-half-screen.ml-login-align-2 .ml-container{flex-direction:column-reverse}body.ml-half-screen.ml-login-align-4 .ml-container{flex-direction:column}body.ml-half-screen.ml-login-align-1 .ml-container{flex-direction:row-reverse}body.ml-login-vertical-align-1 .ml-form-container{align-items:flex-start}body.ml-login-vertical-align-3 .ml-form-container{align-items:flex-end}body.ml-login-horizontal-align-1 .ml-form-container{justify-content:flex-start}body.ml-login-horizontal-align-3 .ml-form-container{justify-content:flex-end}@media only screen and (max-width: 768px) {body.ml-half-screen .ml-container > .ml-extra-div, body.ml-half-screen .ml-container > .ml-form-container{width:100%;}body .ml-container .ml-extra-div{position:absolute;top:0;left:0;width:100%;height:100%;}}.login input[type=text]:focus, .login input[type=search]:focus, .login input[type=radio]:focus, .login input[type=tel]:focus, .login input[type=time]:focus, .login input[type=url]:focus, .login input[type=week]:focus, .login input[type=password]:focus, .login input[type=checkbox]:focus, .login input[type=color]:focus, .login input[type=date]:focus, .login input[type=datetime]:focus, .login input[type=datetime-local]:focus, .login input[type=email]:focus, .login input[type=month]:focus, .login input[type=number]:focus, .login select:focus, .login textarea:focus{ box-shadow: none; }</style>';
754
  echo '<style type="text/css" id="clc-style">' . $css . '</style>';
755
  echo '<style type="text/css" id="clc-columns-style">' . $columns_css . '</style>';
756
  echo '<style type="text/css" id="clc-custom-css">' . $custom_css . '</style>';
@@ -764,20 +685,48 @@ class Colorlib_Login_Customizer_CSS_Customization {
764
  echo '</div></div>';
765
  }
766
 
767
- public function check_labels() {
 
 
 
 
 
 
 
 
 
768
 
769
  add_filter( 'gettext', array( $this, 'change_username_label' ), 99, 3 );
770
  add_filter( 'gettext', array( $this, 'change_password_label' ), 99, 3 );
771
  add_filter( 'gettext', array( $this, 'change_rememberme_label' ), 99, 3 );
772
  add_filter( 'gettext', array( $this, 'change_login_label' ), 99, 3 );
 
773
 
774
  }
775
 
776
- public function check_texts() {
777
- add_filter( 'gettext', array( $this, 'change_lost_password_text' ), 99, 3 );
778
- add_filter( 'gettext_with_context', array( $this, 'change_back_to_text' ), 99, 4 );
 
 
 
 
 
 
779
  }
780
 
 
 
 
 
 
 
 
 
 
 
 
 
781
  /**
782
  * Customizer output for custom username label.
783
  *
@@ -939,4 +888,187 @@ class Colorlib_Login_Customizer_CSS_Customization {
939
  return $translated_text;
940
  }
941
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
942
  }
20
  */
21
  private $base = '';
22
 
23
+ private $defaults;
24
+
25
  /**
26
  * Colorlib_Login_Customizer_CSS_Customization constructor.
27
  */
28
  public function __construct() {
29
  $plugin = Colorlib_Login_Customizer::instance();
30
  $this->key_name = $plugin->key_name;
31
+ $this->defaults = $plugin->get_defaults();
32
  $this->set_options();
33
 
34
+ add_action( 'login_init', array( $this, 'check_general_texts' ) );
35
+
36
+ add_action( 'login_form_login', array( $this, 'check_login_texts' ) );
37
+ add_action( 'login_form_register', array( $this, 'check_register_texts' ) );
38
+ add_action( 'login_form_lostpassword', array( $this, 'check_lostpasswords_texts' ) );
39
+
40
  add_action( 'login_header', array( $this, 'add_extra_div' ) );
41
  add_action( 'login_head', array( $this, 'generate_css' ), 15 );
42
  add_action( 'login_footer', array( $this, 'close_extra_div' ) );
 
43
  add_filter( 'login_body_class', array( $this, 'body_class' ) );
44
  add_filter( 'login_headerurl', array( $this, 'logo_url' ), 99 );
45
+ add_filter('login_headertitle', array($this, 'logo_title'), 99);
 
46
  //
47
  add_action( 'customize_preview_init', array( $this, 'output_css_object' ), 26 );
48
  }
79
  public function set_options() {
80
 
81
  $options = get_option( $this->key_name, array() );
82
+ $this->options = wp_parse_args( $options, $this->defaults );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
 
84
  $this->selectors = array(
85
  '.wp-core-ui .button-primary.focus, .wp-core-ui .button-primary.hover, .wp-core-ui .button-primary:focus, .wp-core-ui .button-primary:hover' => array(
132
  'form-width',
133
  ),
134
  ),
135
+ '#loginform,#registerform,#lostpasswordform' => array(
136
  'attributes' => array(
137
  'height',
138
  'background-image',
375
  * Set form variables
376
  */
377
  $string .= $this->create_css_lines(
378
+ '#loginform,#registerform,#lostpasswordform',
379
  array(
380
  'height',
381
  'background-image',
671
 
672
  }
673
 
674
+ echo '<style type="text/css">#registerform #wp-submit{float:none;margin-top:15px;}.login.clc-text-logo h1 a{ background-image: none !important;text-indent: unset;width:auto !important;height: auto !important; }#login form p label br{display:none}body:not( .ml-half-screen ) .ml-form-container{background:transparent !important;}.login h1 a{background-position: center;background-size:contain !important;}.ml-container #login{ position:relative;padding: 0;width:100%;max-width:320px;margin:0;}#loginform,#registerform,#lostpasswordform{box-sizing: border-box;max-height: 100%;background-position: center;background-repeat: no-repeat;background-size: cover;}.ml-container{position:relative;min-height:100vh;display:flex;height:100%;min-width:100%;}.ml-container .ml-extra-div{background-position:center;background-size:cover;background-repeat:no-repeat}body .ml-form-container{display:flex;align-items:center;justify-content:center}body:not( .ml-half-screen ) .ml-container .ml-extra-div{position:absolute;top:0;left:0;width:100%;height:100%}body:not( .ml-half-screen ) .ml-container .ml-form-container{width:100%;min-height:100vh}body.ml-half-screen .ml-container{flex-wrap:wrap}body.ml-half-screen .ml-container>.ml-extra-div,body.ml-half-screen .ml-container>.ml-form-container{width:50%}body.ml-half-screen.ml-login-align-2 .ml-container>div,body.ml-half-screen.ml-login-align-4 .ml-container>div{width:100%;flex-basis:50%;}body.ml-half-screen.ml-login-align-2 .ml-container{flex-direction:column-reverse}body.ml-half-screen.ml-login-align-4 .ml-container{flex-direction:column}body.ml-half-screen.ml-login-align-1 .ml-container{flex-direction:row-reverse}body.ml-login-vertical-align-1 .ml-form-container{align-items:flex-start}body.ml-login-vertical-align-3 .ml-form-container{align-items:flex-end}body.ml-login-horizontal-align-1 .ml-form-container{justify-content:flex-start}body.ml-login-horizontal-align-3 .ml-form-container{justify-content:flex-end}@media only screen and (max-width: 768px) {body.ml-half-screen .ml-container > .ml-extra-div, body.ml-half-screen .ml-container > .ml-form-container{width:100%;}body .ml-container .ml-extra-div{position:absolute;top:0;left:0;width:100%;height:100%;}}.login input[type=text]:focus, .login input[type=search]:focus, .login input[type=radio]:focus, .login input[type=tel]:focus, .login input[type=time]:focus, .login input[type=url]:focus, .login input[type=week]:focus, .login input[type=password]:focus, .login input[type=checkbox]:focus, .login input[type=color]:focus, .login input[type=date]:focus, .login input[type=datetime]:focus, .login input[type=datetime-local]:focus, .login input[type=email]:focus, .login input[type=month]:focus, .login input[type=number]:focus, .login select:focus, .login textarea:focus{ box-shadow: none; }</style>';
675
  echo '<style type="text/css" id="clc-style">' . $css . '</style>';
676
  echo '<style type="text/css" id="clc-columns-style">' . $columns_css . '</style>';
677
  echo '<style type="text/css" id="clc-custom-css">' . $custom_css . '</style>';
685
  echo '</div></div>';
686
  }
687
 
688
+ // Check general texts
689
+ public function check_general_texts(){
690
+
691
+ add_filter( 'gettext', array( $this, 'change_lost_password_text' ), 99, 3 );
692
+ add_filter( 'gettext_with_context', array( $this, 'change_back_to_text' ), 99, 4 );
693
+
694
+ }
695
+
696
+ // Check Login page texts
697
+ public function check_login_texts(){
698
 
699
  add_filter( 'gettext', array( $this, 'change_username_label' ), 99, 3 );
700
  add_filter( 'gettext', array( $this, 'change_password_label' ), 99, 3 );
701
  add_filter( 'gettext', array( $this, 'change_rememberme_label' ), 99, 3 );
702
  add_filter( 'gettext', array( $this, 'change_login_label' ), 99, 3 );
703
+ add_filter( 'gettext', array( $this, 'change_register_login_link_text' ), 99, 3 );
704
 
705
  }
706
 
707
+ // Check Register page texts
708
+ public function check_register_texts(){
709
+
710
+ add_filter( 'gettext', array( $this, 'change_register_username_label' ), 99, 3 );
711
+ add_filter( 'gettext', array( $this, 'change_register_email_label' ), 99, 3 );
712
+ add_filter( 'gettext', array( $this, 'change_register_register_label' ),99,3);
713
+ add_filter( 'gettext', array( $this, 'change_register_confirmation_text' ), 99, 3 );
714
+ add_filter( 'gettext', array( $this, 'change_login_register_link_text' ), 99, 3 );
715
+
716
  }
717
 
718
+ // Check Lost Password page texts
719
+ public function check_lostpasswords_texts(){
720
+
721
+ add_filter( 'gettext', array( $this, 'change_lostpasswords_username_label' ), 99, 3 );
722
+ add_filter( 'gettext', array( $this, 'change_lostpasswords_button_label' ), 99, 3 );
723
+
724
+ add_filter( 'gettext', array( $this, 'change_register_login_link_text' ), 99, 3 );
725
+ add_filter( 'gettext', array( $this, 'change_login_register_link_text' ), 99, 3 );
726
+
727
+ }
728
+
729
+
730
  /**
731
  * Customizer output for custom username label.
732
  *
888
  return $translated_text;
889
  }
890
 
891
+ /**
892
+ * Customizer output for custom register username label.
893
+ *
894
+ * @param string|string $translated_text The translated text.
895
+ * @param string|string $text The label we want to replace.
896
+ * @param string|string $domain The text domain of the site.
897
+ * @return string
898
+ */
899
+ public function change_register_username_label( $translated_text, $text, $domain ) {
900
+ $default = 'Username';
901
+ $label = $this->options['register-username-label'];
902
+
903
+ // Check if is our text
904
+ if ( $default !== $text ) {
905
+ return $translated_text;
906
+ }
907
+
908
+ // Check if the label is changed
909
+ if ( $label === $text ) {
910
+ return $translated_text;
911
+ }else{
912
+ $translated_text = esc_html( $label );
913
+ }
914
+
915
+ return $translated_text;
916
+ }
917
+
918
+ /**
919
+ * Customizer output for custom register email label.
920
+ *
921
+ * @param string|string $translated_text The translated text.
922
+ * @param string|string $text The label we want to replace.
923
+ * @param string|string $domain The text domain of the site.
924
+ * @return string
925
+ */
926
+ public function change_register_email_label( $translated_text, $text, $domain ) {
927
+ $default = 'Email';
928
+ $label = $this->options['register-email-label'];
929
+
930
+ // Check if is our text
931
+ if ( $default !== $text ) {
932
+ return $translated_text;
933
+ }
934
+
935
+ // Check if the label is changed
936
+ if ( $label === $text ) {
937
+ return $translated_text;
938
+ }else{
939
+ $translated_text = esc_html( $label );
940
+ }
941
+
942
+ return $translated_text;
943
+ }
944
+
945
+ /**
946
+ * Customizer output for custom registration confirmation text.
947
+ *
948
+ * @param string|string $translated_text The translated text.
949
+ * @param string|string $text The label we want to replace.
950
+ * @param string|string $domain The text domain of the site.
951
+ * @return string
952
+ */
953
+ public function change_register_confirmation_text( $translated_text, $text, $domain ) {
954
+ $default = 'Registration confirmation will be emailed to you.';
955
+ $label = $this->options['register-confirmation-email'];
956
+ // Check if is our text
957
+ if ( $default !== $text ) {
958
+ return $translated_text;
959
+ }
960
+
961
+ // Check if the label is changed
962
+ if ( $label === $text ) {
963
+ return $translated_text;
964
+ }else{
965
+ $translated_text = esc_html( $label );
966
+ }
967
+
968
+
969
+ return $translated_text;
970
+ }
971
+
972
+ /**
973
+ * Customizer output for custom register button text.
974
+ *
975
+ * @param string|string $translated_text The translated text.
976
+ * @param string|string $text The label we want to replace.
977
+ * @param string|string $domain The text domain of the site.
978
+ * @return string
979
+ */
980
+ public function change_register_register_label( $translated_text, $text, $domain ) {
981
+ $default = 'Register';
982
+ $label = $this->options['register-button-label'];
983
+
984
+ // Check if is our text
985
+ if ( $default !== $text ) {
986
+ return $translated_text;
987
+ }
988
+
989
+ // Check if the label is changed
990
+ if ( $label === $text ) {
991
+ return $translated_text;
992
+ }else{
993
+ $translated_text = esc_html( $label );
994
+ }
995
+
996
+ return $translated_text;
997
+ }
998
+
999
+ public function change_login_register_link_text( $translated_text, $text, $domain ) {
1000
+ $default = 'Log in';
1001
+ $label = $this->options['login-link-label'];
1002
+
1003
+ // Check if is our text
1004
+ if ( $default !== $text ) {
1005
+ return $translated_text;
1006
+ }
1007
+
1008
+ // Check if the label is changed
1009
+ if ( $label === $text ) {
1010
+ return $translated_text;
1011
+ }else{
1012
+ $translated_text = esc_html( $label );
1013
+ }
1014
+
1015
+ return $translated_text;
1016
+ }
1017
+
1018
+ public function change_register_login_link_text( $translated_text, $text, $domain ) {
1019
+ $default = 'Register';
1020
+ $label = $this->options['register-link-label'];
1021
+
1022
+ // Check if is our text
1023
+ if ( $default !== $text ) {
1024
+ return $translated_text;
1025
+ }
1026
+
1027
+ // Check if the label is changed
1028
+ if ( $label === $text ) {
1029
+ return $translated_text;
1030
+ }else{
1031
+ $translated_text = esc_html( $label );
1032
+ }
1033
+
1034
+ return $translated_text;
1035
+ }
1036
+
1037
+ public function change_lostpasswords_username_label( $translated_text, $text, $domain ) {
1038
+ $default = 'Username or Email Address';
1039
+ $label = $this->options['lostpassword-username-label'];
1040
+
1041
+ // Check if is our text
1042
+ if ( $default !== $text ) {
1043
+ return $translated_text;
1044
+ }
1045
+
1046
+ // Check if the label is changed
1047
+ if ( $label === $text ) {
1048
+ return $translated_text;
1049
+ }else{
1050
+ $translated_text = esc_html( $label );
1051
+ }
1052
+
1053
+ return $translated_text;
1054
+ }
1055
+
1056
+ public function change_lostpasswords_button_label( $translated_text, $text, $domain ) {
1057
+ $default = 'Get New Password';
1058
+ $label = $this->options['lostpassword-button-label'];
1059
+
1060
+ // Check if is our text
1061
+ if ( $default !== $text ) {
1062
+ return $translated_text;
1063
+ }
1064
+
1065
+ // Check if the label is changed
1066
+ if ( $label === $text ) {
1067
+ return $translated_text;
1068
+ }else{
1069
+ $translated_text = esc_html( $label );
1070
+ }
1071
+
1072
+ return $translated_text;
1073
+ }
1074
  }
includes/lib/class-colorlib-login-customizer-customizer.php CHANGED
@@ -209,7 +209,7 @@ class Colorlib_Login_Customizer_Customizer {
209
  'url' => esc_url( $this->parent->assets_url ) . 'img/tpl-04/screen.jpg',
210
  'options' => array(
211
  'form-width' => '350',
212
- 'form-height' => '350',
213
  'form-padding' => '50px 30px',
214
  'columns' => '1',
215
  'hide-logo' => '1',
@@ -244,7 +244,7 @@ class Colorlib_Login_Customizer_Customizer {
244
  'form-field-border-radius' => '0',
245
  'form-field-margin' => '0',
246
  'form-field-border' => '1px solid #eee',
247
- 'custom-css' => ".ml-form-container .submit input[type='submit'] {width: 100%; box-sizing: border-box;display: inline-block;text-align: center;padding: 0 20px;height: 38px;line-height: 1;font-weight: bold;vertical-align: middle; margin-top: 15px;box-shadow:none;} .ml-form-container input[type='text'], .ml-form-container input[type='password'] { height: 50px; } .login .ml-form-container #backtoblog,.login .ml-form-container #nav{position:absolute;left:0;right:0;margin-right:auto!important;bottom:50px;max-width:100%;text-align:center}.login .ml-form-container #nav{bottom:40px}.ml-form-container #login>h1{position:absolute;top:50px}.ml-form-container input[type='text'],.ml-form-container input[type='password']{box-shadow:none;}",
248
  ),
249
  ),
250
  ),
@@ -487,176 +487,260 @@ class Colorlib_Login_Customizer_Customizer {
487
  );
488
 
489
  $settings['form'] = array(
490
- 'title' => esc_html__( 'Form options', 'colorlib-login-customizer' ),
491
  'description' => '',
492
  'fields' => array(
493
  array(
494
- 'id' => 'form-width',
495
- 'label' => esc_html__( 'Form Width', 'colorlib-login-customizer' ),
496
- 'description' => esc_html__( 'Please input the desired width for the login form in pixels. Example: 20', 'colorlib-login-customizer' ),
497
- 'default' => 320,
498
- 'type' => 'clc-range-slider',
499
- 'choices' => array(
500
- 'min' => 150,
501
- 'max' => 1000,
502
- 'step' => 5,
503
- ),
504
- ),
505
- array(
506
- 'id' => 'form-height',
507
- 'label' => esc_html__( 'Form Height', 'colorlib-login-customizer' ),
508
- 'description' => esc_html__( 'Please input the desired height for the login form in pixels. Example: 20', 'colorlib-login-customizer' ),
509
- 'default' => 194,
510
- 'choices' => array(
511
- 'min' => 150,
512
- 'max' => 1000,
513
- 'step' => 5,
514
- ),
515
- 'type' => 'clc-range-slider',
516
- ),
517
- array(
518
- 'id' => 'form-background-image',
519
- 'label' => esc_html__( 'Form background image', 'colorlib-login-customizer' ),
520
- 'description' => esc_html__( 'This will change the background image property of login form.', 'colorlib-login-customizer' ),
521
- 'type' => 'image',
522
- 'default' => '',
523
- ),
524
- array(
525
- 'id' => 'form-background-color',
526
- 'label' => esc_html__( 'Form background color', 'colorlib-login-customizer' ),
527
- 'description' => esc_html__( 'This will change the background color property.', 'colorlib-login-customizer' ),
528
- 'type' => 'color',
529
- 'default' => '#ffffff',
530
- ),
531
- array(
532
- 'id' => 'form-padding',
533
- 'label' => esc_html__( 'Form padding', 'colorlib-login-customizer' ),
534
- 'description' => esc_html__( 'This will change the padding property. Example: 26px 24px 46px 30px', 'colorlib-login-customizer' ),
535
- 'type' => 'text',
536
- 'default' => '26px 24px',
537
- ),
538
- array(
539
- 'id' => 'form-border',
540
- 'label' => esc_html__( 'Form border', 'colorlib-login-customizer' ),
541
- 'description' => esc_html__( 'This will change the border property. Example: 2px dotted black', 'colorlib-login-customizer' ),
542
- 'type' => 'text',
543
- 'default' => '0 none',
544
- ),
545
- array(
546
- 'id' => 'form-border-radius',
547
- 'label' => esc_html__( 'Form border radius', 'colorlib-login-customizer' ),
548
- 'description' => esc_html__( 'This will change the border radius property. Example: 2px 2px 2px 2px', 'colorlib-login-customizer' ),
549
- 'type' => 'text',
550
- 'default' => '0',
551
- ),
552
- array(
553
- 'id' => 'form-shadow',
554
- 'label' => esc_html__( 'Form shadow', 'colorlib-login-customizer' ),
555
- 'description' => esc_html__( 'This will change the form\'s shadow property. Example: 0 1px 0 #006799', 'colorlib-login-customizer' ),
556
- 'type' => 'text',
557
- 'default' => '0 1px 3px rgba(0,0,0,.13)',
558
- ),
559
- array(
560
- 'id' => 'form-field-width',
561
- 'label' => esc_html__( 'Form field width', 'colorlib-login-customizer' ),
562
- 'description' => esc_html__( 'Please input the desired width for the form field in pixels. Example: 20', 'colorlib-login-customizer' ),
563
- 'type' => 'text',
564
- 'default' => '100%',
565
- ),
566
- array(
567
- 'id' => 'form-field-margin',
568
- 'label' => esc_html__( 'Form field margin', 'colorlib-login-customizer' ),
569
- 'description' => esc_html__( 'This will change the margin property. Example: 26px 24px 46px 30px', 'colorlib-login-customizer' ),
570
- 'type' => 'text',
571
- 'default' => '2px 6px 16px 0',
572
- ),
573
- array(
574
- 'id' => 'form-field-border',
575
- 'label' => esc_html__( 'Form field border', 'colorlib-login-customizer' ),
576
- 'description' => esc_html__( 'Please input the desired border for the form field. Example: 2px dotted black', 'colorlib-login-customizer' ),
577
- 'type' => 'text',
578
- 'default' => '1px solid #ddd',
579
- ),
580
- array(
581
- 'id' => 'form-field-border-radius',
582
- 'label' => esc_html__( 'Form field border radius', 'colorlib-login-customizer' ),
583
- 'description' => esc_html__( 'Please input the desired border radiuse for the form field. Example: 5px 5px 5px 5px', 'colorlib-login-customizer' ),
584
- 'type' => 'text',
585
- 'default' => 'unset',
586
- ),
587
- array(
588
- 'id' => 'form-field-background',
589
- 'label' => esc_html__( 'Form field background', 'colorlib-login-customizer' ),
590
- 'description' => esc_html__( 'This will change the background color property.', 'colorlib-login-customizer' ),
591
- 'type' => 'color',
592
- 'default' => '#fbfbfb',
593
- ),
594
- array(
595
- 'id' => 'form-field-color',
596
- 'label' => esc_html__( 'Form field color', 'colorlib-login-customizer' ),
597
- 'description' => esc_html__( 'This will change the text color property.', 'colorlib-login-customizer' ),
598
- 'type' => 'color',
599
- 'default' => '#32373c',
600
- ),
601
- array(
602
- 'id' => 'form-label-color',
603
- 'label' => esc_html__( 'Form label color', 'colorlib-login-customizer' ),
604
- 'description' => esc_html__( 'This will change the label text color property.', 'colorlib-login-customizer' ),
605
- 'type' => 'color',
606
- 'default' => '#72777c',
607
- ),
608
- array(
609
- 'id' => 'username-label',
610
- 'label' => esc_html__( 'Username label', 'colorlib-login-customizer' ),
611
- 'description' => esc_html__( 'You can change the default text for username label or just delete it.', 'colorlib-login-customizer' ),
612
- 'type' => 'text',
613
- 'default' => 'Username or Email Address',
614
- ),
615
- array(
616
- 'id' => 'password-label',
617
- 'label' => esc_html__( 'Password label', 'colorlib-login-customizer' ),
618
- 'description' => esc_html__( 'You can change the default text for password label or just delete it.', 'colorlib-login-customizer' ),
619
- 'type' => 'text',
620
- 'default' => 'Password',
621
- ),
622
- array(
623
- 'id' => 'rememberme-label',
624
- 'label' => esc_html__( 'Remember Me label', 'colorlib-login-customizer' ),
625
- 'description' => esc_html__( 'You can change the default remember me text.', 'colorlib-login-customizer' ),
626
- 'type' => 'text',
627
- 'default' => 'Remember Me',
628
- ),
629
- array(
630
- 'id' => 'lost-password-text',
631
- 'label' => esc_html__( 'Lost Password Text', 'colorlib-login-customizer' ),
632
- 'description' => esc_html__( 'You can change the default text for "Lost your password" ', 'colorlib-login-customizer' ),
633
- 'type' => 'text',
634
- 'default' => 'Lost your password?',
635
- ),
636
- array(
637
- 'id' => 'back-to-text',
638
- 'label' => esc_html__( 'Back to site text', 'colorlib-login-customizer' ),
639
- 'description' => esc_html__( 'You can change the default text for "Back to" site ', 'colorlib-login-customizer' ),
640
- 'type' => 'text',
641
- 'default' => 'Back to site',
642
- ),
643
- array(
644
- 'id' => 'login-label',
645
- 'label' => esc_html__( 'Login label', 'colorlib-login-customizer' ),
646
- 'description' => esc_html__( 'You can change the default text for the log in button.', 'colorlib-login-customizer' ),
647
- 'type' => 'text',
648
- 'default' => 'Log In',
649
- ),
650
- array(
651
- 'id' => 'hide-extra-links',
652
- 'label' => esc_html__( 'Hide Extra Links', 'colorlib-login-customizer' ),
653
- 'description' => esc_html__( 'Show/Hide the links under the login form', 'colorlib-login-customizer' ),
654
- 'type' => 'clc-toggle',
655
- 'default' => 0,
656
- ),
657
  ),
658
  );
659
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
660
  $settings['general'] = array(
661
  'title' => esc_html__( 'Form Button & Links', 'colorlib-login-customizer' ),
662
  'description' => '',
@@ -896,6 +980,7 @@ class Colorlib_Login_Customizer_Customizer {
896
  wp_localize_script(
897
  'colorlib-login-customizer-script', 'CLCUrls', array(
898
  'siteurl' => get_option( 'siteurl' ),
 
899
  )
900
  );
901
  }
@@ -930,4 +1015,12 @@ class Colorlib_Login_Customizer_Customizer {
930
 
931
  return true;
932
  }
 
 
 
 
 
 
 
 
933
  }
209
  'url' => esc_url( $this->parent->assets_url ) . 'img/tpl-04/screen.jpg',
210
  'options' => array(
211
  'form-width' => '350',
212
+ 'form-height' => '450',
213
  'form-padding' => '50px 30px',
214
  'columns' => '1',
215
  'hide-logo' => '1',
244
  'form-field-border-radius' => '0',
245
  'form-field-margin' => '0',
246
  'form-field-border' => '1px solid #eee',
247
+ 'custom-css' => ".ml-form-container .submit input[type='submit'] {width: 100%; box-sizing: border-box;display: inline-block;text-align: center;padding: 0 20px;height: 38px;line-height: 1;font-weight: bold;vertical-align: middle; margin-top: 15px;box-shadow:none;} .ml-form-container input[type='text'], .ml-form-container input[type='password'] { height: 50px; } .login .ml-form-container #backtoblog,.login .ml-form-container #nav{position:absolute;left:0;right:0;margin-right:auto!important;bottom:50px;max-width:100%;text-align:center}.login .ml-form-container #nav{bottom:40px}.ml-form-container #login>h1{position:absolute;top:40px}.login-action-register .ml-form-container #login>h1{top:65px;}.ml-form-container input[type='text'],.ml-form-container input[type='password']{box-shadow:none;}",
248
  ),
249
  ),
250
  ),
487
  );
488
 
489
  $settings['form'] = array(
490
+ 'title' => esc_html__( 'General Form options', 'colorlib-login-customizer' ),
491
  'description' => '',
492
  'fields' => array(
493
  array(
494
+ 'id' => 'form-width',
495
+ 'label' => esc_html__( 'Form Width', 'colorlib-login-customizer' ),
496
+ 'description' => esc_html__( 'Please input the desired width for the login form in pixels. Example: 20', 'colorlib-login-customizer' ),
497
+ 'default' => 320,
498
+ 'type' => 'clc-range-slider',
499
+ 'choices' => array(
500
+ 'min' => 150,
501
+ 'max' => 1000,
502
+ 'step' => 5,
503
+ ),
504
+ ),
505
+ array(
506
+ 'id' => 'form-height',
507
+ 'label' => esc_html__( 'Form Height', 'colorlib-login-customizer' ),
508
+ 'description' => esc_html__( 'Please input the desired height for the login form in pixels. Example: 20', 'colorlib-login-customizer' ),
509
+ 'default' => 194,
510
+ 'choices' => array(
511
+ 'min' => 150,
512
+ 'max' => 1000,
513
+ 'step' => 5,
514
+ ),
515
+ 'type' => 'clc-range-slider',
516
+ ),
517
+ array(
518
+ 'id' => 'form-background-image',
519
+ 'label' => esc_html__( 'Form background image', 'colorlib-login-customizer' ),
520
+ 'description' => esc_html__( 'This will change the background image property of login form.', 'colorlib-login-customizer' ),
521
+ 'type' => 'image',
522
+ 'default' => '',
523
+ ),
524
+ array(
525
+ 'id' => 'form-background-color',
526
+ 'label' => esc_html__( 'Form background color', 'colorlib-login-customizer' ),
527
+ 'description' => esc_html__( 'This will change the background color property.', 'colorlib-login-customizer' ),
528
+ 'type' => 'color',
529
+ 'default' => '#ffffff',
530
+ ),
531
+ array(
532
+ 'id' => 'form-padding',
533
+ 'label' => esc_html__( 'Form padding', 'colorlib-login-customizer' ),
534
+ 'description' => esc_html__( 'This will change the padding property. Example: 26px 24px 46px 30px', 'colorlib-login-customizer' ),
535
+ 'type' => 'text',
536
+ 'default' => '26px 24px',
537
+ ),
538
+ array(
539
+ 'id' => 'form-border',
540
+ 'label' => esc_html__( 'Form border', 'colorlib-login-customizer' ),
541
+ 'description' => esc_html__( 'This will change the border property. Example: 2px dotted black', 'colorlib-login-customizer' ),
542
+ 'type' => 'text',
543
+ 'default' => '0 none',
544
+ ),
545
+ array(
546
+ 'id' => 'form-border-radius',
547
+ 'label' => esc_html__( 'Form border radius', 'colorlib-login-customizer' ),
548
+ 'description' => esc_html__( 'This will change the border radius property. Example: 2px 2px 2px 2px', 'colorlib-login-customizer' ),
549
+ 'type' => 'text',
550
+ 'default' => '0',
551
+ ),
552
+ array(
553
+ 'id' => 'form-shadow',
554
+ 'label' => esc_html__( 'Form shadow', 'colorlib-login-customizer' ),
555
+ 'description' => esc_html__( 'This will change the form\'s shadow property. Example: 0 1px 0 #006799', 'colorlib-login-customizer' ),
556
+ 'type' => 'text',
557
+ 'default' => '0 1px 3px rgba(0,0,0,.13)',
558
+ ),
559
+ array(
560
+ 'id' => 'form-field-width',
561
+ 'label' => esc_html__( 'Form field width', 'colorlib-login-customizer' ),
562
+ 'description' => esc_html__( 'Please input the desired width for the form field in pixels. Example: 20', 'colorlib-login-customizer' ),
563
+ 'type' => 'text',
564
+ 'default' => '100%',
565
+ ),
566
+ array(
567
+ 'id' => 'form-field-margin',
568
+ 'label' => esc_html__( 'Form field margin', 'colorlib-login-customizer' ),
569
+ 'description' => esc_html__( 'This will change the margin property. Example: 26px 24px 46px 30px', 'colorlib-login-customizer' ),
570
+ 'type' => 'text',
571
+ 'default' => '2px 6px 16px 0',
572
+ ),
573
+ array(
574
+ 'id' => 'form-field-border',
575
+ 'label' => esc_html__( 'Form field border', 'colorlib-login-customizer' ),
576
+ 'description' => esc_html__( 'Please input the desired border for the form field. Example: 2px dotted black', 'colorlib-login-customizer' ),
577
+ 'type' => 'text',
578
+ 'default' => '1px solid #ddd',
579
+ ),
580
+ array(
581
+ 'id' => 'form-field-border-radius',
582
+ 'label' => esc_html__( 'Form field border radius', 'colorlib-login-customizer' ),
583
+ 'description' => esc_html__( 'Please input the desired border radiuse for the form field. Example: 5px 5px 5px 5px', 'colorlib-login-customizer' ),
584
+ 'type' => 'text',
585
+ 'default' => 'unset',
586
+ ),
587
+ array(
588
+ 'id' => 'form-field-background',
589
+ 'label' => esc_html__( 'Form field background', 'colorlib-login-customizer' ),
590
+ 'description' => esc_html__( 'This will change the background color property.', 'colorlib-login-customizer' ),
591
+ 'type' => 'color',
592
+ 'default' => '#fbfbfb',
593
+ ),
594
+ array(
595
+ 'id' => 'form-field-color',
596
+ 'label' => esc_html__( 'Form field color', 'colorlib-login-customizer' ),
597
+ 'description' => esc_html__( 'This will change the text color property.', 'colorlib-login-customizer' ),
598
+ 'type' => 'color',
599
+ 'default' => '#32373c',
600
+ ),
601
+ array(
602
+ 'id' => 'form-label-color',
603
+ 'label' => esc_html__( 'Form label color', 'colorlib-login-customizer' ),
604
+ 'description' => esc_html__( 'This will change the label text color property.', 'colorlib-login-customizer' ),
605
+ 'type' => 'color',
606
+ 'default' => '#72777c',
607
+ ),
608
+ array(
609
+ 'id' => 'lost-password-text',
610
+ 'label' => esc_html__( 'Lost Password Text', 'colorlib-login-customizer' ),
611
+ 'description' => esc_html__( 'You can change the default text for "Lost your password" ', 'colorlib-login-customizer' ),
612
+ 'type' => 'text',
613
+ 'default' => 'Lost your password?',
614
+ ),
615
+ array(
616
+ 'id' => 'back-to-text',
617
+ 'label' => esc_html__( 'Back to site text', 'colorlib-login-customizer' ),
618
+ 'description' => esc_html__( 'You can change the default text for "Back to" site ', 'colorlib-login-customizer' ),
619
+ 'type' => 'text',
620
+ 'default' => 'Back to site',
621
+ ),
622
+ array(
623
+ 'id' => 'hide-extra-links',
624
+ 'label' => esc_html__( 'Hide Extra Links', 'colorlib-login-customizer' ),
625
+ 'description' => esc_html__( 'Show/Hide the links under the login form', 'colorlib-login-customizer' ),
626
+ 'type' => 'clc-toggle',
627
+ 'default' => 0,
628
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
629
  ),
630
  );
631
 
632
+ $settings['login-form'] = array(
633
+ 'title' => esc_html__( 'Login Form Texts', 'colorlib-login-customizer' ),
634
+ 'description' => '',
635
+ 'fields' => array(
636
+ array(
637
+ 'id' => 'username-label',
638
+ 'label' => esc_html__( 'Username label', 'colorlib-login-customizer' ),
639
+ 'description' => esc_html__( 'You can change the default text for username label or just delete it.', 'colorlib-login-customizer' ),
640
+ 'type' => 'text',
641
+ 'default' => 'Username or Email Address',
642
+ ),
643
+ array(
644
+ 'id' => 'password-label',
645
+ 'label' => esc_html__( 'Password label', 'colorlib-login-customizer' ),
646
+ 'description' => esc_html__( 'You can change the default text for password label or just delete it.', 'colorlib-login-customizer' ),
647
+ 'type' => 'text',
648
+ 'default' => 'Password',
649
+ ),
650
+ array(
651
+ 'id' => 'rememberme-label',
652
+ 'label' => esc_html__( 'Remember Me label', 'colorlib-login-customizer' ),
653
+ 'description' => esc_html__( 'You can change the default remember me text.', 'colorlib-login-customizer' ),
654
+ 'type' => 'text',
655
+ 'default' => 'Remember Me',
656
+ ),
657
+ array(
658
+ 'id' => 'login-label',
659
+ 'label' => esc_html__( 'Login label', 'colorlib-login-customizer' ),
660
+ 'description' => esc_html__( 'You can change the default text for the log in button.', 'colorlib-login-customizer' ),
661
+ 'type' => 'text',
662
+ 'default' => 'Log In',
663
+ ),
664
+ array(
665
+ 'id' => 'register-link-label',
666
+ 'label' => esc_html__( 'Register link', 'colorlib-login-customizer' ),
667
+ 'description' => esc_html__( 'You can change the default text for the register link at the end of the form.', 'colorlib-login-customizer' ),
668
+ 'type' => 'text',
669
+ 'default' => 'Register',
670
+ 'active_callback' => array( $this, 'check_if_user_can_register' ),
671
+ ),
672
+ ),
673
+ );
674
+
675
+ $settings['register-form'] = array(
676
+ 'title' => esc_html__( 'Register Form Texts', 'colorlib-login-customizer' ),
677
+ 'description' => '',
678
+ 'fields' => array(
679
+ array(
680
+ 'id' => 'register-username-label',
681
+ 'label' => esc_html__( 'Username label', 'colorlib-login-customizer' ),
682
+ 'description' => esc_html__( 'You can change the default text for username label or just delete it.', 'colorlib-login-customizer' ),
683
+ 'type' => 'text',
684
+ 'default' => 'Username',
685
+ 'active_callback' => array( $this, 'check_if_user_can_register' ),
686
+ ),
687
+ array(
688
+ 'id' => 'register-email-label',
689
+ 'label' => esc_html__( 'Email label', 'colorlib-login-customizer' ),
690
+ 'description' => esc_html__( 'You can change the default text for email label or just delete it.', 'colorlib-login-customizer' ),
691
+ 'type' => 'text',
692
+ 'default' => 'Email',
693
+ 'active_callback' => array( $this, 'check_if_user_can_register' ),
694
+ ),
695
+ array(
696
+ 'id' => 'register-confirmation-email',
697
+ 'label' => esc_html__( 'Registration confirmation text', 'colorlib-login-customizer' ),
698
+ 'description' => esc_html__( 'You can change the default registration confirmation text.', 'colorlib-login-customizer' ),
699
+ 'type' => 'text',
700
+ 'default' => 'Registration confirmation will be emailed to you.',
701
+ 'active_callback' => array( $this, 'check_if_user_can_register' ),
702
+ ),
703
+ array(
704
+ 'id' => 'register-button-label',
705
+ 'label' => esc_html__( 'Button label', 'colorlib-login-customizer' ),
706
+ 'description' => esc_html__( 'You can change the default text for the register button.', 'colorlib-login-customizer' ),
707
+ 'type' => 'text',
708
+ 'default' => 'Register',
709
+ 'active_callback' => array( $this, 'check_if_user_can_register' ),
710
+ ),
711
+ array(
712
+ 'id' => 'login-link-label',
713
+ 'label' => esc_html__( 'Login link', 'colorlib-login-customizer' ),
714
+ 'description' => esc_html__( 'You can change the default text for the login link at the end of the form.', 'colorlib-login-customizer' ),
715
+ 'type' => 'text',
716
+ 'default' => 'Log in',
717
+ 'active_callback' => array( $this, 'check_if_user_can_register' ),
718
+ ),
719
+ ),
720
+ );
721
+
722
+ $settings['lostpassword-form'] = array(
723
+ 'title' => esc_html__( 'Lost Password Form Texts', 'colorlib-login-customizer' ),
724
+ 'description' => '',
725
+ 'fields' => array(
726
+ array(
727
+ 'id' => 'lostpassword-username-label',
728
+ 'label' => esc_html__( 'Username label', 'colorlib-login-customizer' ),
729
+ 'description' => esc_html__( 'You can change the default text for username label or just delete it.', 'colorlib-login-customizer' ),
730
+ 'type' => 'text',
731
+ 'default' => 'Username or Email Address',
732
+ ),
733
+ array(
734
+ 'id' => 'lostpassword-button-label',
735
+ 'label' => esc_html__( 'Button label', 'colorlib-login-customizer' ),
736
+ 'description' => esc_html__( 'You can change the default text for the lost password button.', 'colorlib-login-customizer' ),
737
+ 'type' => 'text',
738
+ 'default' => 'Get New Password',
739
+ ),
740
+ ),
741
+
742
+ );
743
+
744
  $settings['general'] = array(
745
  'title' => esc_html__( 'Form Button & Links', 'colorlib-login-customizer' ),
746
  'description' => '',
980
  wp_localize_script(
981
  'colorlib-login-customizer-script', 'CLCUrls', array(
982
  'siteurl' => get_option( 'siteurl' ),
983
+ 'register_url' => wp_registration_url()
984
  )
985
  );
986
  }
1015
 
1016
  return true;
1017
  }
1018
+
1019
+ public function check_if_user_can_register(){
1020
+ $user_can_register = get_option('users_can_register');
1021
+ if($user_can_register == '0'){
1022
+ return false;
1023
+ }
1024
+ return true;
1025
+ }
1026
  }
includes/login-template.php CHANGED
@@ -7,6 +7,10 @@
7
  *
8
  */
9
 
 
 
 
 
10
 
11
  /**
12
  * Output the login page header.
@@ -79,6 +83,7 @@ do_action( 'login_init' );
79
  * @since 2.8.0
80
  */
81
  do_action( 'login_form_login' );
 
82
 
83
  /**
84
  * Filters the separator used between login form navigation links.
@@ -163,7 +168,7 @@ $classes = apply_filters( 'login_body_class', $classes, 'login' );
163
  </a>
164
  </h1>
165
 
166
- <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
167
  <div id="clc-loginform" class="clc-preview-event" data-section="clc_form"><span class="dashicons dashicons-edit"></span></div>
168
  <p>
169
  <label for="user_login"><span id="clc-username-label"><?php _e( 'Username or Email Address', 'colorlib-login-customizer' ); ?></span><br />
@@ -182,20 +187,64 @@ $classes = apply_filters( 'login_body_class', $classes, 'login' );
182
  do_action( 'login_form' );
183
  ?>
184
  <p class="forgetmenot"><label for="rememberme"><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <span id="clc-rememberme-label"><?php esc_html_e( 'Remember Me', 'colorlib-login-customizer' ); ?></span></label></p>
185
- <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Log In', 'colorlib-login-customizer' ); ?>" /></p>
186
  </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
187
  <p id="nav">
188
  <?php
189
  if ( get_option( 'users_can_register' ) ) :
190
- $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register', 'colorlib-login-customizer' ) );
 
 
191
 
192
  /** This filter is documented in wp-includes/general-template.php */
193
  echo apply_filters( 'register', $registration_url );
194
 
195
- echo esc_html( $login_link_separator );
 
 
 
 
196
  endif;
197
  ?>
198
- <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" id="clc-lost-password-text"><?php _e( 'Lost your password?', 'colorlib-login-customizer' ); ?></a>
199
  </p>
200
  <p id="backtoblog">
201
  <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
7
  *
8
  */
9
 
10
+ $clc_core = Colorlib_Login_Customizer::instance();
11
+ $clc_defaults = $clc_core->get_defaults();
12
+ $clc_options = get_option( 'clc-options', array() );
13
+ $clc_options = wp_parse_args( $clc_options, $clc_defaults );
14
 
15
  /**
16
  * Output the login page header.
83
  * @since 2.8.0
84
  */
85
  do_action( 'login_form_login' );
86
+ do_action( 'login_form_register' );
87
 
88
  /**
89
  * Filters the separator used between login form navigation links.
168
  </a>
169
  </h1>
170
 
171
+ <form name="loginform" class="show-only_login" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
172
  <div id="clc-loginform" class="clc-preview-event" data-section="clc_form"><span class="dashicons dashicons-edit"></span></div>
173
  <p>
174
  <label for="user_login"><span id="clc-username-label"><?php _e( 'Username or Email Address', 'colorlib-login-customizer' ); ?></span><br />
187
  do_action( 'login_form' );
188
  ?>
189
  <p class="forgetmenot"><label for="rememberme"><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <span id="clc-rememberme-label"><?php esc_html_e( 'Remember Me', 'colorlib-login-customizer' ); ?></span></label></p>
190
+ <p class="submit"><input type="submit" name="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Log In', 'colorlib-login-customizer' ); ?>" /></p>
191
  </form>
192
+
193
+ <form name="registerform" style="display:none" class="show-only_register" id="registerform" action="<?php echo esc_url( wp_registration_url() ); ?>" method="post">
194
+ <p>
195
+ <label for="user_register"><span id="clc-register-sername-label"><?php _e( 'Username', 'colorlib-login-customizer' ); ?></span><br />
196
+ <input type="text" name="log" id="user_register" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" /></label>
197
+ </p>
198
+ <p>
199
+ <label for="user_email"><span id="clc-register-email-label"><?php _e( 'Email', 'colorlib-login-customizer' ); ?></span><br />
200
+ <input type="email" name="email" id="user_email" class="input" value="" size="20" /></label>
201
+ </p>
202
+ <?php
203
+ /**
204
+ * Fires following the 'Password' field in the login form.
205
+ *
206
+ * @since 2.1.0
207
+ */
208
+ do_action( 'login_form' );
209
+ ?>
210
+ <p id="reg_passmail"><?php _e('Registration confirmation will be emailed to you.','colorlib-login-customizer'); ?></p>
211
+ <p class="submit"><input type="submit" name="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Register', 'colorlib-login-customizer' ); ?>" /></p>
212
+ </form>
213
+
214
+ <form style="display:none;" class="show-only_lostpassword" name="lostpasswordform" id="lostpasswordform" action="" method="post">
215
+ <p>
216
+ <label for="user_login" ><span><?php _e( 'Username or Email Address', 'colorlib-login-customizer' ); ?></span><br />
217
+ <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" /></label>
218
+ </p>
219
+ <?php
220
+ /**
221
+ * Fires inside the lostpassword form tags, before the hidden fields.
222
+ *
223
+ * @since 2.1.0
224
+ */
225
+ do_action( 'lostpassword_form' );
226
+ ?>
227
+ <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Get New Password', 'colorlib-login-customizer' ); ?>" /></p>
228
+ </form>
229
+
230
  <p id="nav">
231
  <?php
232
  if ( get_option( 'users_can_register' ) ) :
233
+ $registration_url = sprintf( '<a id="register-link-label" href="%s" class="show-only_login show-only_lostpassword">%s</a>', esc_url( wp_registration_url() ), $clc_options['register-link-label'] );
234
+
235
+
236
 
237
  /** This filter is documented in wp-includes/general-template.php */
238
  echo apply_filters( 'register', $registration_url );
239
 
240
+ echo '<span style="display:none" class="show-only_lostpassword">'.esc_html( $login_link_separator ).'</span>';
241
+
242
+ echo '<a href="#" id="login-link-label" class="show-only_register show-only_lostpassword" style="display:none">' . $clc_options['login-link-label'] . '</a>';
243
+
244
+ echo '<span class="show-only_register show-only_login">'.esc_html( $login_link_separator ).'</span>';
245
  endif;
246
  ?>
247
+ <a class="show-only_register show-only_login" href="<?php echo esc_url( wp_lostpassword_url() ); ?>" id="clc-lost-password-text"><?php _e( 'Lost your password?', 'colorlib-login-customizer' ); ?></a>
248
  </p>
249
  <p id="backtoblog">
250
  <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
languages/colorlib-login-customizer.po CHANGED
@@ -1,15 +1,15 @@
1
- # Copyright (C) 2018 Colorlib
2
  # This file is distributed under the same license as the Colorlib Login Customizer package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Colorlib Login Customizer 1.2.6\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/colorlib-login-customizer\n"
8
- "POT-Creation-Date: 2018-12-28 11:20:29+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
  "Language: en\n"
@@ -202,7 +202,7 @@ msgid "Form Column background"
202
  msgstr ""
203
 
204
  #: includes/lib/class-colorlib-login-customizer-customizer.php:490
205
- msgid "Form options"
206
  msgstr ""
207
 
208
  #: includes/lib/class-colorlib-login-customizer-customizer.php:495
@@ -322,156 +322,219 @@ msgid "This will change the label text color property."
322
  msgstr ""
323
 
324
  #: includes/lib/class-colorlib-login-customizer-customizer.php:610
325
- msgid "Username label"
326
  msgstr ""
327
 
328
  #: includes/lib/class-colorlib-login-customizer-customizer.php:611
329
- msgid "You can change the default text for username label or just delete it."
330
  msgstr ""
331
 
332
  #: includes/lib/class-colorlib-login-customizer-customizer.php:617
333
- msgid "Password label"
334
  msgstr ""
335
 
336
  #: includes/lib/class-colorlib-login-customizer-customizer.php:618
337
- msgid "You can change the default text for password label or just delete it."
338
  msgstr ""
339
 
340
  #: includes/lib/class-colorlib-login-customizer-customizer.php:624
341
- msgid "Remember Me label"
342
  msgstr ""
343
 
344
  #: includes/lib/class-colorlib-login-customizer-customizer.php:625
345
- msgid "You can change the default remember me text."
346
- msgstr ""
347
-
348
- #: includes/lib/class-colorlib-login-customizer-customizer.php:631
349
- msgid "Lost Password Text"
350
  msgstr ""
351
 
352
- #: includes/lib/class-colorlib-login-customizer-customizer.php:632
353
- msgid "You can change the default text for \"Lost your password\" "
354
  msgstr ""
355
 
356
  #: includes/lib/class-colorlib-login-customizer-customizer.php:638
357
- msgid "Back to site text"
 
 
358
  msgstr ""
359
 
360
  #: includes/lib/class-colorlib-login-customizer-customizer.php:639
361
- msgid "You can change the default text for \"Back to\" site "
 
 
362
  msgstr ""
363
 
364
  #: includes/lib/class-colorlib-login-customizer-customizer.php:645
365
- msgid "Login label"
366
  msgstr ""
367
 
368
  #: includes/lib/class-colorlib-login-customizer-customizer.php:646
369
- msgid "You can change the default text for the log in button."
370
  msgstr ""
371
 
372
  #: includes/lib/class-colorlib-login-customizer-customizer.php:652
373
- msgid "Hide Extra Links"
374
  msgstr ""
375
 
376
  #: includes/lib/class-colorlib-login-customizer-customizer.php:653
377
- msgid "Show/Hide the links under the login form"
378
  msgstr ""
379
 
380
- #: includes/lib/class-colorlib-login-customizer-customizer.php:661
381
- msgid "Form Button & Links"
 
 
 
 
382
  msgstr ""
383
 
384
  #: includes/lib/class-colorlib-login-customizer-customizer.php:666
385
- msgid "Button background"
386
  msgstr ""
387
 
388
  #: includes/lib/class-colorlib-login-customizer-customizer.php:667
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
389
  msgid "This will change the submit button's background property"
390
  msgstr ""
391
 
392
- #: includes/lib/class-colorlib-login-customizer-customizer.php:673
393
  msgid "Button background hover state"
394
  msgstr ""
395
 
396
- #: includes/lib/class-colorlib-login-customizer-customizer.php:674
397
  msgid "This will change the submit button's background property on hover"
398
  msgstr ""
399
 
400
- #: includes/lib/class-colorlib-login-customizer-customizer.php:680
401
  msgid "Button border color"
402
  msgstr ""
403
 
404
- #: includes/lib/class-colorlib-login-customizer-customizer.php:681
405
  msgid "This will change the submit button's border color property"
406
  msgstr ""
407
 
408
- #: includes/lib/class-colorlib-login-customizer-customizer.php:687
409
  msgid "Button border hover state"
410
  msgstr ""
411
 
412
- #: includes/lib/class-colorlib-login-customizer-customizer.php:688
413
  msgid "This will change the submit button's border property on hover"
414
  msgstr ""
415
 
416
- #: includes/lib/class-colorlib-login-customizer-customizer.php:694
417
  msgid "Button shadow"
418
  msgstr ""
419
 
420
- #: includes/lib/class-colorlib-login-customizer-customizer.php:695
421
  msgid ""
422
  "This will change the submit button's shadow property. Example: 0 1px 0 "
423
  "#006799"
424
  msgstr ""
425
 
426
- #: includes/lib/class-colorlib-login-customizer-customizer.php:701
427
  msgid "Button text shadow"
428
  msgstr ""
429
 
430
- #: includes/lib/class-colorlib-login-customizer-customizer.php:702
431
  msgid ""
432
  "This will change the submit button text's shadow property. Example: 0 -1px "
433
  "1px #006799"
434
  msgstr ""
435
 
436
- #: includes/lib/class-colorlib-login-customizer-customizer.php:708
437
  msgid "Button color"
438
  msgstr ""
439
 
440
- #: includes/lib/class-colorlib-login-customizer-customizer.php:709
441
  msgid "This will change the submit button's text color property"
442
  msgstr ""
443
 
444
- #: includes/lib/class-colorlib-login-customizer-customizer.php:715
445
  msgid "Link color"
446
  msgstr ""
447
 
448
- #: includes/lib/class-colorlib-login-customizer-customizer.php:716
449
  msgid "This will change the text color of links that are underneath the login form"
450
  msgstr ""
451
 
452
- #: includes/lib/class-colorlib-login-customizer-customizer.php:722
453
  msgid "Link color hover"
454
  msgstr ""
455
 
456
- #: includes/lib/class-colorlib-login-customizer-customizer.php:723
457
  msgid ""
458
  "This will change the text color of links, that are underneath the login "
459
  "form, on hover"
460
  msgstr ""
461
 
462
- #: includes/lib/class-colorlib-login-customizer-customizer.php:729
463
  msgid "Hide \"Remember Me\""
464
  msgstr ""
465
 
466
- #: includes/lib/class-colorlib-login-customizer-customizer.php:730
467
  msgid "Show/Hide the \"Remember Me\" checkbox"
468
  msgstr ""
469
 
470
- #: includes/lib/class-colorlib-login-customizer-customizer.php:738
471
  msgid "Custom CSS"
472
  msgstr ""
473
 
474
- #: includes/lib/class-colorlib-login-customizer-customizer.php:743
475
  msgid "CSS code"
476
  msgstr ""
477
 
@@ -502,45 +565,61 @@ msgstr ""
502
  msgid "(clear)"
503
  msgstr ""
504
 
505
- #: includes/login-template.php:30
506
  #. translators: Login screen title. 1: Login screen name, 2: Network or site
507
  #. name
508
  msgid "%1$s &lsaquo; %2$s &#8212; WordPress"
509
  msgstr ""
510
 
511
- #: includes/login-template.php:96 includes/login-template.php:185
512
  msgid "Log In"
513
  msgstr ""
514
 
515
- #: includes/login-template.php:98
516
  msgid "https://wordpress.org/"
517
  msgstr ""
518
 
519
- #: includes/login-template.php:99
520
  msgid "Powered by WordPress"
521
  msgstr ""
522
 
523
- #: includes/login-template.php:169
524
  msgid "Username or Email Address"
525
  msgstr ""
526
 
527
- #: includes/login-template.php:173
528
  msgid "Password"
529
  msgstr ""
530
 
531
- #: includes/login-template.php:184
532
  msgid "Remember Me"
533
  msgstr ""
534
 
535
- #: includes/login-template.php:190
 
 
 
 
 
 
 
 
 
 
 
 
536
  msgid "Register"
537
  msgstr ""
538
 
539
- #: includes/login-template.php:198
 
 
 
 
540
  msgid "Lost your password?"
541
  msgstr ""
542
 
543
- #: includes/login-template.php:204
544
  msgid "Back to"
545
  msgstr ""
546
 
1
+ # Copyright (C) 2019 Colorlib
2
  # This file is distributed under the same license as the Colorlib Login Customizer package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Colorlib Login Customizer 1.2.7\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/colorlib-login-customizer\n"
8
+ "POT-Creation-Date: 2019-01-29 12:17:39+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
  "Language: en\n"
202
  msgstr ""
203
 
204
  #: includes/lib/class-colorlib-login-customizer-customizer.php:490
205
+ msgid "General Form options"
206
  msgstr ""
207
 
208
  #: includes/lib/class-colorlib-login-customizer-customizer.php:495
322
  msgstr ""
323
 
324
  #: includes/lib/class-colorlib-login-customizer-customizer.php:610
325
+ msgid "Lost Password Text"
326
  msgstr ""
327
 
328
  #: includes/lib/class-colorlib-login-customizer-customizer.php:611
329
+ msgid "You can change the default text for \"Lost your password\" "
330
  msgstr ""
331
 
332
  #: includes/lib/class-colorlib-login-customizer-customizer.php:617
333
+ msgid "Back to site text"
334
  msgstr ""
335
 
336
  #: includes/lib/class-colorlib-login-customizer-customizer.php:618
337
+ msgid "You can change the default text for \"Back to\" site "
338
  msgstr ""
339
 
340
  #: includes/lib/class-colorlib-login-customizer-customizer.php:624
341
+ msgid "Hide Extra Links"
342
  msgstr ""
343
 
344
  #: includes/lib/class-colorlib-login-customizer-customizer.php:625
345
+ msgid "Show/Hide the links under the login form"
 
 
 
 
346
  msgstr ""
347
 
348
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:633
349
+ msgid "Login Form Texts"
350
  msgstr ""
351
 
352
  #: includes/lib/class-colorlib-login-customizer-customizer.php:638
353
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:681
354
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:728
355
+ msgid "Username label"
356
  msgstr ""
357
 
358
  #: includes/lib/class-colorlib-login-customizer-customizer.php:639
359
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:682
360
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:729
361
+ msgid "You can change the default text for username label or just delete it."
362
  msgstr ""
363
 
364
  #: includes/lib/class-colorlib-login-customizer-customizer.php:645
365
+ msgid "Password label"
366
  msgstr ""
367
 
368
  #: includes/lib/class-colorlib-login-customizer-customizer.php:646
369
+ msgid "You can change the default text for password label or just delete it."
370
  msgstr ""
371
 
372
  #: includes/lib/class-colorlib-login-customizer-customizer.php:652
373
+ msgid "Remember Me label"
374
  msgstr ""
375
 
376
  #: includes/lib/class-colorlib-login-customizer-customizer.php:653
377
+ msgid "You can change the default remember me text."
378
  msgstr ""
379
 
380
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:659
381
+ msgid "Login label"
382
+ msgstr ""
383
+
384
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:660
385
+ msgid "You can change the default text for the log in button."
386
  msgstr ""
387
 
388
  #: includes/lib/class-colorlib-login-customizer-customizer.php:666
389
+ msgid "Register link"
390
  msgstr ""
391
 
392
  #: includes/lib/class-colorlib-login-customizer-customizer.php:667
393
+ msgid ""
394
+ "You can change the default text for the register link at the end of the "
395
+ "form."
396
+ msgstr ""
397
+
398
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:676
399
+ msgid "Register Form Texts"
400
+ msgstr ""
401
+
402
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:689
403
+ msgid "Email label"
404
+ msgstr ""
405
+
406
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:690
407
+ msgid "You can change the default text for email label or just delete it."
408
+ msgstr ""
409
+
410
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:697
411
+ msgid "Registration confirmation text"
412
+ msgstr ""
413
+
414
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:698
415
+ msgid "You can change the default registration confirmation text."
416
+ msgstr ""
417
+
418
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:705
419
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:735
420
+ msgid "Button label"
421
+ msgstr ""
422
+
423
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:706
424
+ msgid "You can change the default text for the register button."
425
+ msgstr ""
426
+
427
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:713
428
+ msgid "Login link"
429
+ msgstr ""
430
+
431
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:714
432
+ msgid "You can change the default text for the login link at the end of the form."
433
+ msgstr ""
434
+
435
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:723
436
+ msgid "Lost Password Form Texts"
437
+ msgstr ""
438
+
439
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:736
440
+ msgid "You can change the default text for the lost password button."
441
+ msgstr ""
442
+
443
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:745
444
+ msgid "Form Button & Links"
445
+ msgstr ""
446
+
447
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:750
448
+ msgid "Button background"
449
+ msgstr ""
450
+
451
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:751
452
  msgid "This will change the submit button's background property"
453
  msgstr ""
454
 
455
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:757
456
  msgid "Button background hover state"
457
  msgstr ""
458
 
459
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:758
460
  msgid "This will change the submit button's background property on hover"
461
  msgstr ""
462
 
463
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:764
464
  msgid "Button border color"
465
  msgstr ""
466
 
467
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:765
468
  msgid "This will change the submit button's border color property"
469
  msgstr ""
470
 
471
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:771
472
  msgid "Button border hover state"
473
  msgstr ""
474
 
475
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:772
476
  msgid "This will change the submit button's border property on hover"
477
  msgstr ""
478
 
479
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:778
480
  msgid "Button shadow"
481
  msgstr ""
482
 
483
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:779
484
  msgid ""
485
  "This will change the submit button's shadow property. Example: 0 1px 0 "
486
  "#006799"
487
  msgstr ""
488
 
489
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:785
490
  msgid "Button text shadow"
491
  msgstr ""
492
 
493
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:786
494
  msgid ""
495
  "This will change the submit button text's shadow property. Example: 0 -1px "
496
  "1px #006799"
497
  msgstr ""
498
 
499
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:792
500
  msgid "Button color"
501
  msgstr ""
502
 
503
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:793
504
  msgid "This will change the submit button's text color property"
505
  msgstr ""
506
 
507
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:799
508
  msgid "Link color"
509
  msgstr ""
510
 
511
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:800
512
  msgid "This will change the text color of links that are underneath the login form"
513
  msgstr ""
514
 
515
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:806
516
  msgid "Link color hover"
517
  msgstr ""
518
 
519
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:807
520
  msgid ""
521
  "This will change the text color of links, that are underneath the login "
522
  "form, on hover"
523
  msgstr ""
524
 
525
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:813
526
  msgid "Hide \"Remember Me\""
527
  msgstr ""
528
 
529
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:814
530
  msgid "Show/Hide the \"Remember Me\" checkbox"
531
  msgstr ""
532
 
533
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:822
534
  msgid "Custom CSS"
535
  msgstr ""
536
 
537
+ #: includes/lib/class-colorlib-login-customizer-customizer.php:827
538
  msgid "CSS code"
539
  msgstr ""
540
 
565
  msgid "(clear)"
566
  msgstr ""
567
 
568
+ #: includes/login-template.php:34
569
  #. translators: Login screen title. 1: Login screen name, 2: Network or site
570
  #. name
571
  msgid "%1$s &lsaquo; %2$s &#8212; WordPress"
572
  msgstr ""
573
 
574
+ #: includes/login-template.php:101 includes/login-template.php:190
575
  msgid "Log In"
576
  msgstr ""
577
 
578
+ #: includes/login-template.php:103
579
  msgid "https://wordpress.org/"
580
  msgstr ""
581
 
582
+ #: includes/login-template.php:104
583
  msgid "Powered by WordPress"
584
  msgstr ""
585
 
586
+ #: includes/login-template.php:174 includes/login-template.php:216
587
  msgid "Username or Email Address"
588
  msgstr ""
589
 
590
+ #: includes/login-template.php:178
591
  msgid "Password"
592
  msgstr ""
593
 
594
+ #: includes/login-template.php:189
595
  msgid "Remember Me"
596
  msgstr ""
597
 
598
+ #: includes/login-template.php:195
599
+ msgid "Username"
600
+ msgstr ""
601
+
602
+ #: includes/login-template.php:199
603
+ msgid "Email"
604
+ msgstr ""
605
+
606
+ #: includes/login-template.php:210
607
+ msgid "Registration confirmation will be emailed to you."
608
+ msgstr ""
609
+
610
+ #: includes/login-template.php:211
611
  msgid "Register"
612
  msgstr ""
613
 
614
+ #: includes/login-template.php:227
615
+ msgid "Get New Password"
616
+ msgstr ""
617
+
618
+ #: includes/login-template.php:247
619
  msgid "Lost your password?"
620
  msgstr ""
621
 
622
+ #: includes/login-template.php:253
623
  msgid "Back to"
624
  msgstr ""
625
 
readme.txt CHANGED