Erident Custom Login and Dashboard - Version 1.3

Version Description

  • Added an option for Form Shadow.
  • Fixed Minor bugs.
Download this release

Release Info

Developer libinvbabu
Plugin Icon 128x128 Erident Custom Login and Dashboard
Version 1.3
Comparing to
See all releases

Code changes from version 1.2 to 1.3

Files changed (5) hide show
  1. er-admin.css +4 -1
  2. er-custom-login.php +59 -6
  3. readme.txt +9 -2
  4. screenshot-1.png +0 -0
  5. screenshot-2.jpg +0 -0
er-admin.css CHANGED
@@ -22,7 +22,7 @@
22
  .wp-erident-dashboard table {
23
 
24
  }
25
- #ilctabscolorpicker, #ilctabscolorpicker2, #ilctabscolorpicker3, #ilctabscolorpicker4, #ilctabscolorpicker5, #ilctabscolorpicker6 {
26
  margin-left:210px;
27
  position:absolute;
28
  }
@@ -44,6 +44,9 @@
44
  #ilctabscolorpicker6 {
45
  margin-top:-160px;
46
  }
 
 
 
47
  .er_notice {
48
  padding: 10px 20px;
49
  -moz-border-radius: 3px;
22
  .wp-erident-dashboard table {
23
 
24
  }
25
+ #ilctabscolorpicker, #ilctabscolorpicker2, #ilctabscolorpicker3, #ilctabscolorpicker4, #ilctabscolorpicker5, #ilctabscolorpicker6, #ilctabscolorpicker7 {
26
  margin-left:210px;
27
  position:absolute;
28
  }
44
  #ilctabscolorpicker6 {
45
  margin-top:-160px;
46
  }
