Absolutely Glamorous Custom Admin - Version 1.4.9

Version Description

  • Issues fixed
Download this release

Release Info

Developer argonius
Plugin Icon 128x128 Absolutely Glamorous Custom Admin
Version 1.4.9
Comparing to
See all releases

Code changes from version 1.4.8.2 to 1.4.9

Files changed (4) hide show
  1. plugin.php +12 -11
  2. readme.txt +8 -2
  3. require/dynamic.php +1 -1
  4. script/ag_script.js +25 -45
plugin.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: AG Custom Admin
4
  Plugin URI: http://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: Argonius
7
- Version: 1.4.8.2
8
  Author URI: http://www.argonius.com/
9
 
10
  Copyright 2015. Argonius (email : info@argonius.com)
@@ -59,7 +59,7 @@ class AGCA{
59
  /*Initialize properties*/
60
  $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
61
 
62
- $this->agca_version = "1.4.8.2";
63
 
64
  /*upload images programmaticaly*/
65
  //TODO upload with AJAX one by one, use post data to send urls one by one
@@ -368,7 +368,7 @@ class AGCA{
368
  if(defined('WP_ADMIN') && WP_ADMIN == 1){
369
  $isAdmin = true;
370
  }
371
- if(in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')) || $isAdmin){
372
  add_action('init', array(&$this,'agca_enqueue_scripts'));
373
  }
374
  }
@@ -1727,10 +1727,11 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1727
  jQuery(document).ready(function() {
1728
  try{
1729
  <?php if(get_option('agca_login_round_box')==true){ ?>
1730
- jQuery("form#loginform").css("border-radius","<?php echo get_option('agca_login_round_box_size'); ?>px");
1731
  jQuery("#login h1 a").css("border-radius","<?php echo get_option('agca_login_round_box_size'); ?>px");
1732
- jQuery("#login h1 a").css("margin-bottom",'10px');
1733
  jQuery("#login h1 a").css("padding-bottom",'0');
 
1734
  <?php } ?>
1735
  <?php if(get_option('agca_login_banner')==true){ ?>
1736
  jQuery("#backtoblog").css("display","none");
@@ -2013,7 +2014,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2013
  <label title="Removes 'New' block with its contents from admin bar" for="agca_admin_bar_new_content">Hide admin bar "New" content completely</label>
2014
  </th>
2015
  <td>
2016
- <input class="agca-checkbox" title="Removes 'New' block with its contents from admin bar" type="checkbox" name="agca_admin_bar_new_content" value="true" <?php if (get_option('agca_admin_bar_new_content')==true) echo 'checked="checked" '; ?> />
2017
  </td>
2018
  </tr>
2019
  <tr class="new_content_header_submenu" valign="center">
@@ -2341,7 +2342,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2341
  <label title="Rounds box on login page" for="agca_login_round_box">Round box corners</label>
2342
  </th>
2343
  <td>
2344
- <input class="agca-checkbox" title="Rounds box on login page" type="checkbox" name="agca_login_round_box" value="true" <?php if (get_option('agca_login_round_box')==true) echo 'checked="checked" '; ?> />
2345
  </td>
2346
  </tr>
2347
  <?php
@@ -2361,7 +2362,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2361
  <label title="Remove register link on login page" for="agca_login_register_remove">Remove register link</label>
2362
  </th>
2363
  <td>
2364
- <input class="agca-checkbox" title="Remove register link on login page" type="checkbox" name="agca_login_register_remove" value="true" <?php if (get_option('agca_login_register_remove')==true) echo 'checked="checked" '; ?> />
2365
  </td>
2366
  </tr>
2367
  <?php
@@ -2391,7 +2392,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2391
  ?>
2392
  <div id="section_admin_menu" style="display:none" class="ag_section">
2393
  <h2 class="section_title">Admin Menu Settings</h2>
2394
- <br /><br /><br /><br />
2395
  <p style="font-style:italic" tabindex="0"><strong>Important: </strong>Please turn off the menu configuration before activating or disabling other plugins (or making any other changes to main menu). Use <strong>Reset Settings</strong> button to restore default values if anything goes wrong.</p>
2396
  <p style="font-style:italic" tabindex="0"><strong></strong>If you found that admin menu items are misaligned or not correct, press <strong>Reset Settings</strong> button. This happens if admin menu is changed by other plugins, or after activating / deactivating other plugings. Avoid such changes after you apply admin menu customizations.</p>
2397
  <br />
@@ -2464,7 +2465,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2464
  <label title="Rounds submenu pop-up box" for="agca_admin_menu_submenu_round">Round sub-menu pop-up box</label>
2465
  </th>
2466
  <td>
2467
- <input class="agca-checkbox" title="Rounds submenu pop-up box" type="checkbox" name="agca_admin_menu_submenu_round" value="true" <?php if (get_option('agca_admin_menu_submenu_round')==true) echo 'checked="checked" '; ?> />
2468
  </td>
2469
  </tr>
2470
  <?php
@@ -2524,7 +2525,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2524
  <td colspan="2">
2525
  name:<input type="text" size="47" title="New button visible name" id="ag_add_adminmenu_name" name="ag_add_adminmenu_name" />
2526
  url:<input type="text" size="47" title="New button link" id="ag_add_adminmenu_url" name="ag_add_adminmenu_url" />
2527
- <select id="ag_add_adminmenu_target" class="agca-selectbox" style="width:64px">
2528
  <option value="_blank" selected >blank</option>
2529
  <option value="_self">self</option>
2530
  <option value="_parent">parent</option>
4
  Plugin URI: http://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: Argonius
7
+ Version: 1.4.9
8
  Author URI: http://www.argonius.com/
9
 
10
  Copyright 2015. Argonius (email : info@argonius.com)
59
  /*Initialize properties*/
60
  $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
61
 
62
+ $this->agca_version = "1.4.9";
63
 
64
  /*upload images programmaticaly*/
65
  //TODO upload with AJAX one by one, use post data to send urls one by one
368
  if(defined('WP_ADMIN') && WP_ADMIN == 1){
369
  $isAdmin = true;
370
  }
371
+ if(in_array((isset($GLOBALS['pagenow'])?$GLOBALS['pagenow']:""), array('wp-login.php', 'wp-register.php')) || $isAdmin){
372
  add_action('init', array(&$this,'agca_enqueue_scripts'));
373
  }
374
  }
1727
  jQuery(document).ready(function() {
1728
  try{
1729
  <?php if(get_option('agca_login_round_box')==true){ ?>
1730
+ jQuery("form#loginform").css("border-radius","<?php echo get_option('agca_login_round_box_size'); ?>px");
1731
  jQuery("#login h1 a").css("border-radius","<?php echo get_option('agca_login_round_box_size'); ?>px");
1732
+ jQuery("#login h1 a").css("margin-bottom",'10px');
1733
  jQuery("#login h1 a").css("padding-bottom",'0');
1734
+ jQuery("form#lostpasswordform").css("border-radius","<?php echo get_option('agca_login_round_box_size'); ?>px");
1735
  <?php } ?>
1736
  <?php if(get_option('agca_login_banner')==true){ ?>
1737
  jQuery("#backtoblog").css("display","none");
2014
  <label title="Removes 'New' block with its contents from admin bar" for="agca_admin_bar_new_content">Hide admin bar "New" content completely</label>
2015
  </th>
2016
  <td>
2017
+ <input class="agca-checkbox has-dependant dependant-opposite" data-dependant=".new_content_header_submenu" title="Removes 'New' block with its contents from admin bar" type="checkbox" name="agca_admin_bar_new_content" value="true" <?php if (get_option('agca_admin_bar_new_content')==true) echo 'checked="checked" '; ?> />
2018
  </td>
2019
  </tr>
2020
  <tr class="new_content_header_submenu" valign="center">
2342
  <label title="Rounds box on login page" for="agca_login_round_box">Round box corners</label>
2343
  </th>
2344
  <td>
2345
+ <input class="agca-checkbox has-dependant" data-dependant="#agca_login_round_box_size_block" title="Rounds box on login page" type="checkbox" name="agca_login_round_box" value="true" <?php if (get_option('agca_login_round_box')==true) echo 'checked="checked" '; ?> />
2346
  </td>
2347
  </tr>
2348
  <?php
2362
  <label title="Remove register link on login page" for="agca_login_register_remove">Remove register link</label>
2363
  </th>
2364
  <td>
2365
+ <input class="agca-checkbox has-dependant dependant-opposite" data-dependant="#agca_login_register_href_block" title="Remove register link on login page" type="checkbox" name="agca_login_register_remove" value="true" <?php if (get_option('agca_login_register_remove')==true) echo 'checked="checked" '; ?> />
2366
  </td>
2367
  </tr>
2368
  <?php
2392
  ?>
2393
  <div id="section_admin_menu" style="display:none" class="ag_section">
2394
  <h2 class="section_title">Admin Menu Settings</h2>
2395
+ <br /><br /><br /><br /><br /><br /><br /><br /><br />
2396
  <p style="font-style:italic" tabindex="0"><strong>Important: </strong>Please turn off the menu configuration before activating or disabling other plugins (or making any other changes to main menu). Use <strong>Reset Settings</strong> button to restore default values if anything goes wrong.</p>
2397
  <p style="font-style:italic" tabindex="0"><strong></strong>If you found that admin menu items are misaligned or not correct, press <strong>Reset Settings</strong> button. This happens if admin menu is changed by other plugins, or after activating / deactivating other plugings. Avoid such changes after you apply admin menu customizations.</p>
2398
  <br />
2465
  <label title="Rounds submenu pop-up box" for="agca_admin_menu_submenu_round">Round sub-menu pop-up box</label>
2466
  </th>
2467
  <td>
2468
+ <input class="agca-checkbox has-dependant" data-dependant="#agca_admin_menu_submenu_round_block" title="Rounds submenu pop-up box" type="checkbox" name="agca_admin_menu_submenu_round" value="true" <?php if (get_option('agca_admin_menu_submenu_round')==true) echo 'checked="checked" '; ?> />
2469
  </td>
2470
  </tr>
2471
  <?php
2525
  <td colspan="2">
2526
  name:<input type="text" size="47" title="New button visible name" id="ag_add_adminmenu_name" name="ag_add_adminmenu_name" />
2527
  url:<input type="text" size="47" title="New button link" id="ag_add_adminmenu_url" name="ag_add_adminmenu_url" />
2528
+ <select id="ag_add_adminmenu_target" class="agca-selectbox" style="width:77px">
2529
  <option value="_blank" selected >blank</option>
2530
  <option value="_self">self</option>
2531
  <option value="_parent">parent</option>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: argonius
3
  Donate link: http://wordpressadminpanel.com/ag-custom-admin/
4
  Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page
5
  Requires at least: 3.0
6
- Tested up to: 4.2.2
7
- Stable tag: 1.4.8.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -154,6 +154,9 @@ Plugin should be always up-to-date with latest WordPress release. If you have fo
154
 
155
  == Changelog ==
156
 
 
 
 
157
  = 1.4.8.2 =
158
  * Added check for non existing 'pagenow' GLOBAL variable
159
  * Using default WordPress theme when AGCA theme is activated
@@ -440,6 +443,9 @@ Plugin should be always up-to-date with latest WordPress release. If you have fo
440
 
441
  == Upgrade Notice ==
442
 
 
 
 
443
  = 1.4.8.2 =
444
  * Added check for non existing 'pagenow' GLOBAL variable
445
  * Using default WordPress theme when AGCA theme is activated
3
  Donate link: http://wordpressadminpanel.com/ag-custom-admin/
4
  Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page
5
  Requires at least: 3.0
6
+ Tested up to: 4.4
7
+ Stable tag: 1.4.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
154
 
155
  == Changelog ==
156
 
157
+ = 1.4.9 =
158
+ * Issues fixed
159
+
160
  = 1.4.8.2 =
161
  * Added check for non existing 'pagenow' GLOBAL variable
162
  * Using default WordPress theme when AGCA theme is activated
443
 
444
  == Upgrade Notice ==
445
 
446
+ = 1.4.9 =
447
+ * Issues fixed
448
+
449
  = 1.4.8.2 =
450
  * Added check for non existing 'pagenow' GLOBAL variable
451
  * Using default WordPress theme when AGCA theme is activated
require/dynamic.php CHANGED
@@ -34,7 +34,7 @@ if ( $agcaContext != "login" && !is_user_logged_in()) {
34
  $admin_capability = "edit_dashboard";
35
  }
36
  if(!((get_option('agca_role_allbutadmin')==true) and (current_user_can($admin_capability )))){
37
- $adminscript = stripslashes($theme[$optionName]);
38
  $settings = $theme['settings'];
39
  if($settings == "" || $settings == " ") $settings = "{}";
40
  $adminscript = agcaAppendSettingsToAGCATemplateCustomizations($adminscript, $settings);
34
  $admin_capability = "edit_dashboard";
35
  }
36
  if(!((get_option('agca_role_allbutadmin')==true) and (current_user_can($admin_capability )))){
37
+ $adminscript = $theme[$optionName];
38
  $settings = $theme['settings'];
39
  if($settings == "" || $settings == " ") $settings = "{}";
40
  $adminscript = agcaAppendSettingsToAGCATemplateCustomizations($adminscript, $settings);
script/ag_script.js CHANGED
@@ -560,48 +560,9 @@ jQuery(document).ready(function(){
560
 
561
  /*SECTION FOCUS*/
562
  jQuery('.section_title').focus(function(){
563
- });
564
-
565
- /*HIDE/SHOW New items click*/
566
- jQuery('input[name=agca_admin_bar_new_content]').bind("click",function(){
567
- var checked = jQuery(this).is(":checked");
568
- if(!checked){
569
- jQuery(".new_content_header_submenu").show("slide");
570
- }else{
571
- jQuery(".new_content_header_submenu").hide("slideDown");
572
- }
573
- });
574
-
575
- /*HIDE/SHOW size of rounded box on login page*/
576
- jQuery('input[name=agca_login_round_box]').bind("click",function(){
577
- var checked = jQuery(this).is(":checked");
578
- if(checked){
579
- jQuery("#agca_login_round_box_size_block").show("slide");
580
- }else{
581
- jQuery("#agca_login_round_box_size_block").hide("slideDown");
582
- }
583
- });
584
-
585
- /*HIDE/SHOW size of rounded submenu box on admin page*/
586
- jQuery('input[name=agca_admin_menu_submenu_round]').bind("click",function(){
587
- var checked = jQuery(this).is(":checked");
588
- if(checked){
589
- jQuery("#agca_admin_menu_submenu_round_block").show("slide");
590
- }else{
591
- jQuery("#agca_admin_menu_submenu_round_block").hide("slideDown");
592
- }
593
- });
594
-
595
- /*HIDE/SHOW size hyperllink on register link on login page*/
596
- jQuery('input[name=agca_login_register_remove]').bind("click",function(){
597
- var checked = jQuery(this).is(":checked");
598
- if(!checked){
599
- jQuery("#agca_login_register_href_block").show("slide");
600
- }else{
601
- jQuery("#agca_login_register_href_block").hide("slideDown");
602
- }
603
- });
604
-
605
  //check hashtag
606
  if(document.location.hash !== ""){
607
  jQuery('#ag_main_menu a[href='+document.location.hash+']').trigger('click');
@@ -976,10 +937,29 @@ jQuery(document).ready(function(){
976
  /*A J A X*/
977
 
978
  /*AGCA CHECKBOX RADIOBOX*/
979
- function agcaCheckBoxOnClick(obj){
980
- obj.prev().trigger('click');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
981
  //console.log(obj.prev());
982
- if(jQuery(obj).prev().is(':checked')){
983
  jQuery(obj).addClass('agca-checkbox-box-checked');
984
  jQuery(obj).removeClass('agca-checkbox-box');
985
  }else{
560
 
561
  /*SECTION FOCUS*/
562
  jQuery('.section_title').focus(function(){
563
+ });
564
+
565
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
566
  //check hashtag
567
  if(document.location.hash !== ""){
568
  jQuery('#ag_main_menu a[href='+document.location.hash+']').trigger('click');
937
  /*A J A X*/
938
 
939
  /*AGCA CHECKBOX RADIOBOX*/
940
+ function agcaCheckBoxOnClick(obj){
941
+ var isNowChecked = false;
942
+ var $input = jQuery(obj).prev();
943
+ if($input.is(':checked')){
944
+ $input.removeAttr('checked');
945
+ }else{
946
+ isNowChecked = true;
947
+ $input.attr('checked','checked');
948
+ }
949
+
950
+ if($input.hasClass('has-dependant')){
951
+ var dependantSel = $input.data('dependant');
952
+ var isOppositeToggle = $input.hasClass('dependant-opposite');
953
+
954
+ if(isNowChecked && !isOppositeToggle || !isNowChecked && isOppositeToggle){
955
+ jQuery(dependantSel).show("slide");
956
+ }else{
957
+ jQuery(dependantSel).hide("slideDown");
958
+ }
959
+ }
960
+
961
  //console.log(obj.prev());
962
+ if($input.is(':checked')){
963
  jQuery(obj).addClass('agca-checkbox-box-checked');
964
  jQuery(obj).removeClass('agca-checkbox-box');
965
  }else{