Absolutely Glamorous Custom Admin - Version 1.2.7.7

Version Description

  • Updated options labels
  • Better checkbox and radiobox styles
  • Some additional style improvements
  • Updated option for auto folding admin menu on mobile devices
  • Fixed AGCA error popup on reset password page
Download this release

Release Info

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

Code changes from version 1.2.7.6 to 1.2.7.7

images/checkbox_checked.png ADDED
Binary file
images/checkbox_over.png ADDED
Binary file
images/checkbox_unchecked.png ADDED
Binary file
images/radio-gray.png ADDED
Binary file
images/radio-off.png ADDED
Binary file
images/radio-on.png ADDED
Binary file
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.6
8
  Author URI: http://www.argonius.com/
9
 
10
  Copyright 2013. Argonius (email : info@argonius.com)
@@ -48,7 +48,7 @@ class AGCA{
48
  /*Initialize properties*/
49
  $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
50
  //fb($this->colorizer);
51
- $this->agca_version = "1.2.7.6";
52
  }
53
  // Add donate and support information
54
  function jk_filter_plugin_links($links, $file)
@@ -128,12 +128,7 @@ class AGCA{
128
  }
129
 
130
  function agca_enqueue_scripts() {
131
- wp_enqueue_script('jquery');
132
-
133
- if(get_option('agca_include_jquery_migrate') == 'true'){
134
- wp_register_script('agca-jquery-migrate',trailingslashit(plugins_url(basename(dirname(__FILE__))))."script/jquery-migrate.js?ver=".$this->agca_version, array(), '1.2.1', true);
135
- wp_enqueue_script( 'agca-jquery-migrate' );
136
- }
137
  }
138
 
