Custom Login Page Customizer by Colorlib - Version 1.2.96

Version Description

  • Compatibility fix with All In One WP Security plugin
  • Customizer toggle bug fix
  • Review dismiss fix
Download this release

Release Info

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

Code changes from version 1.2.95 to 1.2.96

assets/css/clc-customizer.css CHANGED
@@ -209,14 +209,14 @@
209
 
210
  /* Toggle */
211
  .customize-control-title.onoffswitch_label {
212
- display: block;
213
  float: left;
214
  margin: 0;
215
  height: 22px;
216
  line-height: 22px; }
217
 
218
  .onoffswitch_label {
219
- display: block; }
220
 
221
  .epsilon-toggle {
222
  position: relative;
@@ -224,15 +224,15 @@
224
  user-select: none;
225
  }
226
 
227
- .epsilon-toggle__items {
228
  box-sizing: border-box;
229
  }
230
 
231
- .epsilon-toggle__items > * {
232
  box-sizing: inherit;
233
  }
234
 
235
- .epsilon-toggle__input[type=checkbox] {
236
  border-radius: 2px;
237
  border: 2px solid #6c7781;
238
  margin-right: 12px;
@@ -248,7 +248,7 @@
248
  z-index: 1;
249
  }
250
 
251
- .epsilon-toggle__track {
252
  background-color: #fff;
253
  border: 2px solid #6c7781;
254
  border-radius: 9px;
@@ -259,7 +259,7 @@
259
  transition: background .2s ease;
260
  }
261
 
262
- .epsilon-toggle__thumb {
263
  background-color: #6c7781;
264
  border: 5px solid #6c7781;
265
  border-radius: 50%;
@@ -272,7 +272,7 @@
272
  transition: transform .2s ease;
273
  }
274
 
275
- .epsilon-toggle__off {
276
  position: absolute;
277
  right: 6px;
278
  top: 6px;
@@ -280,7 +280,23 @@
280
  fill: currentColor;
281
  }
282
 
283
- .epsilon-toggle__on {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
  position: absolute;
285
  top: 6px;
286
  left: 8px;
@@ -290,26 +306,21 @@
290
  display: none;
291
  }
292
 
293
-
294
- .epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__track {
295
- background-color: #11a0d2;
296
- border: 9px solid transparent;
297
- }
298
-
299
- .epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__thumb {
300
- background-color: #fff;
301
- border-width: 0;
302
- transform: translateX(18px);
303
  }
304
 
305
- .epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__off {
306
  display: none;
307
  }
308
 
309
- .epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__on {
310
  display: inline-block;
311
  }
312
 
 
 
 
313
  /* Color Picker */