47
+ #ilctabscolorpicker7 {
48
+ margin-top:-170px;
49
+ }
50
  .er_notice {
51
  padding: 10px 20px;
52
  -moz-border-radius: 3px;
er-custom-login.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Erident Custom Login and Dashboard
4
  Plugin URI: http://www.eridenttech.com/wp-plugins/erident-custom-login-and-dashboard
5
  Description: Customize completly your WordPress Login Screen and Dashboard. Add your company logo to login screen, change background colors, styles etc. Customize your Dashboard footer text also for complete branding.
6
- Version: 1.2
7
  Author: Erident Technologies
8
  Author URI: http://www.eridenttech.com/
9
  License: GPL
@@ -73,6 +73,7 @@ function er_login_logo() {
73
  $er_login_text_color = get_option('wp_erident_dashboard_text_color');
74
  $er_login_link_color = get_option('wp_erident_dashboard_link_color');
75
 
 
76
  $check_shadow = get_option('wp_erident_dashboard_check_shadow');
77
  if($check_shadow == Yes) {
78
  $er_login_link_shadow = get_option('wp_erident_dashboard_link_shadow').' 0 1px 0';
@@ -80,6 +81,13 @@ function er_login_logo() {
80
  else {
81
  $er_login_link_shadow = "none";
82
  }
 
 
 
 
 
 
 
83
 
84
  $er_top_bg_color = get_option('wp_erident_top_bg_color');
85
  $er_top_bg_image = get_option('wp_erident_top_bg_image');
@@ -108,6 +116,9 @@ function er_login_logo() {
108
  border-radius:<?php echo $er_login_radius ?>px;
109
  border:<?php echo $er_login_border_thick ?>px <?php echo $er_login_border ?> <?php echo $er_login_border_color ?>;
110
  background:<?php echo $er_login_bg ?> url(<?php echo $er_login_bg_image ?>) <?php echo $er_login_bg_repeat ?> <?php echo $er_login_bg_xpos ?> <?php echo $er_login_bg_ypos ?>;
 
 
 
111
  }
112
  body.login div#login form p label {
113
  color:<?php echo $er_login_text_color ?>;
@@ -158,6 +169,8 @@ add_option("wp_erident_dashboard_text_color", '#000000', '', 'yes');
158
  add_option("wp_erident_dashboard_link_color", '#21759B', '', 'yes');
159
  add_option("wp_erident_dashboard_check_shadow", 'Yes', '', 'yes');
160
  add_option("wp_erident_dashboard_link_shadow", '#ffffff', '', 'yes');
 
 
161
 
162
  add_option("wp_erident_top_bg_color", '#f9fad2', '', 'yes');
163
  add_option("wp_erident_top_bg_image", plugins_url('images/top_bg.jpg', __FILE__), '', 'yes');
@@ -191,6 +204,8 @@ delete_option('wp_erident_dashboard_text_color');
191
  delete_option('wp_erident_dashboard_link_color');
192
  delete_option('wp_erident_dashboard_check_shadow');
193
  delete_option('wp_erident_dashboard_link_shadow');
 
 
194
 
195
  delete_option('wp_erident_top_bg_color');
196
  delete_option('wp_erident_top_bg_image');
@@ -259,7 +274,7 @@ function wp_erident_dashboard_html_page() {
259
  <th scope="row">Enter the text for dashboard left side footer:</th>
260
  <td>
261
  <input class="er-textfield" name="wp_erident_dashboard_data_left" type="text" id="wp_erident_dashboard_data_left"
262
- value="<?php echo get_option('wp_erident_dashboard_data_left'); ?>" placeholder="Text for dashboard left side footer" />
263
  <br />
264
  <span class="description">This will replace the default "Thank you for creating with WordPress" on the bottom left side of dashboard</span>
265
  </td>
@@ -267,7 +282,7 @@ value="<?php echo get_option('wp_erident_dashboard_data_left'); ?>" placeholder=
267
  <tr valign="top">
268
  <th scope="row">Enter the text for dashboard right side footer:</th>
269
  <td><input class="er-textfield" name="wp_erident_dashboard_data_right" type="text" id="wp_erident_dashboard_data_right"
270
- value="<?php echo get_option('wp_erident_dashboard_data_right'); ?>" placeholder="Text for dashboard left right footer" />
271
  <br />
272
  <span class="description">This will replace the default "WordPress Version" on the bottom right side of dashboard</span>
273
  </td>
@@ -328,6 +343,7 @@ value="<?php echo get_option('wp_erident_top_bg_image'); ?>" />
328
  break;
329
 
330
  default:
 
331
  break;
332
  }
333
  ?>
@@ -440,6 +456,7 @@ value="<?php echo get_option('wp_erident_dashboard_login_radius'); ?>" />px
440
  break;
441
 
442
  default:
 
443
  break;
444
  }
445
  ?>
@@ -517,6 +534,7 @@ value="<?php echo get_option('wp_erident_login_bg_image'); ?>" />
517
  break;
518
 
519
  default:
 
520
  break;
521
  }
522
  ?>
@@ -567,7 +585,7 @@ value="<?php echo get_option('wp_erident_login_bg_ypos'); ?>" />
567
  <td>
568
  <?php
569
  $check_sh = get_option('wp_erident_dashboard_check_shadow');
570
- if($check_sh == Yes) { $sx = "checked"; } else { $sy = "checked"; } ?>
571
 
572
  <label>
573
  <input type="radio" name="wp_erident_dashboard_check_shadow" value="Yes" id="wp_erident_dashboard_check_shadow_0" <?php echo $sx; ?> onclick="$('#hide-this').show('normal')" />
@@ -590,6 +608,36 @@ value="<?php echo get_option('wp_erident_login_bg_ypos'); ?>" />
590
  </td>
591
  </tr>
592
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
593
  </table>
594
  </div><!-- end inside -->
595
  </div><!-- end postbox -->
@@ -605,7 +653,7 @@ value="<?php echo get_option('wp_erident_login_bg_ypos'); ?>" />
605
  <td>
606
  <?php
607
  $check = get_option('wp_erident_dashboard_delete_db');
608
- if($check == Yes) { $x = "checked"; } else { $y = "checked"; } ?>
609
 
610
  <label>
611
  <input type="radio" name="wp_erident_dashboard_delete_db" value="Yes" id="wp_erident_dashboard_delete_db_0" <?php echo $x; ?> />
@@ -624,7 +672,7 @@ value="<?php echo get_option('wp_erident_login_bg_ypos'); ?>" />
624
 
625
 
626
  <input type="hidden" name="action" value="update" />
627
- <input type="hidden" name="page_options" value="wp_erident_dashboard_data_left,wp_erident_dashboard_data_right,wp_erident_dashboard_image_logo,wp_erident_dashboard_power_text,wp_erident_dashboard_login_width,wp_erident_dashboard_login_radius,wp_erident_dashboard_login_border,wp_erident_dashboard_border_thick,wp_erident_dashboard_border_color,wp_erident_dashboard_login_bg,wp_erident_dashboard_text_color,wp_erident_dashboard_delete_db,wp_erident_top_bg_color,wp_erident_top_bg_image,wp_erident_top_bg_repeat,wp_erident_login_bg_image,wp_erident_login_bg_repeat,wp_erident_dashboard_link_color,wp_erident_dashboard_link_shadow,wp_erident_dashboard_check_shadow,wp_erident_top_bg_xpos,wp_erident_top_bg_ypos,wp_erident_login_bg_xpos,wp_erident_login_bg_xpos" />
628
 
629
  <p>
630
  <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
@@ -684,6 +732,11 @@ value="<?php echo get_option('wp_erident_login_bg_ypos'); ?>" />
684
  jQuery('#ilctabscolorpicker6').farbtastic("#wp_erident_dashboard_link_shadow");
685
  jQuery("#wp_erident_dashboard_link_shadow").click(function(){jQuery('#ilctabscolorpicker6').slideDown()});
686
  jQuery("#wp_erident_dashboard_link_shadow").blur(function(){jQuery('#ilctabscolorpicker6').slideUp()});
 
 
 
 
 
687
  });
