Absolutely Glamorous Custom Admin - Version 6.6.3

Version Description

  • WP 5.6.1 compatibility
  • Round options improvements
  • Added option to skip rounding of the login page logo image
Download this release

Release Info

Developer cusmin
Plugin Icon 128x128 Absolutely Glamorous Custom Admin
Version 6.6.3
Comparing to
See all releases

Code changes from version 6.6.2 to 6.6.3

Files changed (5) hide show
  1. plugin.php +26 -9
  2. readme.txt +11 -3
  3. script/ag_script.js +2 -2
  4. style/ag_style.css +7 -0
  5. uninstall.php +3 -1
plugin.php CHANGED
@@ -4,12 +4,12 @@ Plugin Name: Absolutely Glamorous Custom Admin
4
  Plugin URI: https://wordpressadminpanel.com/ag-custom-admin/
5
  Description: All-in-one tool for admin panel customization. Change almost everything: admin menu, dashboard, login page, admin bar etc. Apply admin panel themes.
6
  Author: Cusmin
7
- Version: 6.6.2
8
  Text Domain: ag-custom-admin
9
  Domain Path: /languages
10
  Author URI: https://cusmin.com
11
 
12
- Copyright 2020. Cusmin (email : info@cusmin.com)
13
 
14
  This program is free software: you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License as published by
@@ -75,7 +75,7 @@ class AGCA{
75
  /*Initialize properties*/
76
  $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
77
 
78
- $this->agca_version = "6.6.1";
79
  }
80
 