139
  function reloadScript(){
@@ -160,7 +155,7 @@ class AGCA{
160
  register_setting( 'agca-options-group', 'agca_header_logo_custom' );
161
  register_setting( 'agca-options-group', 'agca_wp_logo_custom' );
162
  register_setting( 'agca-options-group', 'agca_remove_site_link' );
163
- register_setting( 'agca-options-group', 'agca_wp_logo_custom_link' );
164
 
165
  register_setting( 'agca-options-group', 'agca_site_heading' );
166
  register_setting( 'agca-options-group', 'agca_custom_site_heading' );
@@ -176,13 +171,13 @@ class AGCA{
176
  register_setting( 'agca-options-group', 'agca_login_photo_remove' );
177
  register_setting( 'agca-options-group', 'agca_login_photo_url' );
178
  register_setting( 'agca-options-group', 'agca_login_photo_href' );
179
- register_setting( 'agca-options-group', 'agca_login_round_box' );
180
  register_setting( 'agca-options-group', 'agca_login_round_box_size' );
181
 
182
  register_setting( 'agca-options-group', 'agca_dashboard_icon' );
183
  register_setting( 'agca-options-group', 'agca_dashboard_text' );
184
  register_setting( 'agca-options-group', 'agca_dashboard_text_paragraph' );
185
- register_setting( 'agca-options-group', 'agca_dashboard_widget_welcome' );
186
  register_setting( 'agca-options-group', 'agca_dashboard_widget_rc' );
187
  register_setting( 'agca-options-group', 'agca_dashboard_widget_il' );
188
  register_setting( 'agca-options-group', 'agca_dashboard_widget_plugins' );
@@ -219,19 +214,19 @@ class AGCA{
219
  register_setting( 'agca-options-group', 'agca_admin_menu_separator_second' );
220
  register_setting( 'agca-options-group', 'agca_admin_menu_icons' );
221
  register_setting( 'agca-options-group', 'agca_admin_menu_collapse_button' );
222
- register_setting( 'agca-options-group', 'agca_admin_menu_arrow' );
223
- register_setting( 'agca-options-group', 'agca_admin_menu_submenu_round' );
224
- register_setting( 'agca-options-group', 'agca_admin_menu_submenu_round_size' );
225
- register_setting( 'agca-options-group', 'agca_admin_menu_brand' );
226
- register_setting( 'agca-options-group', 'agca_admin_menu_brand_link' );
 
227
  register_setting( 'agca-options-group', 'ag_edit_adminmenu_json' );
228
  register_setting( 'agca-options-group', 'ag_add_adminmenu_json' );
229
  register_setting( 'agca-options-group', 'ag_colorizer_json' );
230
- register_setting( 'agca-options-group', 'agca_colorizer_turnonoff' );
231
- register_setting( 'agca-options-group', 'agca_include_jquery_migrate' );
232
 
233
- register_setting( 'agca-options-group', 'agca_custom_js' );
234
- register_setting( 'agca-options-group', 'agca_custom_css' );
235
 
236
 
237
  if(!empty($_POST)){
@@ -268,8 +263,9 @@ class AGCA{
268
 
269
  function agca_deactivate() {
270
 
271
- }
272
- function getOptions(){
 
273
  return Array(
274
  'agca_role_allbutadmin',
275
  'agca_admin_bar_frontend',
@@ -339,7 +335,8 @@ class AGCA{
339
  'agca_admin_menu_submenu_round',
340
  'agca_admin_menu_submenu_round_size',
341
  'agca_admin_menu_brand',
342
- 'agca_admin_menu_brand_link',
 
343
  'agca_admin_menu_collapse_button',
344
  'ag_edit_adminmenu_json',
345
  'ag_add_adminmenu_json',
@@ -347,8 +344,7 @@ class AGCA{
347
  'agca_colorizer_turnonof',
348
  'agca_custom_js',
349
  'agca_custom_css',
350
- 'agca_colorizer_turnonoff',
351
- 'agca_include_jquery_migrate',
352
  'agca_disablewarning',
353
  );
354
  }
@@ -808,9 +804,9 @@ class AGCA{
808
 
809
  <?php } ?>
810
  <?php if((get_option('agca_header')==true)&&(get_option('agca_header_show_logout')==true)){ ?>
811
- <?php
812
- $agca_logout_text = ((get_option('agca_logout')=="")?"Log Out":get_option('agca_logout'));
813
- ?>
814
  if(isWPHigherOrEqualThan("3.3")){
815
  jQuery("#wpbody-content").prepend('<a href="../wp-login.php?action=logout" tabindex="10" style="float:right;margin-right:20px" class="ab-item agca_logout_button"><?php echo $agca_logout_text; ?></a>');
816
  }else{
@@ -962,7 +958,7 @@ class AGCA{
962
  $capabilitySelector .="<option val=\"$k\" $selected >".$k."</option>\n";
963
  }
964
 
965
- $this->admin_capabilities = "<select id=\"agca_admin_capability\" name=\"agca_admin_capability\" val=\"upload_files\">".$capabilitySelector."</select>";
966
  }
967
 
968
  function admin_capability(){
@@ -1086,7 +1082,13 @@ try
1086
  roundedSidberSize = <?php echo get_option('agca_admin_menu_submenu_round_size'); ?>;
1087
 
1088
 
1089
- <?php } ?>
 
 
 
 
 
 
1090
 
1091
  <?php $this->print_admin_bar_scripts(); ?>
1092
 
@@ -1142,11 +1144,7 @@ try
1142
 
1143
  <?php if(get_option('agca_language_bar')==true){ ?>
1144
  jQuery("#user_info p").append('<?php include("language_bar/language_bar.php"); ?>');
1145
- <?php } ?>
1146
- <?php //DEPRECATED 1.2
1147
- /*if(get_option('agca_menu_dashboard')==true){
1148
- jQuery("#adminmenu #menu-dashboard").css("display","none");
1149
- } */?>
1150
  <?php if(get_option('agca_dashboard_icon')==true){ ?>
1151
  var className = jQuery("#icon-index").attr("class");
1152
  if(className=='icon32'){
@@ -1370,7 +1368,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1370
  errors = "AGCA - ADMIN ERROR: " + err.name + " / " + err.message;
1371
  alert(errors);
1372
  }finally{
1373
- jQuery('html').css('visibility','visible');
1374
  if(errors){
1375
  jQuery("#agca_form").html('<div style="height:500px"><p style="color:red"><strong>WARNING:</strong> AG Custom Admin stops its execution because of an error. Please resolve this error before continue: <br /><br /><strong>' + errors + '</strong></p></div>');
1376
  }
@@ -1465,7 +1463,9 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1465
  jQuery("#login h1 a").attr("title","");
1466
 
1467
  <?php if(get_option('agca_login_register_remove')==true){ ?>
1468
- jQuery('p#nav').html(jQuery('p#nav').html().replace('|',''));
 
 
1469
  jQuery('p#nav a').each(function(){
1470
  if(jQuery(this).attr('href').indexOf('register') != -1){
1471
  jQuery(this).remove();
@@ -1483,7 +1483,9 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1483
  <?php } ?>
1484
 
1485
  <?php if(get_option('agca_login_lostpassword_remove')==true){ ?>
1486
- jQuery('p#nav').html(jQuery('p#nav').html().replace('|',''));
 
 
1487
  jQuery('p#nav a').each(function(){
1488
  if(jQuery(this).attr('href').indexOf('lostpassword') != -1){
1489
  jQuery(this).remove();
@@ -1571,7 +1573,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1571
  <th scope="row">
1572
  <label title="If checked, all users will be affected with these changes, except admin. Not checked = apply for all</br></br><strong>Q</strong>: Who is administrator?</br><strong>A</strong>: Go to <i>Advanced</i> tab and change capability option to define admin users." for="agca_role_allbutadmin">Do not apply customizations for Administrator&nbsp;&nbsp;</label>
1573
  </th>
1574
- <td><input title="If checked, all users will be affected with these changes, except admin. Not checked = apply for all" type="checkbox" name="agca_role_allbutadmin" value="true" <?php if (get_option('agca_role_allbutadmin')==true) echo 'checked="checked" '; echo get_option('agca_role_allbutadmin'); ?> />
1575
  </td>
1576
  </tr>
1577
  </table>
@@ -1599,15 +1601,15 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1599
  <div id="section_admin_bar" class="ag_section">
1600
  <h2 class="section_title" tabindex="-1">Admin Bar Settings Page</h2>
1601
  <br />
1602
- <p tabindex="0"><i><strong>Info: </strong>Roll over option labels for more information about option.</i></p>
1603
  <br />
1604
  <table class="form-table" width="500px">
1605
  <tr valign="center" class="ag_table_major_options" >
1606
  <td>
1607
- <label tabindex="0" title="Hide admin bar with all elements in top of admin page" for="agca_header"><strong>Hide admin bar completely</strong></label>
1608
  </td>
1609
  <td>
1610
- <input id="agca_header" type="checkbox" onchange="if(jQuery('#agca_header').is(':checked')){jQuery('#agca_header_show_logout_content').show('slide');}else{jQuery('#agca_header_show_logout_content').hide('slide');};" title="Hide admin bar with all elements in top of admin page" name="agca_header" value="true" <?php if (get_option('agca_header')==true) echo 'checked="checked" '; ?> />
1611
  </td>
1612
  </tr>
1613
 
@@ -1622,7 +1624,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1622
  <label tabindex="0" title='Check this if you want to show Log Out button in top right corner of admin page' for="agca_header_show_logout"><strong>(but show Log Out button)</strong></label>
1623
  </td>
1624
  <td>
1625
- <input type="checkbox" title='Check this if you want to show Log Out button in top right corner of admin page' name="agca_header_show_logout" value="true" <?php if ((get_option('agca_header')==true) && (get_option('agca_header_show_logout')==true)) echo 'checked="checked" '; ?> />
1626
  </td>
1627
  </tr>
1628
  <tr valign="center" >
@@ -1630,7 +1632,8 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1630
  <label tabindex="0" title="Removes admin bar customizations (AGCA scripts) on front end." for="agca_admin_bar_frontend">Remove admin bar customizations on site pages</label>
1631
  </td>
1632
  <td>
1633
- <input style="margin-left:-5px" id="agca_admin_bar_frontend" type="checkbox" title="Removes admin bar customizations (AGCA scripts) on front end." name="agca_admin_bar_frontend" value="true" <?php if (get_option('agca_admin_bar_frontend')==true) echo 'checked="checked" '; ?> />
 
1634
  </td>
1635
  </tr>
1636
  <tr valign="center" >
@@ -1638,12 +1641,12 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1638
  <label tabindex="0" title="Removes admin bar on front end." for="agca_admin_bar_frontend_hide">Remove admin bar on site pages</label>
1639
  </td>
1640
  <td>
1641
- <input style="margin-left:-5px" id="agca_admin_bar_frontend_hide" type="checkbox" title="Removes admin bar on front end." name="agca_admin_bar_frontend_hide" value="true" <?php if (get_option('agca_admin_bar_frontend_hide')==true) echo 'checked="checked" '; ?> />
1642
  </td>
1643
  </tr>
1644
  <tr valign="center">
1645
  <td colspan="2">
1646
- <div class="ag_table_heading"><h3 tabindex="0">Elements on Left</h3></div>
1647
  </td>
1648
  <td></td>
1649
  </tr>
@@ -1653,7 +1656,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1653
  <label title="This is link next to heading in admin bar" for="agca_privacy_options">Hide Privacy link</label>
1654
  </th>
1655
  <td>
1656
- <input type="checkbox" title="This is link next to heading in admin bar" name="agca_privacy_options" value="true" <?php if (get_option('agca_privacy_options')==true) echo 'checked="checked" '; ?> />
1657
  </td>
1658
  </tr>
1659
  <?php } ?>
@@ -1686,10 +1689,10 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1686
  </tr>
1687
  <tr valign="center">
1688
  <th >
1689
- <label title="Add custom image on the top of admin content." for="agca_header_logo_custom">Custom header image</label>
1690
  </th>
1691
  <td>
1692
- <input title="If this field is not empty, image from provided url will be visible in header" type="text" size="47" id="agca_header_logo_custom" name="agca_header_logo_custom" value="<?php echo get_option('agca_header_logo_custom'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_header_logo_custom').val('');" value="Clear" />
1693
  &nbsp;<p><i>Add custom header image</i>.</p>
1694
  </td>
1695
  </tr>
@@ -1698,7 +1701,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1698
  <label title="Small Wordpress logo in admin top bar" for="agca_header_logo">Hide WordPress logo</label>
1699
  </th>
1700
  <td>
1701
- <input title="Small Wordpress logo in admin top bar" type="checkbox" name="agca_header_logo" value="true" <?php if (get_option('agca_header_logo')==true) echo 'checked="checked" '; ?> />
1702
  </td>
1703
  </tr>
1704
  <?php if($wpversion>=3.3){?>
@@ -1707,7 +1710,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1707
  <label title="Hides site name section in admin bar" for="agca_remove_site_link">Hide site name in admin bar</label>
1708
  </th>
1709
  <td>
1710
- <input title="Hides site name section in admin bar" type="checkbox" name="agca_remove_site_link" value="true" <?php if (get_option('agca_remove_site_link')==true) echo 'checked="checked" '; ?> />
1711
  </td>
1712
  </tr>
1713
  <tr valign="center">
@@ -1715,7 +1718,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1715
  <label title="Hides default WordPress top bar dropdown menus on WordPress logo and Heading" for="agca_remove_top_bar_dropdowns">Hide WordPress top bar dropdown menus</label>
1716
  </th>
1717
  <td>
1718
- <input title="Hides default WordPress top bar dropdown menus on WordPress logo and Heading" type="checkbox" name="agca_remove_top_bar_dropdowns" value="true" <?php if (get_option('agca_remove_top_bar_dropdowns')==true) echo 'checked="checked" '; ?> />
1719
  </td>
1720
  </tr>
1721
  <tr valign="center">
@@ -1723,15 +1726,15 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1723
  <label title="Removes comments block from admin bar" for="agca_admin_bar_comments">Hide admin bar "Comments"</label>
1724
  </th>
1725
  <td>
1726
- <input title="Removes comments block from admin bar" type="checkbox" name="agca_admin_bar_comments" value="true" <?php if (get_option('agca_admin_bar_comments')==true) echo 'checked="checked" '; ?> />
1727
  </td>
1728
  </tr>
1729
  <tr valign="center" style="margin-top:20px;">
1730
  <th >
1731
- <label title="Removes 'New' block with its contents from admin bar" for="agca_admin_bar_new_content">Hide admin bar "New" content</label>
1732
  </th>
1733
  <td>
1734
- <input 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" '; ?> />
1735
  </td>
1736
  </tr>
1737
  <tr class="new_content_header_submenu" valign="center">
@@ -1739,7 +1742,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1739
  <label title="Removes 'Post' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_post">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hide "New" content -> Post submenu</label>
1740
  </th>
1741
  <td>
1742
- <input title="Removes 'Post' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_post" value="true" <?php if (get_option('agca_admin_bar_new_content_post')==true) echo 'checked="checked" '; ?> />
1743
  </td>
1744
  </tr>
1745
  <tr class="new_content_header_submenu" valign="center">
@@ -1747,7 +1750,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1747
  <label title="Removes 'Link' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_link">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hide "New" content -> Link submenu</label>
1748
  </th>
1749
  <td>
1750
- <input title="Removes 'Link' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_link" value="true" <?php if (get_option('agca_admin_bar_new_content_link')==true) echo 'checked="checked" '; ?> />
1751
  </td>
1752
  </tr>
1753
  <tr class="new_content_header_submenu" valign="center">
@@ -1755,7 +1758,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1755
  <label title="Removes 'Page' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_page">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hide "New" content -> Page submenu</label>
1756
  </th>
1757
  <td>
1758
- <input title="Removes 'Page' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_page" value="true" <?php if (get_option('agca_admin_bar_new_content_page')==true) echo 'checked="checked" '; ?> />
1759
  </td>
1760
  </tr>
1761
  <tr class="new_content_header_submenu" valign="center">
@@ -1763,7 +1766,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1763
  <label title="Removes 'User' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_user">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hide "New" content -> User submenu</label>
1764
  </th>
1765
  <td>
1766
- <input title="Removes 'User' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_user" value="true" <?php if (get_option('agca_admin_bar_new_content_user')==true) echo 'checked="checked" '; ?> />
1767
  </td>
1768
  </tr>
1769
  <tr class="new_content_header_submenu" valign="center">
@@ -1771,7 +1774,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1771
  <label title="Removes 'Media' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_media">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hide "New" content -> Media submenu</label>
1772
  </th>
1773
  <td>
1774
- <input title="Removes 'Media' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_media" value="true" <?php if (get_option('agca_admin_bar_new_content_media')==true) echo 'checked="checked" '; ?> />
1775
  </td>
1776
  </tr>
1777
  <tr valign="center">
@@ -1779,7 +1782,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1779
  <label title="Removes update notifications from admin bar" for="agca_admin_bar_update_notifications">Hide admin bar update notifications</label>
1780
  </th>
1781
  <td>
1782
- <input title="Removes update notifications from admin bar" type="checkbox" name="agca_admin_bar_update_notifications" value="true" <?php if (get_option('agca_admin_bar_update_notifications')==true) echo 'checked="checked" '; ?> />
1783
  </td>
1784
  </tr>
1785
  <?php } ?>
@@ -1794,10 +1797,10 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1794
  </tr>
1795
  <tr valign="center">
1796
  <th scope="row">
1797
- <label title="Hides yellow bar with notifications of new Wordpress release" for="agca_update_bar">Hide WordPress update notification bar</label>
1798
  </th>
1799
  <td>
1800
- <input title="Hides yellow bar with notifications of new Wordpress release" type="checkbox" name="agca_update_bar" value="true" <?php if (get_option('agca_update_bar')==true) echo 'checked="checked" '; ?> />
1801
  </td>
1802
  </tr>
1803
 
@@ -1807,14 +1810,14 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1807
  <label for="agca_site_heading">Hide default blog heading</label>
1808
  </th>
1809
  <td>
1810
- <input type="checkbox" name="agca_site_heading" value="true" <?php if (get_option('agca_site_heading')==true) echo 'checked="checked" '; ?> />
1811
  </td>
1812
  </tr>
1813
  <?php } ?>
1814
 
1815
  <tr valign="center">
1816
  <td colspan="2">
1817
- <div class="ag_table_heading"><h3 tabindex="0">Elements on Right</h3></div>
1818
  </td>
1819
  <td>
1820
  </td>
@@ -1824,7 +1827,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1824
  <label for="agca_screen_options_menu-options">Hide Screen Options menu</label>
1825
  </th>
1826
  <td>
1827
- <input type="checkbox" name="agca_screen_options_menu" value="true" <?php if (get_option('agca_screen_options_menu')==true) echo 'checked="checked" '; ?> />
1828
  </td>
1829
  </tr>
1830
  <tr valign="center">
@@ -1832,7 +1835,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1832
  <label for="agca_help_menu">Hide Help menu</label>
1833
  </th>
1834
  <td>
1835
- <input type="checkbox" name="agca_help_menu" value="true" <?php if (get_option('agca_help_menu')==true) echo 'checked="checked" '; ?> />
1836
  </td>
1837
  </tr>
1838
  <tr valign="center">
@@ -1840,7 +1843,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1840
  <label for="agca_options_menu">Hide Favorite Actions</label>
1841
  </th>
1842
  <td>
1843
- <input type="checkbox" name="agca_options_menu" value="true" <?php if (get_option('agca_options_menu')==true) echo 'checked="checked" '; ?> />
1844
  </td>
1845
  </tr>
1846
  <tr valign="center">
@@ -1867,7 +1870,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1867
  <label for="agca_remove_your_profile"><?php echo $profile_text; ?></label>
1868
  </th>
1869
  <td>
1870
- <input type="checkbox" name="agca_remove_your_profile" value="true" <?php if (get_option('agca_remove_your_profile')==true) echo 'checked="checked" '; ?> />
1871
  </td>
1872
  </tr>
1873
  <?php } ?>
@@ -1876,7 +1879,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1876
  <label title="If selected, hides all elements in top right corner, except Log Out button" for="agca_logout_only">Log out only</label>
1877
  </th>
1878
  <td>
1879
- <input title="If selected, hides all elements in top right corner, except Log Out button" type="checkbox" name="agca_logout_only" value="true" <?php if (get_option('agca_logout_only')==true) echo 'checked="checked" '; ?> />
1880
  </td>
1881
  </tr>
1882
  </table>
@@ -1891,7 +1894,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1891
  <label title="Hides footer with all elements" for="agca_footer"><strong>Hide footer completely</strong></label>
1892
  </td>
1893
  <td>
1894
- <input title="Hides footer with all elements" type="checkbox" id="agca_footer" name="agca_footer" value="true" <?php if (get_option('agca_footer')==true) echo 'checked="checked" '; ?> />
1895
  </td>
1896
  </tr>
1897
  <tr valign="center">
@@ -1905,7 +1908,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1905
  <th scope="row">
1906
  <label title="Hides default text in footer" for="agca_footer_left_hide">Hide footer text</label>
1907
  </th>
1908
- <td><input title="Hides default text in footer" type="checkbox" name="agca_footer_left_hide" value="true" <?php if (get_option('agca_footer_left_hide')==true) echo 'checked="checked" '; ?> />
1909
  </td>
1910
  </tr>
1911
  <tr valign="center">
@@ -1920,7 +1923,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1920
  <th scope="row">
1921
  <label title="Hides text 'Get Version ...' on right" for="agca_footer_right_hide">Hide version text</label>
1922
  </th>
1923
- <td><input title="Hides text 'Get Version ...' on right" type="checkbox" name="agca_footer_right_hide" value="true" <?php if (get_option('agca_footer_right_hide')==true) echo 'checked="checked" '; ?> />
1924
  </td>
1925
  </tr>
1926
  <tr valign="center">
@@ -1948,7 +1951,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1948
  <label title="This is small 'house' icon next to main heading (Dashboard text by default) on Dashboard page" for="agca_dashboard_icon">Hide Dashboard heading icon</label>
1949
  </th>
1950
  <td>
1951
- <input title="This is small house icon next to main heading on Dashboard page. Dashboard text is shown by default" type="checkbox" name="agca_dashboard_icon" value="true" <?php if (get_option('agca_dashboard_icon')==true) echo 'checked="checked" '; ?> />
1952
  </td>
1953
  </tr>
1954
 
@@ -1965,16 +1968,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1965
  <td class="agca_editor">
1966
  <?php $this->getTextEditor('agca_dashboard_text_paragraph'); ?>
1967
  </td>
1968
- </tr>
1969
- <?php /* DEPRECATED 1.2
1970
- <tr valign="center">
1971
- <th scope="row">
1972
- <label for="agca_menu_dashboard">Hide Dashboard button from main menu</label>
1973
- </th>
1974
- <td>
1975
- <input type="checkbox" name="agca_menu_dashboard" value="true" <php if (get_option('agca_menu_dashboard')==true) echo 'checked="checked" '; > />
1976
- </td>
1977
- </tr> */ ?>
1978
  <tr valign="center">
1979
  <td colspan="2">
1980
  <div class="ag_table_heading"><h3 tabindex="0">Dashboard widgets Options</h3></div>
@@ -1990,7 +1984,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1990
  <label for="agca_dashboard_widget_welcome">Hide "Welcome" WordPress Message</label>
1991
  </th>
1992
  <td>
1993
- <input type="checkbox" name="agca_dashboard_widget_welcome" value="true" <?php if (get_option('agca_dashboard_widget_welcome')==true) echo 'checked="checked" '; ?> />
1994
  </td>
1995
  </tr>
1996
  <tr valign="center">
@@ -1998,7 +1992,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
1998
  <label for="agca_dashboard_widget_rc">Hide "Recent Comments"</label>
1999
  </th>
2000
  <td>
2001
- <input type="checkbox" name="agca_dashboard_widget_rc" value="true" <?php if (get_option('agca_dashboard_widget_rc')==true) echo 'checked="checked" '; ?> />
2002
  </td>
2003
  </tr>
2004
  <tr valign="center">
@@ -2006,7 +2000,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2006
  <label for="agca_dashboard_widget_il">Hide "Incoming Links"</label>
2007
  </th>
2008
  <td>
2009
- <input type="checkbox" name="agca_dashboard_widget_il" value="true" <?php if (get_option('agca_dashboard_widget_il')==true) echo 'checked="checked" '; ?> />
2010
  </td>
2011
  </tr>
2012
  <tr valign="center">
@@ -2014,7 +2008,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2014
  <label for="agca_dashboard_widget_plugins">Hide "Plugins"</label>
2015
  </th>
2016
  <td>
2017
- <input type="checkbox" name="agca_dashboard_widget_plugins" value="true" <?php if (get_option('agca_dashboard_widget_plugins')==true) echo 'checked="checked" '; ?> />
2018
  </td>
2019
  </tr>
2020
  <tr valign="center">
@@ -2022,7 +2016,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2022
  <label for="agca_dashboard_widget_qp">Hide "Quick Press"</label>
2023
  </th>
2024
  <td>
2025
- <input type="checkbox" name="agca_dashboard_widget_qp" value="true" <?php if (get_option('agca_dashboard_widget_qp')==true) echo 'checked="checked" '; ?> />
2026
  </td>
2027
  </tr>
2028
  <tr valign="center">
@@ -2030,7 +2024,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2030
  <label for="agca_dashboard_widget_rn">Hide "Right Now"</label>
2031
  </th>
2032
  <td>
2033
- <input type="checkbox" name="agca_dashboard_widget_rn" value="true" <?php if (get_option('agca_dashboard_widget_rn')==true) echo 'checked="checked" '; ?> />
2034
  </td>
2035
  </tr>
2036
  <tr valign="center">
@@ -2038,7 +2032,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2038
  <label for="agca_dashboard_widget_rd">Hide "Recent Drafts"</label>
2039
  </th>
2040
  <td>
2041
- <input type="checkbox" name="agca_dashboard_widget_rd" value="true" <?php if (get_option('agca_dashboard_widget_rd')==true) echo 'checked="checked" '; ?> />
2042
  </td>
2043
  </tr>
2044
  <tr valign="center">
@@ -2046,7 +2040,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2046
  <label title="This is 'WordPress Development Blog' widget by default" for="agca_dashboard_widget_primary">Hide primary widget area</label>
2047
  </th>
2048
  <td>
2049
- <input 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" '; ?> />
2050
  </td>
2051
  </tr>
2052
  <tr valign="center">
@@ -2054,7 +2048,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2054
  <label title="This is 'Other WordPress News' widget by default" for="agca_dashboard_widget_secondary">Hide secondary widget area</label>
2055
  </th>
2056
  <td>
2057
- <input title="This is 'Other WordPress News' widget by default" type="checkbox" name="agca_dashboard_widget_secondary" value="true" <?php if (get_option('agca_dashboard_widget_secondary')==true) echo 'checked="checked" '; ?> />
2058
  </td>
2059
  </tr>
2060
  </table>
@@ -2073,7 +2067,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2073
  <label for="agca_login_banner">Hide back to blog text</label>
2074
  </td>
2075
  <td>
2076
- <input type="checkbox" name="agca_login_banner" title="Hide back to blog block" value="true" <?php if (get_option('agca_login_banner')==true) echo 'checked="checked" '; ?> />
2077
  </td>
2078
  </tr>
2079
  <tr valign="center">
@@ -2107,22 +2101,22 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2107
  <label title="Remove login image completely" for="agca_login_photo_remove">Hide Login header image</label>
2108
  </th>
2109
  <td>
2110
- <input title="Remove login image completely" type="checkbox" name="agca_login_photo_remove" value="true" <?php if (get_option('agca_login_photo_remove')==true) echo 'checked="checked" '; ?> />
2111
  </td>
2112
  </tr>
2113
- <tr valign="center">
2114
  <th scope="row">
2115
  <label title="Rounds box on login page" for="agca_login_round_box">Round box corners</label>
2116
  </th>
2117
  <td>
2118
- <input 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" '; ?> />
2119
  </td>
2120
  </tr>
2121
  <?php
2122
  $roundboxzizestyle = "style='display:none'";
2123
  if (get_option('agca_login_round_box')=='true') $roundboxzizestyle = '';
2124
  ?>
2125
- <tr valign="center" id="agca_login_round_box_size_block" <?php echo $roundboxzizestyle; ?> >
2126
  <th scope="row">
2127
  <label title="Size of rounded box curve" for="agca_login_round_box_size">Round box corners - size</label>
2128
  </th>
@@ -2135,7 +2129,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2135
  <label title="Remove register link on login page" for="agca_login_register_remove">Remove register link</label>
2136
  </th>
2137
  <td>
2138
- <input 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" '; ?> />
2139
  </td>
2140
  </tr>
2141
  <?php
@@ -2155,7 +2149,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2155
  <label title="Removes lost password link on login page" for="agca_login_lostpassword_remove">Remove lost password link</label>
2156
  </th>
2157
  <td>
2158
- <input title="Removes lost password link on login page" type="checkbox" name="agca_login_lostpassword_remove" value="true" <?php if (get_option('agca_login_lostpassword_remove')==true) echo 'checked="checked" '; ?> />
2159
  </td>
2160
  </tr>
2161
  </table>
@@ -2172,15 +2166,15 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2172
  <table class="form-table" width="500px">
2173
  <tr valign="center" class="ag_table_major_options">
2174
  <td><label for="agca_admin_menu_turnonoff"><strong>Turn on/off admin menu configuration</strong></label></td>
2175
- <td><strong><input type="radio" name="agca_admin_menu_turnonoff" title="Turn ON admin menu configuration" value="on" <?php if(get_option('agca_admin_menu_turnonoff') == 'on') echo 'checked="checked" '; ?> /><span style="color:green">ON</span>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="agca_admin_menu_turnonoff" title="Turn OFF admin menu configuration" value="off" <?php if(get_option('agca_admin_menu_turnonoff') != 'on') echo 'checked="checked"'; ?> /><span style="color:red">OFF</span></strong></td>
2176
  </tr>
2177
  <tr valign="center" class="ag_table_major_options">
2178
- <td><label for="agca_admin_menu_agca_button_only"><strong>Hide admin menu completly (administrator can see AG custom admin button)</strong></label></td>
2179
- <td><input type="checkbox" name="agca_admin_menu_agca_button_only" title="Hide admin menu completly (administrator can see 'AG custom admin' button)" value="true" <?php if (get_option('agca_admin_menu_agca_button_only')==true) echo 'checked="checked" '; ?> /></td>
2180
  </tr>
2181
  <tr valign="center">
2182
  <td colspan="2">
2183
- <div class="ag_table_heading"><h3 tabindex="0">Edit/Remove Menu Items</h3></div>
2184
  </td>
2185
  <td>
2186
  </td>
@@ -2189,7 +2183,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2189
  <td colspan="2">
2190
  Reset to default values
2191
  <input type="button" class="agca_button" id="ag_edit_adminmenu_reset_button" title="Reset menu settings to default values" name="ag_edit_adminmenu_reset_button" value="Reset Settings" /><br />
2192
- <p tabindex="0"><em>(click on menu link to show/hide its submenus below it)</em></p>
2193
  <table id="ag_edit_adminmenu">
2194
  <tr style="background-color:#999;">
2195
  <td width="300px"><div style="float:left;color:#fff;"><h3>Item</h3></div><div style="float:right;color:#fff;"><h3>Remove?</h3></div></td><td width="300px" style="color:#fff;" ><h3>Change Text</h3>
@@ -2202,18 +2196,18 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2202
  </tr>
2203
  <tr valign="center">
2204
  <th scope="row">
2205
- <label title="This is blank space between Dashboard and Posts button (by default)" for="agca_admin_menu_separator_first">Remove first items separator</label>
2206
  </th>
2207
  <td>
2208
- <input title="This is blank space separator between Dashboard and Posts button (by default)" type="checkbox" name="agca_admin_menu_separator_first" value="true" <?php if (get_option('agca_admin_menu_separator_first')==true) echo 'checked="checked" '; ?> />
2209
  </td>
2210
  </tr>
2211
  <tr valign="center">
2212
  <th scope="row">
2213
- <label title="This is blank space separator between Comments and Appearance button (by default)" for="agca_admin_menu_separator_second">Remove second items separator</label>
2214
  </th>
2215
  <td>
2216
- <input title="This is blank space separator between Comments and Appearance button (by default)" type="checkbox" name="agca_admin_menu_separator_second" value="true" <?php if (get_option('agca_admin_menu_separator_second')==true) echo 'checked="checked" '; ?> />
2217
  </td>
2218
  </tr>
2219
  <tr valign="center">
@@ -2221,15 +2215,15 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2221
  <label title="Removes small icons on admin menu buttons" for="agca_admin_menu_icons">Remove menu icons</label>
2222
  </th>
2223
  <td>
2224
- <input title="Removes small icons on admin menu buttons" type="checkbox" name="agca_admin_menu_icons" value="true" <?php if (get_option('agca_admin_menu_icons')==true) echo 'checked="checked" '; ?> />
2225
  </td>
2226
  </tr>
2227
  <tr valign="center">
2228
  <th scope="row">
2229
- <label title="Removes small arrow that appears on button hover" for="agca_admin_menu_arrow">Remove submenu arrow</label>
2230
  </th>
2231
  <td>
2232
- <input title="Removes small arrow that appears on button hover" type="checkbox" name="agca_admin_menu_arrow" value="true" <?php if (get_option('agca_admin_menu_arrow')==true) echo 'checked="checked" '; ?> />
2233
  </td>
2234
  </tr>
2235
  <tr valign="center">
@@ -2237,15 +2231,15 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2237
  <label title="Removes collapse button at the end of admin menu" for="agca_admin_menu_collapse_button">Remove "Collapse menu" button</label>
2238
  </th>
2239
  <td>
2240
- <input title="Removes collapse button at the end of admin menu" type="checkbox" name="agca_admin_menu_collapse_button" value="true" <?php if (get_option('agca_admin_menu_collapse_button')==true) echo 'checked="checked" '; ?> />
2241
  </td>
2242
  </tr>
2243
  <tr valign="center">
2244
  <th scope="row">
2245
- <label title="Rounds submenu pop-up box" for="agca_admin_menu_submenu_round">Round submenu pop-up box</label><p><i>(Use it in combination with Colorizer)</i></p>
2246
  </th>
2247
  <td>
2248
- <input 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" '; ?> />
2249
  </td>
2250
  </tr>
2251
  <?php
@@ -2254,30 +2248,42 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2254
  ?>
2255
  <tr valign="center" id="agca_admin_menu_submenu_round_block" <?php echo $roundsubmenuzizestyle; ?> >
2256
  <th scope="row">
2257
- <label title="Size of rounded box curve" for="agca_admin_menu_submenu_round_size">Round submenu pop-up box - size</label>
2258
  </th>
2259
  <td>
2260
  <input class="validateNumber" limit="3" title="Size of rounded box curve" type="text" name="agca_admin_menu_submenu_round_size" type="text" size="3" value="<?php echo get_option('agca_admin_menu_submenu_round_size'); ?>" />&nbsp;(px)
2261
  </td>
2262
  </tr>
2263
- <tr valign="center">
2264
  <th scope="row">
2265
  <label title="Adds custom logo above the admin menu" for="agca_admin_menu_brand">Add custom branding logo above the admin menu</label>
2266
  </th>
2267
  <td>
2268
  <input id="agca_admin_menu_brand" title="Adds custom logo above the admin menu" type="text" size="47" name="agca_admin_menu_brand" value="<?php echo get_option('agca_admin_menu_brand'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_admin_menu_brand').val('');" value="Clear" />
2269
- &nbsp;<p><i>Put here URL of custom branding logo image. Image can be of any size and type</i>.</p>
2270
  </td>
2271
  </tr>
2272
- <tr valign="center">
2273
  <th>
2274
- <label title="Change branding logo link.</br></br>Use:</br><strong>%BLOG%</strong> - for blog URL" for="agca_admin_menu_brand_link">Change branding logo link.</label>
2275
  </th>
2276
  <td>
2277
  <input id="agca_admin_menu_brand_link" type="text" size="47" name="agca_admin_menu_brand_link" value="<?php echo get_option('agca_admin_menu_brand_link'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_admin_menu_brand_link').val('');" value="Clear" />
2278
  &nbsp;<p><i>Put here a link for branding logo</i>.</p>
2279
  </td>
2280
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
2281
  <tr valign="center">
2282
  <td colspan="2">
2283
  <div class="ag_table_heading"><h3 tabindex="0">Add New Menu Items</h3></div>
@@ -2293,7 +2299,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2293
  <td colspan="2">
2294
  name:<input type="text" size="47" title="New button visible name" id="ag_add_adminmenu_name" name="ag_add_adminmenu_name" />
2295
  url:<input type="text" size="47" title="New button link" id="ag_add_adminmenu_url" name="ag_add_adminmenu_url" />
2296
- <select id="ag_add_adminmenu_target" style="width:64px">
2297
  <option value="_blank" selected >blank</option>
2298
  <option value="_self">self</option>
2299
  <option value="_parent">parent</option>
@@ -2316,7 +2322,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2316
  <table class="form-table" width="500px">
2317
  <tr valign="center" class="ag_table_major_options">
2318
  <td><label for="agca_colorizer_turnonoff"><strong>Turn on/off Colorizer configuration</strong></label></td>
2319
- <td><strong><input type="radio" name="agca_colorizer_turnonoff" title="Turn ON Colorizer configuration" value="on" <?php if(get_option('agca_colorizer_turnonoff') == 'on') echo 'checked="checked" '; ?> /><span style="color:green">ON</span>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="agca_colorizer_turnonoff" title="Turn OFF Colorizer configuration" value="off" <?php if(get_option('agca_colorizer_turnonoff') != 'on') echo 'checked="checked"'; ?> /><span style="color:red">OFF</span></strong></td>
2320
  </tr>
2321
  <tr valign="center">
2322
  <td colspan="2">
@@ -2501,19 +2507,11 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2501
  <th scope="row">
2502
  <label title="Choose which capability will be used to distinct admin user from other users.</br>If customizations are not applied for admin users, this setting will be used to define admin users." for="agca_admin_capability">Distinguish admin from other users by capability:</label>
2503
  </th>
2504
- <td><?php echo $this->admin_capabilities; ?><i>(<strong>edit_dashboard</strong> is selected by default)</i>
2505
  </td>
2506
  <td>
2507
  </td>
2508
- </tr>
2509
- <tr valign="center">
2510
- <th scope="row">
2511
- <label title="If you're using an older version of jQuery plugin which has some deprecated functions, please include this option to make plugin backward compatible with your WordPress." for="agca_include_jquery_migrate">Include jQuery migration script</label>
2512
- </th>
2513
- <td>
2514
- <input title="If you're using an older version of jQuery plugin which has some deprecated functions, please include this option to make plugin backward compatible with your WordPress." type="checkbox" name="agca_include_jquery_migrate" value="true" <?php if (get_option('agca_include_jquery_migrate')==true) echo 'checked="checked" '; ?> />
2515
- </td>
2516
- </tr>
2517
  <tr valign="center">
2518
  <td colspan="2">
2519
  <br />
@@ -2539,10 +2537,10 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
2539
  </tr>
2540
  <tr valign="center">
2541
  <th scope="row">
2542
- <label title="Export/import settings" for="agca_export_import">Export / import settings</label>
2543
  </th>
2544
  <td id="import_file_area">
2545
- <div id="export_settings_additional" style="display: none" ><input type="checkbox" id="export_settings_include_admin_menu" name="export_settings_include_admin_menu" />&nbsp;<label title="Includes 'Admin Menu' configuration in exported settings.</br>Include admin menu settings only if your admin menu looks the same on multiple sites.</br>If configurations are different, imported menu settings could be wrong. In that case, use 'Reset Settings' button from 'Admin Menu' section.</br>(Custom buttons and menu configuration will be included anyway)">Include Admin Menu(?)</label></div>
2546
  <input class="agca_button" type="button" name="agca_export_settings" value="Export Settings" onclick="exportSettings();"/></br>
2547
  <input type="file" id="settings_import_file" name="settings_import_file" style="display: none"/>
2548
  <input type="hidden" id="_agca_import_settings" name="_agca_import_settings" value="false" />
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.7
8
  Author URI: http://www.argonius.com/
9
 
10
  Copyright 2013. Argonius (email : info@argonius.com)
48
  /*Initialize properties*/
49
  $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
50
  //fb($this->colorizer);
51
+ $this->agca_version = "1.2.7.7";
52
  }
53
  // Add donate and support information
54
  function jk_filter_plugin_links($links, $file)
128
  }
129
 
130
  function agca_enqueue_scripts() {
131
+ wp_enqueue_script('jquery');
 
 
 
 
 
132
  }
133
 
134
  function reloadScript(){
155
  register_setting( 'agca-options-group', 'agca_header_logo_custom' );
156
  register_setting( 'agca-options-group', 'agca_wp_logo_custom' );
157
  register_setting( 'agca-options-group', 'agca_remove_site_link' );
158
+ register_setting( 'agca-options-group', 'agca_wp_logo_custom_link' );
159
 
160
  register_setting( 'agca-options-group', 'agca_site_heading' );
161
  register_setting( 'agca-options-group', 'agca_custom_site_heading' );
171
  register_setting( 'agca-options-group', 'agca_login_photo_remove' );
172
  register_setting( 'agca-options-group', 'agca_login_photo_url' );
173
  register_setting( 'agca-options-group', 'agca_login_photo_href' );
174
+ register_setting( 'agca-options-group', 'agca_login_round_box' );
175
  register_setting( 'agca-options-group', 'agca_login_round_box_size' );
176
 
177
  register_setting( 'agca-options-group', 'agca_dashboard_icon' );
178
  register_setting( 'agca-options-group', 'agca_dashboard_text' );
179
  register_setting( 'agca-options-group', 'agca_dashboard_text_paragraph' );
180
+ register_setting( 'agca-options-group', 'agca_dashboard_widget_welcome' );
181
  register_setting( 'agca-options-group', 'agca_dashboard_widget_rc' );
182
  register_setting( 'agca-options-group', 'agca_dashboard_widget_il' );
183
  register_setting( 'agca-options-group', 'agca_dashboard_widget_plugins' );
214
  register_setting( 'agca-options-group', 'agca_admin_menu_separator_second' );
215
  register_setting( 'agca-options-group', 'agca_admin_menu_icons' );
216
  register_setting( 'agca-options-group', 'agca_admin_menu_collapse_button' );
217
+ register_setting( 'agca-options-group', 'agca_admin_menu_arrow' );
218
+ register_setting( 'agca-options-group', 'agca_admin_menu_submenu_round' );
219
+ register_setting( 'agca-options-group', 'agca_admin_menu_submenu_round_size' );
220
+ register_setting( 'agca-options-group', 'agca_admin_menu_brand' );
221
+ register_setting( 'agca-options-group', 'agca_admin_menu_brand_link' );
222
+ register_setting( 'agca-options-group', 'agca_admin_menu_autofold' );
223
  register_setting( 'agca-options-group', 'ag_edit_adminmenu_json' );
224
  register_setting( 'agca-options-group', 'ag_add_adminmenu_json' );
225
  register_setting( 'agca-options-group', 'ag_colorizer_json' );
226
+ register_setting( 'agca-options-group', 'agca_colorizer_turnonoff' );
 
227
 
228
+ register_setting( 'agca-options-group', 'agca_custom_js' );
229
+ register_setting( 'agca-options-group', 'agca_custom_css' );
230
 
231
 
232
  if(!empty($_POST)){
263
 
264
  function agca_deactivate() {
265
 
266
+ }
267
+
268
+ function getOptions(){
269
  return Array(
270
  'agca_role_allbutadmin',
271
  'agca_admin_bar_frontend',
335
  'agca_admin_menu_submenu_round',
336
  'agca_admin_menu_submenu_round_size',
337
  'agca_admin_menu_brand',
338
+ 'agca_admin_menu_brand_link',
339
+ 'agca_admin_menu_autofold',
340
  'agca_admin_menu_collapse_button',
341
  'ag_edit_adminmenu_json',
342
  'ag_add_adminmenu_json',
344
  'agca_colorizer_turnonof',
345
  'agca_custom_js',
346
  'agca_custom_css',
347
+ 'agca_colorizer_turnonoff',
 
348
  'agca_disablewarning',
349
  );
350
  }
804
 
805
  <?php } ?>
806
  <?php if((get_option('agca_header')==true)&&(get_option('agca_header_show_logout')==true)){ ?>
807
+ <?php
808
+ $agca_logout_text = ((get_option('agca_logout')=="")?"Log Out":get_option('agca_logout'));
809
+ ?>
810
  if(isWPHigherOrEqualThan("3.3")){
811
  jQuery("#wpbody-content").prepend('<a href="../wp-login.php?action=logout" tabindex="10" style="float:right;margin-right:20px" class="ab-item agca_logout_button"><?php echo $agca_logout_text; ?></a>');
812
  }else{
958
  $capabilitySelector .="<option val=\"$k\" $selected >".$k."</option>\n";
959
  }
960
 
961
+ $this->admin_capabilities = "<select class=\"agca-selectbox\" id=\"agca_admin_capability\" name=\"agca_admin_capability\" val=\"upload_files\">".$capabilitySelector."</select>";
962
  }
963
 
964
  function admin_capability(){
1082
  roundedSidberSize = <?php echo get_option('agca_admin_menu_submenu_round_size'); ?>;
1083
 
1084
 
1085
+ <?php } ?>
1086
+ <?php if(get_option('agca_admin_menu_autofold')=="force"){ ?>
1087
+ jQuery("body").addClass("auto-fold");
1088
+ <?php } else if(get_option('agca_admin_menu_autofold')=="disable"){ ?>
1089
+ jQuery("body").removeClass("auto-fold");
1090
+ <?php } ?>
1091
+
1092
 
1093
  <?php $this->print_admin_bar_scripts(); ?>
1094
 
1144
 
1145
  <?php if(get_option('agca_language_bar')==true){ ?>
1146
  jQuery("#user_info p").append('<?php include("language_bar/language_bar.php"); ?>');
1147
+ <?php } ?>
 
 
 
 
1148
  <?php if(get_option('agca_dashboard_icon')==true){ ?>
1149
  var className = jQuery("#icon-index").attr("class");
1150
  if(className=='icon32'){
1368
  errors = "AGCA - ADMIN ERROR: " + err.name + " / " + err.message;
1369
  alert(errors);
1370
  }finally{
1371
+ jQuery('html').css('visibility','visible');
1372
  if(errors){
1373
  jQuery("#agca_form").html('<div style="height:500px"><p style="color:red"><strong>WARNING:</strong> AG Custom Admin stops its execution because of an error. Please resolve this error before continue: <br /><br /><strong>' + errors + '</strong></p></div>');
1374
  }
1463
  jQuery("#login h1 a").attr("title","");
1464
 
1465
  <?php if(get_option('agca_login_register_remove')==true){ ?>
1466
+ if(jQuery('p#nav').size() > 0){
1467
+ jQuery('p#nav').html(jQuery('p#nav').html().replace('|',''));
1468
+ }
1469
  jQuery('p#nav a').each(function(){
1470
  if(jQuery(this).attr('href').indexOf('register') != -1){
1471
  jQuery(this).remove();
1483
  <?php } ?>
1484
 
1485
  <?php if(get_option('agca_login_lostpassword_remove')==true){ ?>
1486
+ if(jQuery('p#nav').size() > 0){
1487
+ jQuery('p#nav').html(jQuery('p#nav').html().replace('|',''));
1488
+ }
1489
  jQuery('p#nav a').each(function(){
1490
  if(jQuery(this).attr('href').indexOf('lostpassword') != -1){
1491
  jQuery(this).remove();
1573
  <th scope="row">
1574
  <label title="If checked, all users will be affected with these changes, except admin. Not checked = apply for all</br></br><strong>Q</strong>: Who is administrator?</br><strong>A</strong>: Go to <i>Advanced</i> tab and change capability option to define admin users." for="agca_role_allbutadmin">Do not apply customizations for Administrator&nbsp;&nbsp;</label>
1575
  </th>
1576
+ <td><input class="agca-checkbox" title="If checked, all users will be affected with these changes, except admin. Not checked = apply for all" type="checkbox" name="agca_role_allbutadmin" value="true" <?php if (get_option('agca_role_allbutadmin')==true) echo 'checked="checked" '; echo get_option('agca_role_allbutadmin'); ?> />
1577
  </td>
1578
  </tr>
1579
  </table>
1601
  <div id="section_admin_bar" class="ag_section">
1602
  <h2 class="section_title" tabindex="-1">Admin Bar Settings Page</h2>
1603
  <br />
1604
+ <p tabindex="0"><i><strong>Info: </strong>Move your mouse over option labels for more information about an option</i></p>
1605
  <br />
1606
  <table class="form-table" width="500px">
1607
  <tr valign="center" class="ag_table_major_options" >
1608
  <td>
1609
+ <label tabindex="0" title="Hide admin bar with all elements on the top of the admin page" for="agca_header"><strong>Hide admin bar completely</strong></label>
1610
  </td>
1611
  <td>
1612
+ <input id="agca_header" class="agca-checkbox" type="checkbox" onchange="if(jQuery('#agca_header').is(':checked')){jQuery('#agca_header_show_logout_content').show('slide');}else{jQuery('#agca_header_show_logout_content').hide('slide');};" title="Hide admin bar with all elements on the top of the admin page" name="agca_header" value="true" <?php if (get_option('agca_header')==true) echo 'checked="checked" '; ?> />
1613
  </td>
1614
  </tr>
1615
 
1624
  <label tabindex="0" title='Check this if you want to show Log Out button in top right corner of admin page' for="agca_header_show_logout"><strong>(but show Log Out button)</strong></label>
1625
  </td>
1626
  <td>
1627
+ <input type="checkbox" class="agca-checkbox" title='Check this if you want to show Log Out button in top right corner of admin page' name="agca_header_show_logout" value="true" <?php if ((get_option('agca_header')==true) && (get_option('agca_header_show_logout')==true)) echo 'checked="checked" '; ?> />
1628
  </td>
1629
  </tr>
1630
  <tr valign="center" >
1632
  <label tabindex="0" title="Removes admin bar customizations (AGCA scripts) on front end." for="agca_admin_bar_frontend">Remove admin bar customizations on site pages</label>
1633
  </td>
1634
  <td>
1635
+ <input style="margin-left:-5px" class="agca-checkbox" id="agca_admin_bar_frontend" type="checkbox" title="Removes admin bar customizations (AGCA scripts) on front end." name="agca_admin_bar_frontend" value="true" <?php if (get_option('agca_admin_bar_frontend')==true) echo 'checked="checked" '; ?> />
1636
+
1637
  </td>
1638
  </tr>
1639
  <tr valign="center" >
1641
  <label tabindex="0" title="Removes admin bar on front end." for="agca_admin_bar_frontend_hide">Remove admin bar on site pages</label>
1642
  </td>
1643
  <td>
1644
+ <input style="margin-left:-5px" class="agca-checkbox" id="agca_admin_bar_frontend_hide" type="checkbox" title="Removes admin bar on front end." name="agca_admin_bar_frontend_hide" value="true" <?php if (get_option('agca_admin_bar_frontend_hide')==true) echo 'checked="checked" '; ?> />
1645
  </td>
1646
  </tr>
1647
  <tr valign="center">
1648
  <td colspan="2">
1649
+ <div class="ag_table_heading"><h3 tabindex="0">On the Left</h3></div>
1650
  </td>
1651
  <td></td>
1652
  </tr>
1656
  <label title="This is link next to heading in admin bar" for="agca_privacy_options">Hide Privacy link</label>
1657
  </th>
1658
  <td>
1659
+ <input class="agca-checkbox" type="checkbox" title="This is link next to heading in admin bar" name="agca_privacy_options" value="true" <?php if (get_option('agca_privacy_options')==true) echo 'checked="checked" '; ?> />
1660
  </td>
1661
  </tr>
1662
  <?php } ?>
1689
  </tr>
1690
  <tr valign="center">
1691
  <th >
1692
+ <label title="Add custom image on the top of the admin content." for="agca_header_logo_custom">Custom header image</label>
1693
  </th>
1694
  <td>
1695
+ <input title="If this field is not empty, image from provided URL will be visible in header" type="text" size="47" id="agca_header_logo_custom" name="agca_header_logo_custom" value="<?php echo get_option('agca_header_logo_custom'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_header_logo_custom').val('');" value="Clear" />
1696
  &nbsp;<p><i>Add custom header image</i>.</p>
1697
  </td>
1698
  </tr>
1701
  <label title="Small Wordpress logo in admin top bar" for="agca_header_logo">Hide WordPress logo</label>
1702
  </th>
1703
  <td>
1704
+ <input class="agca-checkbox" title="Small Wordpress logo in admin top bar" type="checkbox" name="agca_header_logo" value="true" <?php if (get_option('agca_header_logo')==true) echo 'checked="checked" '; ?> />
1705
  </td>
1706
  </tr>
1707
  <?php if($wpversion>=3.3){?>
1710
  <label title="Hides site name section in admin bar" for="agca_remove_site_link">Hide site name in admin bar</label>
1711
  </th>
1712
  <td>
1713
+ <input class="agca-checkbox" title="Hides site name section in admin bar" type="checkbox" name="agca_remove_site_link" value="true" <?php if (get_option('agca_remove_site_link')==true) echo 'checked="checked" '; ?> />
1714
  </td>
1715
  </tr>
1716
  <tr valign="center">
1718
  <label title="Hides default WordPress top bar dropdown menus on WordPress logo and Heading" for="agca_remove_top_bar_dropdowns">Hide WordPress top bar dropdown menus</label>
1719
  </th>
1720
  <td>
1721
+ <input class="agca-checkbox" title="Hides default WordPress top bar dropdown menus on WordPress logo and Heading" type="checkbox" name="agca_remove_top_bar_dropdowns" value="true" <?php if (get_option('agca_remove_top_bar_dropdowns')==true) echo 'checked="checked" '; ?> />
1722
  </td>
1723
  </tr>
1724
  <tr valign="center">
1726
  <label title="Removes comments block from admin bar" for="agca_admin_bar_comments">Hide admin bar "Comments"</label>
1727
  </th>
1728
  <td>
1729
+ <input class="agca-checkbox" title="Removes comments block from admin bar" type="checkbox" name="agca_admin_bar_comments" value="true" <?php if (get_option('agca_admin_bar_comments')==true) echo 'checked="checked" '; ?> />
1730
  </td>
1731
  </tr>
1732
  <tr valign="center" style="margin-top:20px;">
1733
  <th >
1734
+ <label title="Removes 'New' block with its contents from admin bar" for="agca_admin_bar_new_content">Hide admin bar "New" content completely</label>
1735
  </th>
1736
  <td>
1737
+ <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" '; ?> />
1738
  </td>
1739
  </tr>
1740
  <tr class="new_content_header_submenu" valign="center">
1742
  <label title="Removes 'Post' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_post">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hide "New" content -> Post submenu</label>
1743
  </th>
1744
  <td>
1745
+ <input class="agca-checkbox" title="Removes 'Post' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_post" value="true" <?php if (get_option('agca_admin_bar_new_content_post')==true) echo 'checked="checked" '; ?> />
1746
  </td>
1747
  </tr>
1748
  <tr class="new_content_header_submenu" valign="center">
1750
  <label title="Removes 'Link' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_link">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hide "New" content -> Link submenu</label>
1751
  </th>
1752
  <td>
1753
+ <input class="agca-checkbox" title="Removes 'Link' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_link" value="true" <?php if (get_option('agca_admin_bar_new_content_link')==true) echo 'checked="checked" '; ?> />
1754
  </td>
1755
  </tr>
1756
  <tr class="new_content_header_submenu" valign="center">
1758
  <label title="Removes 'Page' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_page">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hide "New" content -> Page submenu</label>
1759
  </th>
1760
  <td>
1761
+ <input class="agca-checkbox" title="Removes 'Page' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_page" value="true" <?php if (get_option('agca_admin_bar_new_content_page')==true) echo 'checked="checked" '; ?> />
1762
  </td>
1763
  </tr>
1764
  <tr class="new_content_header_submenu" valign="center">
1766
  <label title="Removes 'User' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_user">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hide "New" content -> User submenu</label>
1767
  </th>
1768
  <td>
1769
+ <input class="agca-checkbox" title="Removes 'User' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_user" value="true" <?php if (get_option('agca_admin_bar_new_content_user')==true) echo 'checked="checked" '; ?> />
1770
  </td>
1771
  </tr>
1772
  <tr class="new_content_header_submenu" valign="center">
1774
  <label title="Removes 'Media' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_media">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hide "New" content -> Media submenu</label>
1775
  </th>
1776
  <td>
1777
+ <input class="agca-checkbox" title="Removes 'Media' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_media" value="true" <?php if (get_option('agca_admin_bar_new_content_media')==true) echo 'checked="checked" '; ?> />
1778
  </td>
1779
  </tr>
1780
  <tr valign="center">
1782
  <label title="Removes update notifications from admin bar" for="agca_admin_bar_update_notifications">Hide admin bar update notifications</label>
1783
  </th>
1784
  <td>
1785
+ <input class="agca-checkbox" title="Removes update notifications from admin bar" type="checkbox" name="agca_admin_bar_update_notifications" value="true" <?php if (get_option('agca_admin_bar_update_notifications')==true) echo 'checked="checked" '; ?> />
1786
  </td>
1787
  </tr>
1788
  <?php } ?>
1797
  </tr>
1798
  <tr valign="center">
1799
  <th scope="row">
1800
+ <label title="Hides yellow bar with notifications for new Wordpress release" for="agca_update_bar">Hide WordPress update notification bar</label>
1801
  </th>
1802
  <td>
1803
+ <input class="agca-checkbox" title="Hides yellow bar with notifications for new Wordpress release" type="checkbox" name="agca_update_bar" value="true" <?php if (get_option('agca_update_bar')==true) echo 'checked="checked" '; ?> />
1804
  </td>
1805
  </tr>
1806
 
1810
  <label for="agca_site_heading">Hide default blog heading</label>
1811
  </th>
1812
  <td>
1813
+ <input class="agca-checkbox" type="checkbox" name="agca_site_heading" value="true" <?php if (get_option('agca_site_heading')==true) echo 'checked="checked" '; ?> />
1814
  </td>
1815
  </tr>
1816
  <?php } ?>
1817
 
1818
  <tr valign="center">
1819
  <td colspan="2">
1820
+ <div class="ag_table_heading"><h3 tabindex="0">On the Right</h3></div>
1821
  </td>
1822
  <td>
1823
  </td>
1827
  <label for="agca_screen_options_menu-options">Hide Screen Options menu</label>
1828
  </th>
1829
  <td>
1830
+ <input class="agca-checkbox" type="checkbox" name="agca_screen_options_menu" value="true" <?php if (get_option('agca_screen_options_menu')==true) echo 'checked="checked" '; ?> />
1831
  </td>
1832
  </tr>
1833
  <tr valign="center">
1835
  <label for="agca_help_menu">Hide Help menu</label>
1836
  </th>
1837
  <td>
1838
+ <input class="agca-checkbox" type="checkbox" name="agca_help_menu" value="true" <?php if (get_option('agca_help_menu')==true) echo 'checked="checked" '; ?> />
1839
  </td>
1840
  </tr>
1841
  <tr valign="center">
1843
  <label for="agca_options_menu">Hide Favorite Actions</label>
1844
  </th>
1845
  <td>
1846
+ <input class="agca-checkbox" type="checkbox" name="agca_options_menu" value="true" <?php if (get_option('agca_options_menu')==true) echo 'checked="checked" '; ?> />
1847
  </td>
1848
  </tr>
1849
  <tr valign="center">
1870
  <label for="agca_remove_your_profile"><?php echo $profile_text; ?></label>
1871
  </th>
1872
  <td>
1873
+ <input class="agca-checkbox" type="checkbox" name="agca_remove_your_profile" value="true" <?php if (get_option('agca_remove_your_profile')==true) echo 'checked="checked" '; ?> />
1874
  </td>
1875
  </tr>
1876
  <?php } ?>
1879
  <label title="If selected, hides all elements in top right corner, except Log Out button" for="agca_logout_only">Log out only</label>
1880
  </th>
1881
  <td>
1882
+ <input class="agca-checkbox" title="If selected, hides all elements in top right corner, except Log Out button" type="checkbox" name="agca_logout_only" value="true" <?php if (get_option('agca_logout_only')==true) echo 'checked="checked" '; ?> />
1883
  </td>
1884
  </tr>
1885
  </table>
1894
  <label title="Hides footer with all elements" for="agca_footer"><strong>Hide footer completely</strong></label>
1895
  </td>
1896
  <td>
1897
+ <input class="agca-checkbox" title="Hides footer with all elements" type="checkbox" id="agca_footer" name="agca_footer" value="true" <?php if (get_option('agca_footer')==true) echo 'checked="checked" '; ?> />
1898
  </td>
1899
  </tr>
1900
  <tr valign="center">
1908
  <th scope="row">
1909
  <label title="Hides default text in footer" for="agca_footer_left_hide">Hide footer text</label>
1910
  </th>
1911
+ <td><input class="agca-checkbox" title="Hides default text in footer" type="checkbox" name="agca_footer_left_hide" value="true" <?php if (get_option('agca_footer_left_hide')==true) echo 'checked="checked" '; ?> />
1912
  </td>
1913
  </tr>
1914
  <tr valign="center">
1923
  <th scope="row">
1924
  <label title="Hides text 'Get Version ...' on right" for="agca_footer_right_hide">Hide version text</label>
1925
  </th>
1926
+ <td><input class="agca-checkbox" title="Hides text 'Get Version ...' on right" type="checkbox" name="agca_footer_right_hide" value="true" <?php if (get_option('agca_footer_right_hide')==true) echo 'checked="checked" '; ?> />
1927
  </td>
1928
  </tr>
1929
  <tr valign="center">
1951
  <label title="This is small 'house' icon next to main heading (Dashboard text by default) on Dashboard page" for="agca_dashboard_icon">Hide Dashboard heading icon</label>
1952
  </th>
1953
  <td>
1954
+ <input class="agca-checkbox" title="This is small house icon next to main heading on Dashboard page. Dashboard text is shown by default" type="checkbox" name="agca_dashboard_icon" value="true" <?php if (get_option('agca_dashboard_icon')==true) echo 'checked="checked" '; ?> />
1955
  </td>
1956
  </tr>
1957
 
1968
  <td class="agca_editor">
1969
  <?php $this->getTextEditor('agca_dashboard_text_paragraph'); ?>
1970
  </td>
1971
+ </tr>
 
 
 
 
 
 
 
 
 
1972
  <tr valign="center">
1973
  <td colspan="2">
1974
  <div class="ag_table_heading"><h3 tabindex="0">Dashboard widgets Options</h3></div>
1984
  <label for="agca_dashboard_widget_welcome">Hide "Welcome" WordPress Message</label>
1985
  </th>
1986
  <td>
1987
+ <input class="agca-checkbox" type="checkbox" name="agca_dashboard_widget_welcome" value="true" <?php if (get_option('agca_dashboard_widget_welcome')==true) echo 'checked="checked" '; ?> />
1988
  </td>
1989
  </tr>
1990
  <tr valign="center">
1992
  <label for="agca_dashboard_widget_rc">Hide "Recent Comments"</label>
1993
  </th>
1994
  <td>
1995
+ <input class="agca-checkbox" type="checkbox" name="agca_dashboard_widget_rc" value="true" <?php if (get_option('agca_dashboard_widget_rc')==true) echo 'checked="checked" '; ?> />
1996
  </td>
1997
  </tr>
1998
  <tr valign="center">
2000
  <label for="agca_dashboard_widget_il">Hide "Incoming Links"</label>
2001
  </th>
2002
  <td>
2003
+ <input class="agca-checkbox" type="checkbox" name="agca_dashboard_widget_il" value="true" <?php if (get_option('agca_dashboard_widget_il')==true) echo 'checked="checked" '; ?> />
2004
  </td>
2005
  </tr>
2006
  <tr valign="center">
2008
  <label for="agca_dashboard_widget_plugins">Hide "Plugins"</label>
2009
  </th>
2010
  <td>
2011
+ <input class="agca-checkbox" type="checkbox" name="agca_dashboard_widget_plugins" value="true" <?php if (get_option('agca_dashboard_widget_plugins')==true) echo 'checked="checked" '; ?> />
2012
  </td>
2013
  </tr>
2014
  <tr valign="center">
2016
  <label for="agca_dashboard_widget_qp">Hide "Quick Press"</label>
2017
  </th>
2018
  <td>
2019
+ <input class="agca-checkbox" type="checkbox" name="agca_dashboard_widget_qp" value="true" <?php if (get_option('agca_dashboard_widget_qp')==true) echo 'checked="checked" '; ?> />
2020
  </td>
2021
  </tr>
2022
  <tr valign="center">
2024
  <label for="agca_dashboard_widget_rn">Hide "Right Now"</label>
2025
  </th>
2026
  <td>
2027
+ <input class="agca-checkbox" type="checkbox" name="agca_dashboard_widget_rn" value="true" <?php if (get_option('agca_dashboard_widget_rn')==true) echo 'checked="checked" '; ?> />
2028
  </td>
2029
  </tr>
2030
  <tr valign="center">
2032
  <label for="agca_dashboard_widget_rd">Hide "Recent Drafts"</label>
2033
  </th>
2034
  <td>
2035
+ <input class="agca-checkbox" type="checkbox" name="agca_dashboard_widget_rd" value="true" <?php if (get_option('agca_dashboard_widget_rd')==true) echo 'checked="checked" '; ?> />
2036
  </td>
2037
  </tr>
2038
  <tr valign="center">
2040
  <label title="This is 'WordPress Development Blog' widget by default" for="agca_dashboard_widget_primary">Hide primary widget area</label>
2041
  </th>
2042
  <td>
2043
+ <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" '; ?> />
2044
  </td>
2045
  </tr>
2046
  <tr valign="center">
2048
  <label title="This is 'Other WordPress News' widget by default" for="agca_dashboard_widget_secondary">Hide secondary widget area</label>
2049
  </th>
2050
  <td>
2051
+ <input class="agca-checkbox" title="This is 'Other WordPress News' widget by default" type="checkbox" name="agca_dashboard_widget_secondary" value="true" <?php if (get_option('agca_dashboard_widget_secondary')==true) echo 'checked="checked" '; ?> />
2052
  </td>
2053
  </tr>
2054
  </table>
2067
  <label for="agca_login_banner">Hide back to blog text</label>
2068
  </td>
2069
  <td>
2070
+ <input class="agca-checkbox" type="checkbox" name="agca_login_banner" title="Hide back to blog block" value="true" <?php if (get_option('agca_login_banner')==true) echo 'checked="checked" '; ?> />
2071
  </td>
2072
  </tr>
2073
  <tr valign="center">
2101
  <label title="Remove login image completely" for="agca_login_photo_remove">Hide Login header image</label>
2102
  </th>
2103
  <td>
2104
+ <input class="agca-checkbox" title="Remove login image completely" type="checkbox" name="agca_login_photo_remove" value="true" <?php if (get_option('agca_login_photo_remove')==true) echo 'checked="checked" '; ?> />
2105
  </td>
2106
  </tr>
2107
+ <tr valign="center">
2108
  <th scope="row">
2109
  <label title="Rounds box on login page" for="agca_login_round_box">Round box corners</label>
2110
  </th>
2111
  <td>
2112
+ <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" '; ?> />
2113
  </td>
2114
  </tr>
2115
  <?php
2116
  $roundboxzizestyle = "style='display:none'";
2117
  if (get_option('agca_login_round_box')=='true') $roundboxzizestyle = '';
2118
  ?>
2119
+ <tr valign="center" id="agca_login_round_box_size_block" <?php echo $roundboxzizestyle; ?> >
2120
  <th scope="row">
2121
  <label title="Size of rounded box curve" for="agca_login_round_box_size">Round box corners - size</label>
2122
  </th>
2129
  <label title="Remove register link on login page" for="agca_login_register_remove">Remove register link</label>
2130
  </th>
2131
  <td>
2132
+ <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" '; ?> />
2133
  </td>
2134
  </tr>
2135
  <?php
2149
  <label title="Removes lost password link on login page" for="agca_login_lostpassword_remove">Remove lost password link</label>
2150
  </th>
2151
  <td>
2152
+ <input class="agca-checkbox" class="agca-checkbox" title="Removes lost password link on login page" type="checkbox" name="agca_login_lostpassword_remove" value="true" <?php if (get_option('agca_login_lostpassword_remove')==true) echo 'checked="checked" '; ?> />
2153
  </td>
2154
  </tr>
2155
  </table>
2166
  <table class="form-table" width="500px">
2167
  <tr valign="center" class="ag_table_major_options">
2168
  <td><label for="agca_admin_menu_turnonoff"><strong>Turn on/off admin menu configuration</strong></label></td>
2169
+ <td><strong><input class="agca-radio" type="radio" name="agca_admin_menu_turnonoff" title="Turn ON admin menu configuration" value="on" <?php if(get_option('agca_admin_menu_turnonoff') == 'on') echo 'checked="checked" '; ?> /><span class="agca-radio-text" style="color:green">ON</span>&nbsp;&nbsp;&nbsp;&nbsp;<input class="agca-radio" type="radio" name="agca_admin_menu_turnonoff" title="Turn OFF admin menu configuration" value="off" <?php if(get_option('agca_admin_menu_turnonoff') != 'on') echo 'checked="checked"'; ?> /><span class="agca-radio-text" style="color:red">OFF</span></strong></td>
2170
  </tr>
2171
  <tr valign="center" class="ag_table_major_options">
2172
+ <td><label for="agca_admin_menu_agca_button_only"><strong>Hide admin menu completly</br>(administrator can see AG custom admin button)</strong></label></td>
2173
+ <td><input class="agca-checkbox" type="checkbox" name="agca_admin_menu_agca_button_only" title="Hide admin menu completly (administrator can see 'AG custom admin' button)" value="true" <?php if (get_option('agca_admin_menu_agca_button_only')==true) echo 'checked="checked" '; ?> /></td>
2174
  </tr>
2175
  <tr valign="center">
2176
  <td colspan="2">
2177
+ <div class="ag_table_heading"><h3 tabindex="0">Edit / Remove Menu Items</h3></div>
2178
  </td>
2179
  <td>
2180
  </td>
2183
  <td colspan="2">
2184
  Reset to default values
2185
  <input type="button" class="agca_button" id="ag_edit_adminmenu_reset_button" title="Reset menu settings to default values" name="ag_edit_adminmenu_reset_button" value="Reset Settings" /><br />
2186
+ <p tabindex="0"><em>(click on the top menu items to show / hide their sub-menus)</em></p>
2187
  <table id="ag_edit_adminmenu">
2188
  <tr style="background-color:#999;">
2189
  <td width="300px"><div style="float:left;color:#fff;"><h3>Item</h3></div><div style="float:right;color:#fff;"><h3>Remove?</h3></div></td><td width="300px" style="color:#fff;" ><h3>Change Text</h3>
2196
  </tr>
2197
  <tr valign="center">
2198
  <th scope="row">
2199
+ <label title="This is blank space between Dashboard and Posts button (by default)" for="agca_admin_menu_separator_first">Remove first menu items separator</label>
2200
  </th>
2201
  <td>
2202
+ <input class="agca-checkbox" title="This is blank space separator between Dashboard and Posts button (by default)" type="checkbox" name="agca_admin_menu_separator_first" value="true" <?php if (get_option('agca_admin_menu_separator_first')==true) echo 'checked="checked" '; ?> />
2203
  </td>
2204
  </tr>
2205
  <tr valign="center">
2206
  <th scope="row">
2207
+ <label title="This is blank space separator between Comments and Appearance button (by default)" for="agca_admin_menu_separator_second">Remove second menu items separator</label>
2208
  </th>
2209
  <td>
2210
+ <input class="agca-checkbox" title="This is blank space separator between Comments and Appearance button (by default)" type="checkbox" name="agca_admin_menu_separator_second" value="true" <?php if (get_option('agca_admin_menu_separator_second')==true) echo 'checked="checked" '; ?> />
2211
  </td>
2212
  </tr>
2213
  <tr valign="center">
2215
  <label title="Removes small icons on admin menu buttons" for="agca_admin_menu_icons">Remove menu icons</label>
2216
  </th>
2217
  <td>
2218
+ <input class="agca-checkbox" title="Removes small icons on admin menu buttons" type="checkbox" name="agca_admin_menu_icons" value="true" <?php if (get_option('agca_admin_menu_icons')==true) echo 'checked="checked" '; ?> />
2219
  </td>
2220
  </tr>
2221
  <tr valign="center">
2222
  <th scope="row">
2223
+ <label title="Removes small arrow that appears on button hover" for="agca_admin_menu_arrow">Remove sub-menu arrow</label>
2224
  </th>
2225
  <td>
2226
+ <input class="agca-checkbox" title="Removes small arrow that appears on button hover" type="checkbox" name="agca_admin_menu_arrow" value="true" <?php if (get_option('agca_admin_menu_arrow')==true) echo 'checked="checked" '; ?> />
2227
  </td>
2228
  </tr>
2229
  <tr valign="center">
2231
  <label title="Removes collapse button at the end of admin menu" for="agca_admin_menu_collapse_button">Remove "Collapse menu" button</label>
2232
  </th>
2233
  <td>
2234
+ <input class="agca-checkbox" title="Removes collapse button at the end of admin menu" type="checkbox" name="agca_admin_menu_collapse_button" value="true" <?php if (get_option('agca_admin_menu_collapse_button')==true) echo 'checked="checked" '; ?> />
2235
  </td>
2236
  </tr>
2237
  <tr valign="center">
2238
  <th scope="row">
2239
+ <label title="Rounds submenu pop-up box" for="agca_admin_menu_submenu_round">Round sub-menu pop-up box</label><p><i>(Please use it in combination with Colorizer)</i></p>
2240
  </th>
2241
  <td>
2242
+ <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" '; ?> />
2243
  </td>
2244
  </tr>
2245
  <?php
2248
  ?>
2249
  <tr valign="center" id="agca_admin_menu_submenu_round_block" <?php echo $roundsubmenuzizestyle; ?> >
2250
  <th scope="row">
2251
+ <label title="Size of rounded box curve" for="agca_admin_menu_submenu_round_size">Round sub-menu pop-up box - size</label>
2252
  </th>
2253
  <td>
2254
  <input class="validateNumber" limit="3" title="Size of rounded box curve" type="text" name="agca_admin_menu_submenu_round_size" type="text" size="3" value="<?php echo get_option('agca_admin_menu_submenu_round_size'); ?>" />&nbsp;(px)
2255
  </td>
2256
  </tr>
2257
+ <tr valign="center">
2258
  <th scope="row">
2259
  <label title="Adds custom logo above the admin menu" for="agca_admin_menu_brand">Add custom branding logo above the admin menu</label>
2260
  </th>
2261
  <td>
2262
  <input id="agca_admin_menu_brand" title="Adds custom logo above the admin menu" type="text" size="47" name="agca_admin_menu_brand" value="<?php echo get_option('agca_admin_menu_brand'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_admin_menu_brand').val('');" value="Clear" />
2263
+ &nbsp;<p><i>Put here your custom image URL. Image can be of any size and type</i>.</p>
2264
  </td>
2265
  </tr>
2266
+ <tr valign="center">
2267
  <th>
2268
+ <label title="Change branding logo link</br></br>Use:</br><strong>%BLOG%</strong> - for blog URL" for="agca_admin_menu_brand_link">Change branding logo link</label>
2269
  </th>
2270
  <td>
2271
  <input id="agca_admin_menu_brand_link" type="text" size="47" name="agca_admin_menu_brand_link" value="<?php echo get_option('agca_admin_menu_brand_link'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_admin_menu_brand_link').val('');" value="Clear" />
2272
  &nbsp;<p><i>Put here a link for branding logo</i>.</p>
2273
  </td>
2274
  </tr>
2275
+ <tr valign="center">
2276
+ <th scope="row">
2277
+ <label title="Choose how admin menu should behave on mobile devices / small screens" for="agca_admin_menu_autofold">Admin menu auto folding</label>
2278
+ </th>
2279
+ <td>
2280
+ <select title="Choose how admin menu should behave on mobile devices / small screens" class="agca-selectbox" name="agca_admin_menu_autofold" >
2281
+ <option value="" <?php echo (get_option('agca_admin_menu_autofold') == "")?" selected ":""; ?> >Default</option>
2282
+ <option value="force" <?php echo (get_option('agca_admin_menu_autofold') == "force")?" selected ":""; ?> >Force admin menu auto-folding</option>
2283
+ <option value="disable" <?php echo (get_option('agca_admin_menu_autofold') == "disable")?" selected ":""; ?> >Disable admin menu auto-folding</option>
2284
+ </select>
2285
+ </td>
2286
+ </tr>
2287
  <tr valign="center">
2288
  <td colspan="2">
2289
  <div class="ag_table_heading"><h3 tabindex="0">Add New Menu Items</h3></div>
2299
  <td colspan="2">
2300
  name:<input type="text" size="47" title="New button visible name" id="ag_add_adminmenu_name" name="ag_add_adminmenu_name" />
2301
  url:<input type="text" size="47" title="New button link" id="ag_add_adminmenu_url" name="ag_add_adminmenu_url" />
2302
+ <select id="ag_add_adminmenu_target" class="agca-selectbox" style="width:64px">
2303
  <option value="_blank" selected >blank</option>
2304
  <option value="_self">self</option>
2305
  <option value="_parent">parent</option>
2322
  <table class="form-table" width="500px">
2323
  <tr valign="center" class="ag_table_major_options">
2324
  <td><label for="agca_colorizer_turnonoff"><strong>Turn on/off Colorizer configuration</strong></label></td>
2325
+ <td><strong><input class="agca-radio" type="radio" name="agca_colorizer_turnonoff" title="Turn ON Colorizer configuration" value="on" <?php if(get_option('agca_colorizer_turnonoff') == 'on') echo 'checked="checked" '; ?> /><span class="agca-radio-text" style="color:green">ON</span>&nbsp;&nbsp;&nbsp;&nbsp;<input class="agca-radio" type="radio" name="agca_colorizer_turnonoff" title="Turn OFF Colorizer configuration" value="off" <?php if(get_option('agca_colorizer_turnonoff') != 'on') echo 'checked="checked"'; ?> /><span class="agca-radio-text" style="color:red">OFF</span></strong></td>
2326
  </tr>
2327
  <tr valign="center">
2328
  <td colspan="2">
2507
  <th scope="row">
2508
  <label title="Choose which capability will be used to distinct admin user from other users.</br>If customizations are not applied for admin users, this setting will be used to define admin users." for="agca_admin_capability">Distinguish admin from other users by capability:</label>
2509
  </th>
2510
+ <td><?php echo $this->admin_capabilities; ?>&nbsp;&nbsp;<i>(<strong>edit_dashboard</strong> is selected by default)</i>
2511
  </td>
2512
  <td>
2513
  </td>
2514
+ </tr>
 
 
 
 
 
 
 
 
2515
  <tr valign="center">
2516
  <td colspan="2">
2517
  <br />
2537
  </tr>
2538
  <tr valign="center">
2539
  <th scope="row">
2540
+ <label title="Export / import settings" for="agca_export_import">Export / import settings</label>
2541
  </th>
2542
  <td id="import_file_area">
2543
+ <div id="export_settings_additional" style="display: none" ><input class="agca-checkbox" type="checkbox" id="export_settings_include_admin_menu" name="export_settings_include_admin_menu" />&nbsp;<label title="Includes 'Admin Menu' configuration in exported settings.</br>Include admin menu settings only if your admin menu looks the same on multiple sites.</br>If configurations are different, imported menu settings could be wrong. In that case, use 'Reset Settings' button from 'Admin Menu' section.</br>(Custom buttons and menu configuration will be included anyway)">Include Admin Menu(?)</label></div>
2544
  <input class="agca_button" type="button" name="agca_export_settings" value="Export Settings" onclick="exportSettings();"/></br>
2545
  <input type="file" id="settings_import_file" name="settings_import_file" style="display: none"/>
2546
  <input type="hidden" id="_agca_import_settings" name="_agca_import_settings" value="false" />
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
5
  Requires at least: 3.0
6
- Tested up to: 3.6
7
- Stable tag: 1.2.7.6
8
 
9
  Hide or change items in admin panel. Customize buttons from admin menu. Colorize admin and login page with custom colors.
10
 
@@ -65,6 +65,7 @@ Here is the list of options:
65
  - Round admin submenu popups
66
  - Add custom branding image above the admin menu
67
  - Add custom link to branding image
 
68
 
69
  Colorizer
70
  - Change background and text colors on admin and login page
@@ -113,8 +114,15 @@ Try clearing browser's cache. If that does not work, go to browser's console and
113
 
114
  == Changelog ==
115
 
 
 
 
 
 
 
 
116
  = 1.2.7.6 =
117
- * Better style for close button
118
  * Fixed bugs when adding new admin menu buttons
119
 
120
  = 1.2.7.5 =
@@ -303,6 +311,9 @@ Try clearing browser's cache. If that does not work, go to browser's console and
303
 
304
  == Upgrade Notice ==
305
 
 
 
 
306
  = 1.2.7.6 =
307
  Bug fixes. Better close button styles.
308
 
3
  Donate link: http://agca.argonius.com/ag-custom-admin/support-for-future-development
4
  Tags: admin, customize, hide, change admin
5
  Requires at least: 3.0
6
+ Tested up to: 3.7.1
7
+ Stable tag: 1.2.7.7
8
 
9
  Hide or change items in admin panel. Customize buttons from admin menu. Colorize admin and login page with custom colors.
10
 
65
  - Round admin submenu popups
66
  - Add custom branding image above the admin menu
67
  - Add custom link to branding image
68
+ - Admin menu auto-folding options for mobile devices
69
 
70
  Colorizer
71
  - Change background and text colors on admin and login page
114
 
115
  == Changelog ==
116
 
117
+ = 1.2.7.7 =
118
+ * Updated options labels
119
+ * Better checkbox and radiobox styles
120
+ * Some additional style improvements
121
+ * Updated option for auto folding admin menu on mobile devices
122
+ * Fixed AGCA error popup on reset password page
123
+
124
  = 1.2.7.6 =
125
+ * Better style for close button
126
  * Fixed bugs when adding new admin menu buttons
127
 
128
  = 1.2.7.5 =
311
 
312
  == Upgrade Notice ==
313
 
314
+ = 1.2.7.7 =
315
+ Updated admin menu auto-folding options. Fixed bug on reset password page. Updated options styles.
316
+
317
  = 1.2.7.6 =
318
  Bug fixes. Better close button styles.
319
 
script/ag_script.js CHANGED
@@ -86,7 +86,7 @@ function createEditMenuPage(checkboxes,textboxes){
86
  sub_item_text_value = textboxes[counter][1];
87
  isHidden = checkboxes[counter][1];
88
  }
89
- jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_child'><div style=\"float:left\"><a tabindex=\"-1\" href=\"javascript:void(0)\" style=\"font-weight:bold;\"title=\""+topElement+" submenu: "+subElement+"\"><span style=\"font-weight:normal\">submenu: </span>"+subElement+"</a></div><div style=\"float:right\"><input type=\"checkbox\" title=\"Remove "+topElement+" submenu: "+subElement+" from menu\" class=\""+subElement+"\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></div></td><td class='ag_admin_menu_child2' ><input type=\"text\" title=\"Rename submenu item "+subElement+" with this value\" class=\""+subElement+"\" size=\"47\" value=\""+sub_item_text_value+"\" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></td></tr>");
90
  }
91
  //if top element
92
  else{
@@ -100,7 +100,7 @@ function createEditMenuPage(checkboxes,textboxes){
100
  top_item_text_value = textboxes[counter][1];
101
  isHidden = checkboxes[counter][1];
102
  }
103
- jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_parent'><br /><span class=\"agcaMenuEditorPlusMinus\"><span class=\"plus\">+</span><span class=\"minus\">-</span></span><a tabindex=\"0\" href=\"javascript:void(0)\" >" + topElement +"</a><div style=\"float:right\"><input title=\"Remove "+topElement+" from menu\" class=\""+jQuery(this).attr("id")+"\" type=\"checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></div></td><td class='ag_admin_menu_parent2' ><input title=\"Rename "+topElement+" with this value\" type=\"text\" class=\""+jQuery(this).attr("id")+"\" size=\"47\" value=\""+top_item_text_value+"\" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></td></tr>");
104
  }
105
  counter++;
106
  }
@@ -108,7 +108,7 @@ function createEditMenuPage(checkboxes,textboxes){
108
 
109
  //console.log(checkboxes.replace('<-TOP->','')+"|"+textboxes.replace('<-TOP->',''));
110
  prettyEditMenuPage();
111
-
112
  }
113
 
114
  function createEditMenuPageV32(checkboxes,textboxes){
@@ -137,7 +137,7 @@ function createEditMenuPageV32(checkboxes,textboxes){
137
  sub_item_text_value = textboxes[counter][1];
138
  isHidden = checkboxes[counter][1];
139
  }
140
- jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_child'><div style=\"float:left\"><a tabindex=\"-1\" href=\"javascript:void(0)\" style=\"font-weight:bold;\"title=\""+topElement+" submenu: "+subElement+"\"><span style=\"font-weight:normal\">submenu: </span>"+subElement+"</a></div><div style=\"float:right\"><input type=\"checkbox\" title=\"Remove "+topElement+" submenu: "+subElement+" from menu\" class=\""+subElement+"\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></div></td><td class='ag_admin_menu_child2' ><input type=\"text\" title=\"Rename submenu item "+subElement+" with this value\" class=\""+subElement+"\" size=\"47\" value=\""+sub_item_text_value+"\" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></td></tr>");
141
  }
142
  //if top element
143
  else{
@@ -151,7 +151,7 @@ function createEditMenuPageV32(checkboxes,textboxes){
151
  top_item_text_value = textboxes[counter][1];
152
  isHidden = checkboxes[counter][1];
153
  }
154
- jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_parent'><br /><span class=\"agcaMenuEditorPlusMinus\"><span class=\"plus\">+</span><span class=\"minus\">-</span></span><a tabindex=\"0\" href=\"javascript:void(0)\" >" + topElement +"</a><div style=\"float:right\"><input title=\"Remove "+topElement+" from menu\" class=\""+jQuery(this).attr("id")+"\" type=\"checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></div></td><td class='ag_admin_menu_parent2' ><input title=\"Rename "+topElement+" with this value\" type=\"text\" class=\""+jQuery(this).attr("id")+"\" size=\"47\" value=\""+top_item_text_value+"\" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></td></tr>");
155
  }
156
  counter++;
157
  }else if(jQuery(this).attr('id') =="collapse-menu"){
@@ -179,6 +179,7 @@ function createEditMenuPageV32(checkboxes,textboxes){
179
  }
180
 
181
  });
 
182
  }
183
 
184
  function createEditMenuPageV35(checkboxes,textboxes){
@@ -211,7 +212,7 @@ function createEditMenuPageV35(checkboxes,textboxes){
211
  sub_item_text_value = textboxes[counter][1];
212
  isHidden = checkboxes[counter][1];
213
  }
214
- jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_child'><div style=\"float:left\"><a tabindex=\"-1\" href=\"javascript:void(0)\" style=\"font-weight:bold;\"title=\""+topElement+" submenu: "+subElement+"\"><span style=\"font-weight:normal\">submenu: </span>"+subElement+"</a></div><div style=\"float:right\"><input type=\"checkbox\" title=\"Remove "+topElement+" submenu: "+subElement+" from menu\" class=\""+subElement+"\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></div></td><td class='ag_admin_menu_child2' ><input type=\"text\" title=\"Rename submenu item "+subElement+" with this value\" class=\""+subElement+"\" size=\"47\" value=\""+agca_escapeHTMLChars(sub_item_text_value)+"\" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></td></tr>");
215
  counter++;
216
  }
217
  //if top element
@@ -229,7 +230,7 @@ function createEditMenuPageV35(checkboxes,textboxes){
229
  top_item_text_value = textboxes[counter][1];
230
  isHidden = checkboxes[counter][1];
231
  }
232
- jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_parent'><br /><span class=\"agcaMenuEditorPlusMinus\"><span class=\"plus\">+</span><span class=\"minus\">-</span></span><a tabindex=\"0\" href=\"javascript:void(0)\" >" + topElement +"</a><div style=\"float:right\"><input title=\"Remove "+topElement+" from menu\" class=\""+jQuery(this).attr("id")+"\" type=\"checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></div></td><td class='ag_admin_menu_parent2' ><input title=\"Rename "+topElement+" with this value\" type=\"text\" class=\""+jQuery(this).attr("id")+"\" size=\"47\" value=\""+agca_escapeHTMLChars(top_item_text_value)+"\" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></td></tr>");
233
  counter++;
234
  }
235
 
@@ -258,6 +259,7 @@ function createEditMenuPageV35(checkboxes,textboxes){
258
  }
259
 
260
  });
 
261
  }
262
 
263
  function showHideSection(text) {
@@ -950,6 +952,55 @@ jQuery(document).ready(function(){
950
  });
951
  /*A J A X*/
952
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
953
  function isWPHigherOrEqualThan(targetVersion){
954
  var versions = ["0.7",
955
  "0.71",
@@ -1038,7 +1089,17 @@ function isWPHigherOrEqualThan(targetVersion){
1038
  "3.6.1",
1039
  "3.6.2",
1040
  "3.6.3",
1041
- "3.7"];
 
 
 
 
 
 
 
 
 
 
1042
  //remove sufixes, beta RC etc
1043
  if (wpversion.indexOf("-")!=-1){
1044
  var parts = wpversion.split("-");
86
  sub_item_text_value = textboxes[counter][1];
87
  isHidden = checkboxes[counter][1];
88
  }
89
+ jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_child'><div style=\"float:left\"><a tabindex=\"-1\" href=\"javascript:void(0)\" style=\"font-weight:bold;\"title=\""+topElement+" submenu: "+subElement+"\"><span style=\"font-weight:normal\">submenu: </span>"+subElement+"</a></div><div style=\"float:right\"><input type=\"checkbox\" title=\"Remove "+topElement+" submenu: "+subElement+" from menu\" class=\""+subElement+" agca-checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></div></td><td class='ag_admin_menu_child2' ><input type=\"text\" title=\"Rename submenu item "+subElement+" with this value\" class=\""+subElement+"\" size=\"47\" value=\""+sub_item_text_value+"\" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></td></tr>");
90
  }
91
  //if top element
92
  else{
100
  top_item_text_value = textboxes[counter][1];
101
  isHidden = checkboxes[counter][1];
102
  }
103
+ jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_parent'><br /><span class=\"agcaMenuEditorPlusMinus\"><span class=\"plus\">+</span><span class=\"minus\">-</span></span><a tabindex=\"0\" href=\"javascript:void(0)\" >" + topElement +"</a><div style=\"float:right\"><input title=\"Remove "+topElement+" from menu\" class=\""+jQuery(this).attr("id")+" agca-checkbox\" type=\"checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></div></td><td class='ag_admin_menu_parent2' ><input title=\"Rename "+topElement+" with this value\" type=\"text\" class=\""+jQuery(this).attr("id")+"\" size=\"47\" value=\""+top_item_text_value+"\" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></td></tr>");
104
  }
105
  counter++;
106
  }
108
 
109
  //console.log(checkboxes.replace('<-TOP->','')+"|"+textboxes.replace('<-TOP->',''));
110
  prettyEditMenuPage();
111
+ agcaChangeCheckBoxStyles();
112
  }
113
 
114
  function createEditMenuPageV32(checkboxes,textboxes){
137
  sub_item_text_value = textboxes[counter][1];
138
  isHidden = checkboxes[counter][1];
139
  }
140
+ jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_child'><div style=\"float:left\"><a tabindex=\"-1\" href=\"javascript:void(0)\" style=\"font-weight:bold;\"title=\""+topElement+" submenu: "+subElement+"\"><span style=\"font-weight:normal\">submenu: </span>"+subElement+"</a></div><div style=\"float:right\"><input type=\"checkbox\" title=\"Remove "+topElement+" submenu: "+subElement+" from menu\" class=\""+subElement+" agca-checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></div></td><td class='ag_admin_menu_child2' ><input type=\"text\" title=\"Rename submenu item "+subElement+" with this value\" class=\""+subElement+"\" size=\"47\" value=\""+sub_item_text_value+"\" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></td></tr>");
141
  }
142
  //if top element
143
  else{
151
  top_item_text_value = textboxes[counter][1];
152
  isHidden = checkboxes[counter][1];
153
  }
154
+ jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_parent'><br /><span class=\"agcaMenuEditorPlusMinus\"><span class=\"plus\">+</span><span class=\"minus\">-</span></span><a tabindex=\"0\" href=\"javascript:void(0)\" >" + topElement +"</a><div style=\"float:right\"><input title=\"Remove "+topElement+" from menu\" class=\""+jQuery(this).attr("id")+" agca-checkbox\" type=\"checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></div></td><td class='ag_admin_menu_parent2' ><input title=\"Rename "+topElement+" with this value\" type=\"text\" class=\""+jQuery(this).attr("id")+"\" size=\"47\" value=\""+top_item_text_value+"\" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></td></tr>");
155
  }
156
  counter++;
157
  }else if(jQuery(this).attr('id') =="collapse-menu"){
179
  }
180
 
181
  });
182
+ agcaChangeCheckBoxStyles();
183
  }
184
 
185
  function createEditMenuPageV35(checkboxes,textboxes){
212
  sub_item_text_value = textboxes[counter][1];
213
  isHidden = checkboxes[counter][1];
214
  }
215
+ jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_child'><div style=\"float:left\"><a tabindex=\"-1\" href=\"javascript:void(0)\" style=\"font-weight:bold;\"title=\""+topElement+" submenu: "+subElement+"\"><span style=\"font-weight:normal\">submenu: </span>"+subElement+"</a></div><div style=\"float:right\"><input type=\"checkbox\" title=\"Remove "+topElement+" submenu: "+subElement+" from menu\" class=\""+subElement+" agca-checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></div></td><td class='ag_admin_menu_child2' ><input type=\"text\" title=\"Rename submenu item "+subElement+" with this value\" class=\""+subElement+"\" size=\"47\" value=\""+agca_escapeHTMLChars(sub_item_text_value)+"\" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></td></tr>");
216
  counter++;
217
  }
218
  //if top element
230
  top_item_text_value = textboxes[counter][1];
231
  isHidden = checkboxes[counter][1];
232
  }
233
+ jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_parent'><br /><span class=\"agcaMenuEditorPlusMinus\"><span class=\"plus\">+</span><span class=\"minus\">-</span></span><a tabindex=\"0\" href=\"javascript:void(0)\" >" + topElement +"</a><div style=\"float:right\"><input title=\"Remove "+topElement+" from menu\" class=\""+jQuery(this).attr("id")+" agca-checkbox\" type=\"checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></div></td><td class='ag_admin_menu_parent2' ><input title=\"Rename "+topElement+" with this value\" type=\"text\" class=\""+jQuery(this).attr("id")+"\" size=\"47\" value=\""+agca_escapeHTMLChars(top_item_text_value)+"\" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></td></tr>");
234
  counter++;
235
  }
236
 
259
  }
