Absolutely Glamorous Custom Admin - Version 1.3.8

Version Description

  • Central alignment for smaller login images, and for different form widths
  • Option to remove "WordPress News" dashboard widget
  • Better "Error Caught" message with more useful information
Download this release

Release Info

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

Code changes from version 1.3.7 to 1.3.8

Files changed (2) hide show
  1. plugin.php +30 -11
  2. readme.txt +10 -2
plugin.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: AG Custom Admin
4
  Plugin URI: http://agca.argonius.com/ag-custom-admin/category/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.3.7
8
  Author URI: http://www.argonius.com/
9
 
10
  Copyright 2014. Argonius (email : info@argonius.com)
@@ -56,7 +56,7 @@ class AGCA{
56
  /*Initialize properties*/
57
  $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
58
  //fb($this->colorizer);
59
- $this->agca_version = "1.3.7";
60
 
61
  /*upload images programmaticaly*/
62
  //TODO upload with AJAX one by one, use post data to send urls one by one
@@ -491,8 +491,7 @@ class AGCA{
491
  'agca_dashboard_text',
492
  'agca_dashboard_text_paragraph',
493
  'agca_dashboard_widget_welcome',
494
- 'agca_dashboard_widget_activity',
495
- //'agca_dashboard_widget_rc', deprecated in 3.8 and 1.3.1
496
  'agca_dashboard_widget_il',
497
  'agca_dashboard_widget_plugins',
498
  'agca_dashboard_widget_qp',
@@ -1265,10 +1264,20 @@ class AGCA{
1265
  ?>
1266
  <script type="text/javascript">
1267
  function AGCAErrorPage(msg, url, line){
1268
- var title = 'AG Custom Admin just caught a JavaScript error on this site:\n\n '+ msg +'\n' + url + '\n' + line+'\n\nThis error prevents AG Custom Admin to work properly. To fix this, please analyse this error message and try to find the source. You can also check browser\'s console to see this error. \n\nIf you need more help, just click on this error message';
1269
  document.getElementsByTagName('html')[0].style.visibility = "visible";
1270
  document.body.innerHTML += '<div style="position:absolute;width:auto;height:auto;padding:4px;right:0;top:0;z-index:99999;background:#ff0000;color:#ffffff";border:3px solid #ffffff;><a target="_blank" href="http://agca.argonius.com/ag-custom-admin/ag_custom_admin/error-ocurred-javascript-error-caught" title="'+title+'" style="color:#ffffff;text-decoration:none;font-weight:bold;">Error Ocurred</a></div>';
1271
- }
 
 
 
 
 
 
 
 
 
 
1272
  window.onerror = function(msg, url, line) {
1273
  window.onload = function() {
1274
  AGCAErrorPage(msg, url, line);
@@ -1776,9 +1785,19 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1776
  var originalWidth = 326;
1777
  var widthDiff = this.width - originalWidth;
1778
  jQuery("#login h1 a").height(this.height);
1779
- jQuery("#login h1 a").width(this.width);
1780
- jQuery("#login h1 a").css("background-size",this.width+"px "+this.height+"px");
1781
- jQuery("#login h1 a").css('margin-left',-(widthDiff/2)+"px");
 
 
 
 
 
 
 
 
 
 
1782
  jQuery("#login h1 a").show();
1783
  });
1784
  <?php } ?>
@@ -2344,10 +2363,10 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2344
  </tr> -->
2345
  <tr valign="center">
2346
  <th scope="row">
2347
- <label title="This is 'WordPress Development Blog' widget by default" for="agca_dashboard_widget_primary">Hide primary widget area</label>
2348
  </th>
2349
  <td>
2350
- <input class="agca-checkbox" title="This is 'WordPress Development Blog' widget by default" type="checkbox" name="agca_dashboard_widget_primary" value="true" <?php if (get_option('agca_dashboard_widget_primary')==true) echo 'checked="checked" '; ?> />
2351
  </td>
2352
  </tr>
2353
  <tr valign="center">
4
  Plugin URI: http://agca.argonius.com/ag-custom-admin/category/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.3.8
8
  Author URI: http://www.argonius.com/
9
 
10
  Copyright 2014. Argonius (email : info@argonius.com)
56
  /*Initialize properties*/
57
  $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
58
  //fb($this->colorizer);
59
+ $this->agca_version = "1.3.8";
60
 
61
  /*upload images programmaticaly*/
62
  //TODO upload with AJAX one by one, use post data to send urls one by one
491
  'agca_dashboard_text',
492
  'agca_dashboard_text_paragraph',
493
  'agca_dashboard_widget_welcome',
494
+ 'agca_dashboard_widget_activity',
 
495
  'agca_dashboard_widget_il',
496
  'agca_dashboard_widget_plugins',
497
  'agca_dashboard_widget_qp',
1264
  ?>
1265
  <script type="text/javascript">
1266
  function AGCAErrorPage(msg, url, line){
1267
+ var title = 'AG Custom Admin just caught a JavaScript error on this site:\n\n'+ msg +'\n' + url + '\n' + line+'\n\nThis error prevents AG Custom Admin to work properly. To fix this, please navigate to the link above in your browser and open the source of that page (right click -> view page source) and find the line in code where it fails. In most cases this error should be fixed there.\n\nAs alternative solution, you can analyse the link above to find the plugin/theme where it was thrown. You can try to disable it or to report this error to the support of that/plugin theme.\n\nYou can also check browser\'s console to see & copy this error. \n\nIf you need more help, just click on this error message';
1268
  document.getElementsByTagName('html')[0].style.visibility = "visible";
1269
  document.body.innerHTML += '<div style="position:absolute;width:auto;height:auto;padding:4px;right:0;top:0;z-index:99999;background:#ff0000;color:#ffffff";border:3px solid #ffffff;><a target="_blank" href="http://agca.argonius.com/ag-custom-admin/ag_custom_admin/error-ocurred-javascript-error-caught" title="'+title+'" style="color:#ffffff;text-decoration:none;font-weight:bold;">Error Ocurred</a></div>';
1270
+
1271
+ if(typeof window.console === "object"){
1272
+ console.log("___________________________________________________");
1273
+ console.log("AG Custom Admin caught a JavaScript on your site:");
1274
+ console.log("___________________________________________________");
1275
+ console.log(msg);
1276
+ console.log("source: " + url);
1277
+ console.log("line: " + line);
1278
+ console.log("___________________________________________________");
1279
+ }
1280
+ }
1281
  window.onerror = function(msg, url, line) {
1282
  window.onload = function() {
1283
  AGCAErrorPage(msg, url, line);
1785
  var originalWidth = 326;
1786
  var widthDiff = this.width - originalWidth;
1787
  jQuery("#login h1 a").height(this.height);
1788
+ jQuery("#login h1 a").width(this.width);
1789
+ jQuery("#login h1 a").css("background-size",this.width+"px "+this.height+"px");
1790
+
1791
+ var loginWidth = jQuery('#login').width();
1792
+ var originalLoginWidth = 320;
1793
+ var photoWidth = this.width;
1794
+
1795
+ if(loginWidth > photoWidth){
1796
+ jQuery("#login h1 a").css('margin','auto');
1797
+ }else{
1798
+ jQuery("#login h1 a").css('margin-left',-(widthDiff/2)+((loginWidth-originalLoginWidth)/2)+"px");
1799
+ }
1800
+
1801
  jQuery("#login h1 a").show();
1802
  });
1803
  <?php } ?>
2363
  </tr> -->
2364
  <tr valign="center">
2365
  <th scope="row">
2366
+ <label title="This is 'WordPress News' or 'WordPress Development Blog' widget in older WordPress versions" for="agca_dashboard_widget_primary">Hide "WordPress News" widget</label>
2367
  </th>
2368
  <td>
2369
+ <input class="agca-checkbox" title="This is 'WordPress News' or 'WordPress Development Blog' widget in older WordPress versions" type="checkbox" name="agca_dashboard_widget_primary" value="true" <?php if (get_option('agca_dashboard_widget_primary')==true) echo 'checked="checked" '; ?> />
2370
  </td>
2371
  </tr>
2372
  <tr valign="center">
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: argonius
3
  Donate link: http://agca.argonius.com/ag-custom-admin/support-for-future-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: 3.9
7
- Stable tag: 1.3.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -145,6 +145,11 @@ Plugin should be always up-to-date with latest WordPress release. If you have fo
145
 
146
  == Changelog ==
147
 
 
 
 
 
 
148
  = 1.3.7 =
149
  * Fixed issues with custom dashboard content
150
 
@@ -377,6 +382,9 @@ Plugin should be always up-to-date with latest WordPress release. If you have fo
377
 
378
  == Upgrade Notice ==
379
 
 
 
 
380
  = 1.3.7 =
381
  * Fixed issues with custom dashboard content
382
 
3
  Donate link: http://agca.argonius.com/ag-custom-admin/support-for-future-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: 3.9.1
7
+ Stable tag: 1.3.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
145
 
146
  == Changelog ==
147
 
148
+ = 1.3.8 =
149
+ * Central alignment for smaller login images, and for different form widths
150
+ * Option to remove "WordPress News" dashboard widget
151
+ * Better "Error Caught" message with more useful information
152
+
153
  = 1.3.7 =
154
  * Fixed issues with custom dashboard content
155
 
382
 
383
  == Upgrade Notice ==
384
 
385
+ = 1.3.8 =
386
+ * Bug fixes: WordPress News dashboard widget, login image center alignment
387
+
388
  = 1.3.7 =
389
  * Fixed issues with custom dashboard content
390