Version Description
- Initial version
=
Download this release
Release Info
Developer | argonius |
Plugin | Absolutely Glamorous Custom Admin |
Version | 1.0 |
Comparing to | |
See all releases |
Version 1.0
- plugin.php +522 -0
- readme.txt +64 -0
- screenshot-1.jpg +0 -0
- screenshot-2.jpg +0 -0
plugin.php
ADDED
@@ -0,0 +1,522 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
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.
|
6 |
+
Author: Argonius
|
7 |
+
Version: 1.0
|
8 |
+
Author URI: http://wordpress.argonius.com/ag-custom-admin
|
9 |
+
|
10 |
+
Copyright 2011. Argonius (email : info@argonius.com)
|
11 |
+
|
12 |
+
This program is free software: you can redistribute it and/or modify
|
13 |
+
it under the terms of the GNU General Public License as published by
|
14 |
+
the Free Software Foundation, either version 3 of the License, or
|
15 |
+
(at your option) any later version.
|
16 |
+
|
17 |
+
This program is distributed in the hope that it will be useful,
|
18 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
+
GNU General Public License for more details.
|
21 |
+
|
22 |
+
You should have received a copy of the GNU General Public License
|
23 |
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
24 |
+
*/
|
25 |
+
|
26 |
+
|
27 |
+
|
28 |
+
$agca = new AGCA();
|
29 |
+
|
30 |
+
class AGCA{
|
31 |
+
|
32 |
+
public function __construct()
|
33 |
+
{
|
34 |
+
add_filter('plugin_row_meta', array(&$this,'jk_filter_plugin_links'), 10, 2);
|
35 |
+
add_action('admin_init', array(&$this,'agca_register_settings'));
|
36 |
+
add_action('admin_head', array(&$this,'print_admin_css'));
|
37 |
+
add_action('login_head', array(&$this,'print_login_head'));
|
38 |
+
add_action('admin_menu', array(&$this,'agca_create_menu'));
|
39 |
+
register_deactivation_hook(__FILE__, array(&$this,'agca_deactivate'));
|
40 |
+
}
|
41 |
+
// Add donate and support information
|
42 |
+
function jk_filter_plugin_links($links, $file)
|
43 |
+
{
|
44 |
+
if ( $file == plugin_basename(__FILE__) )
|
45 |
+
{
|
46 |
+
$links[] = '<a href="tools.php?page=ag-custom-admin/plugin.php">' . __('Settings') . '</a>';
|
47 |
+
$links[] = '<a href="http://wordpress.argonius.com/ag-custom-admin">' . __('Support') . '</a>';
|
48 |
+
$links[] = '<a href="http://wordpress.argonius.com/donate">' . __('Donate') . '</a>';
|
49 |
+
}
|
50 |
+
return $links;
|
51 |
+
}
|
52 |
+
|
53 |
+
function reloadScript(){
|
54 |
+
?>
|
55 |
+
<script type="text/javascript" src="<?php echo get_settings('home'); ?>/wp-includes/js/jquery/jquery.js"></script>
|
56 |
+
<?php
|
57 |
+
}
|
58 |
+
|
59 |
+
function agca_register_settings() {
|
60 |
+
register_setting( 'agca-options-group', 'agca_screen_options_menu' );
|
61 |
+
register_setting( 'agca-options-group', 'agca_help_menu' );
|
62 |
+
register_setting( 'agca-options-group', 'agca_logout' );
|
63 |
+
register_setting( 'agca-options-group', 'agca_logout_only' );
|
64 |
+
register_setting( 'agca-options-group', 'agca_options_menu' );
|
65 |
+
register_setting( 'agca-options-group', 'agca_howdy' );
|
66 |
+
register_setting( 'agca-options-group', 'agca_header' );
|
67 |
+
register_setting( 'agca-options-group', 'agca_footer' );
|
68 |
+
register_setting( 'agca-options-group', 'agca_privacy_options' );
|
69 |
+
register_setting( 'agca-options-group', 'agca_header_logo' );
|
70 |
+
register_setting( 'agca-options-group', 'agca_site_heading' );
|
71 |
+
register_setting( 'agca-options-group', 'agca_custom_site_heading' );
|
72 |
+
register_setting( 'agca-options-group', 'agca_update_bar' );
|
73 |
+
|
74 |
+
register_setting( 'agca-options-group', 'agca_footer_left' );
|
75 |
+
register_setting( 'agca-options-group', 'agca_footer_right' );
|
76 |
+
register_setting( 'agca-options-group', 'agca_footer_right_hide' );
|
77 |
+
|
78 |
+
register_setting( 'agca-options-group', 'agca_login_banner' );
|
79 |
+
register_setting( 'agca-options-group', 'agca_login_banner_text' );
|
80 |
+
register_setting( 'agca-options-group', 'agca_login_photo_remove' );
|
81 |
+
register_setting( 'agca-options-group', 'agca_login_photo_url' );
|
82 |
+
register_setting( 'agca-options-group', 'agca_login_photo_href' );
|
83 |
+
|
84 |
+
register_setting( 'agca-options-group', 'agca_menu_dashboard' );
|
85 |
+
register_setting( 'agca-options-group', 'agca_dashboard_icon' );
|
86 |
+
register_setting( 'agca-options-group', 'agca_dashboard_text' );
|
87 |
+
register_setting( 'agca-options-group', 'agca_dashboard_text_paragraph' );
|
88 |
+
|
89 |
+
}
|
90 |
+
|
91 |
+
function agca_deactivate() {
|
92 |
+
delete_option( 'agca_screen_options_menu' );
|
93 |
+
delete_option( 'agca_help_menu' );
|
94 |
+
delete_option( 'agca_logout' );
|
95 |
+
delete_option( 'agca_logout_only' );
|
96 |
+
delete_option( 'agca_options_menu' );
|
97 |
+
delete_option( 'agca_howdy' );
|
98 |
+
delete_option( 'agca_header' );
|
99 |
+
delete_option( 'agca_footer' );
|
100 |
+
delete_option( 'agca_privacy_options' );
|
101 |
+
delete_option( 'agca_header_logo' );
|
102 |
+
delete_option( 'agca_site_heading' );
|
103 |
+
delete_option( 'agca_custom_site_heading' );
|
104 |
+
delete_option( 'agca_update_bar' );
|
105 |
+
|
106 |
+
delete_option( 'agca_footer_left' );
|
107 |
+
delete_option( 'agca_footer_right' );
|
108 |
+
delete_option( 'agca_footer_right_hide' );
|
109 |
+
|
110 |
+
delete_option( 'agca_login_banner' );
|
111 |
+
delete_option( 'agca_login_banner_text' );
|
112 |
+
delete_option( 'agca_login_photo_remove' );
|
113 |
+
delete_option( 'agca_login_photo_url' );
|
114 |
+
delete_option( 'agca_login_photo_href' );
|
115 |
+
|
116 |
+
|
117 |
+
delete_option( 'agca_menu_dashboard' );
|
118 |
+
delete_option( 'agca_dashboard_icon' );
|
119 |
+
delete_option( 'agca_dashboard_text' );
|
120 |
+
delete_option( 'agca_dashboard_text_paragraph' );
|
121 |
+
|
122 |
+
|
123 |
+
|
124 |
+
}
|
125 |
+
function agca_create_menu() {
|
126 |
+
//create new top-level menu
|
127 |
+
add_management_page( 'AG Custom Admin', 'AG Custom Admin', 'administrator', __FILE__, array(&$this,'agca_admin_page') );
|
128 |
+
}
|
129 |
+
|
130 |
+
function print_admin_css()
|
131 |
+
{?>
|
132 |
+
<script type="text/javascript">
|
133 |
+
/* <![CDATA[ */
|
134 |
+
jQuery(document).ready(function() {
|
135 |
+
|
136 |
+
<?php if(get_option('agca_screen_options_menu')==true){ ?>
|
137 |
+
jQuery("#screen-options-link-wrap").css("display","none");
|
138 |
+
<?php } ?>
|
139 |
+
<?php if(get_option('agca_help_menu')==true){ ?>
|
140 |
+
jQuery("#contextual-help-link-wrap").css("display","none");
|
141 |
+
<?php } ?>
|
142 |
+
<?php if(get_option('agca_options_menu')==true){ ?>
|
143 |
+
jQuery("#favorite-actions").css("display","none");
|
144 |
+
<?php } ?>
|
145 |
+
<?php if(get_option('agca_privacy_options')==true){ ?>
|
146 |
+
jQuery("#privacy-on-link").css("display","none");
|
147 |
+
<?php } ?>
|
148 |
+
<?php if(get_option('agca_header_logo')==true){ ?>
|
149 |
+
jQuery("#wphead #header-logo").css("display","none");
|
150 |
+
<?php } ?>
|
151 |
+
<?php if(get_option('agca_site_heading')==true){ ?>
|
152 |
+
jQuery("#wphead #site-heading").css("display","none");
|
153 |
+
<?php } ?>
|
154 |
+
<?php if(get_option('agca_custom_site_heading')!=""){ ?>
|
155 |
+
jQuery("#wphead #site-heading").after('<h1><?php echo get_option('agca_custom_site_heading'); ?></h1>');
|
156 |
+
<?php } ?>
|
157 |
+
<?php if(get_option('agca_update_bar')==true){ ?>
|
158 |
+
jQuery(".update-nag").css("display","none");
|
159 |
+
<?php } ?>
|
160 |
+
<?php if(get_option('agca_header')==true){ ?>
|
161 |
+
jQuery("#wphead").css("display","none");
|
162 |
+
<?php } ?>
|
163 |
+
<?php if(get_option('agca_footer')==true){ ?>
|
164 |
+
jQuery("#footer").css("display","none");
|
165 |
+
<?php } ?>
|
166 |
+
<?php if(get_option('agca_howdy')!=""){ ?>
|
167 |
+
var howdyText = jQuery("#user_info").html();
|
168 |
+
jQuery("#user_info").html("<p>"+"<?php echo get_option('agca_howdy'); ?>"+howdyText.substr(9));
|
169 |
+
<?php } ?>
|
170 |
+
<?php if(get_option('agca_logout')!=""){ ?>
|
171 |
+
jQuery("#user_info a:eq(1)").text("<?php echo get_option('agca_logout'); ?>");
|
172 |
+
<?php } ?>
|
173 |
+
<?php if(get_option('agca_logout_only')==true){ ?>
|
174 |
+
var logoutText = jQuery("#user_info a:nth-child(2)").text();
|
175 |
+
var logoutLink = jQuery("#user_info a:nth-child(2)").attr("href");
|
176 |
+
jQuery("#user_info").html("<a href=\""+logoutLink+"\" title=\"Log Out\">"+logoutText+"</a>");
|
177 |
+
<?php } ?>
|
178 |
+
|
179 |
+
|
180 |
+
<?php if(get_option('agca_footer_left')!=""){ ?>
|
181 |
+
jQuery("#footer-left").html('<?php echo get_option('agca_footer_left'); ?>');
|
182 |
+
<?php } ?>
|
183 |
+
<?php if(get_option('agca_footer_right')!=""){ ?>
|
184 |
+
jQuery("#footer-upgrade").html('<?php echo get_option('agca_footer_right'); ?>');
|
185 |
+
<?php } ?>
|
186 |
+
<?php if(get_option('agca_footer_right_hide')==true){ ?>
|
187 |
+
jQuery("#footer-upgrade").css("display","none");
|
188 |
+
<?php } ?>
|
189 |
+
|
190 |
+
<?php if(get_option('agca_language_bar')==true){ ?>
|
191 |
+
jQuery("#user_info p").append('<?php include("language_bar/language_bar.php"); ?>');
|
192 |
+
<?php } ?>
|
193 |
+
<?php if(get_option('agca_menu_dashboard')==true){ ?>
|
194 |
+
jQuery("#adminmenu #menu-dashboard").css("display","none");
|
195 |
+
<?php } ?>
|
196 |
+
<?php if(get_option('agca_dashboard_icon')==true){ ?>
|
197 |
+
var className = jQuery("#icon-index").attr("class");
|
198 |
+
if(className=='icon32'){
|
199 |
+
jQuery("#icon-index").attr("id","icon-index-removed");
|
200 |
+
}
|
201 |
+
<?php } ?>
|
202 |
+
<?php if(get_option('agca_dashboard_text')!=""){ ?>
|
203 |
+
jQuery("#dashboard-widgets-wrap").parent().find("h2").text("<?php echo get_option('agca_dashboard_text'); ?>");
|
204 |
+
<?php } ?>
|
205 |
+
<?php if(get_option('agca_dashboard_text_paragraph')!=""){ ?>
|
206 |
+
jQuery("#wpbody-content #dashboard-widgets-wrap").before('<br /><p style=\"text-indent:45px;\"><?php echo get_option('agca_dashboard_text_paragraph'); ?></p>');
|
207 |
+
<?php } ?>
|
208 |
+
|
209 |
+
|
210 |
+
|
211 |
+
});
|
212 |
+
/* ]]> */
|
213 |
+
</script>
|
214 |
+
<style type="text/css">
|
215 |
+
.underline_text{
|
216 |
+
text-decoration:underline;
|
217 |
+
}
|
218 |
+
</style>
|
219 |
+
<?php
|
220 |
+
}
|
221 |
+
|
222 |
+
function print_login_head(){
|
223 |
+
|
224 |
+
$this->reloadScript();
|
225 |
+
?>
|
226 |
+
<script type="text/javascript">
|
227 |
+
/* <![CDATA[ */
|
228 |
+
jQuery(document).ready(function() {
|
229 |
+
|
230 |
+
<?php if(get_option('agca_login_banner')==true){ ?>
|
231 |
+
jQuery("#backtoblog").css("display","none");
|
232 |
+
<?php } ?>
|
233 |
+
<?php if(get_option('agca_login_banner_text')==true){ ?>
|
234 |
+
jQuery("#backtoblog").html('<?php echo get_option('agca_login_banner_text'); ?>');
|
235 |
+
<?php } ?>
|
236 |
+
<?php if(get_option('agca_login_photo_url')==true){ ?>
|
237 |
+
var $url = "url(" + "<?php echo get_option('agca_login_photo_url'); ?>" + ")";
|
238 |
+
jQuery("#login h1 a").css("background-image",$url);
|
239 |
+
<?php } ?>
|
240 |
+
<?php if(get_option('agca_login_photo_href')==true){ ?>
|
241 |
+
var $href = "<?php echo get_option('agca_login_photo_href'); ?>";
|
242 |
+
jQuery("#login h1 a").attr("href",$href);
|
243 |
+
<?php } ?>
|
244 |
+
<?php if(get_option('agca_login_photo_remove')==true){ ?>
|
245 |
+
jQuery("#login h1 a").css("display","none");
|
246 |
+
<?php } ?>
|
247 |
+
|
248 |
+
jQuery("#login h1 a").attr("title","");
|
249 |
+
});
|
250 |
+
/* ]]> */
|
251 |
+
</script>
|
252 |
+
<?php
|
253 |
+
}
|
254 |
+
|
255 |
+
function agca_admin_page() {
|
256 |
+
?>
|
257 |
+
<div class="wrap">
|
258 |
+
<h1>AG Custom Admin Options</h1>
|
259 |
+
<br />
|
260 |
+
<form method="post" action="options.php">
|
261 |
+
<?php settings_fields( 'agca-options-group' ); ?>
|
262 |
+
<table class="form-table">
|
263 |
+
<tr valign="center">
|
264 |
+
<th scope="row">
|
265 |
+
<h2>Header Options</h2>
|
266 |
+
</th>
|
267 |
+
</tr>
|
268 |
+
<br />
|
269 |
+
<tr valign="center">
|
270 |
+
<td scope="row">
|
271 |
+
<label for="agca_header"><p><strong>Hide header completely</strong></p></label>
|
272 |
+
</td>
|
273 |
+
<td scope="row">
|
274 |
+
<input type="checkbox" name="agca_header" value="true" <?php if (get_option('agca_header')==true) echo 'checked="checked" '; ?> />
|
275 |
+
</td>
|
276 |
+
</tr>
|
277 |
+
<tr valign="center">
|
278 |
+
<th scope="row">
|
279 |
+
<br /><p class="underline_text">On left:</p>
|
280 |
+
</th>
|
281 |
+
<td>
|
282 |
+
</td>
|
283 |
+
</tr>
|
284 |
+
<tr valign="center">
|
285 |
+
<th scope="row">
|
286 |
+
<label for="agca_privacy_options">Hide Privacy link</label>
|
287 |
+
</th>
|
288 |
+
<td>
|
289 |
+
<input type="checkbox" name="agca_privacy_options" value="true" <?php if (get_option('agca_privacy_options')==true) echo 'checked="checked" '; ?> />
|
290 |
+
</td>
|
291 |
+
</tr>
|
292 |
+
<tr valign="center">
|
293 |
+
<th scope="row">
|
294 |
+
<label for="agca_header_logo">Hide header logo</label>
|
295 |
+
</th>
|
296 |
+
<td>
|
297 |
+
<input type="checkbox" name="agca_header_logo" value="true" <?php if (get_option('agca_header_logo')==true) echo 'checked="checked" '; ?> />
|
298 |
+
</td>
|
299 |
+
</tr>
|
300 |
+
<tr valign="center">
|
301 |
+
<th scope="row">
|
302 |
+
<label for="agca_custom_site_heading">Custom site heading</label>
|
303 |
+
</th>
|
304 |
+
<td>
|
305 |
+
<textarea rows="5" name="agca_custom_site_heading" cols="40"><?php echo htmlspecialchars(get_option('agca_custom_site_heading')); ?>
|
306 |
+
</textarea><p><em><strong>Info: </strong>Use 'h1' and/or 'a' tag</em></p>
|
307 |
+
</td>
|
308 |
+
</tr>
|
309 |
+
<tr valign="center">
|
310 |
+
<th scope="row">
|
311 |
+
<label for="agca_update_bar">Hide WP update to latest version notification</label>
|
312 |
+
</th>
|
313 |
+
<td>
|
314 |
+
<input type="checkbox" name="agca_update_bar" value="true" <?php if (get_option('agca_update_bar')==true) echo 'checked="checked" '; ?> />
|
315 |
+
</td>
|
316 |
+
</tr>
|
317 |
+
<tr valign="center">
|
318 |
+
<th scope="row">
|
319 |
+
<label for="agca_site_heading">Hide original site heading</label>
|
320 |
+
</th>
|
321 |
+
<td>
|
322 |
+
<input type="checkbox" name="agca_site_heading" value="true" <?php if (get_option('agca_site_heading')==true) echo 'checked="checked" '; ?> />
|
323 |
+
</td>
|
324 |
+
</tr>
|
325 |
+
<tr valign="center">
|
326 |
+
<th scope="row">
|
327 |
+
<br /><p class="underline_text">On right</p>
|
328 |
+
</th>
|
329 |
+
<td>
|
330 |
+
</td>
|
331 |
+
</tr>
|
332 |
+
<tr valign="center">
|
333 |
+
<th scope="row">
|
334 |
+
<label for="agca_screen_options_menu-options">Hide Screen Options menu</label>
|
335 |
+
</th>
|
336 |
+
<td>
|
337 |
+
<input type="checkbox" name="agca_screen_options_menu" value="true" <?php if (get_option('agca_screen_options_menu')==true) echo 'checked="checked" '; ?> />
|
338 |
+
</td>
|
339 |
+
</tr>
|
340 |
+
<tr valign="center">
|
341 |
+
<th scope="row">
|
342 |
+
<label for="agca_help_menu">Hide Help menu</label>
|
343 |
+
</th>
|
344 |
+
<td>
|
345 |
+
<input type="checkbox" name="agca_help_menu" value="true" <?php if (get_option('agca_help_menu')==true) echo 'checked="checked" '; ?> />
|
346 |
+
</td>
|
347 |
+
</tr>
|
348 |
+
<tr valign="center">
|
349 |
+
<th scope="row">
|
350 |
+
<label for="agca_options_menu">Hide Favorite Actions</label>
|
351 |
+
</th>
|
352 |
+
<td>
|
353 |
+
<input type="checkbox" name="agca_options_menu" value="true" <?php if (get_option('agca_options_menu')==true) echo 'checked="checked" '; ?> />
|
354 |
+
</td>
|
355 |
+
</tr>
|
356 |
+
<tr valign="center">
|
357 |
+
<th scope="row">
|
358 |
+
<label for="agca_howdy">Change Howdy text</label>
|
359 |
+
</th>
|
360 |
+
<td><input type="text" size="47" name="agca_howdy" value="<?php echo get_option('agca_howdy'); ?>" /></td>
|
361 |
+
</tr>
|
362 |
+
<tr valign="center">
|
363 |
+
<th scope="row">
|
364 |
+
<label for="agca_logout">Change Log out text</label>
|
365 |
+
</th>
|
366 |
+
<td><input type="text" size="47" name="agca_logout" value="<?php echo get_option('agca_logout'); ?>" /></td>
|
367 |
+
</tr>
|
368 |
+
<tr valign="center">
|
369 |
+
<th scope="row">
|
370 |
+
<label for="agca_logout_only">Log out only</label>
|
371 |
+
</th>
|
372 |
+
<td>
|
373 |
+
<input type="checkbox" name="agca_logout_only" value="true" <?php if (get_option('agca_logout_only')==true) echo 'checked="checked" '; ?> />
|
374 |
+
</td>
|
375 |
+
</tr>
|
376 |
+
|
377 |
+
<tr valign="center">
|
378 |
+
<th scope="row">
|
379 |
+
<br /><br /><br /><h2>Footer Options</h2>
|
380 |
+
</th>
|
381 |
+
<td>
|
382 |
+
</td>
|
383 |
+
</tr>
|
384 |
+
<tr valign="center">
|
385 |
+
<th scope="row">
|
386 |
+
<label for="agca_footer"><p><strong>Hide footer completely</strong></p></label>
|
387 |
+
</th>
|
388 |
+
<td>
|
389 |
+
<input type="checkbox" name="agca_footer" value="true" <?php if (get_option('agca_footer')==true) echo 'checked="checked" '; ?> />
|
390 |
+
</td>
|
391 |
+
</tr>
|
392 |
+
<tr valign="center">
|
393 |
+
<th scope="row">
|
394 |
+
<label for="agca_footer_left">Change footer text</label>
|
395 |
+
</th>
|
396 |
+
<td>
|
397 |
+
<textarea rows="5" name="agca_footer_left" cols="40"><?php echo htmlspecialchars(get_option('agca_footer_left')); ?>
|
398 |
+
</textarea>
|
399 |
+
</td>
|
400 |
+
</tr>
|
401 |
+
<tr valign="center">
|
402 |
+
<th scope="row">
|
403 |
+
<label for="agca_footer_right_hide">Hide version text</label>
|
404 |
+
</th>
|
405 |
+
<td><input type="checkbox" name="agca_footer_right_hide" value="true" <?php if (get_option('agca_footer_right_hide')==true) echo 'checked="checked" '; ?> />
|
406 |
+
</td>
|
407 |
+
</tr>
|
408 |
+
<tr valign="center">
|
409 |
+
<th scope="row">
|
410 |
+
<label for="agca_footer_right">Change version text</label>
|
411 |
+
</th>
|
412 |
+
<td>
|
413 |
+
<textarea rows="5" name="agca_footer_right" cols="40"><?php echo htmlspecialchars(get_option('agca_footer_right')); ?>
|
414 |
+
</textarea>
|
415 |
+
</td>
|
416 |
+
</tr>
|
417 |
+
<tr valign="center">
|
418 |
+
<th scope="row" colspan="2">
|
419 |
+
<br /><br /><br /><h2>Dashboard Options</h2>
|
420 |
+
</th>
|
421 |
+
<td>
|
422 |
+
</td>
|
423 |
+
</tr>
|
424 |
+
<tr valign="center">
|
425 |
+
<th scope="row">
|
426 |
+
<label for="agca_dashboard_icon">Hide Dashboard icon</label>
|
427 |
+
</th>
|
428 |
+
<td>
|
429 |
+
<input type="checkbox" name="agca_dashboard_icon" value="true" <?php if (get_option('agca_dashboard_icon')==true) echo 'checked="checked" '; ?> />
|
430 |
+
</td>
|
431 |
+
</tr>
|
432 |
+
<tr valign="center">
|
433 |
+
<th scope="row">
|
434 |
+
<label for="agca_dashboard_text">Change Dashboard text</label>
|
435 |
+
</th>
|
436 |
+
<td><input type="text" size="47" name="agca_dashboard_text" value="<?php echo get_option('agca_dashboard_text'); ?>" /></td>
|
437 |
+
</tr>
|
438 |
+
<tr valign="center">
|
439 |
+
<th scope="row">
|
440 |
+
<label for="agca_dashboard_text_paragraph">Add Dashboard paragraph text</label>
|
441 |
+
</th>
|
442 |
+
<td>
|
443 |
+
<textarea rows="5" name="agca_dashboard_text_paragraph" cols="40"><?php echo htmlspecialchars(get_option('agca_dashboard_text_paragraph')); ?>
|
444 |
+
</textarea>
|
445 |
+
</td>
|
446 |
+
</tr>
|
447 |
+
<tr valign="center">
|
448 |
+
<th scope="row">
|
449 |
+
<label for="agca_menu_dashboard">Hide Dashboard from menu</label>
|
450 |
+
</th>
|
451 |
+
<td>
|
452 |
+
<input type="checkbox" name="agca_menu_dashboard" value="true" <?php if (get_option('agca_menu_dashboard')==true) echo 'checked="checked" '; ?> />
|
453 |
+
</td>
|
454 |
+
</tr>
|
455 |
+
<tr><td>
|
456 |
+
<p><i><strong>Info:</strong> To remove Dashboard widgets go to Screen Options on Dashboard page.</i></p>
|
457 |
+
</td>
|
458 |
+
</tr>
|
459 |
+
<tr valign="top">
|
460 |
+
<th scope="row" colspan="2">
|
461 |
+
<br /><br /><br /><h2>Login Page Options</h2>
|
462 |
+
</th>
|
463 |
+
<td>
|
464 |
+
</td>
|
465 |
+
</tr>
|
466 |
+
<tr valign="center">
|
467 |
+
<th scope="row">
|
468 |
+
<label for="agca_login_banner"><strong>Hide Login top bar completely</strong></label>
|
469 |
+
</th>
|
470 |
+
<td>
|
471 |
+
<input type="checkbox" name="agca_login_banner" value="true" <?php if (get_option('agca_login_banner')==true) echo 'checked="checked" '; ?> />
|
472 |
+
</td>
|
473 |
+
</tr>
|
474 |
+
<tr valign="center">
|
475 |
+
<th scope="row">
|
476 |
+
<label for="agca_login_banner_text">Change Login top bar text</label>
|
477 |
+
</th>
|
478 |
+
<td>
|
479 |
+
<textarea rows="5" name="agca_login_banner_text" cols="40"><?php echo htmlspecialchars(get_option('agca_login_banner_text')); ?>
|
480 |
+
</textarea> <p><i>You should surround it with anchor tag <a></a>.</i></p>
|
481 |
+
</td>
|
482 |
+
</tr>
|
483 |
+
<tr valign="center">
|
484 |
+
<th scope="row">
|
485 |
+
<label for="agca_login_photo_url">Change Login header image</label>
|
486 |
+
</th>
|
487 |
+
<td>
|
488 |
+
<input type="text" size="47" name="agca_login_photo_url" value="<?php echo get_option('agca_login_photo_url'); ?>" />
|
489 |
+
<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>
|
490 |
+
</td>
|
491 |
+
</tr>
|
492 |
+
<tr valign="center">
|
493 |
+
<th scope="row">
|
494 |
+
<label for="agca_login_photo_href">Change hyperlink on Login image</label>
|
495 |
+
</th>
|
496 |
+
<td>
|
497 |
+
<input type="text" size="47" name="agca_login_photo_href" value="<?php echo get_option('agca_login_photo_href'); ?>" />
|
498 |
+
</td>
|
499 |
+
</tr>
|
500 |
+
<tr valign="center">
|
501 |
+
<th scope="row">
|
502 |
+
<label for="agca_login_photo_remove">Hide Login header image</label>
|
503 |
+
</th>
|
504 |
+
<td>
|
505 |
+
<input type="checkbox" name="agca_login_photo_remove" value="true" <?php if (get_option('agca_login_photo_remove')==true) echo 'checked="checked" '; ?> />
|
506 |
+
</td>
|
507 |
+
</tr>
|
508 |
+
</table>
|
509 |
+
<br /><br /><br />
|
510 |
+
<p class="submit">
|
511 |
+
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
512 |
+
</p>
|
513 |
+
|
514 |
+
</form>
|
515 |
+
</div>
|
516 |
+
<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>
|
517 |
+
<br />
|
518 |
+
<br /><br /><br /><br />
|
519 |
+
<?php
|
520 |
+
}
|
521 |
+
}
|
522 |
+
?>
|
readme.txt
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== AG Custom Admin ===
|
2 |
+
Contributors: argonius
|
3 |
+
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.1
|
7 |
+
Stable tag: 1.0
|
8 |
+
|
9 |
+
Hide or change items in admin panel.
|
10 |
+
|
11 |
+
== Description ==
|
12 |
+
With this plugin You can hide or change unwanted items from admin and login page.
|
13 |
+
You can easily change header or footer text, remove unwanted options like Screen options, Help options
|
14 |
+
or Favorites dropdown menu.
|
15 |
+
|
16 |
+
Here is the list of options:
|
17 |
+
|
18 |
+
- Change text in admin header
|
19 |
+
- Change text in admin footer
|
20 |
+
- Hide admin header completely
|
21 |
+
- Hide admin footer completely
|
22 |
+
- Hide login image
|
23 |
+
- Hide top login bar
|
24 |
+
- Change Howdy text
|
25 |
+
- Remove Howdy text
|
26 |
+
- Change LogOut text
|
27 |
+
- Change login photo. Add custom photo
|
28 |
+
- Change text in login top bar
|
29 |
+
- Change Dashboard text
|
30 |
+
- Add Custom text on Dashboard page, or add custom HTML content.
|
31 |
+
- Custom text supports HTML tags. You can add custom links to your website
|
32 |
+
- Remove default header icon
|
33 |
+
- Remove Favorites menu from header
|
34 |
+
- Remove Help menu from header
|
35 |
+
- Remove Screen options from header
|
36 |
+
- Remove Dashboard button from admin menu
|
37 |
+
|
38 |
+
For more information about the plugin please see: http://wordpress.argonius.com/ag-custom-admin
|
39 |
+
|
40 |
+
== Installation ==
|
41 |
+
|
42 |
+
1. Upload `ag-custom-admin` directory to the `/wp-content/plugins/` directory
|
43 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress
|
44 |
+
3. Activated plugin should appear in 'Tools' menu
|
45 |
+
|
46 |
+
== Frequently Asked Questions ==
|
47 |
+
|
48 |
+
= My text is not in the right place. How to fix it? =
|
49 |
+
It is possible that WordPress usualy 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.)
|
50 |
+
|
51 |
+
== Screenshots ==
|
52 |
+
|
53 |
+
1. Text in header or footer could be customized.
|
54 |
+
2. Login page top bar could be changer or removed. Custom login photo could be added.
|
55 |
+
|
56 |
+
== Changelog ==
|
57 |
+
|
58 |
+
= 1.0 =
|
59 |
+
* Initial version
|
60 |
+
|
61 |
+
== Upgrade Notice ==
|
62 |
+
|
63 |
+
= 1.0 =
|
64 |
+
Initial version.
|
screenshot-1.jpg
ADDED
Binary file
|
screenshot-2.jpg
ADDED
Binary file
|