314
  .clc-color-picker-title {
315
  margin-left: 42px;
209
 
210
  /* Toggle */
211
  .customize-control-title.onoffswitch_label {
212
+ display: block ;
213
  float: left;
214
  margin: 0;
215
  height: 22px;
216
  line-height: 22px; }
217
 
218
  .onoffswitch_label {
219
+ display: block ; }
220
 
221
  .epsilon-toggle {
222
  position: relative;
224
  user-select: none;
225
  }
226
 
227
+ .epsilon-toggle > input + .epsilon-toggle__items {
228
  box-sizing: border-box;
229
  }
230
 
231
+ .epsilon-toggle > input + .epsilon-toggle__items > * {
232
  box-sizing: inherit;
233
  }
234
 
235
+ .epsilon-toggle > input.epsilon-toggle__input[type=checkbox] {
236
  border-radius: 2px;
237
  border: 2px solid #6c7781;
238
  margin-right: 12px;
248
  z-index: 1;
249
  }
250
 
251
+ .epsilon-toggle > input + div > .epsilon-toggle__track {
252
  background-color: #fff;
253
  border: 2px solid #6c7781;
254
  border-radius: 9px;
259
  transition: background .2s ease;
260
  }
261
 
262
+ .epsilon-toggle > input + div > .epsilon-toggle__thumb {
263
  background-color: #6c7781;
264
  border: 5px solid #6c7781;
265
  border-radius: 50%;
272
  transition: transform .2s ease;
273
  }
274
 
275
+ .epsilon-toggle > input + div > .epsilon-toggle__off {
276
  position: absolute;
277
  right: 6px;
278
  top: 6px;
280
  fill: currentColor;
281
  }
282
 
283
+
284
+ .epsilon-toggle > input.epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__track {
285
+ background-color: #11a0d2;
286
+ border: 9px solid transparent;
287
+ }
288
+
289
+ .epsilon-toggle > input.epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__thumb {
290
+ background-color: #fff;
291
+ border-width: 0;
292
+ transform: translateX(18px);
293
+ }
294
+
295
+ .epsilon-toggle .epsilon-toggle__items svg {
296
+ display:none;
297
+ }
298
+
299
+ .epsilon-toggle > input.epsilon-toggle__input[type=checkbox] + div.epsilon-toggle__items > .epsilon-toggle__on {
300
  position: absolute;
301
  top: 6px;
302
  left: 8px;
306
  display: none;
307
  }
308
 
309
+ .epsilon-toggle > input.epsilon-toggle__input[type=checkbox] + .epsilon-toggle__items svg {
310
+ display:block;
 
 
 
 
 
 
 
 
311
  }
312
 
313
+ body .epsilon-toggle > input.epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__off {
314
  display: none;
315
  }
316
 
317
+ body .epsilon-toggle > input.epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__on {
318
  display: inline-block;
319
  }
320
 
321
+
322
+
323
+
324
  /* Color Picker */
325
  .clc-color-picker-title {
326
  margin-left: 42px;
colorlib-login-customizer.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Colorlib Login Customizer
4
- * Version: 1.2.95
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/
@@ -49,9 +49,9 @@ require_once 'includes/class-colorlib-login-customizer-autoloader.php';
49
  function colorlib_login_customizer() {
50
  $instance = Colorlib_Login_Customizer::instance( __FILE__, '1.2.92' );
51
 
52
- if ( is_null( $instance->settings ) ) {
53
- $instance->settings = Colorlib_Login_Customizer_Settings::instance( $instance );
54
- }
55
 
56
  return $instance;
57
  }
1
  <?php
2
  /**
3
  * Plugin Name: Colorlib Login Customizer
4
+ * Version: 1.2.96
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/
49
  function colorlib_login_customizer() {
50
  $instance = Colorlib_Login_Customizer::instance( __FILE__, '1.2.92' );
51
 
52
+ if (is_null($instance->settings)) {
53
+ $instance->settings = Colorlib_Login_Customizer_Settings::instance($instance);
54
+ }
55
 
56
  return $instance;
57
  }
includes/class-colorlib-login-customizer-review.php CHANGED
@@ -46,7 +46,7 @@ class CLC_Review {
46
  return;
47
  }
48
 
49
- add_action( 'wp_ajax_epsilon_review', array( $this, 'ajax' ) );
50
 
51
  if ( $this->check() ) {
52
  add_action( 'admin_notices', array( $this, 'five_star_wp_rate_notice' ) );
@@ -153,14 +153,15 @@ class CLC_Review {
153
  evt.preventDefault();
154
 
155
  var data = {
156
- action: 'epsilon_review',
157
  security: '<?php echo $ajax_nonce; ?>',
158
  };
159
 
160
- if ('epsilon-rated' === id) {
161
  data['epsilon-review'] = 1;
162
  }
163
 
 
164
  $.post('<?php echo admin_url( 'admin-ajax.php' ) ?>', data, function (response) {
165
  $('#<?php echo $this->slug ?>-epsilon-review-notice').slideUp('fast', function () {
166
  $(this).remove();
@@ -174,6 +175,21 @@ class CLC_Review {
174
 
175
  });
176
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
  });
178
  </script>
179
 
46
  return;
47
  }
48
 
49
+ add_action( 'wp_ajax_clc_epsilon_review', array( $this, 'ajax' ) );
50
 
51
  if ( $this->check() ) {
52
  add_action( 'admin_notices', array( $this, 'five_star_wp_rate_notice' ) );
153
  evt.preventDefault();
154
 
155
  var data = {
156
+ action: 'clc_epsilon_review',
157
  security: '<?php echo $ajax_nonce; ?>',
158
  };
159
 
160
+ if ('epsilon-rated' === id || 'epsilon-rate' === id) {
161
  data['epsilon-review'] = 1;
162
  }
163
 
164
+
165
  $.post('<?php echo admin_url( 'admin-ajax.php' ) ?>', data, function (response) {
166
  $('#<?php echo $this->slug ?>-epsilon-review-notice').slideUp('fast', function () {
167
  $(this).remove();
175
 
176
  });
177
 
178
+ $('#colorlib-login-customizer-epsilon-review-notice .notice-dismiss').click(function(){
179
+
180
+ var data = {
181
+ action: 'clc_epsilon_review',
182
+ security: '<?php echo $ajax_nonce; ?>',
183
+ };
184
+
185
+ $.post('<?php echo admin_url( 'admin-ajax.php' ) ?>', data, function (response) {
186
+ $('#<?php echo $this->slug ?>-epsilon-review-notice').slideUp('fast', function () {
187
+ $(this).remove();
188
+ });
189
+
190
+ });
191
+ });
192
+
193
  });
194
  </script>
195
 
includes/class-colorlib-login-customizer.php CHANGED
@@ -124,6 +124,9 @@ class Colorlib_Login_Customizer {
124
  // Generate plugins css
125
  add_action( 'init', array( $this, 'load_customizer_css' ) );
126
 
 
 
 
127
  } // End __construct ()
128
 
129
  /**
@@ -146,6 +149,7 @@ class Colorlib_Login_Customizer {
146
  * @return void
147
  */
148
  public function redirect_customizer() {
 
149
  if ( ! empty( $_GET['page'] ) ) { // Input var okay.
150
  if ( 'colorlib-login-customizer_settings' === $_GET['page'] ) { // Input var okay.
151
 
@@ -158,6 +162,7 @@ class Colorlib_Login_Customizer {
158
  );
159
 
160
  wp_safe_redirect( $url );
 
161
  }
162
  }
163
  }
@@ -365,4 +370,40 @@ class Colorlib_Login_Customizer {
365
  'initial' => 'initial',
366
  );
367
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
368
  }
124
  // Generate plugins css
125
  add_action( 'init', array( $this, 'load_customizer_css' ) );
126
 
127
+ // Compatibility fix with All In One WP Security
128
+ add_action('init', array($this, 'clc_aio_wp_security_comp_fix'));
129
+
130
  } // End __construct ()
