Absolutely Glamorous Custom Admin - Version 1.2.7.4

Version Description

  • Removing submenu box on mouseover, if all submenu items are hidden (Fixed empty box issue)
  • Added WYSIWYG editor for Dashboard page
Download this release

Release Info

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

Code changes from version 1.2.7.3 to 1.2.7.4

Files changed (3) hide show
  1. plugin.php +42 -14
  2. readme.txt +9 -2
  3. style/ag_style.css +15 -3
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: Hide or change items in admin panel. Customize buttons from admin menu. Colorize admin and login page with custom colors.
6
  Author: Argonius
7
- Version: 1.2.7.3
8
  Author URI: http://www.argonius.com/
9
 
10
  Copyright 2013. Argonius (email : info@argonius.com)
@@ -49,7 +49,7 @@ class AGCA{
49
  /*Initialize properties*/
50
  $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
51
  //fb($this->colorizer);
52
- $this->agca_version = "1.2.7.3";
53
  }
54
  // Add donate and support information
55
  function jk_filter_plugin_links($links, $file)
@@ -104,7 +104,10 @@ class AGCA{
104
  ?>
105
  </script>
106
  <link rel="stylesheet" type="text/css" href="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>style/ag_style.css?ver=<?php echo $this->agca_version; ?>" />
107
- <script type="text/javascript" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>script/ag_script.js?ver=<?php echo $this->agca_version; ?>"></script>
 
 
 
108
 
109
  <?php
110
  if(!((get_option('agca_role_allbutadmin')==true) and (current_user_can($this->admin_capability())))){
@@ -343,6 +346,20 @@ class AGCA{
343
  'agca_disablewarning',
344
  );
345
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
346
 
347
  function importSettings($settings){
348
  $exploaded = explode("|^|^|", $settings);
@@ -1269,9 +1286,14 @@ try
1269
 
1270
  i++;
1271
  var selector = '#' + topmenuitem + ' ul li';
1272
- //console.log(i+" "+checkboxes);
1273
- while((i<checkboxes.length) && (checkboxes[i][0].indexOf("<-TOP->") < 0)){
 
 
 
 
1274
  jQuery(selector).each(function(){ //loop through all submenus
 
1275
  var currentItemText = "";
1276
 
1277
  <?php if($wpversion >=3.5 ){ ?>
@@ -1282,17 +1304,23 @@ try
1282
  currentItemText = jQuery(this).text();
1283
  <?php } ?>
1284
 
1285
- //console.log("*"+checkboxes[i][0]+":"+withoutNumber+"*");
1286
- if(checkboxes[i][0] == currentItemText){
1287
-
1288
- if((checkboxes[i][1] == "true") || (checkboxes[i][1] == "checked")){
1289
- jQuery(this).addClass('noclass');
 
1290
  }
1291
- jQuery(this).find('a').text(textboxes[i][1]);
1292
  }
1293
  });
 
1294
  i++;
1295
- }
 
 
 
 
1296
  };
1297
  }
1298
  }
@@ -1926,8 +1954,8 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1926
  <th scope="row">
1927
  <label title="Adds custom text (or HTML) between heading and widgets area on Dashboard page" for="agca_dashboard_text_paragraph">Add custom Dashboard content<br> <em>(text or HTML content)</em></label>
1928
  </th>
1929
- <td>
1930
- <textarea title="Adds custom text or HTML between heading and widgets area on Dashboard page" rows="5" name="agca_dashboard_text_paragraph" cols="40"><?php echo htmlspecialchars(get_option('agca_dashboard_text_paragraph')); ?></textarea>
1931
  </td>
1932
  </tr>
1933
  <?php /* DEPRECATED 1.2
4
  Plugin URI: http://agca.argonius.com/ag-custom-admin/category/ag_custom_admin
5
  Description: Hide or change items in admin panel. Customize buttons from admin menu. Colorize admin and login page with custom colors.
6
  Author: Argonius
7
+ Version: 1.2.7.4
8
  Author URI: http://www.argonius.com/
9
 
10
  Copyright 2013. Argonius (email : info@argonius.com)
49
  /*Initialize properties*/
50
  $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
51
  //fb($this->colorizer);
52
+ $this->agca_version = "1.2.7.4";
53
  }