260
 
261
  });
262
+ agcaChangeCheckBoxStyles();
263
  }
264
 
265
  function showHideSection(text) {
952
  });
953
  /*A J A X*/
954
 
955
+ /*AGCA CHECKBOX RADIOBOX*/
956
+ function agcaCheckBoxOnClick(obj){
957
+ obj.prev().trigger('click');
958
+ //console.log(obj.prev());
959
+ if(jQuery(obj).prev().is(':checked')){
960
+ jQuery(obj).addClass('agca-checkbox-box-checked');
961
+ jQuery(obj).removeClass('agca-checkbox-box');
962
+ }else{
963
+ jQuery(obj).addClass('agca-checkbox-box');
964
+ jQuery(obj).removeClass('agca-checkbox-box-checked');
965
+ }
966
+ }
967
+ function agcaRadioBoxOnClick(obj){
968
+ obj.prev().trigger('click');
969
+ //console.log(obj.prev());
970
+ obj.parent().find('.agca-radiobox').removeClass('checked');
971
+ if(jQuery(obj).prev().is(':checked')){
972
+ jQuery(obj).addClass('checked');
973
+ }else{
974
+ jQuery(obj).removeClass('checked');
975
+ }
976
+ }
977
+ function agcaChangeCheckBoxStyles(){
978
+
979
+ /*checkbox*/
980
+ jQuery('.agca-checkbox-box-checked').remove();
981
+ jQuery('.agca-checkbox-box').remove();
982
+ jQuery('.agca-checkbox').each(function(){
983
+ jQuery(this).hide();
984
+ var cls = "agca-checkbox-box";
985
+ if(jQuery(this).is(':checked')){
986
+ cls = "agca-checkbox-box-checked";
987
+ }
988
+ jQuery(this).after('<div onClick="agcaCheckBoxOnClick(jQuery(this));" class="' + cls + '" title="'+jQuery(this).attr('title')+'"><div/>');
989
+ });
990
+
991
+ /*radio*/
992
+ jQuery('.agca-radiobox').remove();
993
+ jQuery('.agca-radio').each(function(){
994
+ jQuery(this).hide();
995
+ var cls = "agca-radiobox";
996
+ if(jQuery(this).is(':checked')){
997
+ cls = "agca-radiobox checked";
998
+ }
999
+
1000
+ jQuery(this).after('<div onClick="agcaRadioBoxOnClick(jQuery(this));" value="'+jQuery(this).attr('value')+'" class="' + cls + '" title="'+jQuery(this).attr('title')+'"><div/>');
1001
+ });
1002
+ }
1003
+
1004
  function isWPHigherOrEqualThan(targetVersion){
1005
  var versions = ["0.7",
1006
  "0.71",
1089
  "3.6.1",
1090
  "3.6.2",
1091
  "3.6.3",
1092
+ "3.7",
1093
+ "3.7.1",
1094
+ "3.7.2",
1095
+ "3.7.3",
1096
+ "3.7.4",
1097
+ "3.8",
1098
+ "3.8.1",
1099
+ "3.8.2",
1100
+ "3.8.3",
1101
+ "3.9",
1102
+ "3.9.1"];
1103
  //remove sufixes, beta RC etc
1104
  if (wpversion.indexOf("-")!=-1){
1105
  var parts = wpversion.split("-");
script/jquery-migrate.js DELETED
@@ -1,2 +0,0 @@
1
- /*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */
2
- jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(o),i},set:function(e){r(o),i=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=i}var i={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var o=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",o||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,i,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(g)&&(o?a in o:e.isFunction(e.fn[a])))?e(t)[a](i):("type"===a&&i!==n&&l.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,i=e.prop(t,r);return i===!0||"boolean"!=typeof i&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,i))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var i;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(i=y.exec(e.trim(t)))&&i[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),i[3]&&r("$(html) HTML text after last tag is ignored"),"#"===i[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(i[2],n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,i,o=this[0];return!o||"events"!==t||1!==arguments.length||(a=e.data(o,t),i=e._data(o,t),a!==n&&a!==i||i===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),i)};var j=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,i,o){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),i)for(c=function(e){return!e.type||j.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(i.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].concat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,T=e.fn.live,M=e.fn.die,S="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",C=RegExp("\\b(?:"+S+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeof t||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,i){e!==document&&C.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,i)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,i=t.guid||e.guid++,o=0,s=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%o;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=i;a.length>o;)a[o++].guid=i;return this.click(s)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),T?T.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),M?M.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return n||C.test(e)||r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(S.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window);
 
 
style/ag_style.css CHANGED
@@ -46,11 +46,6 @@
46
  width:500px;
47
  }
48
 
49
- .ag_table_major_options td{
50
- padding:5px;
51
- margin:0px;
52
- }
53
-
54
  div#AGToolTipDiv {
55
  position: absolute;
56
  top: 100px;
@@ -127,6 +122,9 @@ td.ag_admin_menu_parent:hover{
127
  #agca_form{
128
  min-width: 835px;/*used for agca menu lineup*/
129
  }
 
 
 
130
  .ag-custom-button{
131
 
132
  /* margin-bottom:-4px !important;*/
@@ -153,7 +151,7 @@ td.ag_admin_menu_parent:hover{
153
  #export_settings_additional{
154
  float: left;
155
  margin-top:3px;
156
- width: 148px;
157
  }
158
  /*#agca_form input.agca_button,#agca_form #ag_add_adminmenu button{
159
  padding: 3px 10px;
@@ -203,6 +201,7 @@ td.ag_admin_menu_parent:hover{
203
  border:1px solid #aaaaaa !important;
204
  text-shadow: none !important;
205
  box-shadow: none !important;
 
206
  }
207
  #agca_form input#save_plugin_settings:hover{
208
  background-color:#E8FAE5 !important;
@@ -243,5 +242,77 @@ td.ag_admin_menu_parent:hover{
243
  border: medium none;
244
  border-radius: 4px;
245
  color: #FFFFFF;
246
- padding: 3px 7px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
  }
46
  width:500px;
47
  }
48
 
 
 
 
 
 
49
  div#AGToolTipDiv {
50
  position: absolute;
51
  top: 100px;
122
  #agca_form{
123
  min-width: 835px;/*used for agca menu lineup*/
124
  }
125
+ #agca_form .section_title{
126
+ font-weight:bold;
127
+ }
128
  .ag-custom-button{
129
 
130
  /* margin-bottom:-4px !important;*/
151
  #export_settings_additional{
152
  float: left;
153
  margin-top:3px;
154
+ width: 229px;
155
  }
