Version Description
- Style improvements
- Tab navigation remembers previously used tab
Download this release
Release Info
Developer | argonius |
Plugin | Absolutely Glamorous Custom Admin |
Version | 1.4.8 |
Comparing to | |
See all releases |
Code changes from version 1.4.7 to 1.4.8
- plugin.php +37 -24
- readme.txt +11 -3
- script/ag_script.js +27 -1
- style/ag_style.css +41 -7
plugin.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: AG Custom Admin
|
|
4 |
Plugin URI: http://wordpressadminpanel.com/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.4.
|
8 |
Author URI: http://www.argonius.com/
|
9 |
|
10 |
Copyright 2015. Argonius (email : info@argonius.com)
|
@@ -51,12 +51,13 @@ class AGCA{
|
|
51 |
add_action('login_head', array(&$this,'print_login_head'));
|
52 |
add_action('admin_menu', array(&$this,'agca_create_menu'));
|
53 |
add_action('wp_head', array(&$this,'print_page'));
|
|
|
54 |
register_deactivation_hook(__FILE__, array(&$this,'agca_deactivate'));
|
55 |
|
56 |
/*Initialize properties*/
|
57 |
$this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
|
58 |
|
59 |
-
$this->agca_version = "1.4.
|
60 |
|
61 |
/*upload images programmaticaly*/
|
62 |
//TODO upload with AJAX one by one, use post data to send urls one by one
|
@@ -71,7 +72,7 @@ class AGCA{
|
|
71 |
|
72 |
}
|
73 |
add_action( 'admin_init', 'my_sideload_image' );*/
|
74 |
-
/*upload images programmaticaly*/
|
75 |
}
|
76 |
// Add donate and support information
|
77 |
function jk_filter_plugin_links($links, $file)
|
@@ -79,6 +80,7 @@ class AGCA{
|
|
79 |
if ( $file == plugin_basename(__FILE__) )
|
80 |
{
|
81 |
$links[] = '<a href="tools.php?page=ag-custom-admin/plugin.php">' . __('Settings') . '</a>';
|
|
|
82 |
$links[] = '<a href="http://wordpressadminpanel.com/agca-support/">' . __('Support') . '</a>';
|
83 |
$links[] = '<a href="http://wordpressadminpanel.com/agca-support/support-for-future-development">' . __('Donate') . '</a>';
|
84 |
}
|
@@ -108,6 +110,7 @@ class AGCA{
|
|
108 |
}
|
109 |
|
110 |
function checkPOST(){
|
|
|
111 |
if(isset($_POST['_agca_save_template'])){
|
112 |
//print_r($_POST);
|
113 |
$data = $_POST['templates_data'];
|
@@ -206,6 +209,17 @@ class AGCA{
|
|
206 |
}
|
207 |
}
|
208 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
function delete_template_images_all(){
|
210 |
$templates = get_option('agca_templates');
|
211 |
if($templates != null && $templates != ""){
|
@@ -665,9 +679,8 @@ class AGCA{
|
|
665 |
|
666 |
|
667 |
|
668 |
-
function agca_create_menu() {
|
669 |
-
|
670 |
-
add_management_page( 'AG Custom Admin', 'AG Custom Admin', 'administrator', __FILE__, array(&$this,'agca_admin_page') );
|
671 |
}
|
672 |
|
673 |
function agca_create_admin_button($name,$arr) {
|
@@ -1235,7 +1248,8 @@ class AGCA{
|
|
1235 |
$agcaTemplateSession = $this->agcaAdminSession();
|
1236 |
$wpversion = $this->get_wp_version();
|
1237 |
$this->context = "admin";
|
1238 |
-
$this->error_check();
|
|
|
1239 |
|
1240 |
?>
|
1241 |
<script type="text/javascript">
|
@@ -1789,10 +1803,9 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
1789 |
|
1790 |
</script>
|
1791 |
<?php
|
1792 |
-
}
|
1793 |
-
|
1794 |
function agca_admin_page() {
|
1795 |
-
|
1796 |
$wpversion = $this->get_wp_version();
|
1797 |
$this->agca_error_check();
|
1798 |
?>
|
@@ -1848,8 +1861,8 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
1848 |
</div>
|
1849 |
<div style="clear:both"></div>
|
1850 |
<div id="section_admin_bar" class="ag_section">
|
1851 |
-
<h2 class="section_title"
|
1852 |
-
<br />
|
1853 |
<p tabindex="0"><i><strong>Info: </strong>Move your mouse over the option labels to see more information about the options</i></p>
|
1854 |
<br />
|
1855 |
<table class="form-table" width="500px">
|
@@ -2102,8 +2115,8 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
2102 |
</div>
|
2103 |
|
2104 |
<div id="section_admin_footer" style="display:none" class="ag_section">
|
2105 |
-
<h2 class="section_title"
|
2106 |
-
<br /><br />
|
2107 |
<table class="form-table" width="500px">
|
2108 |
<tr valign="center" class="ag_table_major_options">
|
2109 |
<td>
|
@@ -2154,7 +2167,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
2154 |
</div>
|
2155 |
|
2156 |
<div id="section_dashboard_page" style="display:none" class="ag_section">
|
2157 |
-
<h2 class="section_title"
|
2158 |
<table class="form-table" width="500px">
|
2159 |
<tr valign="center">
|
2160 |
<td colspan="2">
|
@@ -2237,7 +2250,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
2237 |
</table>
|
2238 |
</div>
|
2239 |
<div id="section_login_page" style="display:none" class="ag_section">
|
2240 |
-
<h2 class="section_title"
|
2241 |
<table class="form-table" width="500px">
|
2242 |
|
2243 |
<tr valign="center">
|
@@ -2341,9 +2354,9 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
2341 |
/*ADMIN MENU*/
|
2342 |
?>
|
2343 |
<div id="section_admin_menu" style="display:none" class="ag_section">
|
2344 |
-
<h2 class="section_title"
|
2345 |
-
<br />
|
2346 |
-
<p style="font-style:italic" tabindex="0"><strong>Important: </strong>Please
|
2347 |
<p style="font-style:italic" tabindex="0"><strong></strong>If you found that admin menu items are misaligned or not correct, press <strong>Reset Settings</strong> button. This happens if admin menu is changed by other plugins, or after activating / deactivating other plugings. Avoid such changes after you apply admin menu customizations.</p>
|
2348 |
<br />
|
2349 |
<table class="form-table" width="500px">
|
@@ -2494,7 +2507,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
2494 |
</div>
|
2495 |
<div id="section_ag_colorizer_settings" style="display:none" class="ag_section">
|
2496 |
<h2 class="section_title">Colorizer Page</h2>
|
2497 |
-
<br />
|
2498 |
<table class="form-table" width="500px">
|
2499 |
<tr valign="center" class="ag_table_major_options">
|
2500 |
<td><label for="agca_colorizer_turnonoff"><strong>Turn on/off Colorizer configuration</strong></label></td>
|
@@ -2645,7 +2658,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
2645 |
<div id="picker"></div>
|
2646 |
</div>
|
2647 |
<div id="section_templates" style="display:none" class="ag_section">
|
2648 |
-
<h2 class="section_title"
|
2649 |
<br /><br />
|
2650 |
<table class="form-table" width="500px">
|
2651 |
<tr valign="center">
|
@@ -2658,8 +2671,8 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
2658 |
<tr>
|
2659 |
<td>
|
2660 |
<div id="advanced_template_options" style="display:none">
|
2661 |
-
<h4>
|
2662 |
-
<p style="color:red;"><strong>WARNING:</strong> Use these theme actions only if you are experiencing
|
2663 |
<p><a href="javascript:agca_activateTemplate('');" title="When used, currently applied AGCA theme will be disabled</br>and WordPress will use default admin UI.</br>Themes will not be removed, and you can use them again.">DEACTIVATE CURRENT THEME</a> - themes will be deactivated, but still installed.</p>
|
2664 |
<p><a href="javascript:agca_removeAllTemplates();" title="All themes will be removed, including all theme settings and customizations.</br>If you're using commercial theme, you can install it again on the same site and activation will not be charged">REMOVE ALL THEMES</a> - installed themes will be removed.</p>
|
2665 |
</div>
|
@@ -2668,7 +2681,7 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
2668 |
</table>
|
2669 |
</div>
|
2670 |
<div id="section_advanced" style="display:none" class="ag_section">
|
2671 |
-
<h2 class="section_title"
|
2672 |
|
2673 |
<br /><br />
|
2674 |
<table class="form-table" width="500px">
|
4 |
Plugin URI: http://wordpressadminpanel.com/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.4.8
|
8 |
Author URI: http://www.argonius.com/
|
9 |
|
10 |
Copyright 2015. Argonius (email : info@argonius.com)
|
51 |
add_action('login_head', array(&$this,'print_login_head'));
|
52 |
add_action('admin_menu', array(&$this,'agca_create_menu'));
|
53 |
add_action('wp_head', array(&$this,'print_page'));
|
54 |
+
add_action( 'wp_before_admin_bar_render', array(&$this,'admin_bar_changes') );
|
55 |
register_deactivation_hook(__FILE__, array(&$this,'agca_deactivate'));
|
56 |
|
57 |
/*Initialize properties*/
|
58 |
$this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
|
59 |
|
60 |
+
$this->agca_version = "1.4.8";
|
61 |
|
62 |
/*upload images programmaticaly*/
|
63 |
//TODO upload with AJAX one by one, use post data to send urls one by one
|
72 |
|
73 |
}
|
74 |
add_action( 'admin_init', 'my_sideload_image' );*/
|
75 |
+
/*upload images programmaticaly*/
|
76 |
}
|
77 |
// Add donate and support information
|
78 |
function jk_filter_plugin_links($links, $file)
|
80 |
if ( $file == plugin_basename(__FILE__) )
|
81 |
{
|
82 |
$links[] = '<a href="tools.php?page=ag-custom-admin/plugin.php">' . __('Settings') . '</a>';
|
83 |
+
$links[] = '<a href="tools.php?page=ag-custom-admin/plugin.php#ag-templates">' . __('Admin Themes') . '</a>';
|
84 |
$links[] = '<a href="http://wordpressadminpanel.com/agca-support/">' . __('Support') . '</a>';
|
85 |
$links[] = '<a href="http://wordpressadminpanel.com/agca-support/support-for-future-development">' . __('Donate') . '</a>';
|
86 |
}
|
110 |
}
|
111 |
|
112 |
function checkPOST(){
|
113 |
+
|
114 |
if(isset($_POST['_agca_save_template'])){
|
115 |
//print_r($_POST);
|
116 |
$data = $_POST['templates_data'];
|
209 |
}
|
210 |
}
|
211 |
|
212 |
+
function admin_bar_changes(){
|
213 |
+
if( current_user_can( 'manage_options' )){
|
214 |
+
global $wp_admin_bar;
|
215 |
+
$wp_admin_bar->add_menu( array(
|
216 |
+
'id' => 'agca-admin-themes',
|
217 |
+
'title' => '<span class="ab-icon"></span>'.__( 'Admin Themes', 'agca-admin-themes' ),
|
218 |
+
'href' => 'tools.php?page=ag-custom-admin/plugin.php#ag-templates'
|
219 |
+
) );
|
220 |
+
}
|
221 |
+
}
|
222 |
+
|
223 |
function delete_template_images_all(){
|
224 |
$templates = get_option('agca_templates');
|
225 |
if($templates != null && $templates != ""){
|
679 |
|
680 |
|
681 |
|
682 |
+
function agca_create_menu() {
|
683 |
+
add_management_page( 'AG Custom Admin', 'AG Custom Admin', 'administrator', __FILE__, array(&$this,'agca_admin_page') );
|
|
|
684 |
}
|
685 |
|
686 |
function agca_create_admin_button($name,$arr) {
|
1248 |
$agcaTemplateSession = $this->agcaAdminSession();
|
1249 |
$wpversion = $this->get_wp_version();
|
1250 |
$this->context = "admin";
|
1251 |
+
$this->error_check();
|
1252 |
+
|
1253 |
|
1254 |
?>
|
1255 |
<script type="text/javascript">
|
1803 |
|
1804 |
</script>
|
1805 |
<?php
|
1806 |
+
}
|
|
|
1807 |
function agca_admin_page() {
|
1808 |
+
|
1809 |
$wpversion = $this->get_wp_version();
|
1810 |
$this->agca_error_check();
|
1811 |
?>
|
1861 |
</div>
|
1862 |
<div style="clear:both"></div>
|
1863 |
<div id="section_admin_bar" class="ag_section">
|
1864 |
+
<h2 class="section_title">Admin Bar Settings</h2>
|
1865 |
+
<br /><br /><br /><br />
|
1866 |
<p tabindex="0"><i><strong>Info: </strong>Move your mouse over the option labels to see more information about the options</i></p>
|
1867 |
<br />
|
1868 |
<table class="form-table" width="500px">
|
2115 |
</div>
|
2116 |
|
2117 |
<div id="section_admin_footer" style="display:none" class="ag_section">
|
2118 |
+
<h2 class="section_title">Admin Footer Settings</h2>
|
2119 |
+
<br /><br /><br /><br /><br /><br /><br />
|
2120 |
<table class="form-table" width="500px">
|
2121 |
<tr valign="center" class="ag_table_major_options">
|
2122 |
<td>
|
2167 |
</div>
|
2168 |
|
2169 |
<div id="section_dashboard_page" style="display:none" class="ag_section">
|
2170 |
+
<h2 class="section_title">Dashboard Page Settings</h2>
|
2171 |
<table class="form-table" width="500px">
|
2172 |
<tr valign="center">
|
2173 |
<td colspan="2">
|
2250 |
</table>
|
2251 |
</div>
|
2252 |
<div id="section_login_page" style="display:none" class="ag_section">
|
2253 |
+
<h2 class="section_title">Login Page Settings</h2>
|
2254 |
<table class="form-table" width="500px">
|
2255 |
|
2256 |
<tr valign="center">
|
2354 |
/*ADMIN MENU*/
|
2355 |
?>
|
2356 |
<div id="section_admin_menu" style="display:none" class="ag_section">
|
2357 |
+
<h2 class="section_title">Admin Menu Settings</h2>
|
2358 |
+
<br /><br /><br /><br />
|
2359 |
+
<p style="font-style:italic" tabindex="0"><strong>Important: </strong>Please turn off the menu configuration before activating or disabling other plugins (or making any other changes to main menu). Use <strong>Reset Settings</strong> button to restore default values if anything goes wrong.</p>
|
2360 |
<p style="font-style:italic" tabindex="0"><strong></strong>If you found that admin menu items are misaligned or not correct, press <strong>Reset Settings</strong> button. This happens if admin menu is changed by other plugins, or after activating / deactivating other plugings. Avoid such changes after you apply admin menu customizations.</p>
|
2361 |
<br />
|
2362 |
<table class="form-table" width="500px">
|
2507 |
</div>
|
2508 |
<div id="section_ag_colorizer_settings" style="display:none" class="ag_section">
|
2509 |
<h2 class="section_title">Colorizer Page</h2>
|
2510 |
+
<br /><br /><br /><br /><br /><br /><br />
|
2511 |
<table class="form-table" width="500px">
|
2512 |
<tr valign="center" class="ag_table_major_options">
|
2513 |
<td><label for="agca_colorizer_turnonoff"><strong>Turn on/off Colorizer configuration</strong></label></td>
|
2658 |
<div id="picker"></div>
|
2659 |
</div>
|
2660 |
<div id="section_templates" style="display:none" class="ag_section">
|
2661 |
+
<h2 class="section_title"><span style="float:left">Admin Themes</span></h2>
|
2662 |
<br /><br />
|
2663 |
<table class="form-table" width="500px">
|
2664 |
<tr valign="center">
|
2671 |
<tr>
|
2672 |
<td>
|
2673 |
<div id="advanced_template_options" style="display:none">
|
2674 |
+
<h4>Theme Actions</h4>
|
2675 |
+
<p style="color:red;"><strong>WARNING:</strong> Use these theme actions only if you are experiencing problems with AGCA themes. With these options you can deactivate or remove all installed themes.</p>
|
2676 |
<p><a href="javascript:agca_activateTemplate('');" title="When used, currently applied AGCA theme will be disabled</br>and WordPress will use default admin UI.</br>Themes will not be removed, and you can use them again.">DEACTIVATE CURRENT THEME</a> - themes will be deactivated, but still installed.</p>
|
2677 |
<p><a href="javascript:agca_removeAllTemplates();" title="All themes will be removed, including all theme settings and customizations.</br>If you're using commercial theme, you can install it again on the same site and activation will not be charged">REMOVE ALL THEMES</a> - installed themes will be removed.</p>
|
2678 |
</div>
|
2681 |
</table>
|
2682 |
</div>
|
2683 |
<div id="section_advanced" style="display:none" class="ag_section">
|
2684 |
+
<h2 class="section_title">Advanced</h2>
|
2685 |
|
2686 |
<br /><br />
|
2687 |
<table class="form-table" width="500px">
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: argonius
|
|
3 |
Donate link: http://wordpressadminpanel.com/ag-custom-admin/
|
4 |
Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -18,7 +18,7 @@ With this plugin you can easily customize WordPress **admin panel**, **login pag
|
|
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 |
|
@@ -154,6 +154,10 @@ Plugin should be always up-to-date with latest WordPress release. If you have fo
|
|
154 |
|
155 |
== Changelog ==
|
156 |
|
|
|
|
|
|
|
|
|
157 |
= 1.4.7 =
|
158 |
* Removed AG Custom Admin menu top item
|
159 |
* Better error handling
|
@@ -427,6 +431,10 @@ Plugin should be always up-to-date with latest WordPress release. If you have fo
|
|
427 |
|
428 |
== Upgrade Notice ==
|
429 |
|
|
|
|
|
|
|
|
|
430 |
= 1.4.7 =
|
431 |
* Improvements
|
432 |
|
3 |
Donate link: http://wordpressadminpanel.com/ag-custom-admin/
|
4 |
Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 4.2.2
|
7 |
+
Stable tag: 1.4.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
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 |
|
154 |
|
155 |
== Changelog ==
|
156 |
|
157 |
+
= 1.4.8 =
|
158 |
+
* Style improvements
|
159 |
+
* Tab navigation remembers previously used tab
|
160 |
+
|
161 |
= 1.4.7 =
|
162 |
* Removed AG Custom Admin menu top item
|
163 |
* Better error handling
|
431 |
|
432 |
== Upgrade Notice ==
|
433 |
|
434 |
+
= 1.4.8 =
|
435 |
+
* Style improvements
|
436 |
+
* Tab navigation remembers previously used tab
|
437 |
+
|
438 |
= 1.4.7 =
|
439 |
* Improvements
|
440 |
|
script/ag_script.js
CHANGED
@@ -24,6 +24,23 @@ function agcaDebugObj(obj){
|
|
24 |
console.log(obj);
|
25 |
}
|
26 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
function hideShowSubmenus(index){
|
29 |
|
@@ -498,11 +515,16 @@ function agcaApplyTooltip(){
|
|
498 |
|
499 |
jQuery(document).ready(function(){
|
500 |
/*Add click handler on main buttons*/
|
501 |
-
jQuery('#ag_main_menu a, #ag_main_menu li').bind('click',function(){
|
|
|
|
|
|
|
|
|
502 |
hideAllSections();
|
503 |
var text = jQuery(this).text();
|
504 |
jQuery(this).attr("class","selected");
|
505 |
showHideSection(text);
|
|
|
506 |
});
|
507 |
|
508 |
/*Admin Menu Reset all setings button*/
|
@@ -575,6 +597,10 @@ jQuery(document).ready(function(){
|
|
575 |
}
|
576 |
});
|
577 |
|
|
|
|
|
|
|
|
|
578 |
|
579 |
});
|
580 |
|
24 |
console.log(obj);
|
25 |
}
|
26 |
}
|
27 |
+
jQuery(function(){
|
28 |
+
var agcapage = localStorage.getItem('agca-page');
|
29 |
+
if(!agcapage){
|
30 |
+
localStorage.setItem('agca-page', window.location.hash);
|
31 |
+
agcapage = localStorage.getItem('agca-page');
|
32 |
+
}
|
33 |
+
window.location.hash = window.location.hash || agcapage;
|
34 |
+
localStorage.setItem('agca-page', window.location.hash);
|
35 |
+
|
36 |
+
});
|
37 |
+
window.onhashchange = function(){
|
38 |
+
localStorage.setItem('agca-page', window.location.hash);
|
39 |
+
if(jQuery('#ag_main_menu a.selected').attr('href') !== window.location.hash){
|
40 |
+
jQuery('#ag_main_menu a[href='+window.location.hash+']').trigger('click');
|
41 |
+
}
|
42 |
+
};
|
43 |
+
|
44 |
|
45 |
function hideShowSubmenus(index){
|
46 |
|
515 |
|
516 |
jQuery(document).ready(function(){
|
517 |
/*Add click handler on main buttons*/
|
518 |
+
jQuery('#ag_main_menu a, #ag_main_menu li').bind('click',function(e){
|
519 |
+
if(jQuery(e.target).is('li')){
|
520 |
+
var hash = jQuery(this).find('a:first').attr('href');
|
521 |
+
document.location.hash = hash;
|
522 |
+
};
|
523 |
hideAllSections();
|
524 |
var text = jQuery(this).text();
|
525 |
jQuery(this).attr("class","selected");
|
526 |
showHideSection(text);
|
527 |
+
|
528 |
});
|
529 |
|
530 |
/*Admin Menu Reset all setings button*/
|
597 |
}
|
598 |
});
|
599 |
|
600 |
+
//check hashtag
|
601 |
+
if(document.location.hash !== ""){
|
602 |
+
jQuery('#ag_main_menu a[href='+document.location.hash+']').trigger('click');
|
603 |
+
};
|
604 |
|
605 |
});
|
606 |
|
style/ag_style.css
CHANGED
@@ -144,13 +144,36 @@ td.ag_admin_menu_parent:hover{
|
|
144 |
}
|
145 |
#agca_form .section_title{
|
146 |
font-weight:bold;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
}
|
148 |
-
#
|
149 |
-
|
150 |
-
font-
|
151 |
-
|
152 |
-
|
|
|
|
|
|
|
|
|
|
|
153 |
}
|
|
|
|
|
|
|
|
|
|
|
154 |
#agca_form #templates_head_buttons input[type=button]{
|
155 |
background:#174F69;
|
156 |
color:white;
|
@@ -196,13 +219,14 @@ td.ag_admin_menu_parent:hover{
|
|
196 |
#agca_form input[type=button],button{
|
197 |
background-color: #ACC491;
|
198 |
border: 1px solid #ACC491;
|
|
|
199 |
color: #FFFFFF;
|
200 |
padding: 5px 10px;
|
201 |
}
|
202 |
#agca_form input[type=button]:hover{
|
203 |
background-color:#DEF7C3;
|
204 |
border: 1px solid #DEF7C3;
|
205 |
-
color:#
|
206 |
cursor:pointer;
|
207 |
}
|
208 |
#agca_form input[type=text]{
|
@@ -413,4 +437,14 @@ td.ag_admin_menu_parent:hover{
|
|
413 |
}
|
414 |
#agca_form #section_templates{
|
415 |
background: rgba(255, 255, 255, 0.95)
|
416 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
}
|
145 |
#agca_form .section_title{
|
146 |
font-weight:bold;
|
147 |
+
background: #def7c3;
|
148 |
+
border-bottom-right-radius: 15px;
|
149 |
+
color: #acc491;
|
150 |
+
float: left;
|
151 |
+
font-size: 40px;
|
152 |
+
padding: 20px 11px;
|
153 |
+
position: relative;
|
154 |
+
text-decoration: none;
|
155 |
+
text-shadow: none;
|
156 |
+
width: 50%;
|
157 |
+
}
|
158 |
+
#agca_form h2.section_title{
|
159 |
+
|
160 |
}
|
161 |
+
#agca_form h2.section_title{
|
162 |
+
font-family: Helvetica, Arial, sans-serif;
|
163 |
+
font-weight: bold;
|
164 |
+
font-size: 45px;
|
165 |
+
line-height: 1em;
|
166 |
+
}
|
167 |
+
#agca_form h2.section_title {
|
168 |
+
/* Shadows are visible under slightly transparent text color */
|
169 |
+
color: rgba(189, 193, 172, 0.71);
|
170 |
+
text-shadow: 1px 4px 6px #def7c3, 0 0 0 #000, 1px 4px 6px #def7c3;
|
171 |
}
|
172 |
+
/* Don't show shadows when selecting text */
|
173 |
+
#agca_form h2.section_title::-moz-selection { background: #5af; color: #fff; text-shadow: none; }
|
174 |
+
#agca_form h2.section_title::selection { background: #5af; color: #fff; text-shadow: none; }
|
175 |
+
|
176 |
+
|
177 |
#agca_form #templates_head_buttons input[type=button]{
|
178 |
background:#174F69;
|
179 |
color:white;
|
219 |
#agca_form input[type=button],button{
|
220 |
background-color: #ACC491;
|
221 |
border: 1px solid #ACC491;
|
222 |
+
border-radius: 3px;
|
223 |
color: #FFFFFF;
|
224 |
padding: 5px 10px;
|
225 |
}
|
226 |
#agca_form input[type=button]:hover{
|
227 |
background-color:#DEF7C3;
|
228 |
border: 1px solid #DEF7C3;
|
229 |
+
color:#444;
|
230 |
cursor:pointer;
|
231 |
}
|
232 |
#agca_form input[type=text]{
|
437 |
}
|
438 |
#agca_form #section_templates{
|
439 |
background: rgba(255, 255, 255, 0.95)
|
440 |
+
}
|
441 |
+
#wp-admin-bar-agca-admin-themes a{
|
442 |
+
color: #def7c3 !important;
|
443 |
+
}
|
444 |
+
#wp-admin-bar-agca-admin-themes .ab-icon:before {
|
445 |
+
font-family: "dashicons";
|
446 |
+
content: "\f100";
|
447 |
+
margin-top: 2px;
|
448 |
+
display: block;
|
449 |
+
color: #eef9d5 !important;
|
450 |
+
}
|