Version Description
- Bug fixes
Download this release
Release Info
Developer | argonius |
Plugin | Absolutely Glamorous Custom Admin |
Version | 1.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.3.2
- plugin.php +23 -17
- readme.txt +114 -79
- uninstall.php +0 -1
plugin.php
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
/*
|
3 |
Plugin Name: AG Custom Admin
|
4 |
Plugin URI: http://agca.argonius.com/ag-custom-admin/category/ag_custom_admin
|
5 |
-
Description:
|
6 |
Author: Argonius
|
7 |
-
Version: 1.3.
|
8 |
Author URI: http://www.argonius.com/
|
9 |
|
10 |
Copyright 2014. Argonius (email : info@argonius.com)
|
@@ -44,6 +44,7 @@ class AGCA{
|
|
44 |
add_filter('admin_title', array(&$this,'change_title'), 10, 2);
|
45 |
add_filter('plugin_row_meta', array(&$this,'jk_filter_plugin_links'), 10, 2);
|
46 |
add_action('admin_init', array(&$this,'agca_register_settings'));
|
|
|
47 |
add_action('admin_head', array(&$this,'print_admin_css'));
|
48 |
add_action('login_head', array(&$this,'print_login_head'));
|
49 |
add_action('admin_menu', array(&$this,'agca_create_menu'));
|
@@ -53,7 +54,7 @@ class AGCA{
|
|
53 |
/*Initialize properties*/
|
54 |
$this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
|
55 |
//fb($this->colorizer);
|
56 |
-
$this->agca_version = "1.3.
|
57 |
|
58 |
/*upload images programmaticaly*/
|
59 |
//TODO upload with AJAX one by one, use post data to send urls one by one
|
@@ -82,6 +83,11 @@ class AGCA{
|
|
82 |
return $links;
|
83 |
}
|
84 |
|
|
|
|
|
|
|
|
|
|
|
85 |
function checkGET(){
|
86 |
if(isset($_GET['agca_action'])){
|
87 |
if($_GET['agca_action'] =="remove_templates"){
|
@@ -139,6 +145,7 @@ class AGCA{
|
|
139 |
exit;
|
140 |
}else if(isset($_POST['_agca_get_templates'])){
|
141 |
$templates = get_option( 'agca_templates' );
|
|
|
142 |
$results = array();
|
143 |
foreach($templates as $key=>$val){
|
144 |
$results[]=$key;
|
@@ -165,13 +172,13 @@ class AGCA{
|
|
165 |
$_POST = array();
|
166 |
//print_r($templates);
|
167 |
exit;
|
168 |
-
}else if(isset($_POST['_agca_upload_image'])){
|
169 |
-
|
170 |
function my_sideload_image() {
|
171 |
$remoteurl = $_POST['_agca_upload_image'];
|
172 |
$file = media_sideload_image( $remoteurl, 0 ,"AG Custom Admin Template Image (do not delete)");
|
173 |
-
$
|
174 |
-
|
|
|
175 |
exit;
|
176 |
}
|
177 |
add_action( 'admin_init', 'my_sideload_image' );
|
@@ -224,6 +231,7 @@ class AGCA{
|
|
224 |
|
225 |
function get_installed_agca_templates(){
|
226 |
$templates = get_option( 'agca_templates' );
|
|
|
227 |
$results = array();
|
228 |
foreach($templates as $key=>$val){
|
229 |
$results[]=$key;
|
@@ -937,15 +945,13 @@ class AGCA{
|
|
937 |
}
|
938 |
|
939 |
<?php } ?>
|
940 |
-
<?php if(get_option('agca_wp_logo_custom')!=""){ ?>
|
941 |
-
if(isWPHigherOrEqualThan("3.3")){
|
942 |
jQuery("li#wp-admin-bar-wp-logo a.ab-item span.ab-icon").html("<img style=\"height:28px;margin-top:-4px\" src=\"<?php echo get_option('agca_wp_logo_custom'); ?>\" />");
|
943 |
jQuery("li#wp-admin-bar-wp-logo a.ab-item span.ab-icon").css('background-image','none');
|
944 |
-
jQuery("li#wp-admin-bar-wp-logo a.ab-item span.ab-icon").css('width','auto');
|
945 |
-
jQuery("li#wp-admin-bar-wp-logo a.ab-item").attr('href',"<?php echo get_bloginfo('wpurl'); ?>");
|
946 |
-
|
947 |
-
|
948 |
-
}
|
949 |
<?php }?>
|
950 |
<?php if(get_option('agca_remove_site_link')==true){ ?>
|
951 |
jQuery("#wp-admin-bar-site-name").css("display","none");
|
@@ -1230,9 +1236,9 @@ class AGCA{
|
|
1230 |
//session_destroy();
|
1231 |
//session_unset();
|
1232 |
|
1233 |
-
if(!session_id()){
|
1234 |
-
session_start();
|
1235 |
-
}
|
1236 |
|
1237 |
if(!isset($_SESSION["AGCA"])){
|
1238 |
$_SESSION["AGCA"] = array();
|
2 |
/*
|
3 |
Plugin Name: AG Custom Admin
|
4 |
Plugin URI: http://agca.argonius.com/ag-custom-admin/category/ag_custom_admin
|
5 |
+
Description: All-in-one tool for admin panel customization. Change almost everything: admin menu, dashboard, login page, admin bar etc. Apply admin panel themes.
|
6 |
Author: Argonius
|
7 |
+
Version: 1.3.2
|
8 |
Author URI: http://www.argonius.com/
|
9 |
|
10 |
Copyright 2014. Argonius (email : info@argonius.com)
|
44 |
add_filter('admin_title', array(&$this,'change_title'), 10, 2);
|
45 |
add_filter('plugin_row_meta', array(&$this,'jk_filter_plugin_links'), 10, 2);
|
46 |
add_action('admin_init', array(&$this,'agca_register_settings'));
|
47 |
+
add_action('admin_init', array(&$this,'agca_init_session'));
|
48 |
add_action('admin_head', array(&$this,'print_admin_css'));
|
49 |
add_action('login_head', array(&$this,'print_login_head'));
|
50 |
add_action('admin_menu', array(&$this,'agca_create_menu'));
|
54 |
/*Initialize properties*/
|
55 |
$this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
|
56 |
//fb($this->colorizer);
|
57 |
+
$this->agca_version = "1.3.2";
|
58 |
|
59 |
/*upload images programmaticaly*/
|
60 |
//TODO upload with AJAX one by one, use post data to send urls one by one
|
83 |
return $links;
|
84 |
}
|
85 |
|
86 |
+
function agca_init_session(){
|
87 |
+
if (!session_id())
|
88 |
+
session_start();
|
89 |
+
}
|
90 |
+
|
91 |
function checkGET(){
|
92 |
if(isset($_GET['agca_action'])){
|
93 |
if($_GET['agca_action'] =="remove_templates"){
|
145 |
exit;
|
146 |
}else if(isset($_POST['_agca_get_templates'])){
|
147 |
$templates = get_option( 'agca_templates' );
|
148 |
+
if($templates == "") $templates = array();
|
149 |
$results = array();
|
150 |
foreach($templates as $key=>$val){
|
151 |
$results[]=$key;
|
172 |
$_POST = array();
|
173 |
//print_r($templates);
|
174 |
exit;
|
175 |
+
}else if(isset($_POST['_agca_upload_image'])){
|
|
|
176 |
function my_sideload_image() {
|
177 |
$remoteurl = $_POST['_agca_upload_image'];
|
178 |
$file = media_sideload_image( $remoteurl, 0 ,"AG Custom Admin Template Image (do not delete)");
|
179 |
+
$fileparts = explode("src='",$file);
|
180 |
+
$url=explode("'",$fileparts[1]);
|
181 |
+
echo $url[0];
|
182 |
exit;
|
183 |
}
|
184 |
add_action( 'admin_init', 'my_sideload_image' );
|
231 |
|
232 |
function get_installed_agca_templates(){
|
233 |
$templates = get_option( 'agca_templates' );
|
234 |
+
if($templates == "")return '[]';
|
235 |
$results = array();
|
236 |
foreach($templates as $key=>$val){
|
237 |
$results[]=$key;
|
945 |
}
|
946 |
|
947 |
<?php } ?>
|
948 |
+
<?php if(get_option('agca_wp_logo_custom')!=""){ ?>
|
|
|
949 |
jQuery("li#wp-admin-bar-wp-logo a.ab-item span.ab-icon").html("<img style=\"height:28px;margin-top:-4px\" src=\"<?php echo get_option('agca_wp_logo_custom'); ?>\" />");
|
950 |
jQuery("li#wp-admin-bar-wp-logo a.ab-item span.ab-icon").css('background-image','none');
|
951 |
+
jQuery("li#wp-admin-bar-wp-logo a.ab-item span.ab-icon").css('width','auto');
|
952 |
+
jQuery("li#wp-admin-bar-wp-logo a.ab-item").attr('href',"<?php echo get_bloginfo('wpurl'); ?>");
|
953 |
+
jQuery("#wpadminbar #wp-admin-bar-root-default > #wp-admin-bar-wp-logo .ab-item:before").attr('title','');
|
954 |
+
jQuery('body #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon').attr('class','ab-icon2');
|
|
|
955 |
<?php }?>
|
956 |
<?php if(get_option('agca_remove_site_link')==true){ ?>
|
957 |
jQuery("#wp-admin-bar-site-name").css("display","none");
|
1236 |
//session_destroy();
|
1237 |
//session_unset();
|
1238 |
|
1239 |
+
/*if(!session_id()){
|
1240 |
+
session_start();
|
1241 |
+
}*/
|
1242 |
|
1243 |
if(!isset($_SESSION["AGCA"])){
|
1244 |
$_SESSION["AGCA"] = array();
|
readme.txt
CHANGED
@@ -1,110 +1,139 @@
|
|
1 |
=== AG Custom Admin ===
|
2 |
Contributors: argonius
|
3 |
Donate link: http://agca.argonius.com/ag-custom-admin/support-for-future-development
|
4 |
-
Tags: admin, customize, hide, change admin, themes, admin themes
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.8
|
7 |
-
Stable tag: 1.3.
|
|
|
|
|
8 |
|
9 |
-
|
10 |
|
11 |
== Description ==
|
12 |
-
With this plugin you can
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
|
|
|
|
68 |
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
|
|
81 |
|
82 |
-
|
83 |
|
84 |
-
|
85 |
|
86 |
== Installation ==
|
87 |
|
88 |
1. Upload `ag-custom-admin` directory to the `/wp-content/plugins/` directory
|
89 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
90 |
-
3. Activated plugin
|
91 |
|
92 |
== Frequently Asked Questions ==
|
93 |
|
94 |
-
=
|
95 |
-
|
|
|
96 |
|
97 |
-
= I
|
98 |
-
This is caused by JavaScript error thrown by
|
|
|
|
|
|
|
99 |
|
100 |
= Something is wrong with Admin Menu buttons =
|
101 |
Please use 'Reset Settings' button on Admin Menu page to reset menu configuration to defaults. Remember that you should postpone admin menu configuration to the very end of admin page customization, because, any changes made from other plugins to admin menu (e.g adding new button of plugin that is activated, or removing that button when plugin is deactivated) could corrupt admin menu configuration.
|
102 |
|
103 |
-
=
|
104 |
Go to browser's console and see if there are any errors. Try to locate them. If you can't fix error by yourself, post it back to plugin's support page.
|
105 |
|
106 |
-
=
|
107 |
-
|
108 |
|
109 |
|
110 |
== Screenshots ==
|
@@ -116,6 +145,9 @@ Try clearing browser's cache. If that does not work, go to browser's console and
|
|
116 |
|
117 |
== Changelog ==
|
118 |
|
|
|
|
|
|
|
119 |
= 1.3.1 =
|
120 |
* First production version with AGCA Themes
|
121 |
|
@@ -328,6 +360,9 @@ Try clearing browser's cache. If that does not work, go to browser's console and
|
|
328 |
|
329 |
== Upgrade Notice ==
|
330 |
|
|
|
|
|
|
|
331 |
= 1.3.1 =
|
332 |
Introducing AG Custom Admin Themes
|
333 |
|
1 |
=== AG Custom Admin ===
|
2 |
Contributors: argonius
|
3 |
Donate link: http://agca.argonius.com/ag-custom-admin/support-for-future-development
|
4 |
+
Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.8
|
7 |
+
Stable tag: 1.3.2
|
8 |
+
License: GPLv2 or later
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
All-in-one tool for admin panel customization. Change almost everything: admin menu, dashboard, login page, admin bar etc. Apply admin panel themes.
|
12 |
|
13 |
== Description ==
|
14 |
+
With this plugin you can easily customize WordPress **admin panel**, **login page**, **admin menu**, **admin bar** etc. in tiny details and apply free responsive **admin themes**.
|
15 |
+
|
16 |
+
* **ADMIN BAR**: Hide or change admin bar items. Remove WordPress traces from admin bar. Brand it with custom colors.
|
17 |
+
* **ADMIN MENU**: Change and remove existing and add custom admin menu items. Brand it with custom colors.
|
18 |
+
* **ADMIN THEMES**: it was never been so easy to apply free and responsive admin panel themes with just few clicks.
|
19 |
+
* **COLORIZER**: This tool is integrated with AG Custom Admin panel and can be used to change default WordPress admin panel colors, admin bar, admin menu, login page, backgrounds and fonts.
|
20 |
+
* **BRANDING**: Brand your admin panel pages with custom content, colors, images and text.
|
21 |
+
* **ADMIN PANEL OPTIONS**: There are also dozens of many other admin panel options used to hide or change existing WordPress admin panel and login page items like Dashboard widgets, Help and Screen options, WordPress logos, links, menus etc. See the full list down below.
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
+
= Admin Bar Options =
|
26 |
+
* Hide admin bar completely
|
27 |
+
* Hide admin bar completely, but show only Log Out button
|
28 |
+
* Remove admin bar on site pages
|
29 |
+
* Replace WordPress logo with custom image
|
30 |
+
* Change link on admin bar logo
|
31 |
+
* Change page title (html title tag) of all admin pages
|
32 |
+
* Add custom branding image between admin bar and content on all pages
|
33 |
+
* Hide WordPress in from admin bar
|
34 |
+
* Hide site name in admin bar
|
35 |
+
* Hide admin bar context menus
|
36 |
+
* Hide "Comments" menu
|
37 |
+
* Hide "New" menu
|
38 |
+
* Hide "New" -> "Post"
|
39 |
+
* Hide "New" -> "Link"
|
40 |
+
* Hide "New" -> "Page"
|
41 |
+
* Hide "New" -> "User"
|
42 |
+
* Hide "New" -> "Media"
|
43 |
+
* Hide update notifications
|
44 |
+
* Add custom heading to admin bar
|
45 |
+
* Hide yellow WordPress update notification
|
46 |
+
* Hide Screen options menu
|
47 |
+
* Hide Help menu
|
48 |
+
* Hide Favorite Actions menu
|
49 |
+
* Change Howdy text
|
50 |
+
* Change Log Out text
|
51 |
+
* Remove "Edit My Profile" option from context menu
|
52 |
+
* Show "Log Out" button only
|
53 |
+
|
54 |
+
|
55 |
+
= Admin Footer Options =
|
56 |
+
* Hide footer completely
|
57 |
+
* Change/remove footer text
|
58 |
+
* Change/remove footer version text
|
59 |
+
|
60 |
+
= Dashboard Page Options =
|
61 |
+
* Change Dashboard heading text
|
62 |
+
* Add custom Dashboard HTML content
|
63 |
+
* Hide dashboard widgets
|
64 |
+
|
65 |
+
= Login Page Options =
|
66 |
+
* Hide back to blog text
|
67 |
+
* Change back to blog text
|
68 |
+
* Change login image
|
69 |
+
* Change hyperlink on login image
|
70 |
+
* Hide login image
|
71 |
+
* Round corners on login boxes
|
72 |
+
* Hide register and lost password links
|
73 |
+
* Change hyperlink on register button
|
74 |
|
75 |
+
= Admin Menu Options =
|
76 |
+
* Rename menu and submenu items
|
77 |
+
* Remove menu and submenu items
|
78 |
+
* Add new buttons with custom links
|
79 |
+
* Remove icons from admin menu buttons
|
80 |
+
* Remove spaces between admin menu buttons
|
81 |
+
* Remove admin menu arrow on mouseover
|
82 |
+
* Round admin submenu popups
|
83 |
+
* Remove "Collapse" button
|
84 |
+
* Add custom branding image above the admin menu
|
85 |
+
* Add custom link to branding image
|
86 |
+
* Change admin menu auto-folding settings
|
87 |
|
88 |
+
= Colorizer =
|
89 |
+
* Change background and text colors on admin and login page
|
90 |
+
* Change admin menu colors
|
91 |
+
* Change widget colors
|
92 |
+
|
93 |
+
= Advanced =
|
94 |
+
* Add custom CSS
|
95 |
+
* Add custom JavaScript
|
96 |
+
* Export/import customization settings
|
97 |
|
98 |
+
= Admin Themes =
|
99 |
+
AG Custom Admin plugin contains specialy created professional and responsive themes for admin panel and login page, that can be applied easily within AG Custom Admin plugin with only few clicks!
|
100 |
+
We will add more themes with better styles and theme options in future.
|
101 |
+
|
102 |
+
For more info about AG Custom Admin themes, please go to [WordPress Admin Panel Themes](http://wordpressadminpanel.com/themes/home) site.
|
103 |
+
|
104 |
+
= Contact =
|
105 |
+
If you are unable to login or you have any other problems, please check our [FAQ](http://wordpress.org/extend/plugins/ag-custom-admin/faq/) and [SUPPORT](http://wordpress.org/support/plugin/ag-custom-admin) page.
|
106 |
|
107 |
+
For more information about the plugin please check [PLUGIN WEBSITE](http://agca.argonius.com/ag-custom-admin/) and for more information about admin themes please check [THEMES WEBSITE](http://wordpressadminpanel.com/themes/home)
|
108 |
|
109 |
+
**Important**: AG Custom Admin should always be updated before updating WordPress.
|
110 |
|
111 |
== Installation ==
|
112 |
|
113 |
1. Upload `ag-custom-admin` directory to the `/wp-content/plugins/` directory
|
114 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
115 |
+
3. Activated plugin appears in 'Tools' menu
|
116 |
|
117 |
== Frequently Asked Questions ==
|
118 |
|
119 |
+
= I see only blank page. What can I do? =
|
120 |
+
This is caused by JavaScript error thrown by this or some other plugin. Please open browser's console and try to find JavaScript errors. Try to find the source of the error, it is probably thrown by some plugin. If you can find the source, please try to disable that plugin or theme and post that error on their support page. You could try also disabling plugins one-by-one to see when this problem occures. If you can't access login page, please temporary disable JavaScript in your browser and refresh the page.
|
121 |
+
If this does not work, try to find JavaScript error in browser's console and post it to our support page.
|
122 |
|
123 |
+
= I cannot log in to admin panel =
|
124 |
+
If you see blank page or login form is disappeared, it's most likely that you have some errors thrown in your WordPress site. This is caused by JavaScript error thrown by this or some other plugin. If you want to deactivate plugin, but you can't access admin panel, turn off JavaScript in your browser and then log in back and deactivate plugin (This works only for administrator). Try also to clear browser's cache. If this does not work, try to find JavaScript error in browser's console and post it to plugin's support page.
|
125 |
+
|
126 |
+
= Plugin does not work after upgrading to new version. What should I do? =
|
127 |
+
Try to clear browser's cache, and reload page. You can try to download fresh copy of plugin and to re-install it again. Make sure to have latest plugin and WordPress versions installed. If nothing of these solutions help, please contact our support.
|
128 |
|
129 |
= Something is wrong with Admin Menu buttons =
|
130 |
Please use 'Reset Settings' button on Admin Menu page to reset menu configuration to defaults. Remember that you should postpone admin menu configuration to the very end of admin page customization, because, any changes made from other plugins to admin menu (e.g adding new button of plugin that is activated, or removing that button when plugin is deactivated) could corrupt admin menu configuration.
|
131 |
|
132 |
+
= Errors appear on admin/login pages =
|
133 |
Go to browser's console and see if there are any errors. Try to locate them. If you can't fix error by yourself, post it back to plugin's support page.
|
134 |
|
135 |
+
= Some options are not working =
|
136 |
+
Plugin should be always up-to-date with latest WordPress release. If you have found out that something is not working in the latest WordPress, please contact us and let us know. If you're using older WordPress version, some options could be deprecated. In that case, please check our [COMPATIBILITY](http://agca.argonius.com/ag-custom-admin/ag_custom_admin/recommended-ag-custom-admin-version-for-your-wordpress-version) page to find the best AG Custom Admin version for your WordPress.
|
137 |
|
138 |
|
139 |
== Screenshots ==
|
145 |
|
146 |
== Changelog ==
|
147 |
|
148 |
+
= 1.3.2 =
|
149 |
+
* Bug fixes
|
150 |
+
|
151 |
= 1.3.1 =
|
152 |
* First production version with AGCA Themes
|
153 |
|
360 |
|
361 |
== Upgrade Notice ==
|
362 |
|
363 |
+
= 1.3.2 =
|
364 |
+
Bug fixes
|
365 |
+
|
366 |
= 1.3.1 =
|
367 |
Introducing AG Custom Admin Themes
|
368 |
|
uninstall.php
CHANGED
@@ -2,7 +2,6 @@
|
|
2 |
// die if not uninstalling
|
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' );
|
2 |
// die if not uninstalling
|
3 |
if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
|
4 |
exit ();
|
|
|
5 |
delete_option( 'agca_role_allbutadmin' );
|
6 |
delete_option( 'agca_screen_options_menu' );
|
7 |
delete_option( 'agca_help_menu' );
|