688
 
689
  </script>
3
  Plugin Name: Erident Custom Login and Dashboard
4
  Plugin URI: http://www.eridenttech.com/wp-plugins/erident-custom-login-and-dashboard
5
  Description: Customize completly your WordPress Login Screen and Dashboard. Add your company logo to login screen, change background colors, styles etc. Customize your Dashboard footer text also for complete branding.
6
+ Version: 1.3
7
  Author: Erident Technologies
8
  Author URI: http://www.eridenttech.com/
9
  License: GPL
73
  $er_login_text_color = get_option('wp_erident_dashboard_text_color');
74
  $er_login_link_color = get_option('wp_erident_dashboard_link_color');
75
 
76
+
77
  $check_shadow = get_option('wp_erident_dashboard_check_shadow');
78
  if($check_shadow == Yes) {
79
  $er_login_link_shadow = get_option('wp_erident_dashboard_link_shadow').' 0 1px 0';
81
  else {
82
  $er_login_link_shadow = "none";
83
  }
84
+ $check_fshadow = get_option('wp_erident_dashboard_check_form_shadow');
85
+ if($check_fshadow == Yes) {
86
+ $er_login_form_shadow = '0 4px 10px -1px '.get_option('wp_erident_dashboard_form_shadow');
87
+ }
88
+ else {
89
+ $er_login_form_shadow = "none";
90
+ }
91
 
92
  $er_top_bg_color = get_option('wp_erident_top_bg_color');
93
  $er_top_bg_image = get_option('wp_erident_top_bg_image');
116
  border-radius:<?php echo $er_login_radius ?>px;
117
  border:<?php echo $er_login_border_thick ?>px <?php echo $er_login_border ?> <?php echo $er_login_border_color ?>;
118
  background:<?php echo $er_login_bg ?> url(<?php echo $er_login_bg_image ?>) <?php echo $er_login_bg_repeat ?> <?php echo $er_login_bg_xpos ?> <?php echo $er_login_bg_ypos ?>;
119
+ -moz-box-shadow: <?php echo $er_login_form_shadow ?>;
120
+ -webkit-box-shadow: <?php echo $er_login_form_shadow ?>;
121
+ box-shadow: <?php echo $er_login_form_shadow ?>;
122
  }
123
  body.login div#login form p label {
124
  color:<?php echo $er_login_text_color ?>;
169
  add_option("wp_erident_dashboard_link_color", '#21759B', '', 'yes');
170
  add_option("wp_erident_dashboard_check_shadow", 'Yes', '', 'yes');
171
  add_option("wp_erident_dashboard_link_shadow", '#ffffff', '', 'yes');
172
+ add_option("wp_erident_dashboard_check_form_shadow", 'Yes', '', 'yes');
173
+ add_option("wp_erident_dashboard_form_shadow", '#C8C8C8', '', 'yes');
174
 
175
  add_option("wp_erident_top_bg_color", '#f9fad2', '', 'yes');
176
  add_option("wp_erident_top_bg_image", plugins_url('images/top_bg.jpg', __FILE__), '', 'yes');
204
  delete_option('wp_erident_dashboard_link_color');
205
  delete_option('wp_erident_dashboard_check_shadow');
206
  delete_option('wp_erident_dashboard_link_shadow');
207
+ delete_option('wp_erident_dashboard_check_form_shadow');
208
+ delete_option('wp_erident_dashboard_form_shadow');
209
 
210
  delete_option('wp_erident_top_bg_color');
211
  delete_option('wp_erident_top_bg_image');
274
  <th scope="row">Enter the text for dashboard left side footer:</th>
275
  <td>