54
  // Add donate and support information
55
  function jk_filter_plugin_links($links, $file)
104
  ?>
105
  </script>
106
  <link rel="stylesheet" type="text/css" href="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>style/ag_style.css?ver=<?php echo $this->agca_version; ?>" />
107
+ <script type="text/javascript" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>script/ag_script.js?ver=<?php echo $this->agca_version; ?>"></script>
108
+ <?php if($this->context == "admin"){ ?>
109
+ <script type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce.js"></script>
110
+ <?php } ?>
111
 
112
  <?php
113
  if(!((get_option('agca_role_allbutadmin')==true) and (current_user_can($this->admin_capability())))){
346
  'agca_disablewarning',
347
  );
348
  }
349
+
350
+ function getTextEditor($name){
351
+ $settings = array(
352
+ 'textarea_name' => $name,
353
+ 'media_buttons' => true,
354
+ 'tinymce' => array(
355
+ 'theme_advanced_buttons1' => 'formatselect,|,bold,italic,underline,|,' .
356
+ 'bullist,blockquote,|,justifyleft,justifycenter' .
357
+ ',justifyright,justifyfull,|,link,unlink,|' .
358
+ ',spellchecker,wp_fullscreen,wp_adv'
359
+ )
360
+ );
361
+ wp_editor( get_option($name), $name, $settings );
362
+ }
363
 
364
  function importSettings($settings){
365
  $exploaded = explode("|^|^|", $settings);
1286
 
1287
  i++;
1288
  var selector = '#' + topmenuitem + ' ul li';
1289
+ var hoverPopupSelector = '#' + topmenuitem + ' .wp-submenu.wp-submenu-wrap';
1290
+ //console.log(i+" "+checkboxes);
1291
+ var allSubmenuItemsHidden = true;
1292
+ //console.log(selector);
1293
+ while((i<checkboxes.length) && (checkboxes[i][0].indexOf("<-TOP->") < 0)){
1294
+
1295
  jQuery(selector).each(function(){ //loop through all submenus
1296
+
1297
  var currentItemText = "";
1298
 
1299
  <?php if($wpversion >=3.5 ){ ?>
1304
  currentItemText = jQuery(this).text();
1305
  <?php } ?>
1306
 
1307
+ //console.log("*"+checkboxes[i][0]);
1308
+ if(checkboxes[i][0] == currentItemText){
1309
+ if((checkboxes[i][1] == "true") || (checkboxes[i][1] == "checked")){
1310
+ jQuery(this).addClass('noclass');
1311
+ }else{
1312
+ allSubmenuItemsHidden = false;
1313
  }
1314
+ jQuery(this).find('a').text(textboxes[i][1]);
1315
  }
1316
  });
1317
+
1318
  i++;
1319
+ }
1320
+ if(allSubmenuItemsHidden){
1321
+ jQuery(hoverPopupSelector).hide();
1322
+ }
1323
+ //console.log(allSubmenuItemsHidden);
1324
  };
1325
  }
1326
  }
1954
  <th scope="row">
1955
  <label title="Adds custom text (or HTML) between heading and widgets area on Dashboard page" for="agca_dashboard_text_paragraph">Add custom Dashboard content<br> <em>(text or HTML content)</em></label>
1956
  </th>
1957
+ <td class="agca_editor">
1958
+ <?php $this->getTextEditor('agca_dashboard_text_paragraph'); ?>
1959
  </td>
1960
  </tr>