156
  /*#agca_form input.agca_button,#agca_form #ag_add_adminmenu button{
157
  padding: 3px 10px;
201
  border:1px solid #aaaaaa !important;
202
  text-shadow: none !important;
203
  box-shadow: none !important;
204
+ font-size:16px;
205
  }
206
  #agca_form input#save_plugin_settings:hover{
207
  background-color:#E8FAE5 !important;
242
  border: medium none;
243
  border-radius: 4px;
244
  color: #FFFFFF;
245
+ padding: 6px 9px;
246
+ }
247
+ .wp-admin.folded #sidebar_adminmenu_logo{
248
+ display:none;
249
+ }
250
+ .agca-selectbox{
251
+ width:405px;
252
+ padding:4px !important;
253
+ height:28px !important;
254
+ }
255
+ .agca-selectbox:hover{
256
+ background-color:#efffef;
257
+ }
258
+
259
+ #agca_form .agca-checkbox-box{
260
+
261
+ background:url(../images/checkbox_unchecked.png);
262
+ cursor:pointer;
263
+ display: block;
264
+ width: 28px;
265
+ height: 28px;
266
+ position:relative;
267
+ float:left;
268
+ }
269
+ #agca_form .agca-checkbox-box-checked{
270
+
271
+ background:url(../images/checkbox_checked.png);
272
+ cursor:pointer;
273
+ display: block;
274
+ width: 28px;
275
+ height: 28px;
276
+ position:relative;
277
+ float:left;
278
+ }
279
+ #agca_form .agca-checkbox-box-checked:hover, #agca_form .agca-checkbox-box:hover{
280
+ background:url(../images/checkbox_over.png);
281
+ }
282
+
283
+ #agca_form label{
284
+ font-size:15px;
285
+ color:#777777;
286
+ }
287
+ #agca_form .form-table th{
288
+ width:350px;
289
+ }
290
+ .ag_admin_menu_parent .agca-checkbox-box-checked, .ag_admin_menu_parent .agca-checkbox-box{
291
+ margin-top:-15px;
292
+ }
293
+ #agca_form input[type=radio]{
294
+ display:block;
295
+ float:left;
296
+ }
297
+ #agca_form .agca-radiobox{
298
+ background:url(../images/radio-gray.png);
299
+ cursor:pointer;
300
+ display: block;
301
+ width: 28px;
302
+ height: 28px;
303
+ position:relative;
304
+ float:left;
305
+ }
306
+ #agca_form .agca-radio-text{
307
+ display: block;
308
+ float: left;
309
+ font-size: 14px;
310
+ font-weight: bold;
311
+ margin: 4px 10px 4px 4px;
312
+ }
313
+ #agca_form .agca-radiobox.checked[value=on]{
314
+ background:url(../images/radio-on.png);
315
+ }
316
+ #agca_form .agca-radiobox.checked[value=off]{
317
+ background:url(../images/radio-off.png);
318
  }
uninstall.php CHANGED
@@ -3,8 +3,8 @@
3
  if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
4
  exit ();
5
 
6
- delete_option( 'agca_role_allbutadmin' );
7
- delete_option( 'agca_screen_options_menu' );
8
  delete_option( 'agca_help_menu' );
9
  delete_option( 'agca_logout' );
10
  delete_option( 'agca_remove_your_profile' );
@@ -18,7 +18,7 @@
18
  delete_option( 'agca_header_logo' );
19
  delete_option( 'agca_header_logo_custom' );
20
  delete_option( 'agca_wp_logo_custom' );
21
- delete_option( 'agca_wp_logo_custom_link' );
22
  delete_option( 'agca_site_heading' );
23
  delete_option( 'agca_custom_site_heading' );
24
  delete_option( 'agca_update_bar' );
@@ -33,13 +33,13 @@
33
  delete_option( 'agca_login_photo_remove' );
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' );
41
  delete_option( 'agca_dashboard_text_paragraph' );
42
- delete_option( 'agca_dashboard_widget_welcome' );
43
  delete_option( 'agca_dashboard_widget_rc' );
44
  delete_option( 'agca_dashboard_widget_il' );
45
  delete_option( 'agca_dashboard_widget_plugins' );
@@ -66,19 +66,20 @@
66
  delete_option( 'agca_admin_menu_separator_first' );
67
  delete_option( 'agca_admin_menu_separator_second' );
68
  delete_option( 'agca_admin_menu_icons' );
69
- delete_option( 'agca_admin_menu_arrow' );
70
- delete_option( 'agca_admin_menu_submenu_round' );
71
- delete_option( 'agca_admin_menu_submenu_round_size' );
72
- delete_option( 'agca_admin_menu_brand' );
73
- delete_option( 'agca_admin_menu_brand_link' );
 
74
  delete_option( 'ag_edit_adminmenu_json' );
75
  delete_option( 'ag_add_adminmenu_json' );
76
  delete_option( 'ag_colorizer_json' );
77
  delete_option( 'agca_colorizer_turnonoff' );
78
 
79
- delete_option( 'agca_custom_js' );
80
- delete_option( 'agca_custom_css' );
81
 
82
- delete_option( 'agca_disablewarning' );
83
  ?>
84
 
3
  if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
4
  exit ();
5
 
6
+ delete_option( 'agca_role_allbutadmin' );
7
+ delete_option( 'agca_screen_options_menu' );
8
  delete_option( 'agca_help_menu' );
9
  delete_option( 'agca_logout' );
10
  delete_option( 'agca_remove_your_profile' );
18
  delete_option( 'agca_header_logo' );
19
  delete_option( 'agca_header_logo_custom' );
20
  delete_option( 'agca_wp_logo_custom' );
21
+ delete_option( 'agca_wp_logo_custom_link' );
22
  delete_option( 'agca_site_heading' );
23
  delete_option( 'agca_custom_site_heading' );
24
  delete_option( 'agca_update_bar' );
33
  delete_option( 'agca_login_photo_remove' );
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' );
41
  delete_option( 'agca_dashboard_text_paragraph' );
42
+ delete_option( 'agca_dashboard_widget_welcome' );
43
  delete_option( 'agca_dashboard_widget_rc' );
44
  delete_option( 'agca_dashboard_widget_il' );
45
  delete_option( 'agca_dashboard_widget_plugins' );
66
  delete_option( 'agca_admin_menu_separator_first' );
67
  delete_option( 'agca_admin_menu_separator_second' );
68
  delete_option( 'agca_admin_menu_icons' );
69
+ delete_option( 'agca_admin_menu_arrow' );
70
+ delete_option( 'agca_admin_menu_submenu_round' );
71
+ delete_option( 'agca_admin_menu_submenu_round_size' );
72
+ delete_option( 'agca_admin_menu_brand' );
73
+ delete_option( 'agca_admin_menu_brand_link' );
74
+ delete_option( 'agca_admin_menu_autofold' );
75
  delete_option( 'ag_edit_adminmenu_json' );
76
  delete_option( 'ag_add_adminmenu_json' );
77
  delete_option( 'ag_colorizer_json' );
78
  delete_option( 'agca_colorizer_turnonoff' );
79
 
80
+ delete_option( 'agca_custom_js' );
81
+ delete_option( 'agca_custom_css' );
82
 
83
+ delete_option( 'agca_disablewarning' );
84
  ?>
85