Version Description
- Improved accessibility
- Optimization for screen readers
- Added sub-page titles
- Updated styles in edit admin menu table
Download this release
Release Info
Developer | argonius |
Plugin | Absolutely Glamorous Custom Admin |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.2.1
- plugin.php +85 -63
- readme.txt +17 -8
- script/ag_script.js +32 -14
- style/ag_style.css +11 -3
plugin.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: AG Custom Admin
|
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/ag-custom-admin
|
5 |
Description: Hide or change items in admin panel. Customize buttons from admin menu.
|
6 |
Author: Argonius
|
7 |
-
Version: 1.2
|
8 |
Author URI: http://wordpress.argonius.com/ag-custom-admin
|
9 |
|
10 |
Copyright 2011. Argonius (email : info@argonius.com)
|
@@ -563,39 +563,42 @@ class AGCA{
|
|
563 |
<h1 style="color:green">AG Custom Admin Settings</h1>
|
564 |
<br />
|
565 |
<ul id="ag_main_menu">
|
566 |
-
<li class="selected" title="
|
567 |
-
<li class="normal">Admin Footer</li>
|
568 |
-
<li class="normal">Dashboard Page</li>
|
569 |
-
<li class="normal">Login Page</li>
|
570 |
-
<li class="normal">Admin Menu</li>
|
571 |
-
|
|
|
|
|
572 |
</ul>
|
573 |
<form method="post" id="agca_form" action="options.php">
|
574 |
<?php settings_fields( 'agca-options-group' ); ?>
|
575 |
<div id="section_admin_bar" class="ag_section">
|
|
|
576 |
<br />
|
577 |
-
<p
|
578 |
<br />
|
579 |
<table class="form-table" width="500px">
|
580 |
<tr valign="center" class="ag_table_major_options" >
|
581 |
-
<td
|
582 |
-
<label title="Hide admin bar with all elements in top of admin page" for="agca_header"><strong>Hide admin bar completely</strong></label>
|
583 |
</td>
|
584 |
<td>
|
585 |
-
<input type="checkbox" name="agca_header" value="true" <?php if (get_option('agca_header')==true) echo 'checked="checked" '; ?> />
|
586 |
</td>
|
587 |
</tr>
|
588 |
<tr valign="center" class="ag_table_major_options" >
|
589 |
-
<td
|
590 |
-
<label title='Check this if You want to show
|
591 |
</td>
|
592 |
<td>
|
593 |
-
<input type="checkbox" name="agca_header_show_logout" value="true" <?php if ((get_option('agca_header')==true) && (get_option('agca_header_show_logout')==true)) echo 'checked="checked" '; ?> />
|
594 |
</td>
|
595 |
</tr>
|
596 |
<tr valign="center">
|
597 |
<td colspan="2">
|
598 |
-
<div class="ag_table_heading"><h3>Elements on Left</h3></div>
|
599 |
</td>
|
600 |
<td></td>
|
601 |
</tr>
|
@@ -604,7 +607,7 @@ class AGCA{
|
|
604 |
<label title="This is link next to heading in admin bar" for="agca_privacy_options">Hide Privacy link</label>
|
605 |
</th>
|
606 |
<td>
|
607 |
-
<input type="checkbox" name="agca_privacy_options" value="true" <?php if (get_option('agca_privacy_options')==true) echo 'checked="checked" '; ?> />
|
608 |
</td>
|
609 |
</tr>
|
610 |
<tr valign="center">
|
@@ -612,7 +615,7 @@ class AGCA{
|
|
612 |
<label title="Small Wordpress logo in admin top bar" for="agca_header_logo">Hide WordPress logo</label>
|
613 |
</th>
|
614 |
<td>
|
615 |
-
<input type="checkbox" name="agca_header_logo" value="true" <?php if (get_option('agca_header_logo')==true) echo 'checked="checked" '; ?> />
|
616 |
</td>
|
617 |
</tr>
|
618 |
<tr valign="center">
|
@@ -620,7 +623,7 @@ class AGCA{
|
|
620 |
<label title="Adds custom text in admin top bar. Default Wordpress heading stays intact." for="agca_custom_site_heading">Custom blog heading</label>
|
621 |
</th>
|
622 |
<td>
|
623 |
-
<textarea rows="5" name="agca_custom_site_heading" cols="40"><?php echo htmlspecialchars(get_option('agca_custom_site_heading')); ?></textarea><p><em><strong>Info: </strong>You can use HTML tags like 'h1' and/or 'a' tag</em></p>
|
624 |
</td>
|
625 |
</tr>
|
626 |
<tr valign="center">
|
@@ -628,7 +631,7 @@ class AGCA{
|
|
628 |
<label title="Hides yellow bar with notifications of new Wordpress release" for="agca_update_bar">Hide WordPress update notification bar</label>
|
629 |
</th>
|
630 |
<td>
|
631 |
-
<input type="checkbox" name="agca_update_bar" value="true" <?php if (get_option('agca_update_bar')==true) echo 'checked="checked" '; ?> />
|
632 |
</td>
|
633 |
</tr>
|
634 |
<tr valign="center">
|
@@ -641,7 +644,7 @@ class AGCA{
|
|
641 |
</tr>
|
642 |
<tr valign="center">
|
643 |
<td colspan="2">
|
644 |
-
<div class="ag_table_heading"><h3>Elements on Right</h3></div>
|
645 |
</td>
|
646 |
<td>
|
647 |
</td>
|
@@ -680,33 +683,34 @@ class AGCA{
|
|
680 |
<th scope="row">
|
681 |
<label title="Put 'Exit', for example" for="agca_logout">Change Log out text</label>
|
682 |
</th>
|
683 |
-
<td><input type="text" size="47" name="agca_logout" value="<?php echo get_option('agca_logout'); ?>" /></td>
|
684 |
</tr>
|
685 |
<tr valign="center">
|
686 |
<th scope="row">
|
687 |
-
<label title="If selected, hides all elements in top right corner, except
|
688 |
</th>
|
689 |
<td>
|
690 |
-
<input type="checkbox" name="agca_logout_only" value="true" <?php if (get_option('agca_logout_only')==true) echo 'checked="checked" '; ?> />
|
691 |
</td>
|
692 |
</tr>
|
693 |
</table>
|
694 |
</div>
|
695 |
|
696 |
<div id="section_admin_footer" style="display:none" class="ag_section">
|
697 |
-
<
|
|
|
698 |
<table class="form-table" width="500px">
|
699 |
<tr valign="center" class="ag_table_major_options">
|
700 |
<td>
|
701 |
<label title="Hides footer with all elements" for="agca_footer"><strong>Hide footer completely</strong></label>
|
702 |
</td>
|
703 |
<td>
|
704 |
-
<input type="checkbox" id="agca_footer" name="agca_footer" value="true" <?php if (get_option('agca_footer')==true) echo 'checked="checked" '; ?> />
|
705 |
</td>
|
706 |
</tr>
|
707 |
<tr valign="center">
|
708 |
<td colspan="2">
|
709 |
-
<div class="ag_table_heading"><h3>Footer Options</h3></div>
|
710 |
</td>
|
711 |
<td>
|
712 |
</td>
|
@@ -715,7 +719,7 @@ class AGCA{
|
|
715 |
<th scope="row">
|
716 |
<label title="Hides default text in footer" for="agca_footer_left_hide">Hide footer text</label>
|
717 |
</th>
|
718 |
-
<td><input type="checkbox" name="agca_footer_left_hide" value="true" <?php if (get_option('agca_footer_left_hide')==true) echo 'checked="checked" '; ?> />
|
719 |
</td>
|
720 |
</tr>
|
721 |
<tr valign="center">
|
@@ -723,41 +727,42 @@ class AGCA{
|
|
723 |
<label title="Replaces text 'Thank you for creating with WordPress. | Documentation | Feedback' with custom text" for="agca_footer_left">Change footer text</label>
|
724 |
</th>
|
725 |
<td>
|
726 |
-
<textarea rows="5" name="agca_footer_left" cols="40"><?php echo htmlspecialchars(get_option('agca_footer_left')); ?></textarea>
|
727 |
</td>
|
728 |
</tr>
|
729 |
<tr valign="center">
|
730 |
<th scope="row">
|
731 |
<label title="Hides text 'Get Version ...' on right" for="agca_footer_right_hide">Hide version text</label>
|
732 |
</th>
|
733 |
-
<td><input type="checkbox" name="agca_footer_right_hide" value="true" <?php if (get_option('agca_footer_right_hide')==true) echo 'checked="checked" '; ?> />
|
734 |
</td>
|
735 |
</tr>
|
736 |
<tr valign="center">
|
737 |
<th scope="row">
|
738 |
-
<label title="Replaces text 'Get Version ...' with custom" for="agca_footer_right">Change version text</label>
|
739 |
</th>
|
740 |
<td>
|
741 |
-
<textarea rows="5" name="agca_footer_right" cols="40"><?php echo htmlspecialchars(get_option('agca_footer_right')); ?></textarea>
|
742 |
</td>
|
743 |
</tr>
|
744 |
</table>
|
745 |
</div>
|
746 |
|
747 |
-
<div id="section_dashboard_page" style="display:none" class="ag_section">
|
|
|
748 |
<table class="form-table" width="500px">
|
749 |
<tr valign="center">
|
750 |
<td colspan="2">
|
751 |
-
<div class="ag_table_heading"><h3>Dashboard Page Options</h3></div>
|
752 |
</td>
|
753 |
<td></td>
|
754 |
</tr>
|
755 |
<tr valign="center">
|
756 |
<th scope="row">
|
757 |
-
<label title="This is small 'house' icon next to main heading (
|
758 |
</th>
|
759 |
<td>
|
760 |
-
<input type="checkbox" name="agca_dashboard_icon" value="true" <?php if (get_option('agca_dashboard_icon')==true) echo 'checked="checked" '; ?> />
|
761 |
</td>
|
762 |
</tr>
|
763 |
|
@@ -765,14 +770,14 @@ class AGCA{
|
|
765 |
<th scope="row">
|
766 |
<label title="Main heading ('Dashboard') on Dashboard page" for="agca_dashboard_text">Change Dashboard heading text</label>
|
767 |
</th>
|
768 |
-
<td><input type="text" size="47" name="agca_dashboard_text" value="<?php echo get_option('agca_dashboard_text'); ?>" /></td>
|
769 |
</tr>
|
770 |
<tr valign="center">
|
771 |
<th scope="row">
|
772 |
<label title="Adds custom text (or HTML) between heading and widgets area on Dashboard page" for="agca_dashboard_text_paragraph">Add custom Dashboard content<br> <em>(text or HTML content)</em></label>
|
773 |
</th>
|
774 |
<td>
|
775 |
-
<textarea rows="5" name="agca_dashboard_text_paragraph" cols="40"><?php echo htmlspecialchars(get_option('agca_dashboard_text_paragraph')); ?></textarea>
|
776 |
</td>
|
777 |
</tr>
|
778 |
<?php /* DEPRECATED 1.2
|
@@ -786,12 +791,12 @@ class AGCA{
|
|
786 |
</tr> */ ?>
|
787 |
<tr valign="center">
|
788 |
<td colspan="2">
|
789 |
-
<div class="ag_table_heading"><h3>Dashboard widgets Options</h3></div>
|
790 |
</td>
|
791 |
<td></td>
|
792 |
</tr>
|
793 |
<tr><td>
|
794 |
-
<p><i><strong>Info:</strong> These settings override settings in Screen options on Dashboard page.</i></p>
|
795 |
</td>
|
796 |
</tr>
|
797 |
<tr valign="center">
|
@@ -847,7 +852,7 @@ class AGCA{
|
|
847 |
<label title="This is 'WordPress Development Blog' widget by default" for="agca_dashboard_widget_primary">Hide primary widget area</label>
|
848 |
</th>
|
849 |
<td>
|
850 |
-
<input type="checkbox" name="agca_dashboard_widget_primary" value="true" <?php if (get_option('agca_dashboard_widget_primary')==true) echo 'checked="checked" '; ?> />
|
851 |
</td>
|
852 |
</tr>
|
853 |
<tr valign="center">
|
@@ -855,12 +860,13 @@ class AGCA{
|
|
855 |
<label title="This is 'Other WordPress News' widget by default" for="agca_dashboard_widget_secondary">Hide secondary widget area</label>
|
856 |
</th>
|
857 |
<td>
|
858 |
-
<input type="checkbox" name="agca_dashboard_widget_secondary" value="true" <?php if (get_option('agca_dashboard_widget_secondary')==true) echo 'checked="checked" '; ?> />
|
859 |
</td>
|
860 |
</tr>
|
861 |
</table>
|
862 |
</div>
|
863 |
<div id="section_login_page" style="display:none" class="ag_section">
|
|
|
864 |
<br /><br />
|
865 |
<table class="form-table" width="500px">
|
866 |
<tr valign="center" class="ag_table_major_options">
|
@@ -868,12 +874,12 @@ class AGCA{
|
|
868 |
<label for="agca_login_banner"><strong>Hide Login top bar completely</strong></label>
|
869 |
</td>
|
870 |
<td>
|
871 |
-
<input type="checkbox" name="agca_login_banner" value="true" <?php if (get_option('agca_login_banner')==true) echo 'checked="checked" '; ?> />
|
872 |
</td>
|
873 |
</tr>
|
874 |
<tr valign="center">
|
875 |
<td colspan="2">
|
876 |
-
<div class="ag_table_heading"><h3>Login Page Options</h3></div>
|
877 |
</td>
|
878 |
<td>
|
879 |
</td>
|
@@ -883,7 +889,7 @@ class AGCA{
|
|
883 |
<label title="Changes '<- Back to ...' text in top bar on Login page" for="agca_login_banner_text">Change Login top bar text</label>
|
884 |
</th>
|
885 |
<td>
|
886 |
-
<textarea rows="5" name="agca_login_banner_text" cols="40"><?php echo htmlspecialchars(get_option('agca_login_banner_text')); ?></textarea> <p><i>You should surround it with anchor tag <a></a>.</i></p>
|
887 |
</td>
|
888 |
</tr>
|
889 |
<tr valign="center">
|
@@ -891,7 +897,7 @@ class AGCA{
|
|
891 |
<label title="If this field is not empty, image from provided url will be visible on Login page" for="agca_login_photo_url">Change Login header image</label>
|
892 |
</th>
|
893 |
<td>
|
894 |
-
<input type="text" size="47" name="agca_login_photo_url" value="<?php echo get_option('agca_login_photo_url'); ?>" />
|
895 |
<p><i>Put here link of new login photo (e.g http://www.photo.com/myphoto.jpg). Original photo dimensions are: 310px x 70px</i>.</p>
|
896 |
</td>
|
897 |
</tr>
|
@@ -900,7 +906,7 @@ class AGCA{
|
|
900 |
<label title="Put here custom link to a web location, that will be triggered on image click" for="agca_login_photo_href">Change hyperlink on Login image</label>
|
901 |
</th>
|
902 |
<td>
|
903 |
-
<input type="text" size="47" name="agca_login_photo_href" value="<?php echo get_option('agca_login_photo_href'); ?>" />
|
904 |
</td>
|
905 |
</tr>
|
906 |
<tr valign="center">
|
@@ -908,7 +914,7 @@ class AGCA{
|
|
908 |
<label title="Remove login image completely" for="agca_login_photo_remove">Hide Login header image</label>
|
909 |
</th>
|
910 |
<td>
|
911 |
-
<input type="checkbox" name="agca_login_photo_remove" value="true" <?php if (get_option('agca_login_photo_remove')==true) echo 'checked="checked" '; ?> />
|
912 |
</td>
|
913 |
</tr>
|
914 |
</table>
|
@@ -917,21 +923,22 @@ class AGCA{
|
|
917 |
/*ADMIN MENU*/
|
918 |
?>
|
919 |
<div id="section_admin_menu" style="display:none" class="ag_section">
|
|
|
920 |
<br />
|
921 |
-
<p style="font-style:italic"><strong>Important: </strong>Please Turn off menu configuration before activating or disabling other plugins (or making any other changes to main menu). Use "Reset Settings" button to restore default values if anything went wrong.</p>
|
922 |
<br />
|
923 |
<table class="form-table" width="500px">
|
924 |
<tr valign="center" class="ag_table_major_options">
|
925 |
<td><label for="agca_admin_menu_turnonoff"><strong>Turn on/off admin menu configuration</strong></label></td>
|
926 |
-
<td><strong><input type="radio" name="agca_admin_menu_turnonoff" value="on" <?php if(get_option('agca_admin_menu_turnonoff') == 'on') echo 'checked="checked" '; ?> /><span style="color:green">ON</span> <input type="radio" name="agca_admin_menu_turnonoff" value="off" <?php if(get_option('agca_admin_menu_turnonoff') != 'on') echo 'checked="checked"'; ?> /><span style="color:red">OFF</span></strong></td>
|
927 |
</tr>
|
928 |
<tr valign="center" class="ag_table_major_options">
|
929 |
-
<td><label for="agca_admin_menu_agca_button_only"><strong>Hide admin menu completly (administrator can see
|
930 |
-
<td><input type="checkbox" name="agca_admin_menu_agca_button_only" value="true" <?php if (get_option('agca_admin_menu_agca_button_only')==true) echo 'checked="checked" '; ?> /></td>
|
931 |
</tr>
|
932 |
<tr valign="center">
|
933 |
<td colspan="2">
|
934 |
-
<div class="ag_table_heading"><h3>Edit/Remove Menu Items</h3></div>
|
935 |
</td>
|
936 |
<td>
|
937 |
</td>
|
@@ -939,8 +946,8 @@ class AGCA{
|
|
939 |
<tr>
|
940 |
<td colspan="2">
|
941 |
Reset to default values
|
942 |
-
<button type="button" id="ag_edit_adminmenu_reset_button" name="ag_edit_adminmenu_reset_button">Reset Settings</button><br />
|
943 |
-
<p><em>(click on menu
|
944 |
<table id="ag_edit_adminmenu">
|
945 |
<tr style="background-color:#999;">
|
946 |
<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>
|
@@ -956,7 +963,7 @@ class AGCA{
|
|
956 |
<label title="This is arrow like separator between Dashboard and Posts button (by default)" for="agca_admin_menu_separator_first">Remove first items separator</label>
|
957 |
</th>
|
958 |
<td>
|
959 |
-
<input type="checkbox" name="agca_admin_menu_separator_first" value="true" <?php if (get_option('agca_admin_menu_separator_first')==true) echo 'checked="checked" '; ?> />
|
960 |
</td>
|
961 |
</tr>
|
962 |
<tr valign="center">
|
@@ -964,12 +971,12 @@ class AGCA{
|
|
964 |
<label title="This is arrow like separator between Comments and Appearance button (by default)" for="agca_admin_menu_separator_second">Remove second items separator</label>
|
965 |
</th>
|
966 |
<td>
|
967 |
-
<input type="checkbox" name="agca_admin_menu_separator_second" value="true" <?php if (get_option('agca_admin_menu_separator_second')==true) echo 'checked="checked" '; ?> />
|
968 |
</td>
|
969 |
</tr>
|
970 |
<tr valign="center">
|
971 |
<td colspan="2">
|
972 |
-
<div class="ag_table_heading"><h3>Add New Menu Items</h3></div>
|
973 |
</td>
|
974 |
<td>
|
975 |
</td>
|
@@ -980,9 +987,9 @@ class AGCA{
|
|
980 |
<table id="ag_add_adminmenu">
|
981 |
<tr>
|
982 |
<td colspan="2">
|
983 |
-
name:<input type="text" size="47"
|
984 |
-
url:<input type="text" size="47" id="ag_add_adminmenu_url" name="ag_add_adminmenu_url" />
|
985 |
-
<button type="button" id="ag_add_adminmenu_button" name="ag_add_adminmenu_button">Add new item</button>
|
986 |
</td><td></td>
|
987 |
</tr>
|
988 |
</table>
|
@@ -993,15 +1000,30 @@ class AGCA{
|
|
993 |
</tr>
|
994 |
</table>
|
995 |
</div>
|
996 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
997 |
<br /><br /><br />
|
998 |
<p class="submit">
|
999 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
1000 |
</p>
|
1001 |
|
1002 |
</form>
|
1003 |
</div>
|
1004 |
-
<p><i><strong>Info:</strong> You can use HTML tags in text areas, e.g. <a href="http://www.mywebsite.com">Visit Us</a></i></p>
|
1005 |
<br />
|
1006 |
<br /><br /><br /><p id="agca_footer_support_info">Wordpress 'AG Custom Admin' plugin by Argonius. If You have any questions, ideas for future development or if You found a bug or having any issues regarding this plugin, please visit my <a href="http://wordpress.argonius.com/ag-custom-admin">SUPPORT</a> page. <br />You can also participate in development of this plugin if You <a href="http://wordpress.argonius.com/donate">BUY ME a DRINK</a> to refresh my energy for programming. Thanks!<br /><br />Have a nice blogging!</p><br />
|
1007 |
<?php
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/ag-custom-admin
|
5 |
Description: Hide or change items in admin panel. Customize buttons from admin menu.
|
6 |
Author: Argonius
|
7 |
+
Version: 1.2.1
|
8 |
Author URI: http://wordpress.argonius.com/ag-custom-admin
|
9 |
|
10 |
Copyright 2011. Argonius (email : info@argonius.com)
|
563 |
<h1 style="color:green">AG Custom Admin Settings</h1>
|
564 |
<br />
|
565 |
<ul id="ag_main_menu">
|
566 |
+
<li class="selected"><a href="#admin-bar-settings" title="Settings for admin bar" >Admin Bar</a></li>
|
567 |
+
<li class="normal"><a href="#admin-footer-settings" title="Settings for admin footer" >Admin Footer</a></li>
|
568 |
+
<li class="normal"><a href="#dashboad-page-settings" title="Settings for Dashboard page">Dashboard Page</a></li>
|
569 |
+
<li class="normal"><a href="#login-page-settings" title="Settings for Login page">Login Page</a></li>
|
570 |
+
<li class="normal" ><a href="#admin-menu-settings" title="Settings for main admin menu">Admin Menu</a></li>
|
571 |
+
<!--<li class="normal"><a href="#ag-custom-admin-plugin-setttings" title="Settings for AG Custom Admin plugin">Plugin Settings</a></li>-->
|
572 |
+
<li style="background:none;border:none;margin-top:-5px;margin-left:-15px"><a id="agca_donate_button" style="margin-left:8px" title="Do You like this plugin? You can support its future development by providing small donation" href="http://wordpress.argonius.com/donate"><img alt="Donate" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>images/btn_donate_LG.gif" /></a>
|
573 |
+
</li>
|
574 |
</ul>
|
575 |
<form method="post" id="agca_form" action="options.php">
|
576 |
<?php settings_fields( 'agca-options-group' ); ?>
|
577 |
<div id="section_admin_bar" class="ag_section">
|
578 |
+
<h2 class="section_title" tabindex="-1">Admin Bar Settings Page</h2>
|
579 |
<br />
|
580 |
+
<p tabindex="0"><strong>Info: </strong>Roll over option labels for more information about option.</p>
|
581 |
<br />
|
582 |
<table class="form-table" width="500px">
|
583 |
<tr valign="center" class="ag_table_major_options" >
|
584 |
+
<td>
|
585 |
+
<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>
|
586 |
</td>
|
587 |
<td>
|
588 |
+
<input type="checkbox" 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" '; ?> />
|
589 |
</td>
|
590 |
</tr>
|
591 |
<tr valign="center" class="ag_table_major_options" >
|
592 |
+
<td>
|
593 |
+
<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>
|
594 |
</td>
|
595 |
<td>
|
596 |
+
<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" '; ?> />
|
597 |
</td>
|
598 |
</tr>
|
599 |
<tr valign="center">
|
600 |
<td colspan="2">
|
601 |
+
<div class="ag_table_heading"><h3 tabindex="0">Elements on Left</h3></div>
|
602 |
</td>
|
603 |
<td></td>
|
604 |
</tr>
|
607 |
<label title="This is link next to heading in admin bar" for="agca_privacy_options">Hide Privacy link</label>
|
608 |
</th>
|
609 |
<td>
|
610 |
+
<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" '; ?> />
|
611 |
</td>
|
612 |
</tr>
|
613 |
<tr valign="center">
|
615 |
<label title="Small Wordpress logo in admin top bar" for="agca_header_logo">Hide WordPress logo</label>
|
616 |
</th>
|
617 |
<td>
|
618 |
+
<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" '; ?> />
|
619 |
</td>
|
620 |
</tr>
|
621 |
<tr valign="center">
|
623 |
<label title="Adds custom text in admin top bar. Default Wordpress heading stays intact." for="agca_custom_site_heading">Custom blog heading</label>
|
624 |
</th>
|
625 |
<td>
|
626 |
+
<textarea title="Adds custom text in admin top bar. Default Wordpress heading stays intact." rows="5" name="agca_custom_site_heading" cols="40"><?php echo htmlspecialchars(get_option('agca_custom_site_heading')); ?></textarea><p><em><strong>Info: </strong>You can use HTML tags like 'h1' and/or 'a' tag</em></p>
|
627 |
</td>
|
628 |
</tr>
|
629 |
<tr valign="center">
|
631 |
<label title="Hides yellow bar with notifications of new Wordpress release" for="agca_update_bar">Hide WordPress update notification bar</label>
|
632 |
</th>
|
633 |
<td>
|
634 |
+
<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" '; ?> />
|
635 |
</td>
|
636 |
</tr>
|
637 |
<tr valign="center">
|
644 |
</tr>
|
645 |
<tr valign="center">
|
646 |
<td colspan="2">
|
647 |
+
<div class="ag_table_heading"><h3 tabindex="0">Elements on Right</h3></div>
|
648 |
</td>
|
649 |
<td>
|
650 |
</td>
|
683 |
<th scope="row">
|
684 |
<label title="Put 'Exit', for example" for="agca_logout">Change Log out text</label>
|
685 |
</th>
|
686 |
+
<td><input title="Put 'Exit', for example" type="text" size="47" name="agca_logout" value="<?php echo get_option('agca_logout'); ?>" /></td>
|
687 |
</tr>
|
688 |
<tr valign="center">
|
689 |
<th scope="row">
|
690 |
+
<label title="If selected, hides all elements in top right corner, except Log Out button" for="agca_logout_only">Log out only</label>
|
691 |
</th>
|
692 |
<td>
|
693 |
+
<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" '; ?> />
|
694 |
</td>
|
695 |
</tr>
|
696 |
</table>
|
697 |
</div>
|
698 |
|
699 |
<div id="section_admin_footer" style="display:none" class="ag_section">
|
700 |
+
<h2 class="section_title" tabindex="-1">Admin Footer Settings Page</h2>
|
701 |
+
<br /><br />
|
702 |
<table class="form-table" width="500px">
|
703 |
<tr valign="center" class="ag_table_major_options">
|
704 |
<td>
|
705 |
<label title="Hides footer with all elements" for="agca_footer"><strong>Hide footer completely</strong></label>
|
706 |
</td>
|
707 |
<td>
|
708 |
+
<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" '; ?> />
|
709 |
</td>
|
710 |
</tr>
|
711 |
<tr valign="center">
|
712 |
<td colspan="2">
|
713 |
+
<div class="ag_table_heading"><h3 tabindex="0">Footer Options</h3></div>
|
714 |
</td>
|
715 |
<td>
|
716 |
</td>
|
719 |
<th scope="row">
|
720 |
<label title="Hides default text in footer" for="agca_footer_left_hide">Hide footer text</label>
|
721 |
</th>
|
722 |
+
<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" '; ?> />
|
723 |
</td>
|
724 |
</tr>
|
725 |
<tr valign="center">
|
727 |
<label title="Replaces text 'Thank you for creating with WordPress. | Documentation | Feedback' with custom text" for="agca_footer_left">Change footer text</label>
|
728 |
</th>
|
729 |
<td>
|
730 |
+
<textarea title="Replaces text 'Thank you for creating with WordPress. | Documentation | Feedback' with custom text" rows="5" name="agca_footer_left" cols="40"><?php echo htmlspecialchars(get_option('agca_footer_left')); ?></textarea>
|
731 |
</td>
|
732 |
</tr>
|
733 |
<tr valign="center">
|
734 |
<th scope="row">
|
735 |
<label title="Hides text 'Get Version ...' on right" for="agca_footer_right_hide">Hide version text</label>
|
736 |
</th>
|
737 |
+
<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" '; ?> />
|
738 |
</td>
|
739 |
</tr>
|
740 |
<tr valign="center">
|
741 |
<th scope="row">
|
742 |
+
<label title="Replaces text 'Get Version ...' with custom text" for="agca_footer_right">Change version text</label>
|
743 |
</th>
|
744 |
<td>
|
745 |
+
<textarea title="Replaces text 'Get Version ...' with custom text" rows="5" name="agca_footer_right" cols="40"><?php echo htmlspecialchars(get_option('agca_footer_right')); ?></textarea>
|
746 |
</td>
|
747 |
</tr>
|
748 |
</table>
|
749 |
</div>
|
750 |
|
751 |
+
<div id="section_dashboard_page" style="display:none" class="ag_section">
|
752 |
+
<h2 class="section_title" tabindex="-1">Dashboard Page Settings</h2>
|
753 |
<table class="form-table" width="500px">
|
754 |
<tr valign="center">
|
755 |
<td colspan="2">
|
756 |
+
<div class="ag_table_heading"><h3 tabindex="0">Dashboard Page Options</h3></div>
|
757 |
</td>
|
758 |
<td></td>
|
759 |
</tr>
|
760 |
<tr valign="center">
|
761 |
<th scope="row">
|
762 |
+
<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>
|
763 |
</th>
|
764 |
<td>
|
765 |
+
<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" '; ?> />
|
766 |
</td>
|
767 |
</tr>
|
768 |
|
770 |
<th scope="row">
|
771 |
<label title="Main heading ('Dashboard') on Dashboard page" for="agca_dashboard_text">Change Dashboard heading text</label>
|
772 |
</th>
|
773 |
+
<td><input title="Main heading with text 'Dashboard' on Dashboard page" type="text" size="47" name="agca_dashboard_text" value="<?php echo get_option('agca_dashboard_text'); ?>" /></td>
|
774 |
</tr>
|
775 |
<tr valign="center">
|
776 |
<th scope="row">
|
777 |
<label title="Adds custom text (or HTML) between heading and widgets area on Dashboard page" for="agca_dashboard_text_paragraph">Add custom Dashboard content<br> <em>(text or HTML content)</em></label>
|
778 |
</th>
|
779 |
<td>
|
780 |
+
<textarea title="Adds custom text or HTML between heading and widgets area on Dashboard page" rows="5" name="agca_dashboard_text_paragraph" cols="40"><?php echo htmlspecialchars(get_option('agca_dashboard_text_paragraph')); ?></textarea>
|
781 |
</td>
|
782 |
</tr>
|
783 |
<?php /* DEPRECATED 1.2
|
791 |
</tr> */ ?>
|
792 |
<tr valign="center">
|
793 |
<td colspan="2">
|
794 |
+
<div class="ag_table_heading"><h3 tabindex="0">Dashboard widgets Options</h3></div>
|
795 |
</td>
|
796 |
<td></td>
|
797 |
</tr>
|
798 |
<tr><td>
|
799 |
+
<p tabindex="0"><i><strong>Info:</strong> These settings override settings in Screen options on Dashboard page.</i></p>
|
800 |
</td>
|
801 |
</tr>
|
802 |
<tr valign="center">
|
852 |
<label title="This is 'WordPress Development Blog' widget by default" for="agca_dashboard_widget_primary">Hide primary widget area</label>
|
853 |
</th>
|
854 |
<td>
|
855 |
+
<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" '; ?> />
|
856 |
</td>
|
857 |
</tr>
|
858 |
<tr valign="center">
|
860 |
<label title="This is 'Other WordPress News' widget by default" for="agca_dashboard_widget_secondary">Hide secondary widget area</label>
|
861 |
</th>
|
862 |
<td>
|
863 |
+
<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" '; ?> />
|
864 |
</td>
|
865 |
</tr>
|
866 |
</table>
|
867 |
</div>
|
868 |
<div id="section_login_page" style="display:none" class="ag_section">
|
869 |
+
<h2 class="section_title" tabindex="-1">Login Page Settings</h2>
|
870 |
<br /><br />
|
871 |
<table class="form-table" width="500px">
|
872 |
<tr valign="center" class="ag_table_major_options">
|
874 |
<label for="agca_login_banner"><strong>Hide Login top bar completely</strong></label>
|
875 |
</td>
|
876 |
<td>
|
877 |
+
<input type="checkbox" name="agca_login_banner" title="Hide Login top bar completely" value="true" <?php if (get_option('agca_login_banner')==true) echo 'checked="checked" '; ?> />
|
878 |
</td>
|
879 |
</tr>
|
880 |
<tr valign="center">
|
881 |
<td colspan="2">
|
882 |
+
<div class="ag_table_heading"><h3 tabindex="0">Login Page Options</h3></div>
|
883 |
</td>
|
884 |
<td>
|
885 |
</td>
|
889 |
<label title="Changes '<- Back to ...' text in top bar on Login page" for="agca_login_banner_text">Change Login top bar text</label>
|
890 |
</th>
|
891 |
<td>
|
892 |
+
<textarea title="Changes 'Back to ...' text in top bar on Login page" rows="5" name="agca_login_banner_text" cols="40"><?php echo htmlspecialchars(get_option('agca_login_banner_text')); ?></textarea> <p><i>You should surround it with anchor tag <a></a>.</i></p>
|
893 |
</td>
|
894 |
</tr>
|
895 |
<tr valign="center">
|
897 |
<label title="If this field is not empty, image from provided url will be visible on Login page" for="agca_login_photo_url">Change Login header image</label>
|
898 |
</th>
|
899 |
<td>
|
900 |
+
<input title="If this field is not empty, image from provided url will be visible on Login page" type="text" size="47" name="agca_login_photo_url" value="<?php echo get_option('agca_login_photo_url'); ?>" />
|
901 |
<p><i>Put here link of new login photo (e.g http://www.photo.com/myphoto.jpg). Original photo dimensions are: 310px x 70px</i>.</p>
|
902 |
</td>
|
903 |
</tr>
|
906 |
<label title="Put here custom link to a web location, that will be triggered on image click" for="agca_login_photo_href">Change hyperlink on Login image</label>
|
907 |
</th>
|
908 |
<td>
|
909 |
+
<input title="Put here custom link to a web location, that will be triggered on image click" type="text" size="47" name="agca_login_photo_href" value="<?php echo get_option('agca_login_photo_href'); ?>" />
|
910 |
</td>
|
911 |
</tr>
|
912 |
<tr valign="center">
|
914 |
<label title="Remove login image completely" for="agca_login_photo_remove">Hide Login header image</label>
|
915 |
</th>
|
916 |
<td>
|
917 |
+
<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" '; ?> />
|
918 |
</td>
|
919 |
</tr>
|
920 |
</table>
|
923 |
/*ADMIN MENU*/
|
924 |
?>
|
925 |
<div id="section_admin_menu" style="display:none" class="ag_section">
|
926 |
+
<h2 class="section_title" tabindex="-1">Admin Menu Settings Page</h2>
|
927 |
<br />
|
928 |
+
<p style="font-style:italic" tabindex="0"><strong>Important: </strong>Please Turn off menu configuration before activating or disabling other plugins (or making any other changes to main menu). Use "Reset Settings" button to restore default values if anything went wrong.</p>
|
929 |
<br />
|
930 |
<table class="form-table" width="500px">
|
931 |
<tr valign="center" class="ag_table_major_options">
|
932 |
<td><label for="agca_admin_menu_turnonoff"><strong>Turn on/off admin menu configuration</strong></label></td>
|
933 |
+
<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> <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>
|
934 |
</tr>
|
935 |
<tr valign="center" class="ag_table_major_options">
|
936 |
+
<td><label for="agca_admin_menu_agca_button_only"><strong>Hide admin menu completly (administrator can see AG custom admin button)</strong></label></td>
|
937 |
+
<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>
|
938 |
</tr>
|
939 |
<tr valign="center">
|
940 |
<td colspan="2">
|
941 |
+
<div class="ag_table_heading"><h3 tabindex="0">Edit/Remove Menu Items</h3></div>
|
942 |
</td>
|
943 |
<td>
|
944 |
</td>
|
946 |
<tr>
|
947 |
<td colspan="2">
|
948 |
Reset to default values
|
949 |
+
<button type="button" id="ag_edit_adminmenu_reset_button" title="Reset menu settings to default values" name="ag_edit_adminmenu_reset_button">Reset Settings</button><br />
|
950 |
+
<p tabindex="0"><em>(click on menu link to show/hide its submenus below it)</em></p>
|
951 |
<table id="ag_edit_adminmenu">
|
952 |
<tr style="background-color:#999;">
|
953 |
<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>
|
963 |
<label title="This is arrow like separator between Dashboard and Posts button (by default)" for="agca_admin_menu_separator_first">Remove first items separator</label>
|
964 |
</th>
|
965 |
<td>
|
966 |
+
<input title="This is arrow like 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" '; ?> />
|
967 |
</td>
|
968 |
</tr>
|
969 |
<tr valign="center">
|
971 |
<label title="This is arrow like separator between Comments and Appearance button (by default)" for="agca_admin_menu_separator_second">Remove second items separator</label>
|
972 |
</th>
|
973 |
<td>
|
974 |
+
<input title="This is arrow like 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" '; ?> />
|
975 |
</td>
|
976 |
</tr>
|
977 |
<tr valign="center">
|
978 |
<td colspan="2">
|
979 |
+
<div class="ag_table_heading"><h3 tabindex="0">Add New Menu Items</h3></div>
|
980 |
</td>
|
981 |
<td>
|
982 |
</td>
|
987 |
<table id="ag_add_adminmenu">
|
988 |
<tr>
|
989 |
<td colspan="2">
|
990 |
+
name:<input type="text" size="47" title="New button visible name" id="ag_add_adminmenu_name" name="ag_add_adminmenu_name" />
|
991 |
+
url:<input type="text" size="47" title="New button link" id="ag_add_adminmenu_url" name="ag_add_adminmenu_url" />
|
992 |
+
<button type="button" id="ag_add_adminmenu_button" title="Add new item button" name="ag_add_adminmenu_button">Add new item</button>
|
993 |
</td><td></td>
|
994 |
</tr>
|
995 |
</table>
|
1000 |
</tr>
|
1001 |
</table>
|
1002 |
</div>
|
1003 |
+
<!--<div id="section_agca_settings" style="display:none" class="ag_section">
|
1004 |
+
<h2 class="section_title">AG Custom Admin Settings Page</h2>
|
1005 |
+
<br />
|
1006 |
+
<p style="font-style:italic"><strong>Info: </strong>These settings are for 'AG Custom Admin' plugin customization.</p>
|
1007 |
+
<br />
|
1008 |
+
<table class="form-table" width="500px">
|
1009 |
+
<tr valign="center" class="ag_table_major_options">
|
1010 |
+
<td><label for="agca_admin_menu_turnonoff">Turn OFF tooltips on mouseover, and put them as visible description near option</label></td>
|
1011 |
+
<td><input label="Set tooltips visible on page, without using mouse - checkbox" type="checkbox" id="aafasfsfdsf" name="asfdasfefe4" /></td>
|
1012 |
+
</tr>
|
1013 |
+
<tr valign="center" class="ag_table_major_options">
|
1014 |
+
<td><label title="This is text at the bottom of plugin page, with short description of plugin and plugin developer" for="tdfyt">Hide AGCA plugin footer text</label></td>
|
1015 |
+
<td><input label="Hide plugin's footer text description - checkbox" type="checkbox" id="aafasfsfdsf" name="asfdasfefe4" /></td>
|
1016 |
+
</tr>
|
1017 |
+
</table>
|
1018 |
+
</div>-->
|
1019 |
<br /><br /><br />
|
1020 |
<p class="submit">
|
1021 |
+
<input type="submit" title="Save changes button" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
1022 |
</p>
|
1023 |
|
1024 |
</form>
|
1025 |
</div>
|
1026 |
+
<p tabindex="0"><i><strong>Info:</strong> You can use HTML tags in text areas, e.g. <a href="http://www.mywebsite.com">Visit Us</a></i></p>
|
1027 |
<br />
|
1028 |
<br /><br /><br /><p id="agca_footer_support_info">Wordpress 'AG Custom Admin' plugin by Argonius. If You have any questions, ideas for future development or if You found a bug or having any issues regarding this plugin, please visit my <a href="http://wordpress.argonius.com/ag-custom-admin">SUPPORT</a> page. <br />You can also participate in development of this plugin if You <a href="http://wordpress.argonius.com/donate">BUY ME a DRINK</a> to refresh my energy for programming. Thanks!<br /><br />Have a nice blogging!</p><br />
|
1029 |
<?php
|
readme.txt
CHANGED
@@ -4,14 +4,14 @@ Donate link: http://wordpress.argonius.com/donate
|
|
4 |
Tags: admin, customize, hide, change admin
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.1.2
|
7 |
-
Stable tag: 1.2
|
8 |
|
9 |
Hide or change items in admin panel. Customize buttons from admin menu.
|
10 |
|
11 |
== Description ==
|
12 |
With this plugin You can hide or change unwanted items in admin and login pages.
|
13 |
For example, You can easily change header or footer text, remove unwanted options like Screen options, Help options or Favorites dropdown menu.
|
14 |
-
You can also completely change or hide buttons from admin menu, or add new customized
|
15 |
|
16 |
Here is the list of options:
|
17 |
|
@@ -34,7 +34,7 @@ Here is the list of options:
|
|
34 |
- Change/remove footer text
|
35 |
- Change/remove footer version text
|
36 |
|
37 |
-
|
38 |
- Hide Dashboard heading icon
|
39 |
- Change Dashboard heading text
|
40 |
- Add custom Dashboard content
|
@@ -64,7 +64,7 @@ For more information about the plugin please see: http://wordpress.argonius.com/
|
|
64 |
== Frequently Asked Questions ==
|
65 |
|
66 |
= My text is not in the right place. How to fix it? =
|
67 |
-
It is possible that WordPress
|
68 |
|
69 |
== Screenshots ==
|
70 |
|
@@ -74,16 +74,22 @@ It is possible that WordPress usualy wraps that text with some HTML tags. In tha
|
|
74 |
|
75 |
== Changelog ==
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
= 1.2 =
|
78 |
* All elements are grouped into small pages for better navigation.
|
79 |
-
* Added color styles and improved user
|
80 |
* Added settings page for fully control of main admin menu.
|
81 |
-
* Added support for
|
82 |
* Added support for changing items in admin menu.
|
83 |
* Added support for adding new custom items in admin menu.
|
84 |
-
* Added
|
85 |
* Deprecated 'Hide Dashboard button from main menu' in 'Dashboard settings'. This option can be used now in 'Admin menu settings'.
|
86 |
-
* Added settings for
|
87 |
* Added option "(but show 'Log Out' button)" for displaying 'Log Out' button if admin top bar is completely removed.
|
88 |
* Added option "Hide footer text".
|
89 |
* Added support for hidding new Wordpress release notification.
|
@@ -98,6 +104,9 @@ It is possible that WordPress usualy wraps that text with some HTML tags. In tha
|
|
98 |
|
99 |
== Upgrade Notice ==
|
100 |
|
|
|
|
|
|
|
101 |
= 1.2 =
|
102 |
This is major milestone of this plugin. All elements are grouped and organized into small pages for better navigation.
|
103 |
Settings are styled in better way and some attractive interactions are added to make using of this plugin very easy.
|
4 |
Tags: admin, customize, hide, change admin
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.1.2
|
7 |
+
Stable tag: 1.2.1
|
8 |
|
9 |
Hide or change items in admin panel. Customize buttons from admin menu.
|
10 |
|
11 |
== Description ==
|
12 |
With this plugin You can hide or change unwanted items in admin and login pages.
|
13 |
For example, You can easily change header or footer text, remove unwanted options like Screen options, Help options or Favorites dropdown menu.
|
14 |
+
You can also completely change or hide buttons from admin menu, or add new customized buttons.
|
15 |
|
16 |
Here is the list of options:
|
17 |
|
34 |
- Change/remove footer text
|
35 |
- Change/remove footer version text
|
36 |
|
37 |
+
Dashboard Page Options
|
38 |
- Hide Dashboard heading icon
|
39 |
- Change Dashboard heading text
|
40 |
- Add custom Dashboard content
|
64 |
== Frequently Asked Questions ==
|
65 |
|
66 |
= My text is not in the right place. How to fix it? =
|
67 |
+
It is possible that WordPress usually wraps that text with some HTML tags. In that case use one of HTML tags to surround your text, e.g. <h1>My text</h1>, or other (a, p, h2, h3.. etc.)
|
68 |
|
69 |
== Screenshots ==
|
70 |
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= 1.2.1 =
|
78 |
+
* Improved accessibility
|
79 |
+
* Optimization for screen readers
|
80 |
+
* Added sub-page titles
|
81 |
+
* Updated styles in edit admin menu table
|
82 |
+
|
83 |
= 1.2 =
|
84 |
* All elements are grouped into small pages for better navigation.
|
85 |
+
* Added color styles and improved user experience.
|
86 |
* Added settings page for fully control of main admin menu.
|
87 |
+
* Added support for hiding items from admin menu.
|
88 |
* Added support for changing items in admin menu.
|
89 |
* Added support for adding new custom items in admin menu.
|
90 |
+
* Added tool tips on option labels for better explanation of option.
|
91 |
* Deprecated 'Hide Dashboard button from main menu' in 'Dashboard settings'. This option can be used now in 'Admin menu settings'.
|
92 |
+
* Added settings for hiding/showing Dashboard widgets:"Recent Comments", "Incoming Links", "Plugins", "Quick Press", "Right Now", "Recent Drafts", primary widget area, secondary widget area.
|
93 |
* Added option "(but show 'Log Out' button)" for displaying 'Log Out' button if admin top bar is completely removed.
|
94 |
* Added option "Hide footer text".
|
95 |
* Added support for hidding new Wordpress release notification.
|
104 |
|
105 |
== Upgrade Notice ==
|
106 |
|
107 |
+
= 1.2.1 =
|
108 |
+
This is minor upgrade from 1.2 to 1.2.1 version. Mostly it is based on optimization for screen readers and improving accessibility. You definitly need to upgrade this plugin if you have version older than 1.2.
|
109 |
+
|
110 |
= 1.2 =
|
111 |
This is major milestone of this plugin. All elements are grouped and organized into small pages for better navigation.
|
112 |
Settings are styled in better way and some attractive interactions are added to make using of this plugin very easy.
|
script/ag_script.js
CHANGED
@@ -9,17 +9,23 @@ function booleanToChecked(bool){
|
|
9 |
|
10 |
function hideShowSubmenus(index){
|
11 |
|
12 |
-
var finish = false;
|
|
|
13 |
jQuery('#ag_edit_adminmenu td').each(function(){
|
14 |
if(jQuery('#ag_edit_adminmenu td').index(jQuery(this)) >= index && (finish == false)){
|
15 |
if(jQuery(this).hasClass('ag_admin_menu_child')){
|
16 |
jQuery(this).parent().toggleClass('noclass');
|
|
|
17 |
}
|
18 |
if((jQuery('#ag_edit_adminmenu td').index(jQuery(this)) > index) && jQuery(this).hasClass('ag_admin_menu_parent')){
|
19 |
finish = true;
|
20 |
}
|
21 |
}
|
22 |
});
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
|
25 |
/*
|
@@ -41,7 +47,10 @@ function prettyEditMenuPage(){
|
|
41 |
});
|
42 |
};
|
43 |
});
|
44 |
-
|
|
|
|
|
|
|
45 |
};
|
46 |
|
47 |
function createEditMenuPage(checkboxes,textboxes){
|
@@ -54,8 +63,10 @@ function createEditMenuPage(checkboxes,textboxes){
|
|
54 |
TBlength = 9999999;
|
55 |
}
|
56 |
|
|
|
57 |
jQuery('ul#adminmenu li').each(function(){
|
58 |
if(!jQuery(this).hasClass("wp-menu-separator") && !jQuery(this).hasClass("wp-menu-separator-last") && !jQuery(this).hasClass("ag-custom-button") && (counter < TBlength )){
|
|
|
59 |
//if subelement
|
60 |
if(jQuery(this).parent().parent().hasClass('wp-submenu')){
|
61 |
subElement = jQuery(this).find('a').text();
|
@@ -69,11 +80,11 @@ function createEditMenuPage(checkboxes,textboxes){
|
|
69 |
sub_item_text_value = textboxes[counter][1];
|
70 |
isHidden = checkboxes[counter][1];
|
71 |
}
|
72 |
-
jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_child'><div style=\"float:left\">"+subElement+"</div><div style=\"float:right\"><input type=\"checkbox\" class=\""+subElement+"\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></div></td><td class='ag_admin_menu_child2' ><input type=\"text\" class=\""+subElement+"\" size=\"47\" value=\""+sub_item_text_value+"\" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></td></tr>");
|
73 |
}
|
74 |
//if top element
|
75 |
else{
|
76 |
-
|
77 |
topElement = jQuery.trim(topElement);
|
78 |
var top_item_text_value;
|
79 |
var isHidden = "";
|
@@ -83,7 +94,7 @@ function createEditMenuPage(checkboxes,textboxes){
|
|
83 |
top_item_text_value = textboxes[counter][1];
|
84 |
isHidden = checkboxes[counter][1];
|
85 |
}
|
86 |
-
jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_parent'><br
|
87 |
}
|
88 |
counter++;
|
89 |
}
|
@@ -96,17 +107,21 @@ function createEditMenuPage(checkboxes,textboxes){
|
|
96 |
function showHideSection(text) {
|
97 |
switch(text)
|
98 |
{
|
99 |
-
case 'Admin Bar': jQuery('#section_admin_bar').show();
|
100 |
break;
|
101 |
-
case 'Admin Footer': jQuery('#section_admin_footer').show();
|
102 |
break;
|
103 |
-
case 'Dashboard Page': jQuery('#section_dashboard_page').show();
|
104 |
break;
|
105 |
-
case 'Login Page': jQuery('#section_login_page').show();
|
106 |
break;
|
107 |
-
case 'Admin Menu': jQuery('#section_admin_menu').show();
|
|
|
|
|
108 |
break;
|
109 |
-
default: jQuery('#section_admin_bar').show();
|
|
|
|
|
110 |
}
|
111 |
}
|
112 |
|
@@ -155,9 +170,8 @@ function reloadRemoveButtonEvents(){
|
|
155 |
|
156 |
jQuery(document).ready(function(){
|
157 |
/*Add click handler on main buttons*/
|
158 |
-
jQuery('#ag_main_menu li').bind('click',function(){
|
159 |
-
hideAllSections();
|
160 |
-
|
161 |
var text = jQuery(this).text();
|
162 |
jQuery(this).attr("class","selected");
|
163 |
showHideSection(text);
|
@@ -200,6 +214,10 @@ jQuery(document).ready(function(){
|
|
200 |
jQuery(this).attr('title', jQuery("#AGToolTipDiv").html());
|
201 |
});
|
202 |
});
|
|
|
|
|
|
|
|
|
203 |
});
|
204 |
|
205 |
/*CLICKING ON ITEMS HANDLING*/
|
9 |
|
10 |
function hideShowSubmenus(index){
|
11 |
|
12 |
+
var finish = false;
|
13 |
+
var found = false;
|
14 |
jQuery('#ag_edit_adminmenu td').each(function(){
|
15 |
if(jQuery('#ag_edit_adminmenu td').index(jQuery(this)) >= index && (finish == false)){
|
16 |
if(jQuery(this).hasClass('ag_admin_menu_child')){
|
17 |
jQuery(this).parent().toggleClass('noclass');
|
18 |
+
found = true;
|
19 |
}
|
20 |
if((jQuery('#ag_edit_adminmenu td').index(jQuery(this)) > index) && jQuery(this).hasClass('ag_admin_menu_parent')){
|
21 |
finish = true;
|
22 |
}
|
23 |
}
|
24 |
});
|
25 |
+
/*FOCUS*/
|
26 |
+
if(!jQuery('#ag_edit_adminmenu td').eq((index+2)).parent().hasClass('noclass') && (found == true)){
|
27 |
+
jQuery('#ag_edit_adminmenu td').eq((index+2)).find('a').trigger('focus');
|
28 |
+
};
|
29 |
}
|
30 |
|
31 |
/*
|
47 |
});
|
48 |
};
|
49 |
});
|
50 |
+
jQuery('#ag_edit_adminmenu td > a').bind('click',function(){
|
51 |
+
jQuery(this).parent().click();
|
52 |
+
//jQuery(this).parent().focus();
|
53 |
+
});
|
54 |
};
|
55 |
|
56 |
function createEditMenuPage(checkboxes,textboxes){
|
63 |
TBlength = 9999999;
|
64 |
}
|
65 |
|
66 |
+
var topElement="";
|
67 |
jQuery('ul#adminmenu li').each(function(){
|
68 |
if(!jQuery(this).hasClass("wp-menu-separator") && !jQuery(this).hasClass("wp-menu-separator-last") && !jQuery(this).hasClass("ag-custom-button") && (counter < TBlength )){
|
69 |
+
|
70 |
//if subelement
|
71 |
if(jQuery(this).parent().parent().hasClass('wp-submenu')){
|
72 |
subElement = jQuery(this).find('a').text();
|
80 |
sub_item_text_value = textboxes[counter][1];
|
81 |
isHidden = checkboxes[counter][1];
|
82 |
}
|
83 |
+
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>");
|
84 |
}
|
85 |
//if top element
|
86 |
else{
|
87 |
+
topElement = jQuery(this).children('a').clone().children().remove().end().text();
|
88 |
topElement = jQuery.trim(topElement);
|
89 |
var top_item_text_value;
|
90 |
var isHidden = "";
|
94 |
top_item_text_value = textboxes[counter][1];
|
95 |
isHidden = checkboxes[counter][1];
|
96 |
}
|
97 |
+
jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_parent'><br /><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>");
|
98 |
}
|
99 |
counter++;
|
100 |
}
|
107 |
function showHideSection(text) {
|
108 |
switch(text)
|
109 |
{
|
110 |
+
case 'Admin Bar': jQuery('#section_admin_bar').show(); jQuery('#section_admin_bar .section_title').trigger('focus');
|
111 |
break;
|
112 |
+
case 'Admin Footer': jQuery('#section_admin_footer').show(); jQuery('#section_admin_footer .section_title').trigger('focus');
|
113 |
break;
|
114 |
+
case 'Dashboard Page': jQuery('#section_dashboard_page').show(); jQuery('#section_dashboard_page .section_title').trigger('focus');
|
115 |
break;
|
116 |
+
case 'Login Page': jQuery('#section_login_page').show(); jQuery('#section_login_page .section_title').trigger('focus');
|
117 |
break;
|
118 |
+
case 'Admin Menu': jQuery('#section_admin_menu').show(); jQuery('#section_admin_menu .section_title').trigger('focus');
|
119 |
+
break;
|
120 |
+
case 'Plugin Settings': jQuery('#section_agca_settings').show(); jQuery('#section_agca_settings .section_title').trigger('focus');
|
121 |
break;
|
122 |
+
default: jQuery('#section_admin_bar').show(); jQuery('#section_admin_bar .section_title').trigger('focus');
|
123 |
+
|
124 |
+
|
125 |
}
|
126 |
}
|
127 |
|
170 |
|
171 |
jQuery(document).ready(function(){
|
172 |
/*Add click handler on main buttons*/
|
173 |
+
jQuery('#ag_main_menu a, #ag_main_menu li').bind('click',function(){
|
174 |
+
hideAllSections();
|
|
|
175 |
var text = jQuery(this).text();
|
176 |
jQuery(this).attr("class","selected");
|
177 |
showHideSection(text);
|
214 |
jQuery(this).attr('title', jQuery("#AGToolTipDiv").html());
|
215 |
});
|
216 |
});
|
217 |
+
|
218 |
+
/*SECTION FOCUS*/
|
219 |
+
jQuery('.section_title').focus(function(){
|
220 |
+
});
|
221 |
});
|
222 |
|
223 |
/*CLICKING ON ITEMS HANDLING*/
|
style/ag_style.css
CHANGED
@@ -24,6 +24,10 @@
|
|
24 |
background-color:#A9F500;
|
25 |
cursor:pointer;
|
26 |
}
|
|
|
|
|
|
|
|
|
27 |
.ag_table_heading{
|
28 |
background-color:#A9F5A9;
|
29 |
display:block;
|
@@ -72,13 +76,17 @@ td.ag_admin_menu_parent:hover{
|
|
72 |
}
|
73 |
#ag_edit_adminmenu td.ag_admin_menu_child {
|
74 |
margin:0;
|
75 |
-
padding:
|
76 |
padding-top:0;
|
77 |
-
padding-bottom:0;
|
78 |
}
|
79 |
#ag_edit_adminmenu th h2{
|
80 |
color:#fff;
|
81 |
}
|
|
|
|
|
|
|
|
|
82 |
#adminmenu{
|
83 |
display:none;
|
84 |
}
|
@@ -91,4 +99,4 @@ td.ag_admin_menu_parent:hover{
|
|
91 |
color:#555;
|
92 |
border:1px solid green;
|
93 |
padding:20px;
|
94 |
-
}
|
24 |
background-color:#A9F500;
|
25 |
cursor:pointer;
|
26 |
}
|
27 |
+
#ag_main_menu li a{
|
28 |
+
text-decoration:none;
|
29 |
+
color: green;
|
30 |
+
}
|
31 |
.ag_table_heading{
|
32 |
background-color:#A9F5A9;
|
33 |
display:block;
|
76 |
}
|
77 |
#ag_edit_adminmenu td.ag_admin_menu_child {
|
78 |
margin:0;
|
79 |
+
padding:15px;
|
80 |
padding-top:0;
|
81 |
+
padding-bottom:0;
|
82 |
}
|
83 |
#ag_edit_adminmenu th h2{
|
84 |
color:#fff;
|
85 |
}
|
86 |
+
#ag_edit_adminmenu a{
|
87 |
+
text-decoration:none;
|
88 |
+
color:#444;
|
89 |
+
}
|
90 |
#adminmenu{
|
91 |
display:none;
|
92 |
}
|
99 |
color:#555;
|
100 |
border:1px solid green;
|
101 |
padding:20px;
|
102 |
+
}
|