1961
  <?php /* DEPRECATED 1.2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://agca.argonius.com/ag-custom-admin/support-for-future-develop
4
  Tags: admin, customize, hide, change admin
5
  Requires at least: 3.0
6
  Tested up to: 3.6
7
- Stable tag: 1.2.7.3
8
 
9
  Hide or change items in admin panel. Customize buttons from admin menu. Colorize admin and login page with custom colors.
10
 
@@ -76,7 +76,7 @@ Here is the list of options:
76
  - Add custom JavaScript
77
  - Export/import customization settings
78
 
79
- **IMPORTANT**: AG Custom Admin should always be updated before updating WordPress. If you are unable to login or you have any other problems, please check our [FAQ](http://wordpress.org/extend/plugins/ag-custom-admin/faq/) and [SUPPORT](http://wordpress.org/support/plugin/ag-custom-admin) page.
80
 
81
  For more information about the plugin please check [PLUGIN WEBSITE](http://agca.argonius.com/ag-custom-admin/)
82
 
@@ -113,6 +113,10 @@ Try clearing browser's cache. If that does not work, go to browser's console and
113
 
114
  == Changelog ==
115
 
 
 
 
 
116
  = 1.2.7.3 =
117
  * Fixed single quote character escaping on several settings
118
  * Added option for removing AGCA JS warning message
@@ -290,6 +294,9 @@ Try clearing browser's cache. If that does not work, go to browser's console and
290
 
291
  == Upgrade Notice ==
292
 
 
 
 
293
  = 1.2.7.3 =
294
  Bug fixes.
295
 
4
  Tags: admin, customize, hide, change admin
5
  Requires at least: 3.0
6
  Tested up to: 3.6
7
+ Stable tag: 1.2.7.4
8
 
9
  Hide or change items in admin panel. Customize buttons from admin menu. Colorize admin and login page with custom colors.
10
 
76
  - Add custom JavaScript
77
  - Export/import customization settings
78
 
79
+ **IMPORTANT**: AG Custom Admin should always be updated before updating WordPress. If you are unable to login or you have any other problems, please check our [FAQ](http://wordpress.org/extend/plugins/ag-custom-admin/faq/) and [SUPPORT](http://wordpress.org/support/plugin/ag-custom-admin) page. Check [POSITIVE](http://agca.argonius.com/ag-custom-admin/feedback/ag-custom-admin-positive-feedback) and [NEGATIVE](http://agca.argonius.com/ag-custom-admin/feedback/ag-custom-admin-negative-feedback) comments of our users.
80
 
81
  For more information about the plugin please check [PLUGIN WEBSITE](http://agca.argonius.com/ag-custom-admin/)
82
 
113
 
114
  == Changelog ==
115
 
116
+ = 1.2.7.4 =
117
+ * Removing submenu box on mouseover, if all submenu items are hidden (Fixed empty box issue)
118
+ * Added WYSIWYG editor for Dashboard page
119
+
120
  = 1.2.7.3 =
121
  * Fixed single quote character escaping on several settings
122
  * Added option for removing AGCA JS warning message
294
 
295
  == Upgrade Notice ==
296
 
297
+ = 1.2.7.4 =
298
+ Few improvements.
299
+
300
  = 1.2.7.3 =
301
  Bug fixes.
302
 
style/ag_style.css CHANGED
@@ -161,13 +161,13 @@ td.ag_admin_menu_parent:hover{
161
  } */
162
  #agca_form input[type=button],button{
163
  background-color: #275928;
164
- border: 1px solid #275928;
165
  color: #FFFFFF;
166
  padding: 5px 10px;
167
  }
168
  #agca_form input[type=button]:hover{
169
  background-color:#e8fae5;
170
- border: 1px solid #aaa;
171
  color:green;
172
  cursor:pointer;
173
  }
@@ -211,4 +211,16 @@ td.ag_admin_menu_parent:hover{
211
  #agca_form input#save_plugin_settings[type="button"]:hover{
212
  background-color:#ffffff;
213
  color:#ffffff;
214
- }
 
 
 
 
 
 
 
 
 
 
 
 
161
  } */
162
  #agca_form input[type=button],button{
163
  background-color: #275928;
164
+ border: 1px solid #444;
165
  color: #FFFFFF;
166
  padding: 5px 10px;
167
  }
168
  #agca_form input[type=button]:hover{
169
  background-color:#e8fae5;
170
+ border: 1px solid #E8FAE5;
171
  color:green;
172
  cursor:pointer;
173
  }
211
  #agca_form input#save_plugin_settings[type="button"]:hover{
212
  background-color:#ffffff;
213
  color:#ffffff;
214
+ }
215
+
216
+ /*editor style fix*/
217
+ #agca_form .agca_editor input[type="button"], button{
218
+ color: black;
219
+ }
220
+
221
+ #agca_form .agca_editor textarea{
222
+ width: 100%;
223
+ }
224
+ .agca_editor{
225
+ width:600px;
226
+ }