Admin Custom Login - Version 2.9.2

Version Description

  • Login Button font Color setting option added
Download this release

Release Info

Developer weblizar
Plugin Icon 128x128 Admin Custom Login
Version 2.9.2
Comparing to
See all releases

Code changes from version 2.9.1 to 2.9.2

admin-custom-login.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Admin Custom Login
4
- * Version: 2.9.1
5
  * Description: Customize Your WordPress Login Screen Amazingly - Add Own Logo, Add Social Profiles, Login Form Positions, Background Image Slide Show
6
  * Author: Weblizar
7
  * Author URI: https://weblizar.com/plugins/
1
  <?php
2
  /**
3
  * Plugin Name: Admin Custom Login
4
+ * Version: 2.9.2
5
  * Description: Customize Your WordPress Login Screen Amazingly - Add Own Logo, Add Social Profiles, Login Form Positions, Background Image Slide Show
6
  * Author: Weblizar
7
  * Author URI: https://weblizar.com/plugins/
includes/design/text_and_color.php CHANGED
@@ -158,6 +158,22 @@ jQuery(document).ready(function(){
158
  </table>
159
  </div>
160
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
 
162
  <div class="panel panel-primary panel-default content-panel">
163
  <div class="panel-body">
@@ -645,7 +661,7 @@ function Custom_login_text(Action, id){
645
  var input_font_color = jQuery("#input-font-color").val();
646
  var link_color = jQuery("#link-color").val();
647
  var button_color = jQuery("#button-color").val();
648
-
649
  var heading_font_size = jQuery("#headline-size-text-box").val();
650
  var input_font_size = jQuery("#input-size-text-box").val();
651
  var link_size = jQuery("#link-size-text-box").val();
@@ -670,7 +686,7 @@ function Custom_login_text(Action, id){
670
  }
671
  var user_input_icon = jQuery("#user-input-icon").val();
672
  var password_input_icon = jQuery("#password-input-icon").val();
673
- var PostData = "Action=" + Action + "&heading_font_color=" + heading_font_color + "&input_font_color=" + input_font_color + "&link_color=" + link_color + "&button_color=" + button_color + "&heading_font_size=" + heading_font_size + "&input_font_size=" + input_font_size + "&link_size=" + link_size + "&button_font_size=" + button_font_size + "&enable_link_shadow=" + enable_link_shadow + "&link_shadow_color=" + link_shadow_color + "&heading_font_style=" + heading_font_style + "&input_font_style=" + input_font_style + "&link_font_style=" + link_font_style + "&button_font_style=" + button_font_style + "&enable_inputbox_icon=" + enable_inputbox_icon + "&user_input_icon=" + user_input_icon + "&password_input_icon=" + password_input_icon;
674
  jQuery.ajax({
675
  dataType : 'html',
676
  type: 'POST',
@@ -754,6 +770,7 @@ function Custom_login_text(Action, id){
754
  jQuery("#td-link-font-color a.wp-color-result").closest("a").css({"background-color": "#ffffff"});
755
  // Button Font Color
756
  jQuery("#td-button-font-color a.wp-color-result").closest("a").css({"background-color": "#dd3333"});
 
757
 
758
  jQuery( "#button-size-slider" ).slider("value",14 );
759
  jQuery( "#headline-size-text-box" ).val( jQuery( "#button-size-slider" ).slider( "value") );
@@ -789,6 +806,7 @@ if(isset($_POST['Action'])) {
789
  $input_font_color = sanitize_option('input_font_color', $_POST['input_font_color']);
790
  $link_color = sanitize_option('link_color', $_POST['link_color']);
791
  $button_color = sanitize_option('button_color', $_POST['button_color']);
 
792
  $heading_font_size = sanitize_option('heading_font_size', $_POST['heading_font_size']);
793
  $input_font_size = sanitize_option('input_font_size', $_POST['input_font_size']);
794
  $link_size = sanitize_option('link_size', $_POST['link_size']);
@@ -810,6 +828,7 @@ if(isset($_POST['Action'])) {
810
  'input_font_color'=>$input_font_color,
811
  'link_color'=>$link_color,
812
  'button_color'=>$button_color,
 
813
  'heading_font_size'=>$heading_font_size,
814
  'input_font_size'=>$input_font_size,
815
  'link_size'=>$link_size,
@@ -833,6 +852,7 @@ if(isset($_POST['Action'])) {
833
  'input_font_color'=>'#000000',
834
  'link_color'=>'#ffffff',
835
  'button_color'=>'#dd3333',
 
836
  'heading_font_size'=>'14',
837
  'input_font_size'=>'18',
838
  'link_size'=>'14',
158
  </table>
159
  </div>
160
  </div>
161
+ <!-- login button font color -->
162
+ <div class="panel panel-primary panel-default content-panel">
163
+ <div class="panel-body">
164
+ <table class="form-table">
165
+ <tr>
166
+ <th scope="row" ><?php _e('Login Button font Color', WEBLIZAR_ACL)?></th>
167
+ <td></td>
168
+ </tr>
169
+ <tr style="border-bottom:none;">
170
+ <td id="td-login-button-font-color">
171
+ <input id="login-button-text-color" name="login-button-font-color" type="text" value="<?php echo $login_button_font_color; ?>" class="my-color-field" data-default-color="#ffffff" />
172
+ </td>
173
+ </tr>
174
+ </table>
175
+ </div>
176
+ </div>
177
 
178
  <div class="panel panel-primary panel-default content-panel">
179
  <div class="panel-body">
661
  var input_font_color = jQuery("#input-font-color").val();
662
  var link_color = jQuery("#link-color").val();
663
  var button_color = jQuery("#button-color").val();
664
+ var login_button_font_color = jQuery("#login-button-text-color").val();
665
  var heading_font_size = jQuery("#headline-size-text-box").val();
666
  var input_font_size = jQuery("#input-size-text-box").val();
667
  var link_size = jQuery("#link-size-text-box").val();
686
  }
687
  var user_input_icon = jQuery("#user-input-icon").val();
688
  var password_input_icon = jQuery("#password-input-icon").val();
689
+ var PostData = "Action=" + Action + "&heading_font_color=" + heading_font_color + "&input_font_color=" + input_font_color + "&link_color=" + link_color + "&button_color=" + button_color + "&login_button_font_color=" + login_button_font_color + "&heading_font_size=" + heading_font_size + "&input_font_size=" + input_font_size + "&link_size=" + link_size + "&button_font_size=" + button_font_size + "&enable_link_shadow=" + enable_link_shadow + "&link_shadow_color=" + link_shadow_color + "&heading_font_style=" + heading_font_style + "&input_font_style=" + input_font_style + "&link_font_style=" + link_font_style + "&button_font_style=" + button_font_style + "&enable_inputbox_icon=" + enable_inputbox_icon + "&user_input_icon=" + user_input_icon + "&password_input_icon=" + password_input_icon;
690
  jQuery.ajax({
691
  dataType : 'html',
692
  type: 'POST',
770
  jQuery("#td-link-font-color a.wp-color-result").closest("a").css({"background-color": "#ffffff"});
771
  // Button Font Color
772
  jQuery("#td-button-font-color a.wp-color-result").closest("a").css({"background-color": "#dd3333"});
773
+ jQuery("#td-login-button-font-color a.wp-color-result").closest("a").css({"background-color": "#ffffff"});
774
 
775
  jQuery( "#button-size-slider" ).slider("value",14 );
776
  jQuery( "#headline-size-text-box" ).val( jQuery( "#button-size-slider" ).slider( "value") );
806
  $input_font_color = sanitize_option('input_font_color', $_POST['input_font_color']);
807
  $link_color = sanitize_option('link_color', $_POST['link_color']);
808
  $button_color = sanitize_option('button_color', $_POST['button_color']);
809
+ $login_button_font_color = sanitize_option('login_button_font_color', $_POST['login_button_font_color']);
810
  $heading_font_size = sanitize_option('heading_font_size', $_POST['heading_font_size']);
811
  $input_font_size = sanitize_option('input_font_size', $_POST['input_font_size']);
812
  $link_size = sanitize_option('link_size', $_POST['link_size']);
828
  'input_font_color'=>$input_font_color,
829
  'link_color'=>$link_color,
830
  'button_color'=>$button_color,
831
+ 'login_button_font_color'=>$login_button_font_color,
832
  'heading_font_size'=>$heading_font_size,
833
  'input_font_size'=>$input_font_size,
834
  'link_size'=>$link_size,
852
  'input_font_color'=>'#000000',
853
  'link_color'=>'#ffffff',
854
  'button_color'=>'#dd3333',
855
+ 'login_button_font_color'=>'#ffffff',
856
  'heading_font_size'=>'14',
857
  'input_font_size'=>'18',
858
  'link_size'=>'14',
includes/get_value.php CHANGED
@@ -73,6 +73,14 @@ if ( ! defined( 'ABSPATH' ) ) exit;
73
  $input_font_color = $text_and_color_page['input_font_color'];
74
  $link_color = $text_and_color_page['link_color'];
75
  $button_color = $text_and_color_page['button_color'];
 
 
 
 
 
 
 
 
76
  $heading_font_size = $text_and_color_page['heading_font_size'];
77
  $input_font_size = $text_and_color_page['input_font_size'];
78
  $link_size = $text_and_color_page['link_size'];
73
  $input_font_color = $text_and_color_page['input_font_color'];
74
  $link_color = $text_and_color_page['link_color'];
75
  $button_color = $text_and_color_page['button_color'];
76
+ if(isset($text_and_color_page['login_button_font_color'])){
77
+ echo "hello";
78
+ $login_button_font_color = $text_and_color_page['login_button_font_color'];
79
+ }
80
+ else {
81
+ $login_button_font_color="#ffffff";
82
+
83
+ }
84
  $heading_font_size = $text_and_color_page['heading_font_size'];
85
  $input_font_size = $text_and_color_page['input_font_size'];
86
  $link_size = $text_and_color_page['link_size'];
init.php CHANGED
@@ -319,6 +319,7 @@ function acl_export_settings() {
319
  $input_font_color = $text_and_color_page['input_font_color'];
320
  $link_color = $text_and_color_page['link_color'];
321
  $button_color = $text_and_color_page['button_color'];
 
322
  $heading_font_size = $text_and_color_page['heading_font_size'];
323
  $input_font_size = $text_and_color_page['input_font_size'];
324
  $link_size = $text_and_color_page['link_size'];
@@ -436,6 +437,7 @@ function acl_export_settings() {
436
  'input_font_color' => $input_font_color,
437
  'link_color' => $link_color,
438
  'button_color' => $button_color,
 
439
  'heading_font_size' => $heading_font_size,
440
  'input_font_size' => $input_font_size,
441
  'link_size' => $link_size,
@@ -581,6 +583,7 @@ function acl_import_settings() {
581
  $input_font_color = $ACL_Settings['input_font_color'];
582
  $link_color = $ACL_Settings['link_color'];
583
  $button_color = $ACL_Settings['button_color'];
 
584
  $heading_font_size = $ACL_Settings['heading_font_size'];
585
  $input_font_size = $ACL_Settings['input_font_size'];
586
  $link_size = $ACL_Settings['link_size'];
@@ -793,6 +796,7 @@ function acl_import_settings() {
793
  'input_font_color' => $input_font_color,
794
  'link_color' => $link_color,
795
  'button_color' => $button_color,
 
796
  'heading_font_size' => $heading_font_size,
797
  'input_font_size' => $input_font_size,
798
  'link_size' => $link_size,
319
  $input_font_color = $text_and_color_page['input_font_color'];
320
  $link_color = $text_and_color_page['link_color'];
321
  $button_color = $text_and_color_page['button_color'];
322
+ $login_button_font_color = $text_and_color_page['login_button_font_color'];
323
  $heading_font_size = $text_and_color_page['heading_font_size'];
324
  $input_font_size = $text_and_color_page['input_font_size'];
325
  $link_size = $text_and_color_page['link_size'];
437
  'input_font_color' => $input_font_color,
438
  'link_color' => $link_color,
439
  'button_color' => $button_color,
440
+ 'login_button_font_color' => $login_button_font_color,
441
  'heading_font_size' => $heading_font_size,
442
  'input_font_size' => $input_font_size,
443
  'link_size' => $link_size,
583
  $input_font_color = $ACL_Settings['input_font_color'];
584
  $link_color = $ACL_Settings['link_color'];
585
  $button_color = $ACL_Settings['button_color'];
586
+ $login_button_font_color = $ACL_Settings['login_button_font_color'];
587
  $heading_font_size = $ACL_Settings['heading_font_size'];
588
  $input_font_size = $ACL_Settings['input_font_size'];
589
  $link_size = $ACL_Settings['link_size'];
796
  'input_font_color' => $input_font_color,
797
  'link_color' => $link_color,
798
  'button_color' => $button_color,
799
+ 'login_button_font_color' => $login_button_font_color,
800
  'heading_font_size' => $heading_font_size,
801
  'input_font_size' => $input_font_size,
802
  'link_size' => $link_size,
installation.php CHANGED
@@ -67,6 +67,7 @@ if(!isset($Version)){
67
  'input_font_color'=>'#000000',
68
  'link_color'=>'#ffffff',
69
  'button_color'=>'#dd3333',
 
70
  'heading_font_size'=>'14',
71
  'input_font_size'=>'18',
72
  'link_size'=>'14',
67
  'input_font_color'=>'#000000',
68
  'link_color'=>'#ffffff',
69
  'button_color'=>'#dd3333',
70
+ 'login_button_font_color'=>'#ffffff',
71
  'heading_font_size'=>'14',
72
  'input_font_size'=>'18',
73
  'link_size'=>'14',
login-form-screen.php CHANGED
@@ -74,6 +74,7 @@ function acl_er_login_logo() {
74
  return array( 'red' => $r, 'green' => $g, 'blue' => $b );
75
  }
76
  $btnrgba = weblizar_hex2rgb( $text_and_color_page['button_color'] );
 
77
  $loginbg = weblizar_hex2rgb( $login_page['login_bg_color'] );
78
  //require social icon css
79
  require_once('css/socialcss.php');
@@ -237,6 +238,7 @@ function acl_er_login_logo() {
237
 
238
  body.login #loginform p.submit .button-primary, body.wp-core-ui .button-primary {
239
  background: <?php echo $text_and_color_page['button_color'] ?> !important;
 
240
  font-size:<?php echo $text_and_color_page['button_font_size'] ?>px;
241
  border: none !important;
242
  text-shadow: <?php echo $link_shadow_color ?>;
@@ -245,6 +247,7 @@ function acl_er_login_logo() {
245
 
246
  body.login #loginform p.submit .button-primary:hover, body.login #loginform p.submit .button-primary:focus, body.wp-core-ui .button-primary:hover {
247
  background: rgba(<?php echo $btnrgba['red'];?>,<?php echo $btnrgba['green']?>,<?php echo $btnrgba['blue']?>, 0.9) !important;
 
248
  }
249
 
250
  body.login div#login form .input, .login input[type="text"] {
74
  return array( 'red' => $r, 'green' => $g, 'blue' => $b );
75
  }
76
  $btnrgba = weblizar_hex2rgb( $text_and_color_page['button_color'] );
77
+ // $btnfontrgba = weblizar_hex2rgb( $text_and_color_page['login_button_font_color'] );
78
  $loginbg = weblizar_hex2rgb( $login_page['login_bg_color'] );
79
  //require social icon css
80
  require_once('css/socialcss.php');
238
 
239
  body.login #loginform p.submit .button-primary, body.wp-core-ui .button-primary {
240
  background: <?php echo $text_and_color_page['button_color'] ?> !important;
241
+ color: <?php echo $text_and_color_page['login_button_font_color'] ?> !important;
242
  font-size:<?php echo $text_and_color_page['button_font_size'] ?>px;
243
  border: none !important;
244
  text-shadow: <?php echo $link_shadow_color ?>;
247
 
248
  body.login #loginform p.submit .button-primary:hover, body.login #loginform p.submit .button-primary:focus, body.wp-core-ui .button-primary:hover {
249
  background: rgba(<?php echo $btnrgba['red'];?>,<?php echo $btnrgba['green']?>,<?php echo $btnrgba['blue']?>, 0.9) !important;
250
+ /*color: rgba(<?php echo $btnrgba['red'];?>,<?php echo $btnrgba['green']?>,<?php echo $btnrgba['blue']?>, 0.9) !important;*/
251
  }
252
 
253
  body.login div#login form .input, .login input[type="text"] {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.weblizar.com/
4
  Tags: custom login page, custom admin login, custom login, customize wordpress login page, design wordpress login
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
- Stable tag: 2.9.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -171,6 +171,9 @@ If you have any question contact us at here: [Plugin Support Forum ](http://word
171
 
172
  For more information, see [Weblizar](http://www.weblizar.com/)
173
 
 
 
 
174
  = 2.9.1 =
175
  * login_headertitle issue fixed
176
  * version update + Compatible with wordpress 5.2
4
  Tags: custom login page, custom admin login, custom login, customize wordpress login page, design wordpress login
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
+ Stable tag: 2.9.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
171
 
172
  For more information, see [Weblizar](http://www.weblizar.com/)
173
 
174
+ = 2.9.2 =
175
+ * Login Button font Color setting option added
176
+
177
  = 2.9.1 =
178
  * login_headertitle issue fixed
179
  * version update + Compatible with wordpress 5.2