131
 
132
  /**
149
  * @return void
150
  */
151
  public function redirect_customizer() {
152
+
153
  if ( ! empty( $_GET['page'] ) ) { // Input var okay.
154
  if ( 'colorlib-login-customizer_settings' === $_GET['page'] ) { // Input var okay.
155
 
162
  );
163
 
164
  wp_safe_redirect( $url );
165
+
166
  }
167
  }
168
  }
370
  'initial' => 'initial',
371
  );
372
  }
373
+
374
+ /**
375
+ * All In One WP Security customizer fix
376
+ *
377
+ * @since 1.2.96
378
+ */
379
+ public function clc_aio_wp_security_comp_fix() {
380
+
381
+ if ( ! is_customize_preview() ){
382
+ return;
383
+ }
384
+
385
+ if ( ! class_exists( 'AIO_WP_Security' ) ){
386
+ return;
387
+ }
388
+
389
+ global $aio_wp_security;
390
+
391
+ if( ! is_a( $aio_wp_security, 'AIO_WP_Security' ) ) {
392
+ return;
393
+ }
394
+
395
+ if( remove_action( 'wp_loaded', array( $aio_wp_security, 'aiowps_wp_loaded_handler' ) ) ) {
396
+ add_filter( 'option_aio_wp_security_configs', array( $this, 'clc_aio_wp_security_filter_options' ) );
397
+ }
398
+ }
399
+
400
+ /**
401
+ * Filter options aio_wp_security_configs.
402
+ *
403
+ * @since 1.2.96
404
+ */
405
+ public function clc_aio_wp_security_filter_options( $option ) {
406
+ unset( $option['aiowps_enable_rename_login_page'] );
407
+ return $option;
408
+ }
409
  }
languages/colorlib-login-customizer.po CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the GPLv3 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Colorlib Login Customizer 1.2.95\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/colorlib-login-customizer\n"
8
- "POT-Creation-Date: 2020-01-20 08:10:36+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -44,8 +44,8 @@ msgstr ""
44
  msgid "No, not good enough"
45
  msgstr ""
46
 
47
- #: includes/class-colorlib-login-customizer.php:216
48
- #: includes/class-colorlib-login-customizer.php:225
49
  #: includes/lib/class-colorlib-login-customizer-settings.php:130
50
  #: includes/lib/class-colorlib-login-customizer-settings.php:139
51
  msgid "Cheatin&#8217; huh?"
2
  # This file is distributed under the GPLv3 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Colorlib Login Customizer 1.2.96\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/colorlib-login-customizer\n"
8
+ "POT-Creation-Date: 2020-04-28 13:43:31+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
44
  msgid "No, not good enough"
45
  msgstr ""
46
 
47
+ #: includes/class-colorlib-login-customizer.php:221
48
+ #: includes/class-colorlib-login-customizer.php:230
49
  #: includes/lib/class-colorlib-login-customizer-settings.php:130
50
  #: includes/lib/class-colorlib-login-customizer-settings.php:139
51
  msgid "Cheatin&#8217; huh?"
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: silkalns
3
  Tags: customize login, login, custom login, customize wordpress login, wordpress login, customizer, custom admin, login logo, logo, login customizer, custom wp-login
4
  Requires at least: 4.7
5
- Tested up to: 5.3
6
- Stable tag: 1.2.95
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -93,6 +93,11 @@ If you enjoy using Colorlib Login Customizer for WordPress please leave a [posit
93
 
94
  == Changelog ==
95
 
 
 
 
 
 
96
  = 1.2.95 =
97
  * Review request bug fix
98
  * Review save bug fix
2
  Contributors: silkalns
3
  Tags: customize login, login, custom login, customize wordpress login, wordpress login, customizer, custom admin, login logo, logo, login customizer, custom wp-login
4
  Requires at least: 4.7
5
+ Tested up to: 5.4
6
+ Stable tag: 1.2.96
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
93
 
94
  == Changelog ==
95
 
96
+ = 1.2.96 =
97
+ * Compatibility fix with All In One WP Security plugin
98
+ * Customizer toggle bug fix
99
+ * Review dismiss fix
100
+
101
  = 1.2.95 =
102
  * Review request bug fix
103
  * Review save bug fix