276
  <input class="er-textfield" name="wp_erident_dashboard_data_left" type="text" id="wp_erident_dashboard_data_left"
277
+ value="<?php echo esc_html( get_option('wp_erident_dashboard_data_left') ); ?>" placeholder="Text for dashboard left side footer" />
278
  <br />
279
  <span class="description">This will replace the default "Thank you for creating with WordPress" on the bottom left side of dashboard</span>
280
  </td>
282
  <tr valign="top">
283
  <th scope="row">Enter the text for dashboard right side footer:</th>
284
  <td><input class="er-textfield" name="wp_erident_dashboard_data_right" type="text" id="wp_erident_dashboard_data_right"
285
+ value="<?php echo esc_html( get_option('wp_erident_dashboard_data_right') ); ?>" placeholder="Text for dashboard left right footer" />
286
  <br />
287
  <span class="description">This will replace the default "WordPress Version" on the bottom right side of dashboard</span>
288
  </td>
343
  break;
344
 
345
  default:
346
+ $er_screen_a=$er_screen_b=$er_screen_c=$er_screen_d="";
347
  break;
348
  }
349
  ?>
456
  break;
457
 
458
  default:
459
+ $er_a=$er_b=$er_c=$er_d=$er_e="";
460
  break;
461
  }
462
  ?>
534
  break;
535
 
536
  default:
537
+ $er_login_a=$er_login_b=$er_login_c=$er_login_d="";
538
  break;
539
  }
540
  ?>
585
  <td>
586
  <?php
587
  $check_sh = get_option('wp_erident_dashboard_check_shadow');
588
+ if($check_sh == 'Yes') { $sx = "checked"; $sy = ''; } else { $sy = "checked"; $sx = ''; } ?>
589
 
590
  <label>
591
  <input type="radio" name="wp_erident_dashboard_check_shadow" value="Yes" id="wp_erident_dashboard_check_shadow_0" <?php echo $sx; ?> onclick="$('#hide-this').show('normal')" />
608
  </td>
609
  </tr>
610
 
611
+ <!-- Form Shadow -->
612
+ <tr valign="top">
613
+ <th scope="row">Enable form shadow?</th>
614
+ <td>
615
+ <?php
616
+ $check_fsh = get_option('wp_erident_dashboard_check_form_shadow');
617
+ if($check_fsh == 'Yes') { $fsx = "checked"; $fsy = ''; } else { $fsy = "checked"; $fsx = ''; } ?>
618
+
619
+ <label>
620
+ <input type="radio" name="wp_erident_dashboard_check_form_shadow" value="Yes" id="wp_erident_dashboard_check_form_shadow_0" <?php echo $fsx; ?> onclick="$('#hide-this2').show('normal')" />
621
+ Yes</label>
622
+
623
+ <label>
624
+ <input type="radio" name="wp_erident_dashboard_check_form_shadow" value="No" id="wp_erident_dashboard_check_form_shadow_1" <?php echo $fsy; ?> onclick="$('#hide-this2').hide('normal')" />
625
+ No</label>
626
+ <br />
627
+ <span class="description">(Check an option)</span>
628
+ </td>
629
+ </tr>
630
+ <tr valign="top" id="hide-this2">
631
+ <th scope="row">Login Form Shadow Color</th>
632
+ <td>
633
+ <input class="er-textfield-small" type="text" id="wp_erident_dashboard_form_shadow" name="wp_erident_dashboard_form_shadow" value="<?php echo get_option('wp_erident_dashboard_form_shadow'); ?>" />
634
+ <div id="ilctabscolorpicker7"></div>
635
+ <br />
636
+ <span class="description">Click the box to select a color.</span>
637
+ </td>
638
+ </tr>
639
+ <!-- end Form shadow -->
640
+
641
  </table>
642
  </div><!-- end inside -->
643
  </div><!-- end postbox -->
653
  <td>
654
  <?php
655
  $check = get_option('wp_erident_dashboard_delete_db');
656
+ if($check == 'Yes') { $x = "checked"; $y = ''; } else { $y = "checked"; $x = ''; } ?>
657
 
658
  <label>
659
  <input type="radio" name="wp_erident_dashboard_delete_db" value="Yes" id="wp_erident_dashboard_delete_db_0" <?php echo $x; ?> />
672
 
673
 
674
  <input type="hidden" name="action" value="update" />