81
  function load_plugin_textdomain() {
@@ -528,6 +528,8 @@ class AGCA{
528
  register_setting( 'agca-options-group', 'agca_login_photo_href' );
529
  register_setting( 'agca-options-group', 'agca_login_round_box' );
530
  register_setting( 'agca-options-group', 'agca_login_round_box_size' );
 
 
531
 
532
  register_setting( 'agca-options-group', 'agca_dashboard_icon' );
533
  register_setting( 'agca-options-group', 'agca_dashboard_text' );
@@ -667,6 +669,7 @@ class AGCA{
667
  'agca_login_photo_href',
668
  'agca_login_round_box',
669
  'agca_login_round_box_size',
 
670
  'agca_dashboard_icon',
671
  'agca_dashboard_text',
672
  'agca_dashboard_text_paragraph',
@@ -2063,9 +2066,11 @@ class AGCA{
2063
  try{
2064
  <?php if(get_option('agca_login_round_box')==true){ ?>
2065
  jQuery("form#loginform").css("border-radius","<?php echo get_option('agca_login_round_box_size'); ?>px");
2066
- jQuery("#login h1 a").css("border-radius","<?php echo get_option('agca_login_round_box_size'); ?>px");
2067
- jQuery("#login h1 a").css("margin-bottom",'10px');
2068
- jQuery("#login h1 a").css("padding-bottom",'0');
 
 
2069
  jQuery("form#lostpasswordform").css("border-radius","<?php echo get_option('agca_login_round_box_size'); ?>px");
2070
  <?php } ?>
2071
  <?php if(get_option('agca_login_banner')==true){ ?>
@@ -2743,12 +2748,12 @@ class AGCA{
2743
  'name'=>'agca_login_round_box',
2744
  'label'=>'Round box corners',
2745
  'input-class'=>'has-dependant',
2746
- 'input-attributes'=>'data-dependant="#agca_login_round_box_size_block"'
2747
  ));
2748
 
2749
  $this->print_input(array(
2750
  'attributes'=>array(
2751
- 'style'=> ((get_option('agca_login_round_box')=='true')?'display:none':''),
2752
  'id'=>'agca_login_round_box_size_block'
2753
  ),
2754
  'title'=>__('Size of rounded box curve', 'ag-custom-admin'),
@@ -2758,6 +2763,18 @@ class AGCA{
2758
  'hint'=>__('(Size in px)', 'ag-custom-admin')
2759
  ));
2760
 
 
 
 
 
 
 
 
 
 
 
 
 
2761
  $this->print_checkbox(array(
2762
  'hide'=>true,
2763
  'title'=>__('Hides register link on login page', 'ag-custom-admin'),
@@ -2923,7 +2940,7 @@ class AGCA{
2923
 
2924
  $this->print_input(array(
2925
  'attributes'=>array(
2926
- 'style'=> ((get_option('agca_admin_menu_submenu_round')!='true')?'display:none':''),
2927
  'id'=>'agca_admin_menu_submenu_round_size'
2928
  ),
2929
  'title'=>__('Size of rounded box curve', 'ag-custom-admin'),
4
  Plugin URI: https://wordpressadminpanel.com/ag-custom-admin/
5
  Description: All-in-one tool for admin panel customization. Change almost everything: admin menu, dashboard, login page, admin bar etc. Apply admin panel themes.
6
  Author: Cusmin
7
+ Version: 6.6.3
8
  Text Domain: ag-custom-admin
9
  Domain Path: /languages
10
  Author URI: https://cusmin.com
11
 
12
+ Copyright 2021. Cusmin (email : info@cusmin.com)
13
 
14
  This program is free software: you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License as published by
75
  /*Initialize properties*/
76
  $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
77
 
78
+ $this->agca_version = "6.6.3";
79
  }
80
 
81
  function load_plugin_textdomain() {
528
  register_setting( 'agca-options-group', 'agca_login_photo_href' );
529
  register_setting( 'agca-options-group', 'agca_login_round_box' );
530
  register_setting( 'agca-options-group', 'agca_login_round_box_size' );
531
+ register_setting( 'agca-options-group', 'agca_login_round_box_skip_logo' );
532
+
533
 
534
  register_setting( 'agca-options-group', 'agca_dashboard_icon' );
535
  register_setting( 'agca-options-group', 'agca_dashboard_text' );
669
  'agca_login_photo_href',
670
  'agca_login_round_box',
671
  'agca_login_round_box_size',
672
+ 'agca_login_round_box_skip_logo',
673
  'agca_dashboard_icon',
674
  'agca_dashboard_text',
675
  'agca_dashboard_text_paragraph',
2066
  try{
2067
  <?php if(get_option('agca_login_round_box')==true){ ?>
2068
  jQuery("form#loginform").css("border-radius","<?php echo get_option('agca_login_round_box_size'); ?>px");
2069
+ <?php if(!get_option('agca_login_round_box_skip_logo')){ ?>
2070
+ jQuery("#login h1 a").css("border-radius","<?php echo get_option('agca_login_round_box_size'); ?>px");
2071
+ jQuery("#login h1 a").css("margin-bottom",'10px');
2072
+ jQuery("#login h1 a").css("padding-bottom",'0');
2073
+ <?php } ?>
2074
  jQuery("form#lostpasswordform").css("border-radius","<?php echo get_option('agca_login_round_box_size'); ?>px");
2075
  <?php } ?>
2076
  <?php if(get_option('agca_login_banner')==true){ ?>
2748
  'name'=>'agca_login_round_box',
2749
  'label'=>'Round box corners',
2750
  'input-class'=>'has-dependant',
2751
+ 'input-attributes'=>'data-dependant="#agca_login_round_box_size_block, #agca_login_round_box_skip_logo"'
2752
  ));
2753
 
2754
  $this->print_input(array(
2755
  'attributes'=>array(
2756
+ 'style'=> ((get_option('agca_login_round_box') !== 'true' )?'display:none':''),
2757
  'id'=>'agca_login_round_box_size_block'
2758
  ),
2759
  'title'=>__('Size of rounded box curve', 'ag-custom-admin'),
2763
  'hint'=>__('(Size in px)', 'ag-custom-admin')
2764
  ));
2765
 
2766
+ $this->print_checkbox(array(
2767
+ 'attributes'=>array(
2768
+ 'style'=> ((get_option('agca_login_round_box') !== 'true' )?'display:none':''),
2769
+ 'id'=>'agca_login_round_box_skip_logo'
2770
+ ),
2771
+ //'hide'=>true,
2772
+ 'title'=>__('Skip rounding logo on the login page', 'ag-custom-admin'),
2773
+ 'name'=>'agca_login_round_box_skip_logo',
2774
+ 'label'=>__('Don\'t round logo', 'ag-custom-admin'),
2775
+ 'input-class'=>'',
2776
+ ));
2777
+
2778
  $this->print_checkbox(array(
2779
  'hide'=>true,
2780
  'title'=>__('Hides register link on login page', 'ag-custom-admin'),
2940
 
2941
  $this->print_input(array(
2942
  'attributes'=>array(
2943
+ 'style'=> ((get_option('agca_admin_menu_submenu_round')!=='true')?'display:none':''),
2944
  'id'=>'agca_admin_menu_submenu_round_size'
2945
  ),
2946
  'title'=>__('Size of rounded box curve', 'ag-custom-admin'),
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: cusmin
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=agca@cusmin.com&item_name=Support+for+AGCA+Development
4
  Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page
5
  Requires at least: 3.0
6
- Tested up to: 5.5.1
7
- Stable tag: 6.6.2
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl.txt
10
 
@@ -145,6 +145,11 @@ If you have the latest WordPress and plugin versions and you still experience so
145
 
146
  == Change Log ==
147
 
 
 
 
 
 
148
  = 6.6.2 =
149
  * WP 5.5.1 compatibility
150
 
@@ -574,6 +579,9 @@ If you have the latest WordPress and plugin versions and you still experience so
574
 
575
  == Upgrade Notice ==
576
 
 
 
 
577
  = 6.6.2 =
578
  * WP 5.5.1 compatibility
579
 
@@ -836,4 +844,4 @@ Added settings for fully customization of admin menus.
836
  Better explanations in Settings page. No changes in functionality.
837
 
838
  = 1.0 =
839
- Initial version.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=agca@cusmin.com&item_name=Support+for+AGCA+Development
4
  Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page
5
  Requires at least: 3.0
6
+ Tested up to: 5.6.1
7
+ Stable tag: 6.6.3
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl.txt
10
 
145
 
146
  == Change Log ==
147
 
148
+ = 6.6.3 =
149
+ * WP 5.6.1 compatibility
150
+ * Round options improvements
151
+ * Added option to skip rounding of the login page logo image
152
+
153
  = 6.6.2 =
154
  * WP 5.5.1 compatibility
155
 
579
 
580
  == Upgrade Notice ==
581
 
582
+ = 6.6.3 =
583
+ * WP 5.6 compatibility and rounding options improvements
584
+
585
  = 6.6.2 =
586
  * WP 5.5.1 compatibility
587
 
844
  Better explanations in Settings page. No changes in functionality.
845
 
846
  = 1.0 =
847
+ Initial version.
script/ag_script.js CHANGED
@@ -790,7 +790,7 @@ jQuery(document).ready(function(){
790
  function agcaCheckBoxOnClick(obj){
791
  var isNowChecked = false;
792
  var $input = jQuery(obj).prev();
793
- if($input.is(':checked')){
794
  $input.removeAttr('checked');
795
  }else{
796
  isNowChecked = true;
@@ -809,7 +809,7 @@ function agcaCheckBoxOnClick(obj){
809
  }
810
 
811
  //console.log(obj.prev());
812
- if($input.is(':checked')){
813
  jQuery(obj).addClass('agca-checkbox-box-checked');
814
  jQuery(obj).removeClass('agca-checkbox-box');
815
  }else{
790
  function agcaCheckBoxOnClick(obj){
791
  var isNowChecked = false;
792
  var $input = jQuery(obj).prev();
793
+ if($input.attr('checked') === "checked"){
794
  $input.removeAttr('checked');
795
  }else{
796
  isNowChecked = true;
809
  }
810
 
811
  //console.log(obj.prev());
812
+ if(isNowChecked){
813
  jQuery(obj).addClass('agca-checkbox-box-checked');
814
  jQuery(obj).removeClass('agca-checkbox-box');
815
  }else{
style/ag_style.css CHANGED
@@ -293,6 +293,9 @@ td.ag_admin_menu_parent:hover {
293
  font-weight: bold;
294
  height: 35px !important;
295
  width: auto;
 
 
 
296
  }
297
  #agca_form a{
298
  font-weight: bold;
@@ -877,4 +880,8 @@ td.ag_admin_menu_parent:hover {
877
 
878
  #agca_form #ag_edit_adminmenu tr:first-child td{
879
  background: #826c63;
 
 
 
 
880
  }
293
  font-weight: bold;
294
  height: 35px !important;
295
  width: auto;
296
+ line-height: 1.5;
297
+ min-width: 130px;
298
+ padding-left: 7px !important;
299
  }
300
  #agca_form a{
301
  font-weight: bold;
880
 
881
  #agca_form #ag_edit_adminmenu tr:first-child td{
882
  background: #826c63;
883
+ }
884
+
885
+ #agca_form #import_file_area .agca_button{
886
+ margin-bottom: 5px;
887
  }
uninstall.php CHANGED
@@ -34,7 +34,9 @@
34
  delete_option( 'agca_login_photo_url' );
35
  delete_option( 'agca_login_photo_href' );
36
  delete_option( 'agca_login_round_box' );
37
- delete_option( 'agca_login_round_box_size' );
 
 
38
 
39
  delete_option( 'agca_dashboard_icon' );
40
  delete_option( 'agca_dashboard_text' );
34
  delete_option( 'agca_login_photo_url' );
35
  delete_option( 'agca_login_photo_href' );
36
  delete_option( 'agca_login_round_box' );
37
+ delete_option( 'agca_login_round_box_size' );
38
+ delete_option( 'agca_login_round_box_skip_logo' );
39
+
40
 
41
  delete_option( 'agca_dashboard_icon' );
42
  delete_option( 'agca_dashboard_text' );