675
+ <input type="hidden" name="page_options" value="wp_erident_dashboard_data_left,wp_erident_dashboard_data_right,wp_erident_dashboard_image_logo,wp_erident_dashboard_power_text,wp_erident_dashboard_login_width,wp_erident_dashboard_login_radius,wp_erident_dashboard_login_border,wp_erident_dashboard_border_thick,wp_erident_dashboard_border_color,wp_erident_dashboard_login_bg,wp_erident_dashboard_text_color,wp_erident_dashboard_delete_db,wp_erident_top_bg_color,wp_erident_top_bg_image,wp_erident_top_bg_repeat,wp_erident_login_bg_image,wp_erident_login_bg_repeat,wp_erident_dashboard_link_color,wp_erident_dashboard_link_shadow,wp_erident_dashboard_check_shadow,wp_erident_dashboard_form_shadow,wp_erident_dashboard_check_form_shadow,wp_erident_top_bg_xpos,wp_erident_top_bg_ypos,wp_erident_login_bg_xpos,wp_erident_login_bg_xpos" />
676
 
677
  <p>
678
  <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
732
  jQuery('#ilctabscolorpicker6').farbtastic("#wp_erident_dashboard_link_shadow");
733
  jQuery("#wp_erident_dashboard_link_shadow").click(function(){jQuery('#ilctabscolorpicker6').slideDown()});
734
  jQuery("#wp_erident_dashboard_link_shadow").blur(function(){jQuery('#ilctabscolorpicker6').slideUp()});
735
+
736
+ jQuery('#ilctabscolorpicker7').hide();
737
+ jQuery('#ilctabscolorpicker7').farbtastic("#wp_erident_dashboard_form_shadow");
738
+ jQuery("#wp_erident_dashboard_form_shadow").click(function(){jQuery('#ilctabscolorpicker7').slideDown()});
739
+ jQuery("#wp_erident_dashboard_form_shadow").blur(function(){jQuery('#ilctabscolorpicker7').slideUp()});
740
  });
741
 
742
  </script>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: libinvbabu
3
  Donate link: http://www.eridenttech.com/wp-plugins/erident-custom-login-and-dashboard
4
  Tags: login, customisation, admin, dashboard, customise, erident, custom, form, logo, branding
5
  Requires at least: 3.0.0
6
- Tested up to: 3.4.1
7
- Stable tag: 1.2
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -23,6 +23,7 @@ Customize completely your WordPress Login Screen and Dashboard easily. Add your
23
  1. Change Texts/Links Color on Login Form
24
  1. Replace the WordPress Logo on the Login Form with your own.
25
  1. Enable/Disable shadow for the Links on Login Form
 
26
  1. Preserve previous settings upon WordPress/plugins update!
27
 
28
  **Erident Custom Login and Dashboard Settings:**
@@ -53,6 +54,8 @@ Customize completely your WordPress Login Screen and Dashboard easily. Add your
53
  * Login Form Text Color
54
  * Enable Link Shadow
55
  * Login Form Link Shadow Color
 
 
56
 
57
  **Plugin Un-install Settings**
58
 
@@ -92,6 +95,10 @@ By default you will not lose any of your previous settings. Check the Plugin Un-
92
 
93
  == Changelog ==
94
 
 
 
 
 
95
  = 1.2 =
96
  * Fixed the issue of conflicting with other plugins on admin pages.
97
 
3
  Donate link: http://www.eridenttech.com/wp-plugins/erident-custom-login-and-dashboard
4
  Tags: login, customisation, admin, dashboard, customise, erident, custom, form, logo, branding
5
  Requires at least: 3.0.0
6
+ Tested up to: 3.4.2
7
+ Stable tag: 1.3
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
23
  1. Change Texts/Links Color on Login Form
24
  1. Replace the WordPress Logo on the Login Form with your own.
25
  1. Enable/Disable shadow for the Links on Login Form
26
+ 1. Enable/Disable shadow for the Login Form
27
  1. Preserve previous settings upon WordPress/plugins update!
28
 
29
  **Erident Custom Login and Dashboard Settings:**
54
  * Login Form Text Color
55
  * Enable Link Shadow
56
  * Login Form Link Shadow Color
57
+ * Enable form Shadow
58
+ * Login Form Shadow Color
59
 
60
  **Plugin Un-install Settings**
61
 
95
 
96
  == Changelog ==
97
 
98
+ = 1.3 =
99
+ * Added an option for Form Shadow.
100
+ * Fixed Minor bugs.
101
+
102
  = 1.2 =
103
  * Fixed the issue of conflicting with other plugins on admin pages.
104
 
screenshot-1.png CHANGED
Binary file
screenshot-2.jpg CHANGED
Binary file