Version Description
- Improved UX with new icons and styles
- Fixed admin menu issues when menu is updated outside of AGCA
- Code reorganizing
- Using dashboard icons instead of images
- Updated option names
Download this release
Release Info
Developer | argonius |
Plugin | Absolutely Glamorous Custom Admin |
Version | 1.5 |
Comparing to | |
See all releases |
Code changes from version 1.4.9 to 1.5
- images/checkbox_checked.png +0 -0
- images/checkbox_over.png +0 -0
- images/checkbox_unchecked.png +0 -0
- images/radio-gray.png +0 -0
- images/radio-off.png +0 -0
- images/radio-on.png +0 -0
- images/thumbdown.png +0 -0
- images/thumbup.png +0 -0
- plugin.php +1091 -984
- readme.txt +21 -9
- script/ag_script.js +182 -260
- script/agca_tmpl.js +3 -3
- style/ag_style.css +200 -60
- uninstall.php +2 -1
images/checkbox_checked.png
DELETED
Binary file
|
images/checkbox_over.png
DELETED
Binary file
|
images/checkbox_unchecked.png
DELETED
Binary file
|
images/radio-gray.png
DELETED
Binary file
|
images/radio-off.png
DELETED
Binary file
|
images/radio-on.png
DELETED
Binary file
|
images/thumbdown.png
DELETED
Binary file
|
images/thumbup.png
DELETED
Binary file
|
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.
|
8 |
Author URI: http://www.argonius.com/
|
9 |
|
10 |
Copyright 2015. Argonius (email : info@argonius.com)
|
@@ -41,10 +41,11 @@ class AGCA{
|
|
41 |
$this->checkPOST();
|
42 |
$this->checkGET();
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
48 |
add_action('admin_init', array(&$this,'agca_register_settings'));
|
49 |
add_action('admin_init', array(&$this,'agca_init_session'));
|
50 |
add_action('admin_head', array(&$this,'print_admin_css'));
|
@@ -59,32 +60,20 @@ class AGCA{
|
|
59 |
/*Initialize properties*/
|
60 |
$this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
|
61 |
|
62 |
-
$this->agca_version = "1.
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
/*function my_sideload_image() {
|
67 |
-
$file = media_sideload_image( 'http://a2.twimg.com/a/1318451435/phoenix/img/twitter_logo_right.png', 0 );
|
68 |
-
$file1 = media_sideload_image( 'http://agca.argonius.com/templates/trunk/images/templates/monday/j1.jpg', 0 );
|
69 |
-
$file2 = media_sideload_image( 'http://agca.argonius.com/templates/trunk/images/templates/monday/2.jpg', 0 );
|
70 |
-
$url=explode("'",explode("src='",$file)[1])[0];
|
71 |
-
$url.=explode("'",explode("src='",$file1)[1])[0];
|
72 |
-
$url.=explode("'",explode("src='",$file2)[1])[0];
|
73 |
-
echo $url;
|
74 |
-
|
75 |
-
}
|
76 |
-
add_action( 'admin_init', 'my_sideload_image' );*/
|
77 |
-
/*upload images programmaticaly*/
|
78 |
}
|
79 |
// Add donate and support information
|
80 |
function jk_filter_plugin_links($links, $file)
|
81 |
{
|
82 |
if ( $file == plugin_basename(__FILE__) )
|
83 |
{
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
}
|
89 |
return $links;
|
90 |
}
|
@@ -380,7 +369,6 @@ class AGCA{
|
|
380 |
register_setting( 'agca-options-group', 'agca_logout' );
|
381 |
register_setting( 'agca-options-group', 'agca_remove_your_profile' );
|
382 |
register_setting( 'agca-options-group', 'agca_logout_only' );
|
383 |
-
register_setting( 'agca-options-group', 'agca_options_menu' );
|
384 |
register_setting( 'agca-options-group', 'agca_custom_title' );
|
385 |
register_setting( 'agca-options-group', 'agca_howdy' );
|
386 |
register_setting( 'agca-options-group', 'agca_header' );
|
@@ -459,6 +447,7 @@ class AGCA{
|
|
459 |
register_setting( 'agca-options-group', 'agca_admin_menu_brand_link' );
|
460 |
register_setting( 'agca-options-group', 'agca_admin_menu_autofold' );
|
461 |
register_setting( 'agca-options-group', 'ag_edit_adminmenu_json' );
|
|
|
462 |
register_setting( 'agca-options-group', 'ag_add_adminmenu_json' );
|
463 |
register_setting( 'agca-options-group', 'ag_colorizer_json' );
|
464 |
register_setting( 'agca-options-group', 'agca_colorizer_turnonoff' );
|
@@ -517,7 +506,6 @@ class AGCA{
|
|
517 |
'agca_logout',
|
518 |
'agca_remove_your_profile',
|
519 |
'agca_logout_only',
|
520 |
-
'agca_options_menu',
|
521 |
'agca_custom_title',
|
522 |
'agca_howdy',
|
523 |
'agca_header',
|
@@ -577,6 +565,7 @@ class AGCA{
|
|
577 |
'agca_admin_menu_autofold',
|
578 |
'agca_admin_menu_collapse_button',
|
579 |
'ag_edit_adminmenu_json',
|
|
|
580 |
'ag_add_adminmenu_json',
|
581 |
'ag_colorizer_json',
|
582 |
'agca_colorizer_turnonof',
|
@@ -625,7 +614,7 @@ class AGCA{
|
|
625 |
$optionValue = "";
|
626 |
$optionValue = $savedOptions[$optionName];
|
627 |
|
628 |
-
if($optionName == "ag_edit_adminmenu_json" || $optionName == "ag_add_adminmenu_json" ||$optionName == "ag_colorizer_json"){
|
629 |
$optionValue = str_replace("\\\"", "\"", $optionValue);
|
630 |
$optionValue = str_replace("\\\'", "\'", $optionValue);
|
631 |
}else if($optionName == "agca_custom_js" || $optionName == "agca_custom_css"){
|
@@ -707,27 +696,12 @@ class AGCA{
|
|
707 |
}
|
708 |
|
709 |
function agca_create_admin_button($name,$arr) {
|
710 |
-
|
711 |
-
$wpversion = $this->get_wp_version();
|
712 |
$href = $arr["value"];
|
713 |
$target =$arr["target"];
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
if($wpversion >=3.5 ){
|
718 |
-
$button .= '<li id="menu-'.$name.'" class="ag-custom-button wp-not-current-submenu menu-top">';
|
719 |
-
$button .= '<a target="'.$target.'" class="wp-has-submenu wp-not-current-submenu menu-top" href="'.$href.'">';
|
720 |
-
$button .= '<div style="padding-left:5px;" class="wp-menu-name">'.$name.'</div>';
|
721 |
-
$button .= '</a>';
|
722 |
-
$button .= '</li>';
|
723 |
-
}else{
|
724 |
-
$button .= '<li id="menu-'.$name.'" class="ag-custom-button menu-top menu-top-first '.$class.' menu-top-last">';
|
725 |
-
$button .= '<div class="wp-menu-toggle" style="display: none;"><br></div>';
|
726 |
-
$button .= '<a tabindex="1" target="'.$target.'" class="menu-top menu-top-last" href="'.$href.'">'.$name.'</a>';
|
727 |
-
$button .= '</li>';
|
728 |
-
}
|
729 |
-
|
730 |
-
return $button;
|
731 |
}
|
732 |
function agca_decode($code){
|
733 |
$code = str_replace("{","",$code);
|
@@ -759,9 +733,9 @@ class AGCA{
|
|
759 |
}else if($type == "buttonsJq"){
|
760 |
$elements = json_decode($arr[0],true);
|
761 |
if($elements !=""){
|
762 |
-
foreach($elements as $k => $v){
|
763 |
-
$array.='<tr><td colspan="2"><button target="'.$v[
|
764 |
-
}
|
765 |
}
|
766 |
}else{
|
767 |
if(isset($arr[$type])){
|
@@ -822,6 +796,7 @@ class AGCA{
|
|
822 |
|
823 |
$this->context = "page";
|
824 |
$wpversion = $this->get_wp_version();
|
|
|
825 |
?>
|
826 |
|
827 |
|
@@ -831,6 +806,7 @@ class AGCA{
|
|
831 |
var agca_debug = <?php echo ($this->agca_debug)?"true":"false"; ?>;
|
832 |
var jQueryScriptOutputted = false;
|
833 |
var agca_context = "page";
|
|
|
834 |
function initJQuery() {
|
835 |
//if the jQuery object isn't available
|
836 |
if (typeof(jQuery) == 'undefined') {
|
@@ -1062,12 +1038,17 @@ class AGCA{
|
|
1062 |
if($selectedValue == ""){
|
1063 |
$selectedValue = "edit_dashboard";
|
1064 |
}
|
1065 |
-
|
1066 |
-
|
|
|
|
|
1067 |
$selected = "";
|
|
|
1068 |
if($selectedValue == $k){
|
1069 |
$selected = " selected=\"selected\" ";
|
1070 |
}
|
|
|
|
|
1071 |
$capabilitySelector .="<option val=\"$k\" $selected >".$k."</option>\n";
|
1072 |
}
|
1073 |
|
@@ -1271,15 +1252,228 @@ class AGCA{
|
|
1271 |
<?php
|
1272 |
}
|
1273 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1274 |
function print_admin_css()
|
1275 |
{
|
1276 |
$agcaTemplateSession = $this->agcaAdminSession();
|
1277 |
$wpversion = $this->get_wp_version();
|
1278 |
$this->context = "admin";
|
1279 |
-
$this->error_check();
|
1280 |
-
|
1281 |
-
|
1282 |
-
?>
|
1283 |
<script type="text/javascript">
|
1284 |
var wpversion = "<?php echo $wpversion; ?>";
|
1285 |
var agca_debug = <?php echo ($this->agca_debug)?"true":"false"; ?>;
|
@@ -1290,6 +1484,7 @@ class AGCA{
|
|
1290 |
var agca_context = "admin";
|
1291 |
var roundedSidberSize = 0;
|
1292 |
var agca_installed_templates = <?php echo $this->get_installed_agca_templates(); ?>;
|
|
|
1293 |
</script>
|
1294 |
<?php
|
1295 |
$this->prepareAGCAAdminTemplates();
|
@@ -1328,7 +1523,7 @@ jQuery(document).ready(function() {
|
|
1328 |
try
|
1329 |
{
|
1330 |
|
1331 |
-
<?php /*CHECK OTHER
|
1332 |
$this->check_active_plugin();
|
1333 |
|
1334 |
if($this->active_plugin["ozh"]){
|
@@ -1345,34 +1540,21 @@ try
|
|
1345 |
?>
|
1346 |
|
1347 |
|
1348 |
-
//get saved onfigurations
|
1349 |
-
<?php $checkboxes = $this->jsonMenuArray(get_option('ag_edit_adminmenu_json'),'0'); ?>
|
1350 |
|
1351 |
-
var checkboxes = <?php echo "[".$checkboxes."]"; ?>;
|
1352 |
-
|
1353 |
-
<?php $textboxes = $this->jsonMenuArray(get_option('ag_edit_adminmenu_json'),'1'); ?>
|
1354 |
-
var textboxes = <?php echo "[".$textboxes."]"; ?>;
|
1355 |
-
|
1356 |
<?php $buttons = $this->jsonMenuArray(get_option('ag_add_adminmenu_json'),'buttons'); ?>
|
1357 |
var buttons = '<?php echo $buttons; ?>';
|
1358 |
|
1359 |
<?php $buttonsJq = $this->jsonMenuArray(get_option('ag_add_adminmenu_json'),'buttonsJq'); ?>
|
1360 |
-
var buttonsJq = '<?php echo $buttonsJq; ?>';
|
1361 |
-
|
1362 |
-
|
1363 |
-
|
1364 |
-
|
1365 |
-
createEditMenuPageV32(checkboxes,textboxes);
|
1366 |
-
<?php }else{ ?>
|
1367 |
-
createEditMenuPage(checkboxes,textboxes);
|
1368 |
-
<?php } ?>
|
1369 |
-
//console.log(checkboxes);
|
1370 |
-
// console.log(textboxes);
|
1371 |
-
|
1372 |
<?php
|
1373 |
//if admin, and option to hide settings for admin is set
|
1374 |
|
1375 |
-
if((get_option('agca_role_allbutadmin')==true) and current_user_can($this->admin_capability())){
|
1376 |
?>
|
1377 |
<?php } else{ ?>
|
1378 |
<?php if(get_option('agca_admin_menu_brand')!=""){ ?>
|
@@ -1416,9 +1598,6 @@ try
|
|
1416 |
jQuery("#contextual-help-link-wrap").css("display","none");
|
1417 |
jQuery("#contextual-help-link").css("display","none");
|
1418 |
<?php } ?>
|
1419 |
-
<?php if(get_option('agca_options_menu')==true){ ?>
|
1420 |
-
jQuery("#favorite-actions").css("display","none");
|
1421 |
-
<?php } ?>
|
1422 |
<?php if(get_option('agca_privacy_options')==true){ ?>
|
1423 |
jQuery("#privacy-on-link").css("display","none");
|
1424 |
<?php } ?>
|
@@ -1463,7 +1642,7 @@ try
|
|
1463 |
}
|
1464 |
<?php } ?>
|
1465 |
<?php if(get_option('agca_dashboard_text')!=""){ ?>
|
1466 |
-
jQuery("#dashboard-widgets-wrap").parent().find("
|
1467 |
<?php } ?>
|
1468 |
<?php if(get_option('agca_dashboard_text_paragraph')!=""){
|
1469 |
require_once(ABSPATH . 'wp-includes/formatting.php');
|
@@ -1557,86 +1736,22 @@ try
|
|
1557 |
|
1558 |
|
1559 |
<?php /*EDIT MENU ITEMS*/?>
|
1560 |
-
<?php if(get_option('ag_edit_adminmenu_json')!=""){
|
1561 |
-
|
1562 |
-
|
1563 |
-
|
1564 |
-
|
1565 |
-
|
1566 |
-
|
1567 |
-
|
1568 |
-
|
1569 |
-
var topmenuitem;
|
1570 |
-
jQuery('ul#adminmenu > li').each(function(){
|
1571 |
-
|
1572 |
-
if(!jQuery(this).hasClass("wp-menu-separator") && !jQuery(this).hasClass("wp-menu-separator-last")){
|
1573 |
-
//alert(checkboxes[checkboxes_counter]);
|
1574 |
-
|
1575 |
-
topmenuitem = jQuery(this).attr('id');
|
1576 |
-
//console.log(jQuery(this));
|
1577 |
-
|
1578 |
-
var matchFound = false;
|
1579 |
-
var subMenus = "";
|
1580 |
-
|
1581 |
-
for(i=0; i< checkboxes.length ; i++){
|
1582 |
-
|
1583 |
-
if(checkboxes[i][0].indexOf("<-TOP->") >=0){ //if it is top item
|
1584 |
-
if(checkboxes[i][0].replace('<-TOP->','') == topmenuitem){//if found match in menu, with top item in array
|
1585 |
-
matchFound = true;
|
1586 |
-
//console.log(checkboxes[i][0]);
|
1587 |
-
//console.log(jQuery(this).find('.wp-menu-name').text());
|
1588 |
-
|
1589 |
-
<?php if($wpversion >=3.5 ){ ?>
|
1590 |
-
jQuery(this).find('.wp-menu-name').html(textboxes[i][1]);
|
1591 |
-
<?php }else{ ?>
|
1592 |
-
jQuery(this).find('a').eq(1).html(textboxes[i][1]);
|
1593 |
-
<?php } ?>
|
1594 |
-
|
1595 |
-
if((checkboxes[i][1] == "true") || (checkboxes[i][1] == "checked")){
|
1596 |
-
jQuery(this).addClass('noclass');
|
1597 |
-
}
|
1598 |
-
|
1599 |
-
i++;
|
1600 |
-
var selector = '#' + topmenuitem + ' ul li';
|
1601 |
-
var hoverPopupSelector = '#' + topmenuitem + ' .wp-submenu.wp-submenu-wrap';
|
1602 |
-
//console.log(i+" "+checkboxes);
|
1603 |
-
var allSubmenuItemsHidden = true;
|
1604 |
-
while((i<checkboxes.length) && (checkboxes[i][0].indexOf("<-TOP->") < 0)){
|
1605 |
-
jQuery(selector).each(function(){ //loop through all submenus
|
1606 |
-
var currentItemText = "";
|
1607 |
-
|
1608 |
-
<?php if($wpversion >=3.5 ){ ?>
|
1609 |
-
currentItemText = jQuery(this).clone();
|
1610 |
-
jQuery(currentItemText).find("span").remove();
|
1611 |
-
currentItemText = currentItemText.text();
|
1612 |
-
<?php }else{ ?>
|
1613 |
-
currentItemText = jQuery(this).text();
|
1614 |
-
<?php } ?>
|
1615 |
-
|
1616 |
-
if(checkboxes[i][0] == ((typeof currentItemText !== "undefined")?currentItemText.trim():currentItemText)){
|
1617 |
-
|
1618 |
-
if((checkboxes[i][1] == "true") || (checkboxes[i][1] == "checked")){
|
1619 |
-
jQuery(this).addClass('noclass');
|
1620 |
-
}else{
|
1621 |
-
allSubmenuItemsHidden = false;
|
1622 |
-
}
|
1623 |
-
jQuery(this).find('a').text(textboxes[i][1]);
|
1624 |
-
}
|
1625 |
-
});
|
1626 |
-
i++;
|
1627 |
-
}
|
1628 |
-
if(allSubmenuItemsHidden){
|
1629 |
-
jQuery(hoverPopupSelector).hide();
|
1630 |
-
}
|
1631 |
-
};
|
1632 |
-
}
|
1633 |
-
}
|
1634 |
-
//console.log(subMenus);
|
1635 |
-
//checkboxes_counter++;
|
1636 |
-
}
|
1637 |
-
});
|
1638 |
-
<?php
|
1639 |
} ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
1640 |
|
1641 |
|
1642 |
/*Add user buttons*/
|
@@ -1649,9 +1764,9 @@ try
|
|
1649 |
|
1650 |
reloadRemoveButtonEvents();
|
1651 |
|
1652 |
-
<?php if(get_option('agca_admin_menu_collapse_button')
|
1653 |
-
//
|
1654 |
-
|
1655 |
<?php } ?>
|
1656 |
|
1657 |
<?php //COLORIZER ?>
|
@@ -1832,7 +1947,8 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
1832 |
|
1833 |
</script>
|
1834 |
<?php
|
1835 |
-
}
|
|
|
1836 |
function agca_admin_page() {
|
1837 |
|
1838 |
$wpversion = $this->get_wp_version();
|
@@ -1850,27 +1966,28 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
1850 |
var template_selected = '<?php echo get_option('agca_selected_template'); ?>';
|
1851 |
</script>
|
1852 |
<script type="text/javascript" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>script/agca_tmpl.js?ver=<?php echo $wpversion; ?>"></script>
|
1853 |
-
<?php //includes ?>
|
1854 |
<div class="wrap">
|
1855 |
-
<h1
|
1856 |
<div id="agca_error_placeholder"></div>
|
1857 |
<div id="agca_news"> </div><br />
|
1858 |
<form method="post" id="agca_form" action="options.php">
|
1859 |
<?php settings_fields( 'agca-options-group' ); ?>
|
1860 |
-
|
1861 |
-
|
1862 |
-
<
|
1863 |
-
|
1864 |
-
|
1865 |
-
<
|
1866 |
-
|
1867 |
-
|
1868 |
-
|
1869 |
-
|
1870 |
-
|
1871 |
<br />
|
1872 |
<ul id="ag_main_menu">
|
1873 |
-
<li class="selected"><a href="#
|
|
|
1874 |
<li class="normal"><a href="#admin-footer-settings" title="Settings for admin footer" >Admin Footer</a></li>
|
1875 |
<li class="normal"><a href="#dashboad-page-settings" title="Settings for Dashboard page">Dashboard Page</a></li>
|
1876 |
<li class="normal"><a href="#login-page-settings" title="Settings for Login page">Login Page</a></li>
|
@@ -1888,648 +2005,570 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
1888 |
<li style="min-height:105px;display: block"></li>
|
1889 |
</ul>
|
1890 |
</div>
|
1891 |
-
<div
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1892 |
<div id="section_admin_bar" class="ag_section">
|
1893 |
<h2 class="section_title">Admin Bar Settings</h2>
|
1894 |
-
<
|
1895 |
-
|
1896 |
-
|
1897 |
-
|
1898 |
-
|
1899 |
-
|
1900 |
-
|
1901 |
-
|
1902 |
-
|
1903 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1904 |
</td>
|
1905 |
</tr>
|
1906 |
-
|
1907 |
-
|
1908 |
-
|
1909 |
-
|
1910 |
-
|
1911 |
-
|
1912 |
-
|
1913 |
-
<
|
1914 |
-
|
1915 |
-
<label tabindex="0" title='Check this if you want to show Log Out button in top right corner of the admin page' for="agca_header_show_logout"><strong>(but show Log Out button)</strong></label>
|
1916 |
-
</td>
|
1917 |
-
<td>
|
1918 |
-
<input type="checkbox" class="agca-checkbox" title='Check this if you want to show Log Out button in top right corner of the 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" '; ?> />
|
1919 |
-
</td>
|
1920 |
-
</tr>
|
1921 |
-
<tr valign="center" >
|
1922 |
-
<td>
|
1923 |
-
<label tabindex="0" title="Removes admin bar customizations (AGCA scripts) on front end.</br>This option can be helpful if you want to remove customizations on the website pages for logged in users." for="agca_admin_bar_frontend">Remove admin bar customizations on site pages</label>
|
1924 |
-
</td>
|
1925 |
-
<td>
|
1926 |
-
<input style="margin-left:-5px" class="agca-checkbox" id="agca_admin_bar_frontend" type="checkbox" title="Removes admin bar customizations (AGCA scripts) on front end.</br>This option can be helpful if you want to remove customizations on the website pages for logged in users." name="agca_admin_bar_frontend" value="true" <?php if (get_option('agca_admin_bar_frontend')==true) echo 'checked="checked" '; ?> />
|
1927 |
-
|
1928 |
-
</td>
|
1929 |
</tr>
|
1930 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1931 |
<td>
|
1932 |
-
<
|
1933 |
-
|
1934 |
-
|
1935 |
-
|
|
|
|
|
|
|
|
|
1936 |
</td>
|
1937 |
</tr>
|
1938 |
-
<tr valign="center">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1939 |
<td colspan="2">
|
1940 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1941 |
</td>
|
1942 |
<td></td>
|
1943 |
-
</tr>
|
1944 |
-
<tr valign="center">
|
1945 |
-
<th >
|
1946 |
-
<label title="Change default WordPress logo with custom image." for="agca_wp_logo_custom">Change admin bar logo</label>
|
1947 |
-
</th>
|
1948 |
-
<td>
|
1949 |
-
<input id="agca_wp_logo_custom" title="If this field is not empty, image from provided url will be visible in top bar" type="text" size="47" name="agca_wp_logo_custom" value="<?php echo get_option('agca_wp_logo_custom'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_wp_logo_custom').val('');" value="Clear" />
|
1950 |
-
<p><i>Put here an URL of the new top bar image ( maximum height = 28px)</i>.</p>
|
1951 |
-
</td>
|
1952 |
-
</tr>
|
1953 |
-
<tr valign="center">
|
1954 |
-
<th>
|
1955 |
-
<label title="Change admin bar logo link.</br></br>Use:</br><strong>%BLOG%</strong> - for blog URL</br><strong>%SWITCH%</strong> - to switch betweent admin and site area" for="agca_wp_logo_custom">Change admin bar logo link</label>
|
1956 |
-
</th>
|
1957 |
-
<td>
|
1958 |
-
<input id="agca_wp_logo_custom_link" type="text" size="47" name="agca_wp_logo_custom_link" value="<?php echo get_option('agca_wp_logo_custom_link'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_wp_logo_custom_link').val('');" value="Clear" />
|
1959 |
-
<p><i>Put here a link for admin bar logo </i>.</p>
|
1960 |
-
</td>
|
1961 |
-
</tr>
|
1962 |
-
<tr valign="center">
|
1963 |
-
<th >
|
1964 |
-
<label title="Customize WordPress title using custom title template.</br></br>Examples:</br><strong>%BLOG% -- %PAGE%</strong> (will be) <i>My Blog -- Add New Post</i></br><strong>%BLOG%</strong> (will be) <i>My Blog</i></br><strong>My Company > %BLOG% > %PAGE%</strong> (will be) <i>My Company > My Blog > Tools</i>" for="agca_custom_title">Custom admin title template</label>
|
1965 |
-
</th>
|
1966 |
-
<td>
|
1967 |
-
<input title="" type="text" size="47" id="agca_custom_title" name="agca_custom_title" value="<?php echo get_option('agca_custom_title'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_custom_title').val('');" value="Clear" />
|
1968 |
-
<p><i>Please use <strong>%BLOG%</strong> and <strong>%PAGE%</strong> in your title template.</i></p>
|
1969 |
-
</td>
|
1970 |
-
</tr>
|
1971 |
-
<tr valign="center">
|
1972 |
-
<th >
|
1973 |
-
<label title="Add custom image on the top of the admin content." for="agca_header_logo_custom">Custom header image</label>
|
1974 |
-
</th>
|
1975 |
-
<td>
|
1976 |
-
<input title="If this field is not empty, image from provided URL will be visible in header" type="text" size="47" id="agca_header_logo_custom" name="agca_header_logo_custom" value="<?php echo get_option('agca_header_logo_custom'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_header_logo_custom').val('');" value="Clear" />
|
1977 |
-
<p><i>Add custom header image</i>.</p>
|
1978 |
-
</td>
|
1979 |
-
</tr>
|
1980 |
-
<tr valign="center">
|
1981 |
-
<th >
|
1982 |
-
<label title="Small Wordpress logo in admin top bar" for="agca_header_logo">Hide WordPress logo</label>
|
1983 |
-
</th>
|
1984 |
-
<td>
|
1985 |
-
<input class="agca-checkbox" title="Small Wordpress logo in admin top bar" type="checkbox" name="agca_header_logo" value="true" <?php if (get_option('agca_header_logo')==true) echo 'checked="checked" '; ?> />
|
1986 |
-
</td>
|
1987 |
-
</tr>
|
1988 |
-
<tr valign="center">
|
1989 |
-
<th >
|
1990 |
-
<label title="Hides site name section in admin bar" for="agca_remove_site_link">Hide site name in admin bar</label>
|
1991 |
-
</th>
|
1992 |
-
<td>
|
1993 |
-
<input class="agca-checkbox" title="Hides site name section in admin bar" type="checkbox" name="agca_remove_site_link" value="true" <?php if (get_option('agca_remove_site_link')==true) echo 'checked="checked" '; ?> />
|
1994 |
-
</td>
|
1995 |
-
</tr>
|
1996 |
-
<tr valign="center">
|
1997 |
-
<th >
|
1998 |
-
<label title="Hides default WordPress top bar dropdown menus on WordPress logo and Heading" for="agca_remove_top_bar_dropdowns">Hide WordPress top bar dropdown menus</label>
|
1999 |
-
</th>
|
2000 |
-
<td>
|
2001 |
-
<input class="agca-checkbox" title="Hides default WordPress top bar dropdown menus on WordPress logo and Heading" type="checkbox" name="agca_remove_top_bar_dropdowns" value="true" <?php if (get_option('agca_remove_top_bar_dropdowns')==true) echo 'checked="checked" '; ?> />
|
2002 |
-
</td>
|
2003 |
-
</tr>
|
2004 |
-
<tr valign="center">
|
2005 |
-
<th >
|
2006 |
-
<label title="Removes comments block from admin bar" for="agca_admin_bar_comments">Hide admin bar "Comments"</label>
|
2007 |
-
</th>
|
2008 |
-
<td>
|
2009 |
-
<input class="agca-checkbox" title="Removes comments block from admin bar" type="checkbox" name="agca_admin_bar_comments" value="true" <?php if (get_option('agca_admin_bar_comments')==true) echo 'checked="checked" '; ?> />
|
2010 |
-
</td>
|
2011 |
-
</tr>
|
2012 |
-
<tr valign="center" style="margin-top:20px;">
|
2013 |
-
<th >
|
2014 |
-
<label title="Removes 'New' block with its contents from admin bar" for="agca_admin_bar_new_content">Hide admin bar "New" content completely</label>
|
2015 |
-
</th>
|
2016 |
-
<td>
|
2017 |
-
<input class="agca-checkbox has-dependant dependant-opposite" data-dependant=".new_content_header_submenu" title="Removes 'New' block with its contents from admin bar" type="checkbox" name="agca_admin_bar_new_content" value="true" <?php if (get_option('agca_admin_bar_new_content')==true) echo 'checked="checked" '; ?> />
|
2018 |
-
</td>
|
2019 |
-
</tr>
|
2020 |
-
<tr class="new_content_header_submenu" valign="center">
|
2021 |
-
<th >
|
2022 |
-
<label title="Removes 'Post' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_post"> Hide "New" content -> Post submenu</label>
|
2023 |
-
</th>
|
2024 |
-
<td>
|
2025 |
-
<input class="agca-checkbox" title="Removes 'Post' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_post" value="true" <?php if (get_option('agca_admin_bar_new_content_post')==true) echo 'checked="checked" '; ?> />
|
2026 |
-
</td>
|
2027 |
-
</tr>
|
2028 |
-
<tr class="new_content_header_submenu" valign="center">
|
2029 |
-
<th >
|
2030 |
-
<label title="Removes 'Link' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_link"> Hide "New" content -> Link submenu</label>
|
2031 |
-
</th>
|
2032 |
-
<td>
|
2033 |
-
<input class="agca-checkbox" title="Removes 'Link' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_link" value="true" <?php if (get_option('agca_admin_bar_new_content_link')==true) echo 'checked="checked" '; ?> />
|
2034 |
-
</td>
|
2035 |
-
</tr>
|
2036 |
-
<tr class="new_content_header_submenu" valign="center">
|
2037 |
-
<th >
|
2038 |
-
<label title="Removes 'Page' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_page"> Hide "New" content -> Page submenu</label>
|
2039 |
-
</th>
|
2040 |
-
<td>
|
2041 |
-
<input class="agca-checkbox" title="Removes 'Page' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_page" value="true" <?php if (get_option('agca_admin_bar_new_content_page')==true) echo 'checked="checked" '; ?> />
|
2042 |
-
</td>
|
2043 |
-
</tr>
|
2044 |
-
<tr class="new_content_header_submenu" valign="center">
|
2045 |
-
<th >
|
2046 |
-
<label title="Removes 'User' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_user"> Hide "New" content -> User submenu</label>
|
2047 |
-
</th>
|
2048 |
-
<td>
|
2049 |
-
<input class="agca-checkbox" title="Removes 'User' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_user" value="true" <?php if (get_option('agca_admin_bar_new_content_user')==true) echo 'checked="checked" '; ?> />
|
2050 |
-
</td>
|
2051 |
-
</tr>
|
2052 |
-
<tr class="new_content_header_submenu" valign="center">
|
2053 |
-
<th >
|
2054 |
-
<label title="Removes 'Media' submenu from 'New' option from admin bar" for="agca_admin_bar_new_content_media"> Hide "New" content -> Media submenu</label>
|
2055 |
-
</th>
|
2056 |
-
<td>
|
2057 |
-
<input class="agca-checkbox" title="Removes 'Media' submenu from 'New' option from admin bar" type="checkbox" name="agca_admin_bar_new_content_media" value="true" <?php if (get_option('agca_admin_bar_new_content_media')==true) echo 'checked="checked" '; ?> />
|
2058 |
-
</td>
|
2059 |
</tr>
|
2060 |
-
|
2061 |
-
|
2062 |
-
|
2063 |
-
</th>
|
2064 |
-
<td>
|
2065 |
-
<input class="agca-checkbox" title="Removes update notifications from admin bar" type="checkbox" name="agca_admin_bar_update_notifications" value="true" <?php if (get_option('agca_admin_bar_update_notifications')==true) echo 'checked="checked" '; ?> />
|
2066 |
-
</td>
|
2067 |
-
</tr>
|
2068 |
-
<tr valign="center">
|
2069 |
-
<th >
|
2070 |
-
<label title="Remove 'Admin themes' from admin bar" for="agca_admin_bar_admin_themes">Remove "Admin themes" from admin bar</label>
|
2071 |
-
</th>
|
2072 |
-
<td>
|
2073 |
-
<input class="agca-checkbox" title="Remove 'Admin themes' from admin bar" type="checkbox" name="agca_admin_bar_admin_themes" value="true" <?php if (get_option('agca_admin_bar_admin_themes')==true) echo 'checked="checked" '; ?> />
|
2074 |
-
</td>
|
2075 |
-
</tr>
|
2076 |
-
<tr valign="center">
|
2077 |
-
<th scope="row">
|
2078 |
-
<label title="Adds custom text in admin top bar. Default Wordpress heading stays intact." for="agca_custom_site_heading">Custom blog heading</label>
|
2079 |
-
</th>
|
2080 |
-
<td>
|
2081 |
-
<textarea title="Adds custom text in admin top bar." 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>
|
2082 |
-
</td>
|
2083 |
-
</tr>
|
2084 |
-
<tr valign="center">
|
2085 |
-
<th scope="row">
|
2086 |
-
<label title="Hides yellow bar with notifications for new Wordpress release" for="agca_update_bar">Hide WordPress update notification bar</label>
|
2087 |
-
</th>
|
2088 |
-
<td>
|
2089 |
-
<input class="agca-checkbox" title="Hides yellow bar with notifications for new Wordpress release" type="checkbox" name="agca_update_bar" value="true" <?php if (get_option('agca_update_bar')==true) echo 'checked="checked" '; ?> />
|
2090 |
-
</td>
|
2091 |
-
</tr>
|
2092 |
-
<tr valign="center">
|
2093 |
-
<td colspan="2">
|
2094 |
-
<div class="ag_table_heading"><h3 tabindex="0">On the Right</h3></div>
|
2095 |
-
</td>
|
2096 |
-
<td>
|
2097 |
-
</td>
|
2098 |
-
</tr>
|
2099 |
-
<tr valign="center">
|
2100 |
-
<th scope="row">
|
2101 |
-
<label for="agca_screen_options_menu-options">Hide Screen Options menu</label>
|
2102 |
-
</th>
|
2103 |
-
<td>
|
2104 |
-
<input class="agca-checkbox" type="checkbox" name="agca_screen_options_menu" value="true" <?php if (get_option('agca_screen_options_menu')==true) echo 'checked="checked" '; ?> />
|
2105 |
-
</td>
|
2106 |
-
</tr>
|
2107 |
-
<tr valign="center">
|
2108 |
-
<th scope="row">
|
2109 |
-
<label for="agca_help_menu">Hide Help menu</label>
|
2110 |
-
</th>
|
2111 |
-
<td>
|
2112 |
-
<input class="agca-checkbox" type="checkbox" name="agca_help_menu" value="true" <?php if (get_option('agca_help_menu')==true) echo 'checked="checked" '; ?> />
|
2113 |
-
</td>
|
2114 |
-
</tr>
|
2115 |
-
<tr valign="center">
|
2116 |
-
<th scope="row">
|
2117 |
-
<label for="agca_options_menu">Hide Favorite Actions</label>
|
2118 |
-
</th>
|
2119 |
-
<td>
|
2120 |
-
<input class="agca-checkbox" type="checkbox" name="agca_options_menu" value="true" <?php if (get_option('agca_options_menu')==true) echo 'checked="checked" '; ?> />
|
2121 |
-
</td>
|
2122 |
-
</tr>
|
2123 |
-
<tr valign="center">
|
2124 |
-
<th scope="row">
|
2125 |
-
<label for="agca_howdy">Change Howdy text</label>
|
2126 |
-
</th>
|
2127 |
-
<td><input type="text" size="47" name="agca_howdy" value="<?php echo get_option('agca_howdy'); ?>" /></td>
|
2128 |
-
</tr>
|
2129 |
-
<tr valign="center">
|
2130 |
-
<th scope="row">
|
2131 |
-
<label title="Put 'Exit', for example" for="agca_logout">Change Log out text</label>
|
2132 |
-
</th>
|
2133 |
-
<td><input title="Put 'Exit', for example" type="text" size="47" name="agca_logout" value="<?php echo get_option('agca_logout'); ?>" /></td>
|
2134 |
-
</tr>
|
2135 |
-
<tr valign="center">
|
2136 |
-
<th scope="row">
|
2137 |
-
<label for="agca_remove_your_profile">Remove "Edit My Profile" option from dropdown menu</label>
|
2138 |
-
</th>
|
2139 |
-
<td>
|
2140 |
-
<input class="agca-checkbox" type="checkbox" name="agca_remove_your_profile" value="true" <?php if (get_option('agca_remove_your_profile')==true) echo 'checked="checked" '; ?> />
|
2141 |
-
</td>
|
2142 |
-
</tr>
|
2143 |
-
<tr valign="center">
|
2144 |
-
<th scope="row">
|
2145 |
-
<label title="If selected, hides all elements in top right corner, except Log Out button" for="agca_logout_only">Log out only</label>
|
2146 |
-
</th>
|
2147 |
-
<td>
|
2148 |
-
<input class="agca-checkbox" title="If selected, hides all elements in top right corner, except Log Out button" type="checkbox" name="agca_logout_only" value="true" <?php if (get_option('agca_logout_only')==true) echo 'checked="checked" '; ?> />
|
2149 |
-
</td>
|
2150 |
-
</tr>
|
2151 |
-
</table>
|
2152 |
-
</div>
|
2153 |
-
|
2154 |
-
<div id="section_admin_footer" style="display:none" class="ag_section">
|
2155 |
-
<h2 class="section_title">Admin Footer Settings</h2>
|
2156 |
-
<br /><br /><br /><br /><br /><br /><br />
|
2157 |
-
<table class="form-table" width="500px">
|
2158 |
-
<tr valign="center" class="ag_table_major_options">
|
2159 |
-
<td>
|
2160 |
-
<label title="Hides footer with all elements" for="agca_footer"><strong>Hide footer completely</strong></label>
|
2161 |
-
</td>
|
2162 |
-
<td>
|
2163 |
-
<input class="agca-checkbox" title="Hides footer with all elements" type="checkbox" id="agca_footer" name="agca_footer" value="true" <?php if (get_option('agca_footer')==true) echo 'checked="checked" '; ?> />
|
2164 |
-
</td>
|
2165 |
-
</tr>
|
2166 |
-
<tr valign="center">
|
2167 |
-
<td colspan="2">
|
2168 |
-
<div class="ag_table_heading"><h3 tabindex="0">Footer Options</h3></div>
|
2169 |
-
</td>
|
2170 |
-
<td>
|
2171 |
-
</td>
|
2172 |
-
</tr>
|
2173 |
-
<tr valign="center">
|
2174 |
-
<th scope="row">
|
2175 |
-
<label title="Hides default text in footer" for="agca_footer_left_hide">Hide footer text</label>
|
2176 |
-
</th>
|
2177 |
-
<td><input class="agca-checkbox" title="Hides default text in footer" type="checkbox" name="agca_footer_left_hide" value="true" <?php if (get_option('agca_footer_left_hide')==true) echo 'checked="checked" '; ?> />
|
2178 |
-
</td>
|
2179 |
-
</tr>
|
2180 |
-
<tr valign="center">
|
2181 |
-
<th scope="row">
|
2182 |
-
<label title="Replaces text 'Thank you for creating with WordPress' with custom text" for="agca_footer_left">Change footer text</label>
|
2183 |
-
</th>
|
2184 |
-
<td>
|
2185 |
-
<textarea title="Replaces text 'Thank you for creating with WordPress' with custom text" rows="5" name="agca_footer_left" cols="40"><?php echo htmlspecialchars(get_option('agca_footer_left')); ?></textarea>
|
2186 |
-
</td>
|
2187 |
-
</tr>
|
2188 |
-
<tr valign="center">
|
2189 |
-
<th scope="row">
|
2190 |
-
<label title="Hides text 'Get Version ...' on right" for="agca_footer_right_hide">Hide version text</label>
|
2191 |
-
</th>
|
2192 |
-
<td><input class="agca-checkbox" title="Hides text 'Get Version ...' on right" type="checkbox" name="agca_footer_right_hide" value="true" <?php if (get_option('agca_footer_right_hide')==true) echo 'checked="checked" '; ?> />
|
2193 |
-
</td>
|
2194 |
-
</tr>
|
2195 |
-
<tr valign="center">
|
2196 |
-
<th scope="row">
|
2197 |
-
<label title="Replaces text 'Get Version ...' with custom text" for="agca_footer_right">Change version text</label>
|
2198 |
-
</th>
|
2199 |
-
<td>
|
2200 |
-
<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>
|
2201 |
-
</td>
|
2202 |
-
</tr>
|
2203 |
-
</table>
|
2204 |
-
</div>
|
2205 |
-
|
2206 |
-
<div id="section_dashboard_page" style="display:none" class="ag_section">
|
2207 |
-
<h2 class="section_title">Dashboard Page Settings</h2>
|
2208 |
-
<table class="form-table" width="500px">
|
2209 |
-
<tr valign="center">
|
2210 |
-
<td colspan="2">
|
2211 |
-
<div class="ag_table_heading"><h3 tabindex="0">Dashboard Page Options</h3></div>
|
2212 |
-
</td>
|
2213 |
-
<td></td>
|
2214 |
-
</tr>
|
2215 |
-
<tr valign="center">
|
2216 |
-
<th scope="row">
|
2217 |
-
<label title="Main heading ('Dashboard') on Dashboard page" for="agca_dashboard_text">Change Dashboard heading text</label>
|
2218 |
-
</th>
|
2219 |
-
<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>
|
2220 |
-
</tr>
|
2221 |
-
<tr valign="center">
|
2222 |
-
<th scope="row">
|
2223 |
-
<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>
|
2224 |
-
</th>
|
2225 |
-
<td class="agca_editor">
|
2226 |
-
<?php $this->getTextEditor('agca_dashboard_text_paragraph'); ?>
|
2227 |
-
</td>
|
2228 |
-
</tr>
|
2229 |
-
<tr valign="center">
|
2230 |
-
<td colspan="2">
|
2231 |
-
<div class="ag_table_heading"><h3 tabindex="0">Dashboard widgets Options</h3></div>
|
2232 |
-
</td>
|
2233 |
-
<td></td>
|
2234 |
-
</tr>
|
2235 |
-
<tr><td>
|
2236 |
-
<p tabindex="0"><i><strong>Info:</strong> These settings override settings in Screen options on Dashboard page.</i></p>
|
2237 |
-
</td>
|
2238 |
-
</tr>
|
2239 |
-
<tr valign="center">
|
2240 |
-
<th scope="row">
|
2241 |
-
<label for="agca_dashboard_widget_welcome">Hide "Welcome" WordPress Message</label>
|
2242 |
-
</th>
|
2243 |
-
<td>
|
2244 |
-
<input class="agca-checkbox" type="checkbox" name="agca_dashboard_widget_welcome" value="true" <?php if (get_option('agca_dashboard_widget_welcome')==true) echo 'checked="checked" '; ?> />
|
2245 |
-
</td>
|
2246 |
-
</tr>
|
2247 |
-
<tr valign="center">
|
2248 |
-
<th scope="row">
|
2249 |
-
<label for="agca_dashboard_widget_activity">Hide "Activity" Dashboard Widget</label>
|
2250 |
-
</th>
|
2251 |
-
<td>
|
2252 |
-
<input class="agca-checkbox" type="checkbox" name="agca_dashboard_widget_activity" value="true" <?php if (get_option('agca_dashboard_widget_activity')==true) echo 'checked="checked" '; ?> />
|
2253 |
-
</td>
|
2254 |
-
</tr>
|
2255 |
-
<tr valign="center">
|
2256 |
-
<th scope="row">
|
2257 |
-
<label for="agca_dashboard_widget_qp">Hide "Quick Draft"</label>
|
2258 |
-
</th>
|
2259 |
-
<td>
|
2260 |
-
<input class="agca-checkbox" type="checkbox" name="agca_dashboard_widget_qp" value="true" <?php if (get_option('agca_dashboard_widget_qp')==true) echo 'checked="checked" '; ?> />
|
2261 |
-
</td>
|
2262 |
-
</tr>
|
2263 |
-
<tr valign="center">
|
2264 |
-
<th scope="row">
|
2265 |
-
<label for="agca_dashboard_widget_rn">Hide "At a Glance"</label>
|
2266 |
-
</th>
|
2267 |
-
<td>
|
2268 |
-
<input class="agca-checkbox" type="checkbox" name="agca_dashboard_widget_rn" value="true" <?php if (get_option('agca_dashboard_widget_rn')==true) echo 'checked="checked" '; ?> />
|
2269 |
-
</td>
|
2270 |
-
</tr>
|
2271 |
-
<tr valign="center">
|
2272 |
-
<th scope="row">
|
2273 |
-
<label title="This is 'WordPress News' or 'WordPress Development Blog' widget in older WordPress versions" for="agca_dashboard_widget_primary">Hide "WordPress News" widget</label>
|
2274 |
-
</th>
|
2275 |
-
<td>
|
2276 |
-
<input class="agca-checkbox" title="This is 'WordPress News' or 'WordPress Development Blog' widget in older WordPress versions" type="checkbox" name="agca_dashboard_widget_primary" value="true" <?php if (get_option('agca_dashboard_widget_primary')==true) echo 'checked="checked" '; ?> />
|
2277 |
-
</td>
|
2278 |
-
</tr>
|
2279 |
-
<tr valign="center">
|
2280 |
-
<th scope="row">
|
2281 |
-
<label title="This is 'Other WordPress News' widget by default" for="agca_dashboard_widget_secondary">Hide secondary widget area</label>
|
2282 |
-
</th>
|
2283 |
-
<td>
|
2284 |
-
<input class="agca-checkbox" title="This is 'Other WordPress News' widget by default" type="checkbox" name="agca_dashboard_widget_secondary" value="true" <?php if (get_option('agca_dashboard_widget_secondary')==true) echo 'checked="checked" '; ?> />
|
2285 |
-
</td>
|
2286 |
-
</tr>
|
2287 |
-
</table>
|
2288 |
-
</div>
|
2289 |
-
<div id="section_login_page" style="display:none" class="ag_section">
|
2290 |
-
<h2 class="section_title">Login Page Settings</h2>
|
2291 |
-
<table class="form-table" width="500px">
|
2292 |
-
|
2293 |
-
<tr valign="center">
|
2294 |
-
<td colspan="2">
|
2295 |
-
<div class="ag_table_heading"><h3 tabindex="0">Login Page Options</h3></div>
|
2296 |
-
</td>
|
2297 |
-
</tr>
|
2298 |
-
<tr valign="center">
|
2299 |
-
<td>
|
2300 |
-
<label for="agca_login_banner">Hide back to blog text</label>
|
2301 |
-
</td>
|
2302 |
-
<td>
|
2303 |
-
<input class="agca-checkbox" type="checkbox" name="agca_login_banner" title="Hide back to blog block" value="true" <?php if (get_option('agca_login_banner')==true) echo 'checked="checked" '; ?> />
|
2304 |
-
</td>
|
2305 |
-
</tr>
|
2306 |
-
<tr valign="center">
|
2307 |
-
<th scope="row">
|
2308 |
-
<label title="Changes '<- Back to ...' text in top bar on Login page" for="agca_login_banner_text">Change back to blog text</label>
|
2309 |
-
</th>
|
2310 |
-
<td>
|
2311 |
-
<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>
|
2312 |
-
</td>
|
2313 |
-
</tr>
|
2314 |
-
<tr valign="center">
|
2315 |
-
<th scope="row">
|
2316 |
-
<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>
|
2317 |
-
</th>
|
2318 |
-
<td>
|
2319 |
-
<input title="If this field is not empty, image from provided url will be visible on Login page" type="text" size="47" id="agca_login_photo_url" name="agca_login_photo_url" value="<?php echo get_option('agca_login_photo_url'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_login_photo_url').val('');" value="Clear" />
|
2320 |
-
<p><i>Put here link of new login image. Image can be of any size and type</i>.</p>
|
2321 |
-
</td>
|
2322 |
-
</tr>
|
2323 |
-
<tr valign="center">
|
2324 |
-
<th scope="row">
|
2325 |
-
<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>
|
2326 |
-
</th>
|
2327 |
-
<td>
|
2328 |
-
<input title="Put here custom link to a web location, that will be triggered on image click" type="text" size="47" id="agca_login_photo_href" name="agca_login_photo_href" value="<?php echo get_option('agca_login_photo_href'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_login_photo_href').val('');" value="Clear" />
|
2329 |
-
<p><i>For blog URL use %BLOG%</i></p>
|
2330 |
-
</td>
|
2331 |
-
</tr>
|
2332 |
-
<tr valign="center">
|
2333 |
-
<th scope="row">
|
2334 |
-
<label title="Remove login image completely" for="agca_login_photo_remove">Hide Login header image</label>
|
2335 |
-
</th>
|
2336 |
-
<td>
|
2337 |
-
<input class="agca-checkbox" title="Remove login image completely" type="checkbox" name="agca_login_photo_remove" value="true" <?php if (get_option('agca_login_photo_remove')==true) echo 'checked="checked" '; ?> />
|
2338 |
-
</td>
|
2339 |
-
</tr>
|
2340 |
-
<tr valign="center">
|
2341 |
-
<th scope="row">
|
2342 |
-
<label title="Rounds box on login page" for="agca_login_round_box">Round box corners</label>
|
2343 |
-
</th>
|
2344 |
-
<td>
|
2345 |
-
<input class="agca-checkbox has-dependant" data-dependant="#agca_login_round_box_size_block" title="Rounds box on login page" type="checkbox" name="agca_login_round_box" value="true" <?php if (get_option('agca_login_round_box')==true) echo 'checked="checked" '; ?> />
|
2346 |
-
</td>
|
2347 |
-
</tr>
|
2348 |
-
<?php
|
2349 |
-
$roundboxzizestyle = "style='display:none'";
|
2350 |
-
if (get_option('agca_login_round_box')=='true') $roundboxzizestyle = '';
|
2351 |
-
?>
|
2352 |
-
<tr valign="center" id="agca_login_round_box_size_block" <?php echo $roundboxzizestyle; ?> >
|
2353 |
-
<th scope="row">
|
2354 |
-
<label title="Size of rounded box curve" for="agca_login_round_box_size">Round box corners - size</label>
|
2355 |
-
</th>
|
2356 |
-
<td>
|
2357 |
-
<input class="validateNumber" limit="3" title="Size of rounded box curve" type="text" name="agca_login_round_box_size" type="text" size="3" value="<?php echo get_option('agca_login_round_box_size'); ?>" /> (px)
|
2358 |
-
</td>
|
2359 |
-
</tr>
|
2360 |
-
<tr valign="center">
|
2361 |
-
<th scope="row">
|
2362 |
-
<label title="Remove register link on login page" for="agca_login_register_remove">Remove register link</label>
|
2363 |
-
</th>
|
2364 |
-
<td>
|
2365 |
-
<input class="agca-checkbox has-dependant dependant-opposite" data-dependant="#agca_login_register_href_block" title="Remove register link on login page" type="checkbox" name="agca_login_register_remove" value="true" <?php if (get_option('agca_login_register_remove')==true) echo 'checked="checked" '; ?> />
|
2366 |
-
</td>
|
2367 |
-
</tr>
|
2368 |
-
<?php
|
2369 |
-
$agca_login_register_href_visibility = "style='display:none'";
|
2370 |
-
if (get_option('agca_login_register_remove')!='true') $agca_login_register_href_visibility = '';
|
2371 |
-
?>
|
2372 |
-
<tr valign="center" id="agca_login_register_href_block" <?php echo $agca_login_register_href_visibility; ?> >
|
2373 |
-
<th scope="row">
|
2374 |
-
<label title="Change register link on login page to point to your custom registration page." for="agca_login_register_href">Change register hyperlink</label>
|
2375 |
-
</th>
|
2376 |
-
<td>
|
2377 |
-
<input title="Change register link on login page to point to your custom registration page." type="text" size="47" id="agca_login_register_href" name="agca_login_register_href" value="<?php echo get_option('agca_login_register_href'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_login_register_href').val('');" value="Clear" />
|
2378 |
-
</td>
|
2379 |
-
</tr>
|
2380 |
-
<tr valign="center">
|
2381 |
-
<th scope="row">
|
2382 |
-
<label title="Removes lost password link on login page" for="agca_login_lostpassword_remove">Remove lost password link</label>
|
2383 |
-
</th>
|
2384 |
-
<td>
|
2385 |
-
<input class="agca-checkbox" class="agca-checkbox" title="Removes lost password link on login page" type="checkbox" name="agca_login_lostpassword_remove" value="true" <?php if (get_option('agca_login_lostpassword_remove')==true) echo 'checked="checked" '; ?> />
|
2386 |
-
</td>
|
2387 |
-
</tr>
|
2388 |
-
</table>
|
2389 |
-
</div>
|
2390 |
-
<?php
|
2391 |
-
/*ADMIN MENU*/
|
2392 |
-
?>
|
2393 |
-
<div id="section_admin_menu" style="display:none" class="ag_section">
|
2394 |
-
<h2 class="section_title">Admin Menu Settings</h2>
|
2395 |
-
<br /><br /><br /><br /><br /><br /><br /><br /><br />
|
2396 |
-
<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>
|
2397 |
-
<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>
|
2398 |
-
<br />
|
2399 |
-
<table class="form-table" width="500px">
|
2400 |
-
<tr valign="center" class="ag_table_major_options">
|
2401 |
-
<td><label for="agca_admin_menu_turnonoff"><strong>Turn on/off admin menu configuration</strong></label></td>
|
2402 |
-
<td><strong><input class="agca-radio" type="radio" name="agca_admin_menu_turnonoff" title="Turn ON admin menu configuration" value="on" <?php if(get_option('agca_admin_menu_turnonoff') == 'on') echo 'checked="checked" '; ?> /><span class="agca-radio-text" style="color:green">ON</span> <input class="agca-radio" type="radio" name="agca_admin_menu_turnonoff" title="Turn OFF admin menu configuration" value="off" <?php if(get_option('agca_admin_menu_turnonoff') != 'on') echo 'checked="checked"'; ?> /><span class="agca-radio-text" style="color:red">OFF</span></strong></td>
|
2403 |
-
</tr>
|
2404 |
-
<tr valign="center" class="ag_table_major_options">
|
2405 |
-
<td><label for="agca_admin_menu_agca_button_only"><strong>Hide admin menu completly</br>(administrator can see AG custom admin button)</strong></label></td>
|
2406 |
-
<td><input class="agca-checkbox" type="checkbox" name="agca_admin_menu_agca_button_only" title="Hide admin menu completly (administrator can see 'AG custom admin' button)" value="true" <?php if (get_option('agca_admin_menu_agca_button_only')==true) echo 'checked="checked" '; ?> /></td>
|
2407 |
-
</tr>
|
2408 |
-
<tr valign="center">
|
2409 |
-
<td colspan="2">
|
2410 |
-
<div class="ag_table_heading"><h3 tabindex="0">Edit / Remove Menu Items</h3></div>
|
2411 |
-
</td>
|
2412 |
-
<td>
|
2413 |
-
</td>
|
2414 |
-
</tr>
|
2415 |
-
<tr>
|
2416 |
-
<td colspan="2">
|
2417 |
-
Reset to default values
|
2418 |
-
<input type="button" class="agca_button" id="ag_edit_adminmenu_reset_button" title="Reset menu settings to default values" name="ag_edit_adminmenu_reset_button" value="Reset Settings" /><br />
|
2419 |
-
<p tabindex="0"><em>(click on the top menu items to show / hide their sub-menus)</em></p>
|
2420 |
-
<table id="ag_edit_adminmenu">
|
2421 |
-
<tr style="background-color:#999;">
|
2422 |
-
<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>
|
2423 |
-
</td>
|
2424 |
-
</tr>
|
2425 |
-
</table>
|
2426 |
-
<input type="hidden" size="47" id="ag_edit_adminmenu_json" name="ag_edit_adminmenu_json" value="<?php echo htmlspecialchars(get_option('ag_edit_adminmenu_json')); ?>" />
|
2427 |
-
</td>
|
2428 |
-
<td></td>
|
2429 |
-
</tr>
|
2430 |
-
<tr valign="center">
|
2431 |
-
<th scope="row">
|
2432 |
-
<label title="Remove empty space between some top menu items" for="agca_admin_menu_separators">Remove top menu items separators</label>
|
2433 |
-
</th>
|
2434 |
-
<td>
|
2435 |
-
<input class="agca-checkbox" title="Remove empty space between some top menu items" type="checkbox" name="agca_admin_menu_separators" value="true" <?php if (get_option('agca_admin_menu_separators')==true) echo 'checked="checked" '; ?> />
|
2436 |
-
</td>
|
2437 |
-
</tr>
|
2438 |
-
|
2439 |
-
<tr valign="center">
|
2440 |
-
<th scope="row">
|
2441 |
-
<label title="Removes small icons on admin menu buttons" for="agca_admin_menu_icons">Remove menu icons</label>
|
2442 |
-
</th>
|
2443 |
-
<td>
|
2444 |
-
<input class="agca-checkbox" title="Removes small icons on admin menu buttons" type="checkbox" name="agca_admin_menu_icons" value="true" <?php if (get_option('agca_admin_menu_icons')==true) echo 'checked="checked" '; ?> />
|
2445 |
-
</td>
|
2446 |
-
</tr>
|
2447 |
-
<tr valign="center">
|
2448 |
-
<th scope="row">
|
2449 |
-
<label title="Removes small arrow that appears on button hover" for="agca_admin_menu_arrow">Remove sub-menu arrow</label>
|
2450 |
-
</th>
|
2451 |
-
<td>
|
2452 |
-
<input class="agca-checkbox" title="Removes small arrow that appears on button hover" type="checkbox" name="agca_admin_menu_arrow" value="true" <?php if (get_option('agca_admin_menu_arrow')==true) echo 'checked="checked" '; ?> />
|
2453 |
-
</td>
|
2454 |
-
</tr>
|
2455 |
-
<tr valign="center">
|
2456 |
-
<th scope="row">
|
2457 |
-
<label title="Removes collapse button at the end of admin menu" for="agca_admin_menu_collapse_button">Remove "Collapse menu" button</label>
|
2458 |
-
</th>
|
2459 |
-
<td>
|
2460 |
-
<input class="agca-checkbox" title="Removes collapse button at the end of admin menu" type="checkbox" name="agca_admin_menu_collapse_button" value="true" <?php if (get_option('agca_admin_menu_collapse_button')==true) echo 'checked="checked" '; ?> />
|
2461 |
-
</td>
|
2462 |
-
</tr>
|
2463 |
-
<tr valign="center">
|
2464 |
-
<th scope="row">
|
2465 |
-
<label title="Rounds submenu pop-up box" for="agca_admin_menu_submenu_round">Round sub-menu pop-up box</label>
|
2466 |
-
</th>
|
2467 |
-
<td>
|
2468 |
-
<input class="agca-checkbox has-dependant" data-dependant="#agca_admin_menu_submenu_round_block" title="Rounds submenu pop-up box" type="checkbox" name="agca_admin_menu_submenu_round" value="true" <?php if (get_option('agca_admin_menu_submenu_round')==true) echo 'checked="checked" '; ?> />
|
2469 |
-
</td>
|
2470 |
-
</tr>
|
2471 |
-
<?php
|
2472 |
-
$roundsubmenuzizestyle = "style='display:none'";
|
2473 |
-
if (get_option('agca_admin_menu_submenu_round')=='true') $roundsubmenuzizestyle = '';
|
2474 |
-
?>
|
2475 |
-
<tr valign="center" id="agca_admin_menu_submenu_round_block" <?php echo $roundsubmenuzizestyle; ?> >
|
2476 |
-
<th scope="row">
|
2477 |
-
<label title="Size of rounded box curve" for="agca_admin_menu_submenu_round_size">Round sub-menu pop-up box - size</label>
|
2478 |
-
</th>
|
2479 |
-
<td>
|
2480 |
-
<input class="validateNumber" limit="3" title="Size of rounded box curve" type="text" name="agca_admin_menu_submenu_round_size" type="text" size="3" value="<?php echo get_option('agca_admin_menu_submenu_round_size'); ?>" /> (px)
|
2481 |
-
</td>
|
2482 |
-
</tr>
|
2483 |
-
<tr valign="center">
|
2484 |
-
<th scope="row">
|
2485 |
-
<label title="Adds custom logo above the admin menu" for="agca_admin_menu_brand">Add custom branding logo above the admin menu</label>
|
2486 |
-
</th>
|
2487 |
-
<td>
|
2488 |
-
<input id="agca_admin_menu_brand" title="Adds custom logo above the admin menu" type="text" size="47" name="agca_admin_menu_brand" value="<?php echo get_option('agca_admin_menu_brand'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_admin_menu_brand').val('');" value="Clear" />
|
2489 |
-
<p><i>Put here your custom image URL. Image can be of any size and type</i>.</p>
|
2490 |
-
</td>
|
2491 |
-
</tr>
|
2492 |
-
<tr valign="center">
|
2493 |
-
<th>
|
2494 |
-
<label title="Change branding logo link</br></br>Use:</br><strong>%BLOG%</strong> - for blog URL" for="agca_admin_menu_brand_link">Change branding logo link</label>
|
2495 |
-
</th>
|
2496 |
-
<td>
|
2497 |
-
<input id="agca_admin_menu_brand_link" type="text" size="47" name="agca_admin_menu_brand_link" value="<?php echo get_option('agca_admin_menu_brand_link'); ?>" /><input type="button" class="agca_button" onClick="jQuery('#agca_admin_menu_brand_link').val('');" value="Clear" />
|
2498 |
-
<p><i>Put here a link for branding logo</i>.</p>
|
2499 |
-
</td>
|
2500 |
-
</tr>
|
2501 |
-
<tr valign="center">
|
2502 |
-
<th scope="row">
|
2503 |
-
<label title="Choose how admin menu should behave on mobile devices / small screens" for="agca_admin_menu_autofold">Admin menu auto folding</label>
|
2504 |
-
</th>
|
2505 |
-
<td>
|
2506 |
-
<select title="Choose how admin menu should behave on mobile devices / small screens" class="agca-selectbox" name="agca_admin_menu_autofold" >
|
2507 |
-
<option value="" <?php echo (get_option('agca_admin_menu_autofold') == "")?" selected ":""; ?> >Default</option>
|
2508 |
-
<option value="force" <?php echo (get_option('agca_admin_menu_autofold') == "force")?" selected ":""; ?> >Force admin menu auto-folding</option>
|
2509 |
-
<option value="disable" <?php echo (get_option('agca_admin_menu_autofold') == "disable")?" selected ":""; ?> >Disable admin menu auto-folding</option>
|
2510 |
-
</select>
|
2511 |
-
</td>
|
2512 |
-
</tr>
|
2513 |
-
<tr valign="center">
|
2514 |
-
<td colspan="2">
|
2515 |
-
<div class="ag_table_heading"><h3 tabindex="0">Add New Menu Items</h3></div>
|
2516 |
-
</td>
|
2517 |
-
<td>
|
2518 |
-
</td>
|
2519 |
-
</tr>
|
2520 |
<tr>
|
2521 |
<td colspan="2">
|
2522 |
-
|
2523 |
-
<table id="ag_add_adminmenu">
|
2524 |
<tr>
|
2525 |
<td colspan="2">
|
2526 |
name:<input type="text" size="47" title="New button visible name" id="ag_add_adminmenu_name" name="ag_add_adminmenu_name" />
|
2527 |
url:<input type="text" size="47" title="New button link" id="ag_add_adminmenu_url" name="ag_add_adminmenu_url" />
|
2528 |
-
|
2529 |
-
<option value="
|
2530 |
-
<option value="
|
2531 |
-
<option value="_parent">parent</option>
|
2532 |
-
<option value="_top">top</option>
|
2533 |
</select>
|
2534 |
<input type="button" id="ag_add_adminmenu_button" class="agca_button" title="Add new item button" name="ag_add_adminmenu_button" value="Add new item" />
|
2535 |
</td><td></td>
|
@@ -2540,178 +2579,144 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
2540 |
<td>
|
2541 |
</td>
|
2542 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2543 |
</table>
|
2544 |
</div>
|
2545 |
<div id="section_ag_colorizer_settings" style="display:none" class="ag_section">
|
2546 |
<h2 class="section_title">Colorizer Page</h2>
|
2547 |
-
<
|
2548 |
-
<table class="form-table" width="500px">
|
2549 |
<tr valign="center" class="ag_table_major_options">
|
2550 |
-
<td><label for="agca_colorizer_turnonoff"><strong>
|
2551 |
-
<td><strong><input class="agca-radio" type="radio" name="agca_colorizer_turnonoff" title="
|
2552 |
-
</tr>
|
2553 |
-
<tr valign="center">
|
2554 |
-
<td colspan="2">
|
2555 |
-
<div class="ag_table_heading"><h3 tabindex="0">Global Color Options</h3></div>
|
2556 |
-
</td>
|
2557 |
-
<td>
|
2558 |
-
</td>
|
2559 |
</tr>
|
2560 |
-
|
2561 |
-
|
2562 |
-
|
2563 |
-
|
2564 |
-
|
2565 |
-
|
2566 |
-
|
2567 |
-
|
2568 |
-
|
2569 |
-
|
2570 |
-
|
2571 |
-
|
2572 |
-
|
2573 |
-
|
2574 |
-
|
2575 |
-
|
2576 |
-
|
2577 |
-
|
2578 |
-
|
2579 |
-
|
2580 |
-
|
2581 |
-
|
2582 |
-
|
2583 |
-
|
2584 |
-
|
2585 |
-
|
2586 |
-
|
2587 |
-
|
2588 |
-
|
2589 |
-
|
2590 |
-
<td><input type="text" id="color_admin_menu_top_button_background" name="color_admin_menu_top_button_background" class="color_picker" value="<?php echo $this->getAGCAColor('color_admin_menu_top_button_background'); ?>" />
|
2591 |
-
<input type="button" alt="color_admin_menu_top_button_background" class="pick_color_button agca_button" value="Pick color" />
|
2592 |
-
<input type="button" alt="color_admin_menu_top_button_background" class="pick_color_button_clear agca_button" value="Clear" />
|
2593 |
-
</td>
|
2594 |
-
</tr>
|
2595 |
-
<tr valign="center">
|
2596 |
-
<th><label title="Change button text color" for="color_admin_menu_font">Button text color:</label></th>
|
2597 |
-
<td><input type="text" id="color_admin_menu_font" name="color_admin_menu_font" class="color_picker" value="<?php echo $this->getAGCAColor('color_admin_menu_font'); ?>" />
|
2598 |
-
<input type="button" alt="color_admin_menu_font" class="pick_color_button agca_button" value="Pick color" />
|
2599 |
-
<input type="button" alt="color_admin_menu_font" class="pick_color_button_clear agca_button" value="Clear" />
|
2600 |
-
</td>
|
2601 |
-
</tr>
|
2602 |
-
<tr valign="center">
|
2603 |
-
<th><label title="Change button background color for current button" for="color_admin_menu_top_button_current_background">Button current background color:</label></th>
|
2604 |
-
<td><input type="text" id="color_admin_menu_top_button_current_background" name="color_admin_menu_top_button_current_background" class="color_picker" value="<?php echo $this->getAGCAColor('color_admin_menu_top_button_current_background'); ?>" />
|
2605 |
-
<input type="button" alt="color_admin_menu_top_button_current_background" class="pick_color_button agca_button" value="Pick color" />
|
2606 |
-
<input type="button" alt="color_admin_menu_top_button_current_background" class="pick_color_button_clear agca_button" value="Clear" />
|
2607 |
-
</td>
|
2608 |
-
</tr>
|
2609 |
-
<tr valign="center">
|
2610 |
-
<th><label title="Change button background color on mouseover" for="color_admin_menu_top_button_hover_background">Button hover background color:</label></th>
|
2611 |
-
<td><input type="text" id="color_admin_menu_top_button_hover_background" name="color_admin_menu_top_button_hover_background" class="color_picker" value="<?php echo $this->getAGCAColor('color_admin_menu_top_button_hover_background'); ?>" />
|
2612 |
-
<input type="button" alt="color_admin_menu_top_button_hover_background" class="pick_color_button agca_button" value="Pick color" />
|
2613 |
-
<input type="button" alt="color_admin_menu_top_button_hover_background" class="pick_color_button_clear agca_button" value="Clear" />
|
2614 |
-
</td>
|
2615 |
-
</tr>
|
2616 |
-
<tr valign="center">
|
2617 |
-
<th><label title="Change submenu item background color" for="color_admin_menu_submenu_background">Submenu button background color:</label></th>
|
2618 |
-
<td><input type="text" id="color_admin_menu_submenu_background" name="color_admin_menu_submenu_background" class="color_picker" value="<?php echo $this->getAGCAColor('color_admin_menu_submenu_background'); ?>" />
|
2619 |
-
<input type="button" alt="color_admin_menu_submenu_background" class="pick_color_button agca_button" value="Pick color" />
|
2620 |
-
<input type="button" alt="color_admin_menu_submenu_background" class="pick_color_button_clear agca_button" value="Clear" />
|
2621 |
-
</td>
|
2622 |
-
</tr>
|
2623 |
-
<tr valign="center">
|
2624 |
-
<th><label title="Change submenu item background color on mouseover" for="color_admin_menu_submenu_background_hover">Submenu button hover background color:</label></th>
|
2625 |
-
<td><input type="text" id="color_admin_menu_submenu_background_hover" name="color_admin_menu_submenu_background_hover" class="color_picker" value="<?php echo $this->getAGCAColor('color_admin_menu_submenu_background_hover'); ?>" />
|
2626 |
-
<input type="button" alt="color_admin_menu_submenu_background_hover" class="pick_color_button agca_button" value="Pick color" />
|
2627 |
-
<input type="button" alt="color_admin_menu_submenu_background_hover" class="pick_color_button_clear agca_button" value="Clear" />
|
2628 |
-
</td>
|
2629 |
-
</tr>
|
2630 |
-
<tr valign="center">
|
2631 |
-
<th><label title="Change submenu item text color" for="color_admin_submenu_font">Submenu text color:</label></th>
|
2632 |
-
<td><input type="text" id="color_admin_submenu_font" name="color_admin_submenu_font" class="color_picker" value="<?php echo $this->getAGCAColor('color_admin_submenu_font'); ?>" />
|
2633 |
-
<input type="button" alt="color_admin_submenu_font" class="pick_color_button agca_button" value="Pick color" />
|
2634 |
-
<input type="button" alt="color_admin_submenu_font" class="pick_color_button_clear agca_button" value="Clear" />
|
2635 |
-
</td>
|
2636 |
-
</tr>
|
2637 |
-
<tr valign="center">
|
2638 |
-
<th><label title="Change background color of element behind admin menu" for="color_admin_menu_behind_background">Wrapper background color:</label></th>
|
2639 |
-
<td><input type="text" id="color_admin_menu_behind_background" name="color_admin_menu_behind_background" class="color_picker" value="<?php echo $this->getAGCAColor('color_admin_menu_behind_background'); ?>" />
|
2640 |
-
<input type="button" alt="color_admin_menu_behind_background" class="pick_color_button agca_button" value="Pick color" />
|
2641 |
-
<input type="button" alt="color_admin_menu_behind_background" class="pick_color_button_clear agca_button" value="Clear" />
|
2642 |
-
</td>
|
2643 |
-
</tr>
|
2644 |
-
<tr valign="center">
|
2645 |
-
<td colspan="2">
|
2646 |
-
<div class="ag_table_heading"><h3 tabindex="0">Font Color Options</h3></div>
|
2647 |
-
</td>
|
2648 |
-
<td>
|
2649 |
-
</td>
|
2650 |
-
</tr>
|
2651 |
-
<tr valign="center">
|
2652 |
-
<th><label title="Change color in content text" for="color_font_content">Content text color:</label></th>
|
2653 |
-
<td><input type="text" id="color_font_content" name="color_font_content" class="color_picker" value="<?php echo $this->getAGCAColor('color_font_content'); ?>" />
|
2654 |
-
<input type="button" alt="color_font_content" class="pick_color_button agca_button" value="Pick color" />
|
2655 |
-
<input type="button" alt="color_font_content" class="pick_color_button_clear agca_button" value="Clear" />
|
2656 |
-
</td>
|
2657 |
-
</tr>
|
2658 |
-
<tr valign="center">
|
2659 |
-
<th><label title="Change color of admin bar text" for="color_font_header">Admin bar text color:</label></th>
|
2660 |
-
<td><input type="text" id="color_font_header" name="color_font_header" class="color_picker" value="<?php echo $this->getAGCAColor('color_font_header'); ?>" />
|
2661 |
-
<input type="button" alt="color_font_header" class="pick_color_button agca_button" value="Pick color" />
|
2662 |
-
<input type="button" alt="color_font_header" class="pick_color_button_clear agca_button" value="Clear" />
|
2663 |
-
</td>
|
2664 |
-
</tr>
|
2665 |
-
<tr valign="center">
|
2666 |
-
<th><label title="Change color in fotter text" for="color_font_footer">Footer text color:</label></th>
|
2667 |
-
<td><input type="text" id="color_font_footer" name="color_font_footer" class="color_picker" value="<?php echo $this->getAGCAColor('color_font_footer'); ?>" />
|
2668 |
-
<input type="button" alt="color_font_footer" class="pick_color_button agca_button" value="Pick color" />
|
2669 |
-
<input type="button" alt="color_font_footer" class="pick_color_button_clear agca_button" value="Clear" />
|
2670 |
-
</td>
|
2671 |
-
</tr>
|
2672 |
-
<tr valign="center">
|
2673 |
-
<td colspan="2">
|
2674 |
-
<div class="ag_table_heading"><h3 tabindex="0">Widgets Color Options</h3></div>
|
2675 |
-
</td>
|
2676 |
-
<td>
|
2677 |
-
</td>
|
2678 |
-
</tr>
|
2679 |
-
<tr valign="center">
|
2680 |
-
<th><label title="Change color in header text" for="color_widget_bar">Title bar background color:</label></th>
|
2681 |
-
<td><input type="text" id="color_widget_bar" name="color_widget_bar" class="color_picker" value="<?php echo $this->getAGCAColor('color_widget_bar'); ?>" />
|
2682 |
-
<input type="button" alt="color_widget_bar" class="pick_color_button agca_button" value="Pick color" />
|
2683 |
-
<input type="button" alt="color_widget_bar" class="pick_color_button_clear agca_button" value="Clear" />
|
2684 |
-
</td>
|
2685 |
-
</tr>
|
2686 |
-
<tr valign="center">
|
2687 |
-
<th><label title="Change widget background color" for="color_widget_background">Background color:</label></th>
|
2688 |
-
<td><input type="text" id="color_widget_background" name="color_widget_background" class="color_picker" value="<?php echo $this->getAGCAColor('color_widget_background'); ?>" />
|
2689 |
-
<input type="button" alt="color_widget_background" class="pick_color_button agca_button" value="Pick color" />
|
2690 |
-
<input type="button" alt="color_widget_background" class="pick_color_button_clear agca_button" value="Clear" />
|
2691 |
-
</td>
|
2692 |
-
</tr>
|
2693 |
</table>
|
2694 |
<input type="hidden" size="47" id="ag_colorizer_json" name="ag_colorizer_json" value="<?php echo htmlspecialchars(get_option('ag_colorizer_json')); ?>" />
|
2695 |
<div id="picker"></div>
|
2696 |
</div>
|
2697 |
<div id="section_templates" style="display:none" class="ag_section">
|
2698 |
<h2 class="section_title"><span style="float:left">Admin Themes</span></h2>
|
2699 |
-
<
|
2700 |
-
<table class="form-table" width="500px">
|
2701 |
<tr valign="center">
|
2702 |
<td>
|
2703 |
-
<div id="agca_templates">
|
2704 |
-
|
2705 |
-
</div>
|
2706 |
</td>
|
2707 |
-
</tr>
|
2708 |
-
<tr>
|
2709 |
<td>
|
2710 |
<div id="advanced_template_options" style="display:none">
|
2711 |
-
<
|
2712 |
-
|
2713 |
-
|
2714 |
-
|
|
|
|
|
2715 |
</div>
|
2716 |
</td>
|
2717 |
</tr>
|
@@ -2719,29 +2724,15 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
2719 |
</div>
|
2720 |
<div id="section_advanced" style="display:none" class="ag_section">
|
2721 |
<h2 class="section_title">Advanced</h2>
|
2722 |
-
|
2723 |
-
<br /><br />
|
2724 |
<table class="form-table" width="500px">
|
2725 |
-
|
2726 |
-
<tr valign="center">
|
2727 |
-
<th scope="row">
|
2728 |
-
<label title="Choose which capability will be used to distinct admin user from other users.</br>If customizations are not applied for admin users, this setting will be used to define admin users." for="agca_admin_capability">Distinguish admin from other users by capability:</label>
|
2729 |
-
</th>
|
2730 |
-
<td><?php echo $this->admin_capabilities; ?> <i>(<strong>edit_dashboard</strong> is selected by default)</i>
|
2731 |
-
</td>
|
2732 |
-
<td>
|
2733 |
-
</td>
|
2734 |
-
</tr>
|
2735 |
<tr valign="center">
|
2736 |
<td colspan="2">
|
2737 |
-
<
|
2738 |
-
<p><i><strong>Info: </strong>These options will override existing customizations.</i></p>
|
2739 |
-
<br />
|
2740 |
</td><td></td>
|
2741 |
</tr>
|
2742 |
<tr valign="center">
|
2743 |
<th scope="row">
|
2744 |
-
<label title="Add custom CSS script to override existing styles" for="agca_script_css">Custom CSS
|
2745 |
</th>
|
2746 |
<td>
|
2747 |
<textarea style="width:100%;height:200px" title="Add custom CSS script to override existing styles" rows="5" id="agca_custom_css" name="agca_custom_css" cols="40"><?php echo htmlspecialchars(get_option('agca_custom_css')); ?></textarea>
|
@@ -2760,25 +2751,18 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
2760 |
<label title="Export / import settings" for="agca_export_import">Export / import settings</label>
|
2761 |
</th>
|
2762 |
<td id="import_file_area">
|
2763 |
-
<div id="export_settings_additional" style="display: none" ><input class="agca-checkbox" type="checkbox" id="export_settings_include_admin_menu" name="export_settings_include_admin_menu" /> <label title="Includes 'Admin Menu' configuration in exported settings.</br>Include admin menu settings only if your admin menu looks the same on multiple sites.</br>If configurations are different, imported menu settings could be wrong. In that case, use 'Reset Settings' button from 'Admin Menu' section.</br>(Custom buttons and menu configuration will be included anyway)">Include Admin Menu(?)</label></div>
|
2764 |
<input class="agca_button" type="button" name="agca_export_settings" value="Export Settings" onclick="exportSettings();"/></br>
|
2765 |
<input type="file" id="settings_import_file" name="settings_import_file" style="display: none"/>
|
2766 |
<input type="hidden" id="_agca_import_settings" name="_agca_import_settings" value="false" />
|
2767 |
<input type="hidden" id="_agca_export_settings" name="_agca_export_settings" value="false" />
|
2768 |
<input class="agca_button" type="button" name="agca_import_settings" value="Import Settings" onclick="importSettings();"/>
|
2769 |
</td>
|
2770 |
-
|
2771 |
-
|
2772 |
-
|
2773 |
-
|
2774 |
</tr>
|
2775 |
-
|
2776 |
</table>
|
2777 |
</div>
|
2778 |
-
<
|
2779 |
-
<p class="submit">
|
2780 |
<input type="button" id="save_plugin_settings" style="padding:0px" title="Save AG Custom Admin configuration" class="button-primary" value="<?php _e('Save Changes') ?>" onClick="savePluginSettings()" />
|
2781 |
-
</p>
|
2782 |
|
2783 |
</form>
|
2784 |
<form id="agca_templates_form" name="agca_templates_form" action="<?php echo $_SERVER['PHP_SELF'];?>?page=ag-custom-admin/plugin.php" method="post">
|
@@ -2787,10 +2771,133 @@ jQuery('#ag_add_adminmenu').append(buttonsJq);
|
|
2787 |
<input type="hidden" id="templates_name" name="templates_name" value="" />
|
2788 |
</form>
|
2789 |
</div>
|
2790 |
-
|
2791 |
-
<br />
|
2792 |
-
<br /><br /><br /><p id="agca_footer_support_info">If you have any questions, ideas for future development or you want to report an issue, please visit our support site:</br><a target="_blank" href="http://wordpressadminpanel.com/agca-support/">Visit support site</a></br><br />You can also support future development of this plugin by giving a donation: </br><a target="_blank" href="http://wordpressadminpanel.com/agca-support/support-for-future-development/">Give a donation</a><br /><br />Thank you! Have a nice blogging!</p><br />
|
2793 |
<?php
|
2794 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2795 |
}
|
2796 |
?>
|
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.5
|
8 |
Author URI: http://www.argonius.com/
|
9 |
|
10 |
Copyright 2015. Argonius (email : info@argonius.com)
|
41 |
$this->checkPOST();
|
42 |
$this->checkGET();
|
43 |
|
44 |
+
if(function_exists("add_filter")){
|
45 |
+
add_filter('admin_title', array(&$this,'change_title'), 10, 2);
|
46 |
+
add_filter('plugin_row_meta', array(&$this,'jk_filter_plugin_links'), 10, 2);
|
47 |
+
}
|
48 |
+
|
49 |
add_action('admin_init', array(&$this,'agca_register_settings'));
|
50 |
add_action('admin_init', array(&$this,'agca_init_session'));
|
51 |
add_action('admin_head', array(&$this,'print_admin_css'));
|
60 |
/*Initialize properties*/
|
61 |
$this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
|
62 |
|
63 |
+
$this->agca_version = "1.5";
|
64 |
|
65 |
+
//TODO:upload images programmatically
|
66 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
}
|
68 |
// Add donate and support information
|
69 |
function jk_filter_plugin_links($links, $file)
|
70 |
{
|
71 |
if ( $file == plugin_basename(__FILE__) )
|
72 |
{
|
73 |
+
$links[] = '<a href="tools.php?page=ag-custom-admin/plugin.php">' . __('Settings') . '</a>';
|
74 |
+
$links[] = '<a href="tools.php?page=ag-custom-admin/plugin.php#ag-templates">' . __('Admin Themes') . '</a>';
|
75 |
+
$links[] = '<a href="http://wordpressadminpanel.com/agca-support/">' . __('Support') . '</a>';
|
76 |
+
$links[] = '<a href="http://wordpressadminpanel.com/agca-support/support-for-future-development">' . __('Donate') . '</a>';
|
77 |
}
|
78 |
return $links;
|
79 |
}
|
369 |
register_setting( 'agca-options-group', 'agca_logout' );
|
370 |
register_setting( 'agca-options-group', 'agca_remove_your_profile' );
|
371 |
register_setting( 'agca-options-group', 'agca_logout_only' );
|
|
|
372 |
register_setting( 'agca-options-group', 'agca_custom_title' );
|
373 |
register_setting( 'agca-options-group', 'agca_howdy' );
|
374 |
register_setting( 'agca-options-group', 'agca_header' );
|
447 |
register_setting( 'agca-options-group', 'agca_admin_menu_brand_link' );
|
448 |
register_setting( 'agca-options-group', 'agca_admin_menu_autofold' );
|
449 |
register_setting( 'agca-options-group', 'ag_edit_adminmenu_json' );
|
450 |
+
register_setting( 'agca-options-group', 'ag_edit_adminmenu_json_new' );
|
451 |
register_setting( 'agca-options-group', 'ag_add_adminmenu_json' );
|
452 |
register_setting( 'agca-options-group', 'ag_colorizer_json' );
|
453 |
register_setting( 'agca-options-group', 'agca_colorizer_turnonoff' );
|
506 |
'agca_logout',
|
507 |
'agca_remove_your_profile',
|
508 |
'agca_logout_only',
|
|
|
509 |
'agca_custom_title',
|
510 |
'agca_howdy',
|
511 |
'agca_header',
|
565 |
'agca_admin_menu_autofold',
|
566 |
'agca_admin_menu_collapse_button',
|
567 |
'ag_edit_adminmenu_json',
|
568 |
+
'ag_edit_adminmenu_json_new',
|
569 |
'ag_add_adminmenu_json',
|
570 |
'ag_colorizer_json',
|
571 |
'agca_colorizer_turnonof',
|
614 |
$optionValue = "";
|
615 |
$optionValue = $savedOptions[$optionName];
|
616 |
|
617 |
+
if($optionName == "ag_edit_adminmenu_json" || "ag_edit_adminmenu_json_new"|| $optionName == "ag_add_adminmenu_json" ||$optionName == "ag_colorizer_json"){
|
618 |
$optionValue = str_replace("\\\"", "\"", $optionValue);
|
619 |
$optionValue = str_replace("\\\'", "\'", $optionValue);
|
620 |
}else if($optionName == "agca_custom_js" || $optionName == "agca_custom_css"){
|
696 |
}
|
697 |
|
698 |
function agca_create_admin_button($name,$arr) {
|
699 |
+
|
|
|
700 |
$href = $arr["value"];
|
701 |
$target =$arr["target"];
|
702 |
+
$button ="<li class=\"wp-not-current-submenu menu-top menu-top-last\" id=\"menu-$name\"><a href=\"$href\" target=\"$target\" class=\"wp-not-current-submenu menu-top\"><div class=\"wp-menu-arrow\"><div></div></div><div class=\"wp-menu-image dashicons-before dashicons-admin-$name\"><br></div><div class=\"wp-menu-name\">$name</div></a></li>";
|
703 |
+
|
704 |
+
return $button;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
705 |
}
|
706 |
function agca_decode($code){
|
707 |
$code = str_replace("{","",$code);
|
733 |
}else if($type == "buttonsJq"){
|
734 |
$elements = json_decode($arr[0],true);
|
735 |
if($elements !=""){
|
736 |
+
foreach($elements as $k => $v){
|
737 |
+
$array.='<tr><td colspan="2"><button target="'.$v['target'].'" title="'.$v['value'].'" type="button">'.$k.'</button> <a style="cursor:pointer;" title="Edit" class="button_edit"><span class="dashicons dashicons-edit"></span></a> <a style="cursor:pointer" title="Delete" class="button_remove"><span class="dashicons dashicons-no"></span></a></td><td></td></tr>';
|
738 |
+
}
|
739 |
}
|
740 |
}else{
|
741 |
if(isset($arr[$type])){
|
796 |
|
797 |
$this->context = "page";
|
798 |
$wpversion = $this->get_wp_version();
|
799 |
+
|
800 |
?>
|
801 |
|
802 |
|
806 |
var agca_debug = <?php echo ($this->agca_debug)?"true":"false"; ?>;
|
807 |
var jQueryScriptOutputted = false;
|
808 |
var agca_context = "page";
|
809 |
+
var agca_orig_admin_menu = [];
|
810 |
function initJQuery() {
|
811 |
//if the jQuery object isn't available
|
812 |
if (typeof(jQuery) == 'undefined') {
|
1038 |
if($selectedValue == ""){
|
1039 |
$selectedValue = "edit_dashboard";
|
1040 |
}
|
1041 |
+
/*echo $selectedValue;
|
1042 |
+
die;*/
|
1043 |
+
ksort($capabs);
|
1044 |
+
foreach($capabs as $k=>$v){
|
1045 |
$selected = "";
|
1046 |
+
if($this->startsWith($k, 'level_')) continue;
|
1047 |
if($selectedValue == $k){
|
1048 |
$selected = " selected=\"selected\" ";
|
1049 |
}
|
1050 |
+
//TODO:Find out why this does not work
|
1051 |
+
//$capabilitySelector .="<option val=\"$k\" $selected >".str_replace(' ', ' ', ucwords(str_replace('_', ' ', $k))) ."</option>\n";
|
1052 |
$capabilitySelector .="<option val=\"$k\" $selected >".$k."</option>\n";
|
1053 |
}
|
1054 |
|
1252 |
<?php
|
1253 |
}
|
1254 |
|
1255 |
+
function menu_item_cleartext($name){
|
1256 |
+
if(strpos($name,' <span') !== false){
|
1257 |
+
$name = explode(' <span', $name)[0];
|
1258 |
+
}
|
1259 |
+
$name = trim($name);
|
1260 |
+
return $name;
|
1261 |
+
}
|
1262 |
+
|
1263 |
+
/**
|
1264 |
+
* Loops through all original menu items, and creates customizations array
|
1265 |
+
* applies previous customizations if set
|
1266 |
+
* @return array|mixed|object
|
1267 |
+
*/
|
1268 |
+
function get_menu_customizations(){
|
1269 |
+
global $menu;
|
1270 |
+
global $submenu;
|
1271 |
+
|
1272 |
+
//var_dump($menu); die;
|
1273 |
+
$previousCustomizations = json_decode(get_option('ag_edit_adminmenu_json_new'), true);
|
1274 |
+
|
1275 |
+
$customizationsSet = true;
|
1276 |
+
if($previousCustomizations == null){
|
1277 |
+
$customizationsSet = false;
|
1278 |
+
}
|
1279 |
+
|
1280 |
+
//set default menu configuration
|
1281 |
+
//and apply previously saved customizations
|
1282 |
+
$m = [];
|
1283 |
+
foreach($menu as $top){
|
1284 |
+
$name = $top[0];
|
1285 |
+
$url = $top[2];
|
1286 |
+
$cls = isset($top[5])?$top[5]:"";
|
1287 |
+
$remove = false;
|
1288 |
+
if($name == '') continue;
|
1289 |
+
$pc = null;
|
1290 |
+
$name = $this->menu_item_cleartext($name);
|
1291 |
+
|
1292 |
+
//apply previous submenu customizations
|
1293 |
+
if($customizationsSet){
|
1294 |
+
$pc = $previousCustomizations[$url];
|
1295 |
+
}
|
1296 |
+
|
1297 |
+
//get submenu
|
1298 |
+
$s = [];
|
1299 |
+
if(isset($submenu[$url])){
|
1300 |
+
$sitems = $submenu[$url];
|
1301 |
+
foreach($sitems as $key=>$sub){
|
1302 |
+
$nameSub = $sub[0];
|
1303 |
+
$urlSub = $sub[2];
|
1304 |
+
$removeSub = false;
|
1305 |
+
$nameSub = $this->menu_item_cleartext($nameSub);
|
1306 |
+
$s[$key]=[
|
1307 |
+
'name'=>$nameSub,
|
1308 |
+
'new'=>'',
|
1309 |
+
'remove'=>$removeSub,
|
1310 |
+
'url'=>$urlSub
|
1311 |
+
];
|
1312 |
+
|
1313 |
+
if(isset($pc) && isset($pc['submenus'])){
|
1314 |
+
$s[$key]['new'] = $pc['submenus'][$key]['new'];
|
1315 |
+
$s[$key]['remove'] = $pc['submenus'][$key]['remove'];
|
1316 |
+
|
1317 |
+
if($s[$key]['new'] == null){
|
1318 |
+
$s[$key]['new'] = '';
|
1319 |
+
}
|
1320 |
+
if($s[$key]['remove'] == null){
|
1321 |
+
$s[$key]['remove'] = false;
|
1322 |
+
}
|
1323 |
+
}
|
1324 |
+
}
|
1325 |
+
}
|
1326 |
+
|
1327 |
+
$m[$url]=[
|
1328 |
+
'name'=>$name,
|
1329 |
+
'remove'=>$remove,
|
1330 |
+
'new'=>'',
|
1331 |
+
'url'=>$url,
|
1332 |
+
'cls'=>$cls,
|
1333 |
+
'submenus'=>$s
|
1334 |
+
];
|
1335 |
+
|
1336 |
+
//apply previous top menu customizations
|
1337 |
+
if($customizationsSet){
|
1338 |
+
$pc = $previousCustomizations[$url];
|
1339 |
+
if(isset($pc)){
|
1340 |
+
$m[$url]['remove'] = $pc['remove'];
|
1341 |
+
$m[$url]['new'] = $pc['new'];
|
1342 |
+
}
|
1343 |
+
}
|
1344 |
+
}
|
1345 |
+
return $m;
|
1346 |
+
}
|
1347 |
+
|
1348 |
+
/**
|
1349 |
+
* Applies customizations to admin menu
|
1350 |
+
*/
|
1351 |
+
function customized_menu(){
|
1352 |
+
$customizations = $this->get_menu_customizations();
|
1353 |
+
global $menu;
|
1354 |
+
global $submenu;
|
1355 |
+
|
1356 |
+
//print_r($submenu);die;
|
1357 |
+
//apply customizations to original admin menu
|
1358 |
+
foreach($menu as $key=>$top){
|
1359 |
+
$url = $top[2];
|
1360 |
+
if(isset($customizations[$url])){
|
1361 |
+
$topCustomized = $customizations[$url];
|
1362 |
+
if($topCustomized['new']) {
|
1363 |
+
$menu[$key][0] = $topCustomized['new'];
|
1364 |
+
}
|
1365 |
+
if($topCustomized['remove']){
|
1366 |
+
unset($menu[$key]);
|
1367 |
+
}
|
1368 |
+
}
|
1369 |
+
}
|
1370 |
+
foreach($submenu as $topkey=>$subs){
|
1371 |
+
foreach($subs as $subkey=>$sub){
|
1372 |
+
if(isset($customizations[$topkey]['submenus'][$subkey])){
|
1373 |
+
$cs = $customizations[$topkey]['submenus'][$subkey];
|
1374 |
+
if($cs['new']) {
|
1375 |
+
$submenu[$topkey][$subkey][0] = preg_replace("/".$cs['name']."/",$cs['new'], $submenu[$topkey][$subkey][0],1);
|
1376 |
+
}
|
1377 |
+
if($cs['remove']){
|
1378 |
+
unset($submenu[$topkey][$subkey]);
|
1379 |
+
}
|
1380 |
+
}
|
1381 |
+
}
|
1382 |
+
}
|
1383 |
+
}
|
1384 |
+
|
1385 |
+
/**
|
1386 |
+
* Used only for removing admin menu customizations to AGCA 1.5 version or later
|
1387 |
+
* @param $checkboxes
|
1388 |
+
* @param $textboxes
|
1389 |
+
*/
|
1390 |
+
function migrate_menu_customizations($checkboxes, $textboxes){
|
1391 |
+
$customizations = $this->get_menu_customizations();
|
1392 |
+
global $menu;
|
1393 |
+
/*print_r($menu);
|
1394 |
+
print_r($customizations);
|
1395 |
+
print_r($textboxes);*/
|
1396 |
+
|
1397 |
+
$oldTopValue = "";
|
1398 |
+
|
1399 |
+
|
1400 |
+
//Migrate checkboxes
|
1401 |
+
foreach($checkboxes as $key=>$value){
|
1402 |
+
$isTop = false;
|
1403 |
+
$oldSubValue = "";
|
1404 |
+
if (strpos($key,'<-TOP->') !== false) {
|
1405 |
+
$oldTopValue = str_replace('<-TOP->','',$key);
|
1406 |
+
$isTop = true;
|
1407 |
+
}else{
|
1408 |
+
$oldSubValue = $key;
|
1409 |
+
}
|
1410 |
+
if($value == 'checked'){
|
1411 |
+
$topIndex = "";
|
1412 |
+
foreach($customizations as $k=>$c){
|
1413 |
+
if($c['cls'] == $oldTopValue){
|
1414 |
+
$topIndex = $k;
|
1415 |
+
break;
|
1416 |
+
}
|
1417 |
+
}
|
1418 |
+
if($topIndex == "") continue;
|
1419 |
+
if($isTop){
|
1420 |
+
$customizations[$topIndex]['remove'] = true;
|
1421 |
+
}else{
|
1422 |
+
if(is_array($customizations[$topIndex]['submenus'])){
|
1423 |
+
foreach($customizations[$topIndex]['submenus'] as $skey=>$sval){
|
1424 |
+
if($sval['name'] == $oldSubValue){
|
1425 |
+
$customizations[$topIndex]['submenus'][$skey]['remove'] = true;
|
1426 |
+
}
|
1427 |
+
}
|
1428 |
+
}
|
1429 |
+
}
|
1430 |
+
}
|
1431 |
+
}
|
1432 |
+
|
1433 |
+
//Migrate textboxes
|
1434 |
+
foreach($textboxes as $key=>$value){
|
1435 |
+
$isTop = false;
|
1436 |
+
$oldSubValue = "";
|
1437 |
+
if (strpos($key,'<-TOP->') !== false) {
|
1438 |
+
$oldTopValue = str_replace('<-TOP->','',$key);
|
1439 |
+
$isTop = true;
|
1440 |
+
}else{
|
1441 |
+
$oldSubValue = $key;
|
1442 |
+
}
|
1443 |
+
if($value != ''){
|
1444 |
+
$topIndex = "";
|
1445 |
+
foreach($customizations as $k=>$c){
|
1446 |
+
if($c['cls'] == $oldTopValue){
|
1447 |
+
$topIndex = $k;
|
1448 |
+
break;
|
1449 |
+
}
|
1450 |
+
}
|
1451 |
+
if($topIndex == "") continue;
|
1452 |
+
if($isTop){
|
1453 |
+
$customizations[$topIndex]['new'] = $value;
|
1454 |
+
}else{
|
1455 |
+
if(is_array($customizations[$topIndex]['submenus'])){
|
1456 |
+
foreach($customizations[$topIndex]['submenus'] as $skey=>$sval){
|
1457 |
+
if($sval['name'] == $oldSubValue){
|
1458 |
+
if($customizations[$topIndex]['submenus'][$skey]['name'] != $value){
|
1459 |
+
$customizations[$topIndex]['submenus'][$skey]['new'] = $value;
|
1460 |
+
}
|
1461 |
+
}
|
1462 |
+
}
|
1463 |
+
}
|
1464 |
+
}
|
1465 |
+
}
|
1466 |
+
}
|
1467 |
+
update_option('ag_edit_adminmenu_json','');//remove previous admin menu configuration
|
1468 |
+
update_option('ag_edit_adminmenu_json_new',json_encode($customizations));
|
1469 |
+
}
|
1470 |
function print_admin_css()
|
1471 |
{
|
1472 |
$agcaTemplateSession = $this->agcaAdminSession();
|
1473 |
$wpversion = $this->get_wp_version();
|
1474 |
$this->context = "admin";
|
1475 |
+
$this->error_check();
|
1476 |
+
?>
|
|
|
|
|
1477 |
<script type="text/javascript">
|
1478 |
var wpversion = "<?php echo $wpversion; ?>";
|
1479 |
var agca_debug = <?php echo ($this->agca_debug)?"true":"false"; ?>;
|
1484 |
var agca_context = "admin";
|
1485 |
var roundedSidberSize = 0;
|
1486 |
var agca_installed_templates = <?php echo $this->get_installed_agca_templates(); ?>;
|
1487 |
+
var agca_admin_menu = <?= json_encode($this->get_menu_customizations()) ?>;
|
1488 |
</script>
|
1489 |
<?php
|
1490 |
$this->prepareAGCAAdminTemplates();
|
1523 |
try
|
1524 |
{
|
1525 |
|
1526 |
+
<?php /*CHECK OTHER PLUGINS*/
|
1527 |
$this->check_active_plugin();
|
1528 |
|
1529 |
if($this->active_plugin["ozh"]){
|
1540 |
?>
|
1541 |
|
1542 |
|
1543 |
+
//get saved onfigurations
|
|
|
1544 |
|
|
|
|
|
|
|
|
|
|
|
1545 |
<?php $buttons = $this->jsonMenuArray(get_option('ag_add_adminmenu_json'),'buttons'); ?>
|
1546 |
var buttons = '<?php echo $buttons; ?>';
|
1547 |
|
1548 |
<?php $buttonsJq = $this->jsonMenuArray(get_option('ag_add_adminmenu_json'),'buttonsJq'); ?>
|
1549 |
+
var buttonsJq = '<?php echo $buttonsJq; ?>';
|
1550 |
+
|
1551 |
+
createEditMenuPageNew(agca_admin_menu);
|
1552 |
+
//createEditMenuPageV32(checkboxes, textboxes);
|
1553 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1554 |
<?php
|
1555 |
//if admin, and option to hide settings for admin is set
|
1556 |
|
1557 |
+
if((get_option('agca_role_allbutadmin')==true) and current_user_can($this->admin_capability())){
|
1558 |
?>
|
1559 |
<?php } else{ ?>
|
1560 |
<?php if(get_option('agca_admin_menu_brand')!=""){ ?>
|
1598 |
jQuery("#contextual-help-link-wrap").css("display","none");
|
1599 |
jQuery("#contextual-help-link").css("display","none");
|
1600 |
<?php } ?>
|
|
|
|
|
|
|
1601 |
<?php if(get_option('agca_privacy_options')==true){ ?>
|
1602 |
jQuery("#privacy-on-link").css("display","none");
|
1603 |
<?php } ?>
|
1642 |
}
|
1643 |
<?php } ?>
|
1644 |
<?php if(get_option('agca_dashboard_text')!=""){ ?>
|
1645 |
+
jQuery("#dashboard-widgets-wrap").parent().find("h1").html("<?php echo addslashes(get_option('agca_dashboard_text')); ?>");
|
1646 |
<?php } ?>
|
1647 |
<?php if(get_option('agca_dashboard_text_paragraph')!=""){
|
1648 |
require_once(ABSPATH . 'wp-includes/formatting.php');
|
1736 |
|
1737 |
|
1738 |
<?php /*EDIT MENU ITEMS*/?>
|
1739 |
+
<?php if(get_option('ag_edit_adminmenu_json')!=""){
|
1740 |
+
|
1741 |
+
$arr = explode("|",get_option('ag_edit_adminmenu_json'));
|
1742 |
+
|
1743 |
+
$checkboxes = json_decode($arr[0]);
|
1744 |
+
$textboxes = json_decode($arr[1]);
|
1745 |
+
|
1746 |
+
$this->migrate_menu_customizations($checkboxes, $textboxes);
|
1747 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1748 |
} ?>
|
1749 |
+
|
1750 |
+
<?php if(get_option('ag_edit_adminmenu_json_new')!=""){
|
1751 |
+
$this->customized_menu();
|
1752 |
+
} ?>
|
1753 |
+
|
1754 |
+
|
1755 |
|
1756 |
|
1757 |
/*Add user buttons*/
|
1764 |
|
1765 |
reloadRemoveButtonEvents();
|
1766 |
|
1767 |
+
<?php if(get_option('agca_admin_menu_collapse_button') == true){ ?>
|
1768 |
+
//remove collapse menu button
|
1769 |
+
jQuery('#collapse-menu').remove();
|
1770 |
<?php } ?>
|
1771 |
|
1772 |
<?php //COLORIZER ?>
|
1947 |
|
1948 |
</script>
|
1949 |
<?php
|
1950 |
+
}
|
1951 |
+
|
1952 |
function agca_admin_page() {
|
1953 |
|
1954 |
$wpversion = $this->get_wp_version();
|
1966 |
var template_selected = '<?php echo get_option('agca_selected_template'); ?>';
|
1967 |
</script>
|
1968 |
<script type="text/javascript" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>script/agca_tmpl.js?ver=<?php echo $wpversion; ?>"></script>
|
1969 |
+
<?php //includes ?>
|
1970 |
<div class="wrap">
|
1971 |
+
<h1 id="agca-title">AG Custom Admin Settings <span style="font-size:15px;">(v<?php echo $this->agca_version; ?>)</span></h1>
|
1972 |
<div id="agca_error_placeholder"></div>
|
1973 |
<div id="agca_news"> </div><br />
|
1974 |
<form method="post" id="agca_form" action="options.php">
|
1975 |
<?php settings_fields( 'agca-options-group' ); ?>
|
1976 |
+
<div id="agca-your-feedback">
|
1977 |
+
<strong>
|
1978 |
+
<span style="color:#005B69">Your feedback:</span>
|
1979 |
+
</strong>
|
1980 |
+
<a class="feedback positive" target="_blank" title="POSITIVE FEEDBACK: I like this plugin!" href="http://wordpressadminpanel.com/agca-support/feedback/ag-custom-admin-positive-feedback/">
|
1981 |
+
<span class="dashicons dashicons-thumbs-up"></span>
|
1982 |
+
</a>
|
1983 |
+
<a class="feedback negative" target="_blank" title="NEGATIVE FEEDBACK: I don't like this plugin." href="http://wordpressadminpanel.com/agca-support/feedback/ag-custom-admin-negative-feedback/">
|
1984 |
+
<span class="dashicons dashicons-thumbs-down"></span>
|
1985 |
+
</a>
|
1986 |
+
</div>
|
1987 |
<br />
|
1988 |
<ul id="ag_main_menu">
|
1989 |
+
<li class="selected"><a href="#general-settings" title="General Settings" >General</a></li>
|
1990 |
+
<li class="normal"><a href="#admin-bar-settings" title="Settings for admin bar" >Admin Bar</a></li>
|
1991 |
<li class="normal"><a href="#admin-footer-settings" title="Settings for admin footer" >Admin Footer</a></li>
|
1992 |
<li class="normal"><a href="#dashboad-page-settings" title="Settings for Dashboard page">Dashboard Page</a></li>
|
1993 |
<li class="normal"><a href="#login-page-settings" title="Settings for Login page">Login Page</a></li>
|
2005 |
<li style="min-height:105px;display: block"></li>
|
2006 |
</ul>
|
2007 |
</div>
|
2008 |
+
<div class="agca-clear"></div>
|
2009 |
+
<div id="section_general" style="display:none" class="ag_section">
|
2010 |
+
<h2 class="section_title">General Settings</h2>
|
2011 |
+
<p tabindex="0" class="agca-clear agca-tip"><i><strong>Tip: </strong>Move mouse cursor over the option label to see more information about an option</i></p>
|
2012 |
+
<table class="agca-clear form-table" width="500px">
|
2013 |
+
<?php
|
2014 |
+
|
2015 |
+
$this->print_checkbox([
|
2016 |
+
'name'=>'agca_role_allbutadmin',
|
2017 |
+
'label'=>'Exclude AGCA admin from customizations',
|
2018 |
+
'title'=>'<h3>Applying customizations</h3><br><strong>Checked</strong> - apply to all users, except admin<br><strong>Not checked</strong> - apply to everyone</br></br><strong>Q</strong>: Who is AGCA administrator?</br><strong>A</strong>: Go to <i>Advanced</i> tab and change capability option to define administrators. Only the users with selected capability will be AGCA administrators.</br>'
|
2019 |
+
]);
|
2020 |
+
|
2021 |
+
$this->print_options_h3('Pages');
|
2022 |
+
|
2023 |
+
$this->print_checkbox([
|
2024 |
+
'hide'=>true,
|
2025 |
+
'name'=>'agca_screen_options_menu',
|
2026 |
+
'label'=>'"Screen Options" menu',
|
2027 |
+
'title'=>'Hides the menu from the admin pages (located on the top right corner of the page, below the admin bar)'
|
2028 |
+
]);
|
2029 |
+
|
2030 |
+
$this->print_checkbox([
|
2031 |
+
'hide'=>true,
|
2032 |
+
'name'=>'agca_help_menu',
|
2033 |
+
'label'=>'"Help" menu',
|
2034 |
+
'title'=>'Hides the menu from the admin pages (located on the top right corner of the page, below the admin bar)'
|
2035 |
+
]);
|
2036 |
+
|
2037 |
+
$this->print_options_h3('Security');
|
2038 |
+
|
2039 |
+
?>
|
2040 |
+
|
2041 |
+
<tr valign="center">
|
2042 |
+
<th scope="row">
|
2043 |
+
<label title="Choose which WordPress capability will be used to distinguish AGCA admin users from other users.</br>AGCA admin users have access to AGCA settings. AGCA administrators can be excluded from customizations if that option is checked" for="agca_admin_capability">AGCA admin capability:</label>
|
2044 |
+
</th>
|
2045 |
+
<td><?php echo $this->admin_capabilities; ?> <i>(<strong>Edit Dashboard</strong> - selected by default)</i>
|
2046 |
+
<p style="margin-left:5px;"><i>Find more information about <a href="https://codex.wordpress.org/Roles_and_Capabilities" target="_blank">WordPress capabilities</a></i></p>
|
2047 |
+
</td>
|
2048 |
+
<td>
|
2049 |
+
</td>
|
2050 |
+
</tr>
|
2051 |
+
<?php
|
2052 |
+
$this->print_options_h3('Feedback and Support');
|
2053 |
+
|
2054 |
+
?>
|
2055 |
+
<tr valign="center">
|
2056 |
+
<td colspan="2">
|
2057 |
+
<div class="agca-feedback-and-support">
|
2058 |
+
<ul>
|
2059 |
+
<li><a href="http://wordpressadminpanel.com/agca-support/contact/?type=feature" target="_blank"><span class="dashicons dashicons-lightbulb"></span> Idea for improvement</a> - submit your idea for improvement </li>
|
2060 |
+
</ul>
|
2061 |
+
<ul>
|
2062 |
+
<li><a href="http://wordpressadminpanel.com/agca-support/contact/?type=bug" target="_blank"><span class="dashicons dashicons-megaphone"></span> Report an issue</a> - if plugin does not work as expected </li>
|
2063 |
+
</ul>
|
2064 |
+
<ul>
|
2065 |
+
<li><a href="http://wordpressadminpanel.com/agca-support/contact/?type=theme" target="_blank"><span class="dashicons dashicons-art"></span> Idea for admin theme</a> - submit your idea for admin theme </li>
|
2066 |
+
</ul>
|
2067 |
+
<ul>
|
2068 |
+
<li><a href="https://wordpress.org/support/view/plugin-reviews/ag-custom-admin" target="_blank"><span class="dashicons dashicons-awards"></span> Add a review on WordPress.org</a> - add your review and rate us on WordPress.org </li>
|
2069 |
+
</ul>
|
2070 |
+
<ul>
|
2071 |
+
<li><a href="http://wordpressadminpanel.com/agca-support/" target="_blank"><span class="dashicons dashicons-shield-alt"></span> Visit our support site</a> - for any other questions, feel free to contact us </li>
|
2072 |
+
</ul>
|
2073 |
+
<ul>
|
2074 |
+
<li><a href="http://wordpressadminpanel.com/agca-support/support-for-future-development/" target="_blank"><span class="dashicons dashicons-palmtree"></span> Donate</a> - only if you find this plugin helpful for your needs </li>
|
2075 |
+
</ul>
|
2076 |
+
</div>
|
2077 |
+
</td>
|
2078 |
+
<td></td>
|
2079 |
+
</tr>
|
2080 |
+
</table>
|
2081 |
+
</div>
|
2082 |
<div id="section_admin_bar" class="ag_section">
|
2083 |
<h2 class="section_title">Admin Bar Settings</h2>
|
2084 |
+
<table class="form-table" width="500px">
|
2085 |
+
|
2086 |
+
<?php
|
2087 |
+
$this->print_checkbox([
|
2088 |
+
'attributes'=>[
|
2089 |
+
'class'=>'ag_table_major_options',
|
2090 |
+
],
|
2091 |
+
'hide'=>true,
|
2092 |
+
'title'=>'Hides admin bar completely from the admin panel',
|
2093 |
+
'name'=>'agca_header',
|
2094 |
+
'label'=>'<strong>Admin bar</strong>',
|
2095 |
+
'onchange'=>"if(jQuery('#agca_header').is(':checked')){jQuery('#agca_header_show_logout_content').show('slide');}else{jQuery('#agca_header_show_logout_content').hide('slide');};"
|
2096 |
+
]);
|
2097 |
+
|
2098 |
+
$this->print_checkbox([
|
2099 |
+
'attributes'=>[
|
2100 |
+
'class'=>'ag_table_major_options',
|
2101 |
+
'id'=>'agca_header_show_logout_content',
|
2102 |
+
'style'=>(get_option('agca_header')==true)?"":"display:none"
|
2103 |
+
],
|
2104 |
+
'title'=>'Check this if you want to show Log Out button in top right corner of the admin page',
|
2105 |
+
'name'=>'agca_header_show_logout',
|
2106 |
+
'checked'=> ((get_option('agca_header')==true) && (get_option('agca_header_show_logout')==true)),
|
2107 |
+
'label'=>'<strong>(but show Log Out button)</strong>'
|
2108 |
+
]);
|
2109 |
+
|
2110 |
+
$this->print_checkbox([
|
2111 |
+
'title'=>'Removes admin bar customizations for authenticated users on site pages.</br>This option can be useful if you want to remove AGCA scripts (styles, JavaScript) on your website for any reason.',
|
2112 |
+
'name'=>'agca_admin_bar_frontend',
|
2113 |
+
'hide'=>true,
|
2114 |
+
'label'=>'Site pages: Admin bar customizations'
|
2115 |
+
]);
|
2116 |
+
|
2117 |
+
$this->print_checkbox([
|
2118 |
+
'title'=>'Hides admin bar completely for authenticated users on site pages.',
|
2119 |
+
'name'=>'agca_admin_bar_frontend_hide',
|
2120 |
+
'hide'=>true,
|
2121 |
+
'label'=>'Site pages: Admin bar'
|
2122 |
+
]);
|
2123 |
+
|
2124 |
+
$this->print_options_h3('Left Side');
|
2125 |
+
|
2126 |
+
$this->print_input([
|
2127 |
+
'title'=>'Change default WordPress logo with custom image.',
|
2128 |
+
'name'=>'agca_wp_logo_custom',
|
2129 |
+
'label'=>'Admin bar logo',
|
2130 |
+
'hint' =>'Image URL (maximum height is 28px)'
|
2131 |
+
]);
|
2132 |
+
|
2133 |
+
$this->print_input([
|
2134 |
+
'title'=>'Custom link on admin bar logo.</br></br>Use:</br><strong>%BLOG%</strong> - for blog URL</br><strong>%SWITCH%</strong> - to switch betweent admin and site area',
|
2135 |
+
'name'=>'agca_wp_logo_custom_link',
|
2136 |
+
'label'=>'Admin bar logo link',
|
2137 |
+
'hint' =>'Link'
|
2138 |
+
]);
|
2139 |
+
|
2140 |
+
$this->print_input([
|
2141 |
+
'title'=>'Customize WordPress title using custom title template.</br></br>Examples:</br><strong>%BLOG% -- %PAGE%</strong> (will be) <i>My Blog -- Add New Post</i></br><strong>%BLOG%</strong> (will be) <i>My Blog</i></br><strong>My Company > %BLOG% > %PAGE%</strong> (will be) <i>My Company > My Blog > Tools</i>',
|
2142 |
+
'name'=>'agca_custom_title',
|
2143 |
+
'label'=>'Page title template',
|
2144 |
+
'hint' =>'Please use <strong>%BLOG%</strong> and <strong>%PAGE%</strong> in your title template.'
|
2145 |
+
]);
|
2146 |
+
|
2147 |
+
$this->print_input([
|
2148 |
+
'title'=>'Add custom image on the top of the admin content.',
|
2149 |
+
'name'=>'agca_header_logo_custom',
|
2150 |
+
'label'=>'Header image',
|
2151 |
+
'hint' =>'Image URL'
|
2152 |
+
]);
|
2153 |
+
|
2154 |
+
|
2155 |
+
$this->print_checkbox([
|
2156 |
+
'hide'=>true,
|
2157 |
+
'title'=>'Hides small Wordpress logo from the admin bar',
|
2158 |
+
'name'=>'agca_header_logo',
|
2159 |
+
'label'=>'WordPress logo'
|
2160 |
+
]);
|
2161 |
+
|
2162 |
+
$this->print_checkbox([
|
2163 |
+
'hide'=>true,
|
2164 |
+
'title'=>'Hides WordPress context menu on WordPress logo icon from admin bar',
|
2165 |
+
'name'=>'agca_remove_top_bar_dropdowns',
|
2166 |
+
'label'=>'WordPress logo context menu'
|
2167 |
+
]);
|
2168 |
+
|
2169 |
+
$this->print_checkbox([
|
2170 |
+
'hide'=>true,
|
2171 |
+
'title'=>'Hides site name link from the admin bar',
|
2172 |
+
'name'=>'agca_remove_site_link',
|
2173 |
+
'label'=>'Site name'
|
2174 |
+
]);
|
2175 |
+
|
2176 |
+
$this->print_checkbox([
|
2177 |
+
'hide'=>true,
|
2178 |
+
'title'=>'Hides update notifications from admin bar',
|
2179 |
+
'name'=>'agca_admin_bar_update_notifications',
|
2180 |
+
'label'=>'Update notifications'
|
2181 |
+
]);
|
2182 |
+
|
2183 |
+
$this->print_checkbox([
|
2184 |
+
'hide'=>true,
|
2185 |
+
'title'=>'Hides comments block from admin bar',
|
2186 |
+
'name'=>'agca_admin_bar_comments',
|
2187 |
+
'label'=>'"Comments" block'
|
2188 |
+
]);
|
2189 |
+
|
2190 |
+
$this->print_checkbox([
|
2191 |
+
'hide'=>true,
|
2192 |
+
'attributes'=>[
|
2193 |
+
'style'=>'margin-top:20px;'
|
2194 |
+
],
|
2195 |
+
'title'=>'Hides "+ New" block and its context menu from admin bar',
|
2196 |
+
'name'=>'agca_admin_bar_new_content',
|
2197 |
+
'label'=>'"+ New" block',
|
2198 |
+
'input-attributes'=>'data-dependant=".new_content_header_submenu"',
|
2199 |
+
'input-class'=>'has-dependant dependant-opposite'
|
2200 |
+
]);
|
2201 |
+
|
2202 |
+
$this->print_checkbox([
|
2203 |
+
'hide'=>true,
|
2204 |
+
'attributes'=>[
|
2205 |
+
'class'=>'new_content_header_submenu'
|
2206 |
+
],
|
2207 |
+
'title'=>'Hides "Post" sub-menu from "+ New" block on admin bar',
|
2208 |
+
'name'=>'agca_admin_bar_new_content_post',
|
2209 |
+
'label'=>' "+ New" -> Post sub-menu'
|
2210 |
+
]);
|
2211 |
+
|
2212 |
+
$this->print_checkbox([
|
2213 |
+
'hide'=>true,
|
2214 |
+
'attributes'=>[
|
2215 |
+
'class'=>'new_content_header_submenu'
|
2216 |
+
],
|
2217 |
+
'title'=>'Hides "Link" sub-menu from "+ New" block on admin bar',
|
2218 |
+
'name'=>'agca_admin_bar_new_content_link',
|
2219 |
+
'label'=>' "+ New" -> Link sub-menu'
|
2220 |
+
]);
|
2221 |
+
|
2222 |
+
$this->print_checkbox([
|
2223 |
+
'hide'=>true,
|
2224 |
+
'attributes'=>[
|
2225 |
+
'class'=>'new_content_header_submenu'
|
2226 |
+
],
|
2227 |
+
'title'=>'Hides "Page" sub-menu from "+ New" block on admin bar',
|
2228 |
+
'name'=>'agca_admin_bar_new_content_page',
|
2229 |
+
'label'=>' "+ New" -> Page sub-menu'
|
2230 |
+
]);
|
2231 |
+
|
2232 |
+
$this->print_checkbox([
|
2233 |
+
'hide'=>true,
|
2234 |
+
'attributes'=>[
|
2235 |
+
'class'=>'new_content_header_submenu'
|
2236 |
+
],
|
2237 |
+
'title'=>'Hides "User" sub-menu from "+ New" block on admin bar',
|
2238 |
+
'name'=>'agca_admin_bar_new_content_user',
|
2239 |
+
'label'=>' "+ New" -> User sub-menu'
|
2240 |
+
]);
|
2241 |
+
|
2242 |
+
$this->print_checkbox([
|
2243 |
+
'hide'=>true,
|
2244 |
+
'attributes'=>[
|
2245 |
+
'class'=>'new_content_header_submenu'
|
2246 |
+
],
|
2247 |
+
'title'=>'Hides "Media" sub-menu from "+ New" block on admin bar',
|
2248 |
+
'name'=>'agca_admin_bar_new_content_media',
|
2249 |
+
'label'=>' "+ New" -> Media sub-menu'
|
2250 |
+
]);
|
2251 |
+
|
2252 |
+
$this->print_checkbox([
|
2253 |
+
'hide'=>true,
|
2254 |
+
'title'=>'Hides "Admin themes" from admin bar',
|
2255 |
+
'name'=>'agca_admin_bar_admin_themes',
|
2256 |
+
'label'=>'"Admin themes"'
|
2257 |
+
]);
|
2258 |
+
|
2259 |
+
$this->print_textarea([
|
2260 |
+
'title'=>'Adds custom text in admin top bar.',
|
2261 |
+
'name'=>'agca_custom_site_heading',
|
2262 |
+
'label'=>'Custom blog heading',
|
2263 |
+
'hint'=>"<strong>Tip: </strong>You can use HTML tags like <h1> or <a>"
|
2264 |
+
]);
|
2265 |
+
|
2266 |
+
|
2267 |
+
$this->print_checkbox([
|
2268 |
+
'hide'=>true,
|
2269 |
+
'title'=>'Hides yellow bar with information about new WordPress release',
|
2270 |
+
'name'=>'agca_update_bar',
|
2271 |
+
'label'=>'Update WordPress notification'
|
2272 |
+
]);
|
2273 |
+
|
2274 |
+
$this->print_options_h3('Right Side');
|
2275 |
+
|
2276 |
+
$this->print_input([
|
2277 |
+
'name'=>'agca_howdy',
|
2278 |
+
'label'=>'Change Howdy text',
|
2279 |
+
]);
|
2280 |
+
|
2281 |
+
$this->print_input([
|
2282 |
+
'title'=>'Put \'Exit\', for example',
|
2283 |
+
'name'=>'agca_logout',
|
2284 |
+
'label'=>'Change Log out text',
|
2285 |
+
]);
|
2286 |
+
|
2287 |
+
$this->print_checkbox([
|
2288 |
+
'hide'=>true,
|
2289 |
+
'name'=>'agca_remove_your_profile',
|
2290 |
+
'label'=>'"Edit My Profile" option from dropdown menu'
|
2291 |
+
]);
|
2292 |
+
|
2293 |
+
$this->print_checkbox([
|
2294 |
+
'title'=>'If selected, hides all elements in top right corner, except Log Out button',
|
2295 |
+
'name'=>'agca_logout_only',
|
2296 |
+
'label'=>'Log out only'
|
2297 |
+
]);
|
2298 |
+
|
2299 |
+
?>
|
2300 |
+
|
2301 |
+
</table>
|
2302 |
+
</div>
|
2303 |
+
|
2304 |
+
<div id="section_admin_footer" style="display:none" class="ag_section">
|
2305 |
+
<h2 class="section_title">Admin Footer Settings</h2>
|
2306 |
+
<table class="form-table" width="500px">
|
2307 |
+
<?php
|
2308 |
+
$this->print_checkbox([
|
2309 |
+
'hide'=>true,
|
2310 |
+
'attributes'=>[
|
2311 |
+
'class'=>'ag_table_major_options'
|
2312 |
+
],
|
2313 |
+
'title'=>'Hides footer with all elements',
|
2314 |
+
'name'=>'agca_footer',
|
2315 |
+
'label'=>'<strong>Footer</strong>'
|
2316 |
+
]);
|
2317 |
+
|
2318 |
+
$this->print_options_h3('Footer Options');
|
2319 |
+
|
2320 |
+
$this->print_checkbox([
|
2321 |
+
'hide'=>true,
|
2322 |
+
'title'=>'Hides default text in footer',
|
2323 |
+
'name'=>'agca_footer_left_hide',
|
2324 |
+
'label'=>'Footer text'
|
2325 |
+
]);
|
2326 |
+
|
2327 |
+
$this->print_textarea([
|
2328 |
+
'title'=>'Replaces text \'Thank you for creating with WordPress\' with custom text',
|
2329 |
+
'name'=>'agca_footer_left',
|
2330 |
+
'label'=>'Change footer text'
|
2331 |
+
]);
|
2332 |
+
|
2333 |
+
$this->print_checkbox([
|
2334 |
+
'hide'=>true,
|
2335 |
+
'title'=>'Hides text \'Get Version ...\' on right',
|
2336 |
+
'name'=>'agca_footer_right_hide',
|
2337 |
+
'label'=>'Version text'
|
2338 |
+
]);
|
2339 |
+
|
2340 |
+
$this->print_textarea([
|
2341 |
+
'title'=>'Replaces text \'Get Version ...\' with custom text',
|
2342 |
+
'name'=>'agca_footer_right',
|
2343 |
+
'label'=>'Change version text'
|
2344 |
+
]);
|
2345 |
+
|
2346 |
+
?>
|
2347 |
+
|
2348 |
+
</table>
|
2349 |
+
</div>
|
2350 |
+
<div id="section_dashboard_page" style="display:none" class="ag_section">
|
2351 |
+
<h2 class="section_title">Dashboard Page Settings</h2>
|
2352 |
+
<table class="form-table" width="500px">
|
2353 |
+
<?php
|
2354 |
+
|
2355 |
+
$this->print_options_h3('Dashboard Page Options');
|
2356 |
+
|
2357 |
+
$this->print_input([
|
2358 |
+
'title'=>"Main heading ('Dashboard') on Dashboard page",
|
2359 |
+
'name'=>'agca_dashboard_text',
|
2360 |
+
'label'=>'Change Dashboard heading text',
|
2361 |
+
]);
|
2362 |
+
|
2363 |
+
?>
|
2364 |
+
<tr valign="center">
|
2365 |
+
<th scope="row">
|
2366 |
+
<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>
|
2367 |
+
</th>
|
2368 |
+
<td class="agca_editor">
|
2369 |
+
<?php $this->getTextEditor('agca_dashboard_text_paragraph'); ?>
|
2370 |
</td>
|
2371 |
</tr>
|
2372 |
+
<?php
|
2373 |
+
|
2374 |
+
$this->print_options_h3('Dashboard Widgets Options');
|
2375 |
+
|
2376 |
+
?>
|
2377 |
+
<tr>
|
2378 |
+
<td colspan="2">
|
2379 |
+
<p tabindex="0" class="agca-tip"><i><strong>Note:</strong> These settings override settings in Screen options on Dashboard page.</i></p>
|
2380 |
+
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2381 |
</tr>
|
2382 |
+
<?php
|
2383 |
+
$this->print_checkbox([
|
2384 |
+
'hide'=>true,
|
2385 |
+
'title'=>'Hides Welcome WordPress widget',
|
2386 |
+
'name'=>'agca_dashboard_widget_welcome',
|
2387 |
+
'label'=>'"Welcome" widget'
|
2388 |
+
]);
|
2389 |
+
|
2390 |
+
$this->print_checkbox([
|
2391 |
+
'hide'=>true,
|
2392 |
+
'title'=>'Hides Activity dashboard widget',
|
2393 |
+
'name'=>'agca_dashboard_widget_activity',
|
2394 |
+
'label'=>'"Activity" widget'
|
2395 |
+
]);
|
2396 |
+
|
2397 |
+
$this->print_checkbox([
|
2398 |
+
'hide'=>true,
|
2399 |
+
'title'=>'Hides Quick Draft dashboard widget',
|
2400 |
+
'name'=>'agca_dashboard_widget_qp',
|
2401 |
+
'label'=>'"Quick Draft" widget'
|
2402 |
+
]);
|
2403 |
+
|
2404 |
+
$this->print_checkbox([
|
2405 |
+
'hide'=>true,
|
2406 |
+
'title'=>'Hides At a Glance dashboard widget',
|
2407 |
+
'name'=>'agca_dashboard_widget_rn',
|
2408 |
+
'label'=>'"At a Glance" widget'
|
2409 |
+
]);
|
2410 |
+
|
2411 |
+
$this->print_checkbox([
|
2412 |
+
'hide'=>true,
|
2413 |
+
'name'=>'agca_dashboard_widget_primary',
|
2414 |
+
'title'=>"This is 'WordPress News' or 'WordPress Development Blog' widget in older WordPress versions",
|
2415 |
+
'label'=>'"WordPress News" widget'
|
2416 |
+
]);
|
2417 |
+
|
2418 |
+
$this->print_checkbox([
|
2419 |
+
'hide'=>true,
|
2420 |
+
'name'=>'agca_dashboard_widget_secondary',
|
2421 |
+
'title'=>"This is 'Other WordPress News' widget by default",
|
2422 |
+
'label'=>'Secondary widget area'
|
2423 |
+
]);
|
2424 |
+
|
2425 |
+
?>
|
2426 |
+
</table>
|
2427 |
+
</div>
|
2428 |
+
<div id="section_login_page" style="display:none" class="ag_section">
|
2429 |
+
<h2 class="section_title">Login Page Settings</h2>
|
2430 |
+
<table class="form-table" width="500px">
|
2431 |
+
<?php
|
2432 |
+
|
2433 |
+
$this->print_options_h3('Login Page Options');
|
2434 |
+
|
2435 |
+
$this->print_checkbox([
|
2436 |
+
'hide'=>true,
|
2437 |
+
'name'=>'agca_login_banner',
|
2438 |
+
'title'=>"Hide back to blog block",
|
2439 |
+
'label'=>'Back to blog text'
|
2440 |
+
]);
|
2441 |
+
|
2442 |
+
$this->print_textarea([
|
2443 |
+
'name'=>'agca_login_banner_text',
|
2444 |
+
'title'=>"Changes '<- Back to ...' text in top bar on Login page",
|
2445 |
+
'label'=>'Change back to blog text',
|
2446 |
+
'hint'=>'Should be wrapped with an anchor tag <a></a>'
|
2447 |
+
]);
|
2448 |
+
|
2449 |
+
$this->print_input([
|
2450 |
+
'title'=>'If this field is not empty, image from provided url will be visible on Login page',
|
2451 |
+
'name'=>'agca_login_photo_url',
|
2452 |
+
'label'=>'Change Login header image',
|
2453 |
+
'hint'=>'Image URL'
|
2454 |
+
]);
|
2455 |
+
|
2456 |
+
$this->print_input([
|
2457 |
+
'title'=>'Put here custom link to a web location, that will be triggered on image click',
|
2458 |
+
'name'=>'agca_login_photo_href',
|
2459 |
+
'label'=>'Change link on login image',
|
2460 |
+
'hint'=>'For blog URL use %BLOG%'
|
2461 |
+
]);
|
2462 |
+
|
2463 |
+
$this->print_checkbox([
|
2464 |
+
'hide'=>true,
|
2465 |
+
'title'=>'Hides login image completely',
|
2466 |
+
'name'=>'agca_login_photo_remove',
|
2467 |
+
'label'=>'Login header image',
|
2468 |
+
]);
|
2469 |
+
|
2470 |
+
$this->print_checkbox([
|
2471 |
+
'title'=>'Rounds box on login page',
|
2472 |
+
'name'=>'agca_login_round_box',
|
2473 |
+
'label'=>'Round box corners',
|
2474 |
+
'input-class'=>'has-dependant',
|
2475 |
+
'input-attributes'=>'data-dependant="#agca_login_round_box_size_block"'
|
2476 |
+
]);
|
2477 |
+
|
2478 |
+
$this->print_input([
|
2479 |
+
'attributes'=>[
|
2480 |
+
'style'=> ((get_option('agca_login_round_box')=='true')?'display:none':''),
|
2481 |
+
'id'=>'agca_login_round_box_size_block'
|
2482 |
+
],
|
2483 |
+
'title'=>'Size of rounded box curve',
|
2484 |
+
'name'=>'agca_login_round_box_size',
|
2485 |
+
'label'=>'Round box corners - size',
|
2486 |
+
'input-class'=>'validateNumber',
|
2487 |
+
'suffix'=>' (px)'
|
2488 |
+
]);
|
2489 |
+
|
2490 |
+
$this->print_checkbox([
|
2491 |
+
'hide'=>true,
|
2492 |
+
'title'=>'Hides register link on login page',
|
2493 |
+
'name'=>'agca_login_register_remove',
|
2494 |
+
'label'=>'Register link',
|
2495 |
+
'input-class'=>'has-dependant dependant-opposite',
|
2496 |
+
'input-attributes'=>'data-dependant="#agca_login_register_href_block"'
|
2497 |
+
]);
|
2498 |
+
|
2499 |
+
$this->print_input([
|
2500 |
+
'attributes'=>[
|
2501 |
+
'style'=> ((get_option('agca_login_register_remove')=='true')?'display:none':''),
|
2502 |
+
'id'=>'agca_login_register_href_block'
|
2503 |
+
],
|
2504 |
+
'title'=>'Change register link on login page to point to your custom registration page.',
|
2505 |
+
'name'=>'agca_login_register_href',
|
2506 |
+
'label'=>'Change register link',
|
2507 |
+
]);
|
2508 |
+
|
2509 |
+
$this->print_checkbox([
|
2510 |
+
'hide'=>true,
|
2511 |
+
'title'=>'Hides lost password link on login page',
|
2512 |
+
'name'=>'agca_login_lostpassword_remove',
|
2513 |
+
'label'=>'Lost password link',
|
2514 |
+
]);
|
2515 |
+
?>
|
2516 |
+
</table>
|
2517 |
+
</div>
|
2518 |
+
<?php
|
2519 |
+
/*ADMIN MENU*/
|
2520 |
+
?>
|
2521 |
+
<div id="section_admin_menu" style="display:none" class="ag_section">
|
2522 |
+
<h2 class="section_title">Admin Menu Settings</h2>
|
2523 |
+
<table class="form-table" width="500px">
|
2524 |
+
<tr valign="center" class="ag_table_major_options">
|
2525 |
+
<td><label for="agca_admin_menu_turnonoff"><strong>Apply admin menu customizations</strong></label></td>
|
2526 |
<td>
|
2527 |
+
<strong>
|
2528 |
+
|
2529 |
+
<input class="agca-radio" type="radio" id="agca_admin_menu_turnonoff_on" name="agca_admin_menu_turnonoff" title="Apply admin menu customizations" value="on" <?php if(get_option('agca_admin_menu_turnonoff') == 'on') echo 'checked="checked" '; ?> />
|
2530 |
+
<span class="agca-radio-text on">YES</span>
|
2531 |
+
|
2532 |
+
<input class="agca-radio" type="radio" name="agca_admin_menu_turnonoff" title="Do not apply admin menu customizations" value="off" <?php if(get_option('agca_admin_menu_turnonoff') != 'on') echo 'checked="checked"'; ?> />
|
2533 |
+
<span class="agca-radio-text off">NO</span>
|
2534 |
+
</strong>
|
2535 |
</td>
|
2536 |
</tr>
|
2537 |
+
<tr valign="center" class="ag_table_major_options">
|
2538 |
+
<td><label for="agca_admin_menu_agca_button_only"><strong>Admin menu</strong></label></td>
|
2539 |
+
<td><input class="agca-checkbox visibility" type="checkbox" name="agca_admin_menu_agca_button_only" title="Hides 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>
|
2540 |
+
</tr>
|
2541 |
+
<?php
|
2542 |
+
$this->print_options_h3('Edit / Remove Menu Items');
|
2543 |
+
?>
|
2544 |
+
<tr>
|
2545 |
<td colspan="2">
|
2546 |
+
<input type="button" class="agca_button" id="ag_edit_adminmenu_reset_button" title="Reset menu settings to default values" name="ag_edit_adminmenu_reset_button" value="Reset to default settings" /><br />
|
2547 |
+
<p tabindex="0"><em>(click on the top menu item to show its sub-menus)</em></p>
|
2548 |
+
<table id="ag_edit_adminmenu">
|
2549 |
+
<tr style="background-color:#999;">
|
2550 |
+
<td width="300px"><div style="float:left;color:#fff;"><h3>Item</h3></div><div style="float:right;color:#fff;"><h3>Visibility</h3></div></td><td width="300px" style="color:#fff;" ><h3>Change Text</h3>
|
2551 |
+
</td>
|
2552 |
+
</tr>
|
2553 |
+
</table>
|
2554 |
+
<input type="hidden" size="47" id="ag_edit_adminmenu_json" name="ag_edit_adminmenu_json" value="<?php echo htmlspecialchars(get_option('ag_edit_adminmenu_json')); ?>" />
|
2555 |
+
<input type="hidden" size="47" id="ag_edit_adminmenu_json_new" name="ag_edit_adminmenu_json_new" value="" />
|
2556 |
</td>
|
2557 |
<td></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2558 |
</tr>
|
2559 |
+
<?php
|
2560 |
+
$this->print_options_h3('Add New Menu Items');
|
2561 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2562 |
<tr>
|
2563 |
<td colspan="2">
|
2564 |
+
<table id="ag_add_adminmenu">
|
|
|
2565 |
<tr>
|
2566 |
<td colspan="2">
|
2567 |
name:<input type="text" size="47" title="New button visible name" id="ag_add_adminmenu_name" name="ag_add_adminmenu_name" />
|
2568 |
url:<input type="text" size="47" title="New button link" id="ag_add_adminmenu_url" name="ag_add_adminmenu_url" />
|
2569 |
+
open in:<select id="ag_add_adminmenu_target" class="agca-selectbox" style="width:95px">
|
2570 |
+
<option value="_self" selected>same tab</option>
|
2571 |
+
<option value="_blank" >new tab</option>
|
|
|
|
|
2572 |
</select>
|
2573 |
<input type="button" id="ag_add_adminmenu_button" class="agca_button" title="Add new item button" name="ag_add_adminmenu_button" value="Add new item" />
|
2574 |
</td><td></td>
|
2579 |
<td>
|
2580 |
</td>
|
2581 |
</tr>
|
2582 |
+
<?php
|
2583 |
+
$this->print_options_h3('Admin Menu Settings');
|
2584 |
+
?>
|
2585 |
+
<tr valign="center">
|
2586 |
+
<th scope="row">
|
2587 |
+
<label title="Choose how admin menu should behave on mobile devices / small screens" for="agca_admin_menu_autofold">Admin menu auto folding</label>
|
2588 |
+
</th>
|
2589 |
+
<td>
|
2590 |
+
<select title="Choose how admin menu should behave on mobile devices / small screens" class="agca-selectbox" name="agca_admin_menu_autofold" >
|
2591 |
+
<option value="" <?php echo (get_option('agca_admin_menu_autofold') == "")?" selected ":""; ?> >Default</option>
|
2592 |
+
<option value="force" <?php echo (get_option('agca_admin_menu_autofold') == "force")?" selected ":""; ?> >Force admin menu auto-folding</option>
|
2593 |
+
<option value="disable" <?php echo (get_option('agca_admin_menu_autofold') == "disable")?" selected ":""; ?> >Disable admin menu auto-folding</option>
|
2594 |
+
</select>
|
2595 |
+
</td>
|
2596 |
+
</tr>
|
2597 |
+
<?php
|
2598 |
+
|
2599 |
+
$this->print_checkbox([
|
2600 |
+
'hide'=>true,
|
2601 |
+
'title'=>'Removes empty space between some top menu items',
|
2602 |
+
'name'=>'agca_admin_menu_separators',
|
2603 |
+
'label'=>'Menu items separators',
|
2604 |
+
]);
|
2605 |
+
|
2606 |
+
$this->print_checkbox([
|
2607 |
+
'hide'=>true,
|
2608 |
+
'title'=>'Removes icons from dmin menu buttons',
|
2609 |
+
'name'=>'agca_admin_menu_icons',
|
2610 |
+
'label'=>'Menu icons',
|
2611 |
+
]);
|
2612 |
+
|
2613 |
+
$this->print_checkbox([
|
2614 |
+
'hide'=>true,
|
2615 |
+
'title'=>'Removes small arrow that appears on the top button hover',
|
2616 |
+
'name'=>'agca_admin_menu_arrow',
|
2617 |
+
'label'=>'Sub-menu arrow',
|
2618 |
+
]);
|
2619 |
+
|
2620 |
+
$this->print_checkbox([
|
2621 |
+
'hide'=>true,
|
2622 |
+
'title'=>'Removes collapse button at the end of admin menu',
|
2623 |
+
'name'=>'agca_admin_menu_collapse_button',
|
2624 |
+
'label'=>'"Collapse menu" button',
|
2625 |
+
]);
|
2626 |
+
|
2627 |
+
$this->print_checkbox([
|
2628 |
+
'title'=>'Rounds submenu pop-up box',
|
2629 |
+
'name'=>'agca_admin_menu_submenu_round',
|
2630 |
+
'label'=>'Round sub-menu pop-up box',
|
2631 |
+
'input-class'=>'has-dependant',
|
2632 |
+
]);
|
2633 |
+
|
2634 |
+
$this->print_input([
|
2635 |
+
'attributes'=>[
|
2636 |
+
'style'=> ((get_option('agca_admin_menu_submenu_round')=='true')?'display:none':''),
|
2637 |
+
'id'=>'agca_admin_menu_submenu_round_block'
|
2638 |
+
],
|
2639 |
+
'title'=>'Size of rounded box curve',
|
2640 |
+
'name'=>'agca_admin_menu_submenu_round_size',
|
2641 |
+
'label'=>'Round sub-menu pop-up box - size',
|
2642 |
+
'input-class'=>'validateNumber',
|
2643 |
+
'suffix'=>' (px)'
|
2644 |
+
]);
|
2645 |
+
|
2646 |
+
$this->print_input([
|
2647 |
+
'title'=>'Adds custom logo above the admin menu',
|
2648 |
+
'name'=>'agca_admin_menu_brand',
|
2649 |
+
'label'=>'Admin menu branding with logo',
|
2650 |
+
'hint'=>'Image URL'
|
2651 |
+
]);
|
2652 |
+
|
2653 |
+
$this->print_input([
|
2654 |
+
'title'=>'Change branding logo link</br></br>Use:</br><strong>%BLOG%</strong> - for blog URL',
|
2655 |
+
'name'=>'agca_admin_menu_brand_link',
|
2656 |
+
'label'=>'Branding logo link',
|
2657 |
+
'hint'=>'Branding image URL'
|
2658 |
+
]);
|
2659 |
+
?>
|
2660 |
</table>
|
2661 |
</div>
|
2662 |
<div id="section_ag_colorizer_settings" style="display:none" class="ag_section">
|
2663 |
<h2 class="section_title">Colorizer Page</h2>
|
2664 |
+
<table class="form-table" width="500px">
|
|
|
2665 |
<tr valign="center" class="ag_table_major_options">
|
2666 |
+
<td><label for="agca_colorizer_turnonoff"><strong>Apply Colorizer settings</strong></label></td>
|
2667 |
+
<td><strong><input class="agca-radio" type="radio" name="agca_colorizer_turnonoff" title="Apply Colorizer customizations" value="on" <?php if(get_option('agca_colorizer_turnonoff') == 'on') echo 'checked="checked" '; ?> /><span class="agca-radio-text on">YES</span> <input class="agca-radio" type="radio" name="agca_colorizer_turnonoff" title="Do not apply Colorizer customizations" value="off" <?php if(get_option('agca_colorizer_turnonoff') != 'on') echo 'checked="checked"'; ?> /><span class="agca-radio-text off">NO</span></strong></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2668 |
</tr>
|
2669 |
+
<?php
|
2670 |
+
$this->print_options_h3('Global Color Options');
|
2671 |
+
|
2672 |
+
$this->print_color('color_background','Background:','Change admin page background color');
|
2673 |
+
$this->print_color('login_color_background','Login page background:','Change login page background color');
|
2674 |
+
$this->print_color('color_header','Admin bar:','Change admin bar (on top) color in admin panel');
|
2675 |
+
|
2676 |
+
$this->print_options_h3('Admin Menu Color Options');
|
2677 |
+
|
2678 |
+
$this->print_color('color_admin_menu_top_button_background','Button background:','Change button background color');
|
2679 |
+
$this->print_color('color_admin_menu_font','Button text:','Change button text color');
|
2680 |
+
$this->print_color('color_admin_menu_top_button_current_background','Selected button background:','Change button background color for current button');
|
2681 |
+
$this->print_color('color_admin_menu_top_button_hover_background','Hover button background:','Change button background color on mouseover');
|
2682 |
+
$this->print_color('color_admin_menu_submenu_background','Sub-menu button background:','Change submenu item background color');
|
2683 |
+
$this->print_color('color_admin_menu_submenu_background_hover','Sub-menu hover button background:','Change submenu item background color on mouseover');
|
2684 |
+
$this->print_color('color_admin_submenu_font','Sub-menu text:','Sub-menu text color');
|
2685 |
+
$this->print_color('color_admin_menu_behind_background','Wrapper background:','Change background color of element behind admin menu');
|
2686 |
+
|
2687 |
+
$this->print_options_h3('Font Color Options');
|
2688 |
+
|
2689 |
+
$this->print_color('color_font_content','Content text:','Change color in content text');
|
2690 |
+
$this->print_color('color_font_header','Admin bar text:','Change color of admin bar text');
|
2691 |
+
$this->print_color('color_font_footer','Footer text:','Change color in fotter text');
|
2692 |
+
|
2693 |
+
$this->print_options_h3('Widgets Color Options');
|
2694 |
+
|
2695 |
+
$this->print_color('color_widget_bar','Title bar background:','Change color in header text');
|
2696 |
+
$this->print_color('color_widget_background','Background:','Change widget background color');
|
2697 |
+
|
2698 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2699 |
</table>
|
2700 |
<input type="hidden" size="47" id="ag_colorizer_json" name="ag_colorizer_json" value="<?php echo htmlspecialchars(get_option('ag_colorizer_json')); ?>" />
|
2701 |
<div id="picker"></div>
|
2702 |
</div>
|
2703 |
<div id="section_templates" style="display:none" class="ag_section">
|
2704 |
<h2 class="section_title"><span style="float:left">Admin Themes</span></h2>
|
2705 |
+
<table class="form-table" width="500px">
|
|
|
2706 |
<tr valign="center">
|
2707 |
<td>
|
2708 |
+
<div id="agca_templates"></div>
|
|
|
|
|
2709 |
</td>
|
2710 |
+
</tr>
|
2711 |
+
<tr>
|
2712 |
<td>
|
2713 |
<div id="advanced_template_options" style="display:none">
|
2714 |
+
<div class="agca-feedback-and-support">
|
2715 |
+
<ul>
|
2716 |
+
<li><a href="http://wordpressadminpanel.com/agca-support/contact/?type=theme" title="If you have any ideas for theme improvements, or you have new themes requests, please feel free to send us a message" target="_blank"><span class="dashicons dashicons-art"></span> Submit your admin themes ideas</a></li>
|
2717 |
+
<li><a style="background: #f08080;color:#fff;" href="javascript:agca_removeAllTemplates();" title="WARNING: All installed themes will be removed. To activate them again, you would need to install theme and activate using valid license keys. Free themes can be installed again."><span style="color:#fff" class="dashicons dashicons-trash"></span> Uninstall all installed themes</a></li>
|
2718 |
+
</ul>
|
2719 |
+
</div>
|
2720 |
</div>
|
2721 |
</td>
|
2722 |
</tr>
|
2724 |
</div>
|
2725 |
<div id="section_advanced" style="display:none" class="ag_section">
|
2726 |
<h2 class="section_title">Advanced</h2>
|
|
|
|
|
2727 |
<table class="form-table" width="500px">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2728 |
<tr valign="center">
|
2729 |
<td colspan="2">
|
2730 |
+
<p class="agca-tip"><i><strong>Note: </strong>These options will override existing customizations</i></p>
|
|
|
|
|
2731 |
</td><td></td>
|
2732 |
</tr>
|
2733 |
<tr valign="center">
|
2734 |
<th scope="row">
|
2735 |
+
<label title="Add custom CSS script to override existing styles" for="agca_script_css">Custom CSS script</em></label>
|
2736 |
</th>
|
2737 |
<td>
|
2738 |
<textarea style="width:100%;height:200px" title="Add custom CSS script to override existing styles" rows="5" id="agca_custom_css" name="agca_custom_css" cols="40"><?php echo htmlspecialchars(get_option('agca_custom_css')); ?></textarea>
|
2751 |
<label title="Export / import settings" for="agca_export_import">Export / import settings</label>
|
2752 |
</th>
|
2753 |
<td id="import_file_area">
|
|
|
2754 |
<input class="agca_button" type="button" name="agca_export_settings" value="Export Settings" onclick="exportSettings();"/></br>
|
2755 |
<input type="file" id="settings_import_file" name="settings_import_file" style="display: none"/>
|
2756 |
<input type="hidden" id="_agca_import_settings" name="_agca_import_settings" value="false" />
|
2757 |
<input type="hidden" id="_agca_export_settings" name="_agca_export_settings" value="false" />
|
2758 |
<input class="agca_button" type="button" name="agca_import_settings" value="Import Settings" onclick="importSettings();"/>
|
2759 |
</td>
|
|
|
|
|
|
|
|
|
2760 |
</tr>
|
|
|
2761 |
</table>
|
2762 |
</div>
|
2763 |
+
<p class="submit">
|
|
|
2764 |
<input type="button" id="save_plugin_settings" style="padding:0px" title="Save AG Custom Admin configuration" class="button-primary" value="<?php _e('Save Changes') ?>" onClick="savePluginSettings()" />
|
2765 |
+
</p>
|
2766 |
|
2767 |
</form>
|
2768 |
<form id="agca_templates_form" name="agca_templates_form" action="<?php echo $_SERVER['PHP_SELF'];?>?page=ag-custom-admin/plugin.php" method="post">
|
2771 |
<input type="hidden" id="templates_name" name="templates_name" value="" />
|
2772 |
</form>
|
2773 |
</div>
|
|
|
|
|
|
|
2774 |
<?php
|
2775 |
}
|
2776 |
+
|
2777 |
+
#region PRIVATE METHODS
|
2778 |
+
function print_checkbox($data){
|
2779 |
+
$strAttributes = '';
|
2780 |
+
$strOnchange = '';
|
2781 |
+
$strInputClass='';
|
2782 |
+
$strInputAttributes='';
|
2783 |
+
$isChecked = false;
|
2784 |
+
|
2785 |
+
if(isset($data['attributes'])){
|
2786 |
+
foreach($data['attributes'] as $key=>$val){
|
2787 |
+
$strAttributes.=' '.$key.'="'.$val.'"';
|
2788 |
+
}
|
2789 |
+
}
|
2790 |
+
if(isset($data['input-class'])){
|
2791 |
+
$strInputClass = $data['input-class'];
|
2792 |
+
}
|
2793 |
+
if(isset($data['hide'])){
|
2794 |
+
$strInputClass .= " visibility";
|
2795 |
+
}
|
2796 |
+
if(isset($data['input-attributes'])){
|
2797 |
+
$strInputAttributes = $data['input-attributes'];
|
2798 |
+
}
|
2799 |
+
if(isset($data['onchange'])){
|
2800 |
+
$strOnchange = $data['onchange'];
|
2801 |
+
}
|
2802 |
+
if(!isset($data['title'])){
|
2803 |
+
$data['title'] = $data['label'];
|
2804 |
+
}
|
2805 |
+
if(isset($data['checked'])){
|
2806 |
+
$isChecked = $data['checked'];
|
2807 |
+
}else{
|
2808 |
+
//use default check with the option
|
2809 |
+
$isChecked = get_option($data['name'])==true;
|
2810 |
+
}
|
2811 |
+
?>
|
2812 |
+
<tr valign="center" <?= $strAttributes ?> >
|
2813 |
+
<th>
|
2814 |
+
<label tabindex="0" title='<?= $data['title'] ?>' for="<?= $data['name'] ?>" ><?= $data['label'] ?></label>
|
2815 |
+
</th>
|
2816 |
+
<td>
|
2817 |
+
<input type="checkbox" class="agca-checkbox <?= $strInputClass ?> " <?= $strOnchange ?> <?= $strInputAttributes ?> title='<?= $data['title'] ?>' name="<?= $data['name'] ?>" value="true" <?= ($isChecked)?' checked="checked"':'' ?> />
|
2818 |
+
</td>
|
2819 |
+
</tr>
|
2820 |
+
<?php
|
2821 |
+
}
|
2822 |
+
function print_input($data){
|
2823 |
+
$strHint = '';
|
2824 |
+
$suffix ='';
|
2825 |
+
if(isset($data['hint'])){
|
2826 |
+
$strHint = ' <p><i>'.$data['hint'].'</i></p>';
|
2827 |
+
}
|
2828 |
+
if(!isset($data['title'])){
|
2829 |
+
$data['title'] = $data['label'];
|
2830 |
+
}
|
2831 |
+
if(isset($data['suffix'])){
|
2832 |
+
$suffix = $data['suffix'];
|
2833 |
+
}
|
2834 |
+
?>
|
2835 |
+
<tr valign="center">
|
2836 |
+
<th >
|
2837 |
+
<label title="<?= $data['title'] ?>" for="<?= $data['name'] ?>"><?= $data['label'] ?></label>
|
2838 |
+
</th>
|
2839 |
+
<td>
|
2840 |
+
<input id="<?= $data['name'] ?>" title="<?= $data['title'] ?>" type="text" size="47" name="<?= $data['name'] ?>" value="<?php echo get_option($data['name']); ?>" />
|
2841 |
+
<a title="Clear" class="agca_button clear" onClick="jQuery('#<?= $data['name'] ?>').val('');"><span class="dashicons clear dashicons-no-alt"></span></a><?= $suffix ?>
|
2842 |
+
<?= $strHint ?>
|
2843 |
+
</td>
|
2844 |
+
</tr>
|
2845 |
+
<?php
|
2846 |
+
}
|
2847 |
+
function print_textarea($data){
|
2848 |
+
$strHint = '';
|
2849 |
+
if(isset($data['hint'])){
|
2850 |
+
$strHint = ' <p><i>'.$data['hint'].'</i>.</p>';
|
2851 |
+
}
|
2852 |
+
if(!isset($data['title'])){
|
2853 |
+
$data['title'] = $data['label'];
|
2854 |
+
}
|
2855 |
+
?>
|
2856 |
+
<tr valign="center">
|
2857 |
+
<th scope="row">
|
2858 |
+
<label title="<?= $data['title'] ?>" for="<?= $data['name'] ?>"><?= $data['label'] ?></label>
|
2859 |
+
</th>
|
2860 |
+
<td>
|
2861 |
+
<textarea title="<?= $data['title'] ?>" rows="5" name="<?= $data['name'] ?>" cols="40"><?php echo htmlspecialchars(get_option($data['name'])); ?></textarea>
|
2862 |
+
<?= $strHint ?>
|
2863 |
+
</td>
|
2864 |
+
</tr>
|
2865 |
+
<?php
|
2866 |
+
}
|
2867 |
+
function print_color($name, $label, $title){
|
2868 |
+
?>
|
2869 |
+
<tr valign="center" class="color">
|
2870 |
+
<th><label title="<?= $title ?>" for="<?= $name ?>"><?= $label ?></label></th>
|
2871 |
+
<td><input type="text" id="<?= $name ?>" name="<?= $name ?>" class="color_picker" value="<?php echo $this->getAGCAColor($name); ?>" />
|
2872 |
+
<a title="Pick Color" alt="<?= $name ?>" class="pick_color_button agca_button"><span class="dashicons dashicons-art"></span></a>
|
2873 |
+
<a title="Clear" alt="<?= $name ?>" class="pick_color_button_clear agca_button" ><span class="dashicons clear dashicons-no-alt"></span></a>
|
2874 |
+
</td>
|
2875 |
+
</tr>
|
2876 |
+
<?php
|
2877 |
+
}
|
2878 |
+
function print_options_h3($title){
|
2879 |
+
?>
|
2880 |
+
<tr valign="center">
|
2881 |
+
<td colspan="2">
|
2882 |
+
<div class="ag_table_heading"><h3 tabindex="0"><?= $title ?></h3></div>
|
2883 |
+
</td>
|
2884 |
+
<td></td>
|
2885 |
+
</tr>
|
2886 |
+
<?php
|
2887 |
+
}
|
2888 |
+
function print_option_tr(){
|
2889 |
+
?>
|
2890 |
+
|
2891 |
+
<tr valign="center">
|
2892 |
+
<th><label title="Change submenu item background color" for="color_admin_menu_submenu_background">Submenu button background color:</label></th>
|
2893 |
+
<td><input type="text" id="color_admin_menu_submenu_background" name="color_admin_menu_submenu_background" class="color_picker" value="<?php echo $this->getAGCAColor('color_admin_menu_submenu_background'); ?>" />
|
2894 |
+
<input type="button" alt="color_admin_menu_submenu_background" class="pick_color_button agca_button" value="Pick color" />
|
2895 |
+
<input type="button" alt="color_admin_menu_submenu_background" class="pick_color_button_clear agca_button" value="Clear" />
|
2896 |
+
</td>
|
2897 |
+
</tr>
|
2898 |
+
<?php
|
2899 |
+
}
|
2900 |
+
#endregion
|
2901 |
+
|
2902 |
}
|
2903 |
?>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.4
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -21,10 +21,9 @@ With this plugin you can easily customize WordPress **admin panel**, **login pag
|
|
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
|
27 |
-
* Hide admin bar
|
28 |
* Remove admin bar on site pages
|
29 |
* Replace WordPress logo with custom image
|
30 |
* Change link on admin bar logo
|
@@ -51,7 +50,6 @@ With this plugin you can easily customize WordPress **admin panel**, **login pag
|
|
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
|
@@ -128,16 +126,16 @@ If this does not work, try to find JavaScript error in browser's console and pos
|
|
128 |
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.
|
129 |
|
130 |
= Plugin does not work after upgrading to new version. What should I do? =
|
131 |
-
Try to clear browser's cache, and reload page.
|
132 |
|
133 |
= Something is wrong with Admin Menu buttons =
|
134 |
-
Please use 'Reset Settings' button on Admin Menu page to reset menu configuration to defaults.
|
135 |
|
136 |
= Errors appear on admin/login pages =
|
137 |
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.
|
138 |
|
139 |
= Some options are not working =
|
140 |
-
|
141 |
|
142 |
|
143 |
== Screenshots ==
|
@@ -154,6 +152,13 @@ Plugin should be always up-to-date with latest WordPress release. If you have fo
|
|
154 |
|
155 |
== Changelog ==
|
156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
= 1.4.9 =
|
158 |
* Issues fixed
|
159 |
|
@@ -431,7 +436,7 @@ Plugin should be always up-to-date with latest WordPress release. If you have fo
|
|
431 |
* Added settings for hiding/showing Dashboard widgets:"Recent Comments", "Incoming Links", "Plugins", "Quick Press", "Right Now", "Recent Drafts", primary widget area, secondary widget area.
|
432 |
* Added option "(but show 'Log Out' button)" for displaying 'Log Out' button if admin top bar is completely removed.
|
433 |
* Added option "Hide footer text".
|
434 |
-
* Added support for hidding new
|
435 |
|
436 |
= 1.0.1 =
|
437 |
* Changed text in Settings page to be more clearer.
|
@@ -443,6 +448,13 @@ Plugin should be always up-to-date with latest WordPress release. If you have fo
|
|
443 |
|
444 |
== Upgrade Notice ==
|
445 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
446 |
= 1.4.9 =
|
447 |
* Issues fixed
|
448 |
|
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.4
|
7 |
+
Stable tag: 1.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
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 |
= Admin Bar Options =
|
25 |
+
* Hide admin bar
|
26 |
+
* Hide admin bar, but show only Log Out button
|
27 |
* Remove admin bar on site pages
|
28 |
* Replace WordPress logo with custom image
|
29 |
* Change link on admin bar logo
|
50 |
* Remove "Edit My Profile" option from context menu
|
51 |
* Show "Log Out" button only
|
52 |
|
|
|
53 |
= Admin Footer Options =
|
54 |
* Hide footer completely
|
55 |
* Change/remove footer text
|
126 |
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.
|
127 |
|
128 |
= Plugin does not work after upgrading to new version. What should I do? =
|
129 |
+
Try to clear browser's cache, and reload the page. Make sure to have latest plugin and WordPress versions installed. If nothing of these solutions help, please contact support.
|
130 |
|
131 |
= Something is wrong with Admin Menu buttons =
|
132 |
+
Please use 'Reset Settings' button on Admin Menu page to reset menu configuration to defaults. Make sure to use latest plugin version with latest patches.
|
133 |
|
134 |
= Errors appear on admin/login pages =
|
135 |
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.
|
136 |
|
137 |
= Some options are not working =
|
138 |
+
If you have found that something is not working correctly, and you have the latest WordPress and plugin versions, please contact us and report the issue.
|
139 |
|
140 |
|
141 |
== Screenshots ==
|
152 |
|
153 |
== Changelog ==
|
154 |
|
155 |
+
= 1.5 =
|
156 |
+
* Improved UX with new icons and styles
|
157 |
+
* Fixed admin menu issues when menu is updated outside of AGCA
|
158 |
+
* Code reorganizing
|
159 |
+
* Using dashboard icons instead of images
|
160 |
+
* Updated option names
|
161 |
+
|
162 |
= 1.4.9 =
|
163 |
* Issues fixed
|
164 |
|
436 |
* Added settings for hiding/showing Dashboard widgets:"Recent Comments", "Incoming Links", "Plugins", "Quick Press", "Right Now", "Recent Drafts", primary widget area, secondary widget area.
|
437 |
* Added option "(but show 'Log Out' button)" for displaying 'Log Out' button if admin top bar is completely removed.
|
438 |
* Added option "Hide footer text".
|
439 |
+
* Added support for hidding new WordPress release notification.
|
440 |
|
441 |
= 1.0.1 =
|
442 |
* Changed text in Settings page to be more clearer.
|
448 |
|
449 |
== Upgrade Notice ==
|
450 |
|
451 |
+
= 1.5 =
|
452 |
+
* Improved UX with new icons and styles
|
453 |
+
* Fixed admin menu issues when menu is updated outside of AGCA
|
454 |
+
* Code reorganizing
|
455 |
+
* Using dashboard icons instead of images
|
456 |
+
* Updated option names
|
457 |
+
|
458 |
= 1.4.9 =
|
459 |
* Issues fixed
|
460 |
|
script/ag_script.js
CHANGED
@@ -48,7 +48,6 @@ if(window.location.href.indexOf(encodeURIComponent('ag-custom-admin/plugin.php')
|
|
48 |
}
|
49 |
|
50 |
function hideShowSubmenus(index){
|
51 |
-
|
52 |
var finish = false;
|
53 |
var found = false;
|
54 |
jQuery('#ag_edit_adminmenu td').each(function(){
|
@@ -96,110 +95,30 @@ function prettyEditMenuPage(){
|
|
96 |
//jQuery(this).parent().focus();
|
97 |
});
|
98 |
};
|
99 |
-
|
100 |
-
|
101 |
-
/*Create menu page in AGCA settings*/
|
102 |
-
|
103 |
-
//console.log(textboxes);
|
104 |
-
var counter = 0;
|
105 |
-
var TBlength = textboxes.length;
|
106 |
-
if(textboxes==""){
|
107 |
-
TBlength = 9999999;
|
108 |
-
}
|
109 |
-
|
110 |
-
var topElement="";
|
111 |
-
jQuery('ul#adminmenu li').each(function(){
|
112 |
-
if(!jQuery(this).hasClass("wp-menu-separator") && !jQuery(this).hasClass("wp-menu-separator-last") && !jQuery(this).hasClass("ag-custom-button") && (counter < TBlength )){
|
113 |
-
|
114 |
-
//if subelement
|
115 |
-
if(jQuery(this).parent().parent().hasClass('wp-submenu')){
|
116 |
-
subElement = jQuery(this).find('a').text();
|
117 |
-
//console.log(jQuery(this));
|
118 |
-
//console.log(subElement);
|
119 |
-
var isHidden = "";
|
120 |
-
var sub_item_text_value;
|
121 |
-
if(textboxes ==""){
|
122 |
-
sub_item_text_value = subElement;
|
123 |
-
}else{
|
124 |
-
sub_item_text_value = textboxes[counter][1];
|
125 |
-
isHidden = checkboxes[counter][1];
|
126 |
-
}
|
127 |
-
jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_child'><div style=\"float:left\"><a tabindex=\"-1\" href=\"javascript:void(0)\" style=\"font-weight:bold;\"title=\""+topElement+" submenu: "+subElement+"\"><span style=\"font-weight:normal\">submenu: </span>"+subElement+"</a></div><div style=\"float:right\"><input type=\"checkbox\" title=\"Remove "+topElement+" submenu: "+subElement+" from menu\" class=\""+subElement+" agca-checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></div></td><td class='ag_admin_menu_child2' ><input type=\"text\" title=\"Rename submenu item "+subElement+" with this value\" class=\""+subElement+"\" size=\"47\" value=\""+sub_item_text_value+"\" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></td></tr>");
|
128 |
-
}
|
129 |
-
//if top element
|
130 |
-
else{
|
131 |
-
topElement = jQuery(this).children('a').clone().children().remove().end().text();
|
132 |
-
topElement = jQuery.trim(topElement);
|
133 |
-
var top_item_text_value;
|
134 |
-
var isHidden = "";
|
135 |
-
if(textboxes ==""){
|
136 |
-
top_item_text_value = topElement;
|
137 |
-
}else{
|
138 |
-
top_item_text_value = textboxes[counter][1];
|
139 |
-
isHidden = checkboxes[counter][1];
|
140 |
-
}
|
141 |
-
jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_parent'><br /><span class=\"agcaMenuEditorPlusMinus\"><span class=\"plus\">+</span><span class=\"minus\">-</span></span><a tabindex=\"0\" href=\"javascript:void(0)\" >" + topElement +"</a><div style=\"float:right\"><input title=\"Remove "+topElement+" from menu\" class=\""+jQuery(this).attr("id")+" agca-checkbox\" type=\"checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></div></td><td class='ag_admin_menu_parent2' ><input title=\"Rename "+topElement+" with this value\" type=\"text\" class=\""+jQuery(this).attr("id")+"\" size=\"47\" value=\""+top_item_text_value+"\" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></td></tr>");
|
142 |
-
}
|
143 |
-
counter++;
|
144 |
-
}
|
145 |
-
});
|
146 |
-
|
147 |
-
//console.log(checkboxes.replace('<-TOP->','')+"|"+textboxes.replace('<-TOP->',''));
|
148 |
-
prettyEditMenuPage();
|
149 |
-
agcaChangeCheckBoxStyles();
|
150 |
}
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
var
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
//if subelement
|
166 |
-
if(jQuery(this).parent().parent().parent().hasClass('wp-submenu')){
|
167 |
-
subElement = jQuery(this).find('a').text();
|
168 |
-
//console.log(jQuery(this));
|
169 |
-
//console.log(subElement);
|
170 |
-
var isHidden = "";
|
171 |
-
var sub_item_text_value;
|
172 |
-
if(textboxes ==""){
|
173 |
-
sub_item_text_value = subElement;
|
174 |
-
}else{
|
175 |
-
sub_item_text_value = textboxes[counter][1];
|
176 |
-
isHidden = checkboxes[counter][1];
|
177 |
-
}
|
178 |
-
jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_child'><div style=\"float:left\"><a tabindex=\"-1\" href=\"javascript:void(0)\" style=\"font-weight:bold;\"title=\""+topElement+" submenu: "+subElement+"\"><span style=\"font-weight:normal\">submenu: </span>"+subElement+"</a></div><div style=\"float:right\"><input type=\"checkbox\" title=\"Remove "+topElement+" submenu: "+subElement+" from menu\" class=\""+subElement+" agca-checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></div></td><td class='ag_admin_menu_child2' ><input type=\"text\" title=\"Rename submenu item "+subElement+" with this value\" class=\""+subElement+"\" size=\"47\" value=\""+sub_item_text_value+"\" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></td></tr>");
|
179 |
}
|
180 |
-
//if top element
|
181 |
-
else{
|
182 |
-
topElement = jQuery(this).children('a').clone().children().remove().end().text();
|
183 |
-
topElement = jQuery.trim(topElement);
|
184 |
-
var top_item_text_value;
|
185 |
-
var isHidden = "";
|
186 |
-
if(textboxes ==""){
|
187 |
-
top_item_text_value = topElement;
|
188 |
-
}else{
|
189 |
-
top_item_text_value = textboxes[counter][1];
|
190 |
-
isHidden = checkboxes[counter][1];
|
191 |
-
}
|
192 |
-
jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_parent'><br /><span class=\"agcaMenuEditorPlusMinus\"><span class=\"plus\">+</span><span class=\"minus\">-</span></span><a tabindex=\"0\" href=\"javascript:void(0)\" >" + topElement +"</a><div style=\"float:right\"><input title=\"Remove "+topElement+" from menu\" class=\""+jQuery(this).attr("id")+" agca-checkbox\" type=\"checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></div></td><td class='ag_admin_menu_parent2' ><input title=\"Rename "+topElement+" with this value\" type=\"text\" class=\""+jQuery(this).attr("id")+"\" size=\"47\" value=\""+top_item_text_value+"\" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></td></tr>");
|
193 |
-
}
|
194 |
-
counter++;
|
195 |
-
}else if(jQuery(this).attr('id') =="collapse-menu"){
|
196 |
-
jQuery(this).remove();
|
197 |
}
|
198 |
-
}
|
199 |
-
|
200 |
-
//console.log(checkboxes.replace('<-TOP->','')+"|"+textboxes.replace('<-TOP->',''));
|
201 |
prettyEditMenuPage();
|
202 |
-
|
|
|
203 |
var parent = null;
|
204 |
var subs = 0;
|
205 |
jQuery('#ag_edit_adminmenu tr').each(function(){
|
@@ -214,95 +133,51 @@ function createEditMenuPageV32(checkboxes,textboxes){
|
|
214 |
parent = jQuery(this);
|
215 |
}else{
|
216 |
subs++;
|
217 |
-
}
|
218 |
-
|
219 |
});
|
220 |
-
|
221 |
}
|
222 |
|
223 |
-
function
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
if(textboxes ==""){
|
248 |
-
sub_item_text_value = subElement;
|
249 |
-
}else{
|
250 |
-
sub_item_text_value = textboxes[counter][1];
|
251 |
-
isHidden = checkboxes[counter][1];
|
252 |
-
}
|
253 |
-
jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_child'><div style=\"float:left\"><a tabindex=\"-1\" href=\"javascript:void(0)\" style=\"font-weight:bold;\"title=\""+topElement+" submenu: "+subElement+"\"><span style=\"font-weight:normal\">submenu: </span>"+subElement+"</a></div><div style=\"float:right\"><input type=\"checkbox\" title=\"Remove "+topElement+" submenu: "+subElement+" from menu\" class=\""+subElement+" agca-checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></div></td><td class='ag_admin_menu_child2' ><input type=\"text\" title=\"Rename submenu item "+subElement+" with this value\" class=\""+subElement+"\" size=\"47\" value=\""+agca_escapeHTMLChars(sub_item_text_value)+"\" name=\"ag_edit_adminmenu_item_sub_"+counter+"\" /></td></tr>");
|
254 |
-
counter++;
|
255 |
-
}
|
256 |
-
//if top element
|
257 |
-
else if(jQuery(this).parent().attr('id') == 'adminmenu'){
|
258 |
-
//console.log(jQuery(this).attr('id'));
|
259 |
-
var el = jQuery(this).find('.wp-menu-name').clone();
|
260 |
-
el.find('span').remove();
|
261 |
-
topElement = el.text();
|
262 |
-
//console.log(topElement);
|
263 |
-
var top_item_text_value;
|
264 |
-
var isHidden = "";
|
265 |
-
if(textboxes ==""){
|
266 |
-
top_item_text_value = topElement;
|
267 |
-
}else{
|
268 |
-
top_item_text_value = textboxes[counter][1];
|
269 |
-
isHidden = checkboxes[counter][1];
|
270 |
-
}
|
271 |
-
jQuery('#ag_edit_adminmenu').append("<tr><td class='ag_admin_menu_parent'><br /><span class=\"agcaMenuEditorPlusMinus\"><span class=\"plus\">+</span><span class=\"minus\">-</span></span><a tabindex=\"0\" href=\"javascript:void(0)\" >" + topElement +"</a><div style=\"float:right\"><input title=\"Remove "+topElement+" from menu\" class=\""+jQuery(this).attr("id")+" agca-checkbox\" type=\"checkbox\" "+booleanToChecked(isHidden)+" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></div></td><td class='ag_admin_menu_parent2' ><input title=\"Rename "+topElement+" with this value\" type=\"text\" class=\""+jQuery(this).attr("id")+"\" size=\"47\" value=\""+agca_escapeHTMLChars(top_item_text_value)+"\" name=\"ag_edit_adminmenu_item_top_"+counter+"\" /></td></tr>");
|
272 |
-
counter++;
|
273 |
-
}
|
274 |
-
|
275 |
-
}else if(jQuery(this).attr('id') =="collapse-menu"){
|
276 |
-
jQuery(this).remove();
|
277 |
-
}
|
278 |
-
});
|
279 |
-
|
280 |
-
//console.log(checkboxes.replace('<-TOP->','')+"|"+textboxes.replace('<-TOP->',''));
|
281 |
-
prettyEditMenuPage();
|
282 |
-
|
283 |
-
var parent = null;
|
284 |
-
var subs = 0;
|
285 |
-
jQuery('#ag_edit_adminmenu tr').each(function(){
|
286 |
-
if(jQuery(this).find('td').hasClass('ag_admin_menu_parent')){
|
287 |
-
//jQuery(this).css('color','#ffffff');
|
288 |
-
if(parent != null){
|
289 |
-
if(subs == 0){
|
290 |
-
jQuery(parent).find('.agcaMenuEditorPlusMinus').html('<span> </span>');
|
291 |
}
|
|
|
292 |
}
|
293 |
-
|
294 |
-
|
295 |
-
}else{
|
296 |
-
subs++;
|
297 |
-
}
|
298 |
-
|
299 |
});
|
300 |
-
agcaChangeCheckBoxStyles();
|
301 |
}
|
302 |
|
303 |
function showHideSection(text) {
|
304 |
switch(text)
|
305 |
{
|
|
|
|
|
|
|
|
|
306 |
case 'Admin Bar':
|
307 |
jQuery('#section_admin_bar').show();
|
308 |
jQuery('#section_admin_bar .section_title').trigger('focus');
|
@@ -359,39 +234,26 @@ function createTargetCombo(target,clas){
|
|
359 |
|
360 |
var combo = ""
|
361 |
|
362 |
-
combo+= "
|
363 |
if( clas != null){
|
364 |
combo+=" class=\"editTarget\" ";
|
365 |
}
|
366 |
combo+= ">";
|
367 |
-
combo+= "<option value=\"_blank\"";
|
368 |
-
if(target == "_blank"){
|
369 |
-
combo+= " selected ";
|
370 |
-
}
|
371 |
-
combo+= ">blank</option>";
|
372 |
combo+= "<option value=\"_self\"";
|
373 |
-
if(target
|
374 |
-
combo+= " selected ";
|
375 |
-
}
|
376 |
-
combo+= ">self</option>";
|
377 |
-
combo+= "<option value=\"_parent\"";
|
378 |
-
if(target == "_parent"){
|
379 |
combo+= " selected ";
|
380 |
}
|
381 |
-
combo+= ">
|
382 |
-
combo+= "<option value=\"
|
383 |
-
if(target
|
384 |
combo+= " selected ";
|
385 |
}
|
386 |
-
combo+= ">
|
387 |
combo+= "</select>";
|
388 |
return combo;
|
389 |
}
|
390 |
|
391 |
function exportSettings(){
|
392 |
-
if(jQuery('#export_settings_additional').css("display") == "none"){
|
393 |
-
jQuery('#export_settings_additional').show("slide");
|
394 |
-
}else{
|
395 |
jQuery('#agca_form').attr('action','tools.php?page=ag-custom-admin/plugin.php');
|
396 |
jQuery('#agca_form #_agca_import_settings').val("false");
|
397 |
jQuery('#agca_form #_agca_export_settings').val("true");
|
@@ -399,10 +261,10 @@ function exportSettings(){
|
|
399 |
|
400 |
jQuery('#ag_add_adminmenu_json').val('');
|
401 |
jQuery('#ag_edit_adminmenu_json').val('');
|
|
|
402 |
|
403 |
|
404 |
jQuery('#agca_form').submit();
|
405 |
-
}
|
406 |
}
|
407 |
|
408 |
function importSettings(){
|
@@ -479,17 +341,19 @@ function agcaApplyTooltip(){
|
|
479 |
jQuery(this).mousemove(function(e) {
|
480 |
var tipY = e.pageY + 16;
|
481 |
var tipX = e.pageX - 236;
|
482 |
-
var type = '#
|
483 |
-
var border = '1px solid red';
|
484 |
if(jQuery(this).hasClass('positive')) {
|
485 |
-
type = '#
|
486 |
-
border = '1px solid green';
|
487 |
}
|
488 |
jQuery("#AGToolTipDiv").css({
|
489 |
'top': tipY,
|
490 |
'left': tipX,
|
491 |
'background': type,
|
492 |
-
'border':
|
|
|
|
|
|
|
|
|
493 |
});
|
494 |
});
|
495 |
}else{
|
@@ -547,8 +411,8 @@ jQuery(document).ready(function(){
|
|
547 |
url = url.replace(/["']{1}/gi,"");
|
548 |
jQuery('#ag_add_adminmenu_name').val("");
|
549 |
jQuery('#ag_add_adminmenu_url').val("");
|
550 |
-
jQuery('#ag_add_adminmenu_target').val("
|
551 |
-
jQuery('#ag_add_adminmenu').append('<tr><td colspan="2"><button target="'+target+'" title="'+url+'" type="button">'+name+'</button> 
|
552 |
reloadRemoveButtonEvents();
|
553 |
});
|
554 |
|
@@ -570,70 +434,79 @@ jQuery(document).ready(function(){
|
|
570 |
|
571 |
});
|
572 |
|
573 |
-
|
574 |
-
|
575 |
-
jQuery('#agca_footer').change(function(){
|
576 |
-
});
|
577 |
-
});
|
578 |
-
|
579 |
-
/*Admin menu*/
|
580 |
-
jQuery(document).ready(function(){
|
581 |
jQuery('#adminmenu').css('display','block');
|
582 |
-
});
|
583 |
|
584 |
-
/*FORM SUBMITTED*/
|
585 |
-
jQuery(
|
586 |
-
jQuery('#agca_form').submit(function(){
|
587 |
processData();
|
588 |
-
return true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
});
|
|
|
|
|
|
|
590 |
});
|
591 |
|
592 |
|
593 |
-
function
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
});
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
});
|
628 |
-
array
|
629 |
-
|
|
|
|
|
|
|
|
|
|
|
630 |
if(afterFormClickCreateJson == true){
|
631 |
-
jQuery('#
|
632 |
}else{
|
633 |
-
jQuery('#
|
634 |
}
|
635 |
-
|
636 |
-
//console.log(array);
|
637 |
//serialize buttons
|
638 |
array = "{";
|
639 |
var element = 0;
|
@@ -691,7 +564,7 @@ function agca_escapeChars(str){
|
|
691 |
}
|
692 |
|
693 |
/*C O L O R I Z E R*/
|
694 |
-
function updateTargetColor(id, color){
|
695 |
switch(id)
|
696 |
{
|
697 |
case 'color_background':
|
@@ -978,7 +851,6 @@ function agcaRadioBoxOnClick(obj){
|
|
978 |
}
|
979 |
}
|
980 |
function agcaChangeCheckBoxStyles(){
|
981 |
-
|
982 |
/*checkbox*/
|
983 |
jQuery('.agca-checkbox-box-checked').remove();
|
984 |
jQuery('.agca-checkbox-box').remove();
|
@@ -988,6 +860,9 @@ function agcaChangeCheckBoxStyles(){
|
|
988 |
if(jQuery(this).is(':checked')){
|
989 |
cls = "agca-checkbox-box-checked";
|
990 |
}
|
|
|
|
|
|
|
991 |
jQuery(this).after('<div onClick="agcaCheckBoxOnClick(jQuery(this));" class="' + cls + '" title="'+jQuery(this).attr('title')+'"><div/>');
|
992 |
});
|
993 |
|
@@ -1016,6 +891,19 @@ function isWPHigherOrEqualThan(targetVersion){
|
|
1016 |
return (wpversion >= targetVersion);
|
1017 |
}
|
1018 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1019 |
|
1020 |
//VALIDATION
|
1021 |
jQuery(document).ready(function() {
|
@@ -1041,3 +929,37 @@ jQuery(document).ready(function() {
|
|
1041 |
}
|
1042 |
});
|
1043 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
49 |
|
50 |
function hideShowSubmenus(index){
|
|
|
51 |
var finish = false;
|
52 |
var found = false;
|
53 |
jQuery('#ag_edit_adminmenu td').each(function(){
|
95 |
//jQuery(this).parent().focus();
|
96 |
});
|
97 |
};
|
98 |
+
function editMenuRow(url, originalName, newName, removed){
|
99 |
+
return '<tr class="top" data-url="'+url+'" style="background-color: rgb(216, 234, 216);"><td class="ag_admin_menu_parent"><br><span class=\"agcaMenuEditorPlusMinus\"><span class="dashicons plus dashicons-arrow-down-alt2"></span><span class="dashicons minus dashicons-arrow-up-alt2"></span></span><a tabindex="0" href="javascript:void(0)">'+originalName+'</a><div style="float:right"><input title="Remove Home from menu" class=" agca-checkbox visibility" type="checkbox" '+(removed?' checked=\"checked\" ':'')+' name="ag_edit_adminmenu_item_top_2" style="display: none;"><div onclick="agcaCheckBoxOnClick(jQuery(this));" class="agca-checkbox-box" title="Remove '+originalName+' from menu"><div></div></div></div></td><td class="ag_admin_menu_parent2"><input title="Rename '+originalName+' with this value" type="text" class="undefined" size="47" value="'+newName+'" name="ag_edit_adminmenu_item_top_2"></td></tr>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
}
|
101 |
+
function editMenuSubrow(index, parentName, parentIndex, url, originalName, newName, removed){
|
102 |
+
return '<tr class="sub" data-index="'+index+'" data-parent="'+parentIndex+'" data-name="'+originalName+'" data-url="'+url+'"><td class="ag_admin_menu_child"><div style="float:left"><a tabindex="-1" href="javascript:void(0)" style="font-weight:bold;" title="Dashboard submenu: '+originalName+'"><span style="font-weight:normal">sub-menu: </span>'+originalName+'</a></div><div style="float:right"><input type="checkbox" title="Remove '+parentName+' submenu: '+originalName+' from menu" class="Home agca-checkbox visibility" '+(removed?' checked=\"checked\" ':'')+' name="ag_edit_adminmenu_item_sub_1" style="display: none;"><div onclick="agcaCheckBoxOnClick(jQuery(this));" class="agca-checkbox-box" title="Remove '+parentName+' submenu: '+originalName+' from menu"><div></div></div></div></td><td class="ag_admin_menu_child2"><input type="text" title="Rename submenu item '+originalName+' with this value" class="'+originalName+'" size="47" value="'+newName+'" name="ag_edit_adminmenu_item_sub_1"></td></tr>';
|
103 |
+
}
|
104 |
+
function createEditMenuPageNew(agca_menu){
|
105 |
+
for(var url in agca_menu){
|
106 |
+
jQuery('#ag_edit_adminmenu').append(editMenuRow(url, agca_menu[url]['name'], agca_menu[url]['new'], agca_menu[url]['remove']));
|
107 |
+
//console.log(agca_menu[url]['name'],agca_menu[url]['new']);
|
108 |
+
|
109 |
+
//submenus
|
110 |
+
var subs = agca_menu[url]['submenus'];
|
111 |
+
if(subs){
|
112 |
+
for(var ind in subs){
|
113 |
+
//console.log('--- '+ subs[ind]['name'], subs[ind]['new']);
|
114 |
+
jQuery('#ag_edit_adminmenu').append(editMenuSubrow(ind, agca_menu[url]['name'],url, subs[ind]['url'], subs[ind]['name'], subs[ind]['new'], subs[ind]['remove']));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
+
}
|
118 |
+
|
|
|
119 |
prettyEditMenuPage();
|
120 |
+
hideShowSubmenus();
|
121 |
+
|
122 |
var parent = null;
|
123 |
var subs = 0;
|
124 |
jQuery('#ag_edit_adminmenu tr').each(function(){
|
133 |
parent = jQuery(this);
|
134 |
}else{
|
135 |
subs++;
|
136 |
+
}
|
137 |
+
|
138 |
});
|
139 |
+
agcaChangeCheckBoxStyles();
|
140 |
}
|
141 |
|
142 |
+
function applyAdminMenuCustomizations(){
|
143 |
+
jQuery('ul#adminmenu > li').each(function() {
|
144 |
+
var $o = jQuery(this);
|
145 |
+
if (!$o.hasClass("wp-menu-separator") && !$o.hasClass("wp-menu-separator-last") && $o.attr('id') !== 'collapse-menu') {
|
146 |
+
var topUrl = $o.find('a:first').attr('href');
|
147 |
+
var t = agca_admin_menu[topUrl];
|
148 |
+
if(t){
|
149 |
+
if(t.remove){
|
150 |
+
$o.remove();
|
151 |
+
} else if(c.new){
|
152 |
+
$o.find('a:first .wp-menu-name').text(c.new);
|
153 |
+
}
|
154 |
+
var s = t.submenu;
|
155 |
+
if(s){
|
156 |
+
for(var ind in s){
|
157 |
+
var cs = s[ind];
|
158 |
+
var subUrl = cs.url;
|
159 |
+
var $s = $o.find('.wp-submenu a[href="'+subUrl+'"]:first');
|
160 |
+
if(cs.remove){
|
161 |
+
$s.remove();
|
162 |
+
} else if(cs.new){
|
163 |
+
$s.text(cs.new);
|
164 |
+
}
|
165 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
}
|
167 |
+
|
168 |
}
|
169 |
+
console.log(topUrl);
|
170 |
+
}
|
|
|
|
|
|
|
|
|
171 |
});
|
|
|
172 |
}
|
173 |
|
174 |
function showHideSection(text) {
|
175 |
switch(text)
|
176 |
{
|
177 |
+
case 'General':
|
178 |
+
jQuery('#section_general').show();
|
179 |
+
jQuery('#section_general .section_title').trigger('focus');
|
180 |
+
break;
|
181 |
case 'Admin Bar':
|
182 |
jQuery('#section_admin_bar').show();
|
183 |
jQuery('#section_admin_bar .section_title').trigger('focus');
|
234 |
|
235 |
var combo = ""
|
236 |
|
237 |
+
combo+= " open in:<select";
|
238 |
if( clas != null){
|
239 |
combo+=" class=\"editTarget\" ";
|
240 |
}
|
241 |
combo+= ">";
|
|
|
|
|
|
|
|
|
|
|
242 |
combo+= "<option value=\"_self\"";
|
243 |
+
if(target === "_self"){
|
|
|
|
|
|
|
|
|
|
|
244 |
combo+= " selected ";
|
245 |
}
|
246 |
+
combo+= ">same tab</option>";
|
247 |
+
combo+= "<option value=\"_blank\"";
|
248 |
+
if(target === "_blank"){
|
249 |
combo+= " selected ";
|
250 |
}
|
251 |
+
combo+= ">new tab</option>";
|
252 |
combo+= "</select>";
|
253 |
return combo;
|
254 |
}
|
255 |
|
256 |
function exportSettings(){
|
|
|
|
|
|
|
257 |
jQuery('#agca_form').attr('action','tools.php?page=ag-custom-admin/plugin.php');
|
258 |
jQuery('#agca_form #_agca_import_settings').val("false");
|
259 |
jQuery('#agca_form #_agca_export_settings').val("true");
|
261 |
|
262 |
jQuery('#ag_add_adminmenu_json').val('');
|
263 |
jQuery('#ag_edit_adminmenu_json').val('');
|
264 |
+
jQuery('#ag_edit_adminmenu_json_new').val('');
|
265 |
|
266 |
|
267 |
jQuery('#agca_form').submit();
|
|
|
268 |
}
|
269 |
|
270 |
function importSettings(){
|
341 |
jQuery(this).mousemove(function(e) {
|
342 |
var tipY = e.pageY + 16;
|
343 |
var tipX = e.pageX - 236;
|
344 |
+
var type = '#f08080';
|
|
|
345 |
if(jQuery(this).hasClass('positive')) {
|
346 |
+
type = '#ACC491';
|
|
|
347 |
}
|
348 |
jQuery("#AGToolTipDiv").css({
|
349 |
'top': tipY,
|
350 |
'left': tipX,
|
351 |
'background': type,
|
352 |
+
'border': 'none',
|
353 |
+
'padding': '10px',
|
354 |
+
'color':'#fff',
|
355 |
+
'font-weight':'bold',
|
356 |
+
'border-radius': '5px'
|
357 |
});
|
358 |
});
|
359 |
}else{
|
411 |
url = url.replace(/["']{1}/gi,"");
|
412 |
jQuery('#ag_add_adminmenu_name').val("");
|
413 |
jQuery('#ag_add_adminmenu_url').val("");
|
414 |
+
jQuery('#ag_add_adminmenu_target').val("_self");
|
415 |
+
jQuery('#ag_add_adminmenu').append('<tr><td colspan="2"><button target="'+target+'" title="'+url+'" type="button">'+name+'</button> <a style="cursor:pointer;" title="Edit" class="button_edit"><span class="dashicons dashicons-edit"></span></a> <a style="cursor:pointer" title="Delete" class="button_remove"><span class="dashicons dashicons-no"></span></a></td><td></td></tr>');
|
416 |
reloadRemoveButtonEvents();
|
417 |
});
|
418 |
|
434 |
|
435 |
});
|
436 |
|
437 |
+
jQuery(function($){
|
438 |
+
/*Admin menu*/
|
|
|
|
|
|
|
|
|
|
|
|
|
439 |
jQuery('#adminmenu').css('display','block');
|
|
|
440 |
|
441 |
+
/*FORM SUBMITTED*/
|
442 |
+
jQuery('#agca_form').submit(function(){
|
|
|
443 |
processData();
|
444 |
+
return true;
|
445 |
+
});
|
446 |
+
|
447 |
+
//on radio button text click
|
448 |
+
jQuery('.agca-radio-text').on('click', function(){
|
449 |
+
var $o = jQuery(this);
|
450 |
+
var type = 'off';
|
451 |
+
if($o.hasClass('on')){
|
452 |
+
type='on';
|
453 |
+
}
|
454 |
+
$o.parent().find('.agca-radiobox[value='+type+']').trigger('click');
|
455 |
});
|
456 |
+
|
457 |
+
//Colorizer update input text colors
|
458 |
+
colorizerColorizeTextboxes();
|
459 |
});
|
460 |
|
461 |
|
462 |
+
function processEditAdminMenu(){
|
463 |
+
var array = {};
|
464 |
+
|
465 |
+
//top menus
|
466 |
+
jQuery('#ag_edit_adminmenu tr.top').each(function(){
|
467 |
+
var $tr = jQuery(this);
|
468 |
+
var originalText = $tr.find('.ag_admin_menu_parent a').text();
|
469 |
+
var newText = $tr.find('.ag_admin_menu_parent2 input').val();
|
470 |
+
var remove = $tr.find('.agca-checkbox').is(':checked');
|
471 |
+
var url = $tr.data('url');
|
472 |
+
array[url]={
|
473 |
+
'name': originalText,
|
474 |
+
'new': newText || "",
|
475 |
+
'remove':remove,
|
476 |
+
'url':url,
|
477 |
+
'submenus':{}
|
478 |
+
};
|
479 |
});
|
480 |
+
|
481 |
+
//submenus
|
482 |
+
jQuery('#ag_edit_adminmenu tr.sub').each(function(){
|
483 |
+
var $tr = jQuery(this);
|
484 |
+
var newText = $tr.find('.ag_admin_menu_child2 input').val();
|
485 |
+
var remove = $tr.find('.agca-checkbox').is(':checked');
|
486 |
+
var url = $tr.data('url');
|
487 |
+
var index = $tr.data('index');
|
488 |
+
var parentIndex = $tr.data('parent');
|
489 |
+
var originalName = $tr.data('name');
|
490 |
+
array[parentIndex]['submenus'][index]={
|
491 |
+
'name': originalName,
|
492 |
+
'new': newText || "",
|
493 |
+
'remove':remove,
|
494 |
+
'url':url
|
495 |
+
};
|
496 |
});
|
497 |
+
return array;
|
498 |
+
}
|
499 |
+
|
500 |
+
function processData(){
|
501 |
+
|
502 |
+
//serialize admin menu edit configuration
|
503 |
+
var array = processEditAdminMenu();
|
504 |
if(afterFormClickCreateJson == true){
|
505 |
+
jQuery('#ag_edit_adminmenu_json_new').val(JSON.stringify(array));
|
506 |
}else{
|
507 |
+
jQuery('#ag_edit_adminmenu_json_new').val('');
|
508 |
}
|
509 |
+
|
|
|
510 |
//serialize buttons
|
511 |
array = "{";
|
512 |
var element = 0;
|
564 |
}
|
565 |
|
566 |
/*C O L O R I Z E R*/
|
567 |
+
function updateTargetColor(id, color){
|
568 |
switch(id)
|
569 |
{
|
570 |
case 'color_background':
|
851 |
}
|
852 |
}
|
853 |
function agcaChangeCheckBoxStyles(){
|
|
|
854 |
/*checkbox*/
|
855 |
jQuery('.agca-checkbox-box-checked').remove();
|
856 |
jQuery('.agca-checkbox-box').remove();
|
860 |
if(jQuery(this).is(':checked')){
|
861 |
cls = "agca-checkbox-box-checked";
|
862 |
}
|
863 |
+
if(jQuery(this).hasClass('visibility')){
|
864 |
+
cls +=' visibility';
|
865 |
+
}
|
866 |
jQuery(this).after('<div onClick="agcaCheckBoxOnClick(jQuery(this));" class="' + cls + '" title="'+jQuery(this).attr('title')+'"><div/>');
|
867 |
});
|
868 |
|
891 |
return (wpversion >= targetVersion);
|
892 |
}
|
893 |
|
894 |
+
function colorizerColorizeTextboxes(){
|
895 |
+
jQuery('#section_ag_colorizer_settings .color_picker').each(function(){
|
896 |
+
var $o = jQuery(this);
|
897 |
+
$o.css('background-color', $o.val());
|
898 |
+
$o.lightOrDark();
|
899 |
+
if($o.hasClass('dark')){
|
900 |
+
$o.css('color','#fff');
|
901 |
+
}else{
|
902 |
+
$o.css('color','#000');
|
903 |
+
}
|
904 |
+
});
|
905 |
+
}
|
906 |
+
|
907 |
|
908 |
//VALIDATION
|
909 |
jQuery(document).ready(function() {
|
929 |
}
|
930 |
});
|
931 |
});
|
932 |
+
|
933 |
+
(function($){
|
934 |
+
|
935 |
+
$.fn.lightOrDark = function(){
|
936 |
+
var r,b,g,hsp
|
937 |
+
, a = this.css('background-color');
|
938 |
+
|
939 |
+
if (a.match(/^rgb/)) {
|
940 |
+
a = a.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);
|
941 |
+
r = a[1];
|
942 |
+
g = a[2];
|
943 |
+
b = a[3];
|
944 |
+
} else {
|
945 |
+
a = +("0x" + a.slice(1).replace( // thanks to jed : http://gist.github.com/983661
|
946 |
+
a.length < 5 && /./g, '$&$&'
|
947 |
+
)
|
948 |
+
);
|
949 |
+
r = a >> 16;
|
950 |
+
b = a >> 8 & 255;
|
951 |
+
g = a & 255;
|
952 |
+
}
|
953 |
+
hsp = Math.sqrt( // HSP equation from http://alienryderflex.com/hsp.html
|
954 |
+
0.299 * (r * r) +
|
955 |
+
0.587 * (g * g) +
|
956 |
+
0.114 * (b * b)
|
957 |
+
);
|
958 |
+
if (hsp>127.5) {
|
959 |
+
this.addClass('light');
|
960 |
+
} else {
|
961 |
+
this.addClass('dark');
|
962 |
+
}
|
963 |
+
}
|
964 |
+
|
965 |
+
})(jQuery);
|
script/agca_tmpl.js
CHANGED
@@ -470,11 +470,11 @@ function agca_activateTemplate(template){
|
|
470 |
});
|
471 |
}
|
472 |
});
|
473 |
-
}
|
474 |
|
475 |
function agca_removeAllTemplates(){
|
476 |
agcaDebug('FN:agca_removeAllTemplates()');
|
477 |
-
yesnoPopup("Confirm","
|
478 |
}
|
479 |
|
480 |
function agca_removeAllTemplatesConfirmed(){
|
@@ -638,7 +638,7 @@ function checkIfTemplatesAreLoaded(pass){
|
|
638 |
else if(pass == 4){
|
639 |
agcaLoadingTimeOut = window.setTimeout(function(){
|
640 |
if(jQuery('#agca_templates p:first').hasClass('initialLoader')){
|
641 |
-
jQuery('#agca_templates p:first').html('Sorry, unable to load themes right now. Please try again later
|
642 |
agcaDebug('ERR:Unable to load themes');
|
643 |
}
|
644 |
},10000);
|
470 |
});
|
471 |
}
|
472 |
});
|
473 |
+
}
|
474 |
|
475 |
function agca_removeAllTemplates(){
|
476 |
agcaDebug('FN:agca_removeAllTemplates()');
|
477 |
+
yesnoPopup("Confirm","All installed themes will be uninstalled completely. You would need to re-activate your purchased themes with valid license keys in order to install them again. Are you sure?",agca_removeAllTemplatesConfirmed);
|
478 |
}
|
479 |
|
480 |
function agca_removeAllTemplatesConfirmed(){
|
638 |
else if(pass == 4){
|
639 |
agcaLoadingTimeOut = window.setTimeout(function(){
|
640 |
if(jQuery('#agca_templates p:first').hasClass('initialLoader')){
|
641 |
+
jQuery('#agca_templates p:first').html('Sorry, unable to load themes right now. Please try again later.');
|
642 |
agcaDebug('ERR:Unable to load themes');
|
643 |
}
|
644 |
},10000);
|
style/ag_style.css
CHANGED
@@ -10,13 +10,30 @@
|
|
10 |
-blue
|
11 |
#005B69
|
12 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
#ag_main_menu {
|
14 |
-
display:block;
|
15 |
-
height:
|
16 |
-
border-bottom:3px solid #ACC491;
|
17 |
-
margin-top:2px;
|
|
|
|
|
|
|
18 |
}
|
19 |
-
.ag_section h2
|
20 |
color:#005B69;
|
21 |
}
|
22 |
#ag_main_menu li{
|
@@ -31,8 +48,6 @@
|
|
31 |
border-bottom:3px solid #ACC491;
|
32 |
}
|
33 |
#ag_main_menu li.selected{
|
34 |
-
border:3px solid #ACC491;
|
35 |
-
border-bottom:none ;
|
36 |
background-color:#F9F9F9;
|
37 |
cursor:default;
|
38 |
}
|
@@ -40,12 +55,18 @@
|
|
40 |
background-color:#eef9d5;
|
41 |
cursor:pointer;
|
42 |
}
|
|
|
|
|
|
|
|
|
43 |
#ag_main_menu li a{
|
44 |
text-decoration:none;
|
45 |
color: #888888;
|
|
|
|
|
46 |
}
|
47 |
.ag_table_heading{
|
48 |
-
background
|
49 |
display:block;
|
50 |
height:25px;
|
51 |
padding:5px;
|
@@ -55,9 +76,21 @@
|
|
55 |
margin-left:-10px;
|
56 |
margin-right:-10px;
|
57 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
.ag_table_major_options{
|
59 |
-
background-color:#
|
60 |
-
width:500px;
|
|
|
|
|
|
|
|
|
61 |
}
|
62 |
|
63 |
div#AGToolTipDiv {
|
@@ -79,6 +112,9 @@ td.ag_admin_menu_parent{
|
|
79 |
td.ag_admin_menu_parent:hover{
|
80 |
background-color:#ddd;
|
81 |
}
|
|
|
|
|
|
|
82 |
#ag_edit_adminmenu tr{
|
83 |
margin:0;
|
84 |
padding:0;
|
@@ -96,6 +132,9 @@ td.ag_admin_menu_parent:hover{
|
|
96 |
#ag_edit_adminmenu a{
|
97 |
text-decoration:none;
|
98 |
color:#444;
|
|
|
|
|
|
|
99 |
}
|
100 |
.noclass{
|
101 |
display:none;
|
@@ -116,10 +155,10 @@ td.ag_admin_menu_parent:hover{
|
|
116 |
#agca_news{
|
117 |
height:50px;
|
118 |
margin-top:-35px;
|
119 |
-
color:#
|
120 |
}
|
121 |
#agca_news a{
|
122 |
-
color:#
|
123 |
}
|
124 |
#agca_advertising{
|
125 |
display:block;
|
@@ -154,6 +193,8 @@ td.ag_admin_menu_parent:hover{
|
|
154 |
text-decoration: none;
|
155 |
text-shadow: none;
|
156 |
width: 50%;
|
|
|
|
|
157 |
}
|
158 |
#agca_form h2.section_title{
|
159 |
|
@@ -195,27 +236,37 @@ td.ag_admin_menu_parent:hover{
|
|
195 |
}
|
196 |
|
197 |
.agcaMenuEditorPlusMinus .plus{
|
198 |
-
padding-right: 4px;
|
|
|
199 |
}
|
200 |
.agcaMenuEditorPlusMinus .minus{
|
201 |
-
padding-right:
|
202 |
display: none;
|
203 |
}
|
|
|
|
|
|
|
|
|
|
|
204 |
|
205 |
-
.agcaMenuEditorPlusMinus{
|
|
|
|
|
206 |
cursor: default;
|
207 |
width:10px;
|
208 |
}
|
209 |
-
|
210 |
-
#export_settings_additional{
|
211 |
-
float: left;
|
212 |
-
margin-top:3px;
|
213 |
-
width: 229px;
|
214 |
-
}
|
215 |
/*#agca_form input.agca_button,#agca_form #ag_add_adminmenu button{
|
216 |
padding: 3px 10px;
|
217 |
background-color:#ffffff;
|
218 |
} */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
#agca_form input[type=button],button{
|
220 |
background-color: #ACC491;
|
221 |
border: 1px solid #ACC491;
|
@@ -255,6 +306,14 @@ td.ag_admin_menu_parent:hover{
|
|
255 |
#agca_form #ag_add_adminmenu input[type=text]{
|
256 |
width:300px;
|
257 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
#agca_form input#save_plugin_settings{
|
259 |
background: none repeat scroll 0 0 #acc491;
|
260 |
font-weight: bold;
|
@@ -316,32 +375,6 @@ td.ag_admin_menu_parent:hover{
|
|
316 |
width:250px;
|
317 |
}
|
318 |
|
319 |
-
#advanced_template_options {
|
320 |
-
background: none repeat scroll 0 0 #EEEEEE;
|
321 |
-
border: 2px solid green;
|
322 |
-
display: block;
|
323 |
-
height: 100%;
|
324 |
-
margin-top: 200px;
|
325 |
-
width: 500px;
|
326 |
-
padding:15px;
|
327 |
-
display:none;
|
328 |
-
}
|
329 |
-
#advanced_template_options a{
|
330 |
-
font-size:14px;
|
331 |
-
font-weight: bold;
|
332 |
-
text-decoration:none;
|
333 |
-
}
|
334 |
-
#advanced_template_options a:hover{
|
335 |
-
text-decoration:underline;
|
336 |
-
}
|
337 |
-
#advanced_template_options h4 {
|
338 |
-
background: none repeat scroll 0 0 green;
|
339 |
-
color: #FFFFFF;
|
340 |
-
font-size: 22px;
|
341 |
-
font-weight: bold;
|
342 |
-
margin-top: 0;
|
343 |
-
padding: 10px;
|
344 |
-
}
|
345 |
.agca_logout_button{
|
346 |
background: none repeat scroll 0 0 #dddddd;
|
347 |
float: right;
|
@@ -362,6 +395,7 @@ td.ag_admin_menu_parent:hover{
|
|
362 |
border-radius: 4px;
|
363 |
color: #FFFFFF;
|
364 |
padding: 6px 9px;
|
|
|
365 |
}
|
366 |
.wp-admin.folded #sidebar_adminmenu_logo{
|
367 |
display:none;
|
@@ -376,8 +410,6 @@ td.ag_admin_menu_parent:hover{
|
|
376 |
}
|
377 |
|
378 |
#agca_form .agca-checkbox-box{
|
379 |
-
|
380 |
-
background:url(../images/checkbox_unchecked.png);
|
381 |
cursor:pointer;
|
382 |
display: block;
|
383 |
width: 28px;
|
@@ -385,9 +417,17 @@ td.ag_admin_menu_parent:hover{
|
|
385 |
position:relative;
|
386 |
float:left;
|
387 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
#agca_form .agca-checkbox-box-checked{
|
389 |
-
|
390 |
-
background:url(../images/checkbox_checked.png);
|
391 |
cursor:pointer;
|
392 |
display: block;
|
393 |
width: 28px;
|
@@ -395,8 +435,20 @@ td.ag_admin_menu_parent:hover{
|
|
395 |
position:relative;
|
396 |
float:left;
|
397 |
}
|
398 |
-
#agca_form .agca-checkbox-box-checked:
|
399 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
400 |
}
|
401 |
|
402 |
#agca_form label{
|
@@ -405,6 +457,7 @@ td.ag_admin_menu_parent:hover{
|
|
405 |
}
|
406 |
#agca_form .form-table th{
|
407 |
width:350px;
|
|
|
408 |
}
|
409 |
.ag_admin_menu_parent .agca-checkbox-box-checked, .ag_admin_menu_parent .agca-checkbox-box{
|
410 |
margin-top:-15px;
|
@@ -414,7 +467,6 @@ td.ag_admin_menu_parent:hover{
|
|
414 |
float:left;
|
415 |
}
|
416 |
#agca_form .agca-radiobox{
|
417 |
-
background:url(../images/radio-gray.png);
|
418 |
cursor:pointer;
|
419 |
display: block;
|
420 |
width: 28px;
|
@@ -425,16 +477,36 @@ td.ag_admin_menu_parent:hover{
|
|
425 |
#agca_form .agca-radio-text{
|
426 |
display: block;
|
427 |
float: left;
|
428 |
-
font-size:
|
429 |
font-weight: bold;
|
430 |
-
|
|
|
431 |
}
|
432 |
-
#agca_form
|
433 |
-
|
434 |
}
|
435 |
-
#agca_form
|
436 |
-
|
437 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
438 |
#agca_form #section_templates{
|
439 |
background: rgba(255, 255, 255, 0.95)
|
440 |
}
|
@@ -448,3 +520,71 @@ td.ag_admin_menu_parent:hover{
|
|
448 |
display: block;
|
449 |
color: #eef9d5 !important;
|
450 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
-blue
|
11 |
#005B69
|
12 |
*/
|
13 |
+
.agca-clear{
|
14 |
+
clear:both;
|
15 |
+
}
|
16 |
+
.agca-tip{
|
17 |
+
padding-left:20px;
|
18 |
+
}
|
19 |
+
h1#agca-title{
|
20 |
+
color: #005B69;
|
21 |
+
font-weight: bold;
|
22 |
+
font-size: 30px;
|
23 |
+
}
|
24 |
+
table .agca-tip{
|
25 |
+
padding-left: 10px;
|
26 |
+
}
|
27 |
#ag_main_menu {
|
28 |
+
display: block;
|
29 |
+
height: 34px;
|
30 |
+
border-bottom: 3px solid #ACC491;
|
31 |
+
margin-top: 2px;
|
32 |
+
}
|
33 |
+
.ag_section{
|
34 |
+
background: #fff;
|
35 |
}
|
36 |
+
.ag_section h2{
|
37 |
color:#005B69;
|
38 |
}
|
39 |
#ag_main_menu li{
|
48 |
border-bottom:3px solid #ACC491;
|
49 |
}
|
50 |
#ag_main_menu li.selected{
|
|
|
|
|
51 |
background-color:#F9F9F9;
|
52 |
cursor:default;
|
53 |
}
|
55 |
background-color:#eef9d5;
|
56 |
cursor:pointer;
|
57 |
}
|
58 |
+
#ag_main_menu a:focus{
|
59 |
+
outline: none;
|
60 |
+
border:0;
|
61 |
+
}
|
62 |
#ag_main_menu li a{
|
63 |
text-decoration:none;
|
64 |
color: #888888;
|
65 |
+
outline: none;
|
66 |
+
border:0;
|
67 |
}
|
68 |
.ag_table_heading{
|
69 |
+
background:none;
|
70 |
display:block;
|
71 |
height:25px;
|
72 |
padding:5px;
|
76 |
margin-left:-10px;
|
77 |
margin-right:-10px;
|
78 |
}
|
79 |
+
.ag_table_heading h3{
|
80 |
+
color: #fff;
|
81 |
+
background: gray;
|
82 |
+
margin-left: -15px;
|
83 |
+
padding: 3px 9px;
|
84 |
+
border: none;
|
85 |
+
border-radius: 6px;
|
86 |
+
}
|
87 |
.ag_table_major_options{
|
88 |
+
background-color:#f8f8f8;
|
89 |
+
width: 500px;
|
90 |
+
margin-bottom: 2px;
|
91 |
+
}
|
92 |
+
#agca_form .form-table .ag_table_major_options td{
|
93 |
+
padding-left:20px;
|
94 |
}
|
95 |
|
96 |
div#AGToolTipDiv {
|
112 |
td.ag_admin_menu_parent:hover{
|
113 |
background-color:#ddd;
|
114 |
}
|
115 |
+
#ag_edit_adminmenu h3{
|
116 |
+
color: #ffffff;
|
117 |
+
}
|
118 |
#ag_edit_adminmenu tr{
|
119 |
margin:0;
|
120 |
padding:0;
|
132 |
#ag_edit_adminmenu a{
|
133 |
text-decoration:none;
|
134 |
color:#444;
|
135 |
+
}
|
136 |
+
#ag_edit_adminmenu input[name=ag_edit_adminmenu_item_top_2]:hover{
|
137 |
+
background-color: grey !important;
|
138 |
}
|
139 |
.noclass{
|
140 |
display:none;
|
155 |
#agca_news{
|
156 |
height:50px;
|
157 |
margin-top:-35px;
|
158 |
+
color:#005B69;
|
159 |
}
|
160 |
#agca_news a{
|
161 |
+
color:#005B69;
|
162 |
}
|
163 |
#agca_advertising{
|
164 |
display:block;
|
193 |
text-decoration: none;
|
194 |
text-shadow: none;
|
195 |
width: 50%;
|
196 |
+
display:block;
|
197 |
+
margin-top:0;
|
198 |
}
|
199 |
#agca_form h2.section_title{
|
200 |
|
236 |
}
|
237 |
|
238 |
.agcaMenuEditorPlusMinus .plus{
|
239 |
+
padding-right: 4px;
|
240 |
+
display: inline;
|
241 |
}
|
242 |
.agcaMenuEditorPlusMinus .minus{
|
243 |
+
padding-right: 4px;
|
244 |
display: none;
|
245 |
}
|
246 |
+
.agcaMenuEditorPlusMinus .dashicons:before{
|
247 |
+
font-size: 25px;
|
248 |
+
line-height: 22px;
|
249 |
+
display: inline-block;
|
250 |
+
}
|
251 |
|
252 |
+
.agcaMenuEditorPlusMinus{
|
253 |
+
float: left;
|
254 |
+
margin-right: 18px;
|
255 |
cursor: default;
|
256 |
width:10px;
|
257 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
/*#agca_form input.agca_button,#agca_form #ag_add_adminmenu button{
|
259 |
padding: 3px 10px;
|
260 |
background-color:#ffffff;
|
261 |
} */
|
262 |
+
#agca_form .agca_button.clear span:before{
|
263 |
+
color: #f08080;
|
264 |
+
cursor:pointer;
|
265 |
+
font-size: 30px;
|
266 |
+
}
|
267 |
+
#agca_form .agca_button.clear span:hover:before{
|
268 |
+
color: red;
|
269 |
+
}
|
270 |
#agca_form input[type=button],button{
|
271 |
background-color: #ACC491;
|
272 |
border: 1px solid #ACC491;
|
306 |
#agca_form #ag_add_adminmenu input[type=text]{
|
307 |
width:300px;
|
308 |
}
|
309 |
+
#agca_form #ag_add_adminmenu .button_edit span,
|
310 |
+
#agca_form #ag_add_adminmenu .button_remove span{
|
311 |
+
font-size: 25px;
|
312 |
+
color: #7A8A67;
|
313 |
+
}
|
314 |
+
#agca_form #ag_add_adminmenu .button_remove span{
|
315 |
+
color: red;
|
316 |
+
}
|
317 |
#agca_form input#save_plugin_settings{
|
318 |
background: none repeat scroll 0 0 #acc491;
|
319 |
font-weight: bold;
|
375 |
width:250px;
|
376 |
}
|
377 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
.agca_logout_button{
|
379 |
background: none repeat scroll 0 0 #dddddd;
|
380 |
float: right;
|
395 |
border-radius: 4px;
|
396 |
color: #FFFFFF;
|
397 |
padding: 6px 9px;
|
398 |
+
min-width: 150px;
|
399 |
}
|
400 |
.wp-admin.folded #sidebar_adminmenu_logo{
|
401 |
display:none;
|
410 |
}
|
411 |
|
412 |
#agca_form .agca-checkbox-box{
|
|
|
|
|
413 |
cursor:pointer;
|
414 |
display: block;
|
415 |
width: 28px;
|
417 |
position:relative;
|
418 |
float:left;
|
419 |
}
|
420 |
+
#agca_form .agca-checkbox-box:before{
|
421 |
+
content: "\f159";
|
422 |
+
font-size: 35px;
|
423 |
+
line-height: 35px;
|
424 |
+
color: #ACC491;
|
425 |
+
font-family: Dashicons;
|
426 |
+
}
|
427 |
+
#agca_form .agca-checkbox-box.visibility:before{
|
428 |
+
content: "\f177";
|
429 |
+
}
|
430 |
#agca_form .agca-checkbox-box-checked{
|
|
|
|
|
431 |
cursor:pointer;
|
432 |
display: block;
|
433 |
width: 28px;
|
435 |
position:relative;
|
436 |
float:left;
|
437 |
}
|
438 |
+
#agca_form .agca-checkbox-box-checked:before{
|
439 |
+
content: "\f502";
|
440 |
+
font-size: 35px;
|
441 |
+
line-height: 35px;
|
442 |
+
color: #659957;
|
443 |
+
font-family: Dashicons;
|
444 |
+
}
|
445 |
+
#agca_form .agca-checkbox-box-checked.visibility:before{
|
446 |
+
content: "\f530";
|
447 |
+
color: #f08080;
|
448 |
+
}
|
449 |
+
#agca_form .agca-checkbox-box-checked:hover:before,
|
450 |
+
#agca_form .agca-checkbox-box:hover:before{
|
451 |
+
color: #999;
|
452 |
}
|
453 |
|
454 |
#agca_form label{
|
457 |
}
|
458 |
#agca_form .form-table th{
|
459 |
width:350px;
|
460 |
+
padding-left: 20px;
|
461 |
}
|
462 |
.ag_admin_menu_parent .agca-checkbox-box-checked, .ag_admin_menu_parent .agca-checkbox-box{
|
463 |
margin-top:-15px;
|
467 |
float:left;
|
468 |
}
|
469 |
#agca_form .agca-radiobox{
|
|
|
470 |
cursor:pointer;
|
471 |
display: block;
|
472 |
width: 28px;
|
477 |
#agca_form .agca-radio-text{
|
478 |
display: block;
|
479 |
float: left;
|
480 |
+
font-size: 17px;
|
481 |
font-weight: bold;
|
482 |
+
margin: 4px 25px 4px 4px;
|
483 |
+
cursor:pointer;
|
484 |
}
|
485 |
+
#agca_form .agca-radio-text.on{
|
486 |
+
color: #ACC491;
|
487 |
}
|
488 |
+
#agca_form .agca-radio-text.off{
|
489 |
+
color: #f08080;
|
490 |
}
|
491 |
+
#agca_form .agca-radiobox:before{
|
492 |
+
font-family: Dashicons;
|
493 |
+
content: "\f159";
|
494 |
+
font-size: 30px;
|
495 |
+
line-height:30px;
|
496 |
+
}
|
497 |
+
#agca_form .agca-radiobox.checked:before{
|
498 |
+
content: "\f502";
|
499 |
+
}
|
500 |
+
#agca_form .agca-radiobox.checked[value=off]:before{
|
501 |
+
content: "\f153";
|
502 |
+
}
|
503 |
+
#agca_form .agca-radiobox[value=on]:before{
|
504 |
+
color: #ACC491;
|
505 |
+
}
|
506 |
+
#agca_form .agca-radiobox[value=off]:before{
|
507 |
+
color: #f08080;
|
508 |
+
}
|
509 |
+
|
510 |
#agca_form #section_templates{
|
511 |
background: rgba(255, 255, 255, 0.95)
|
512 |
}
|
520 |
display: block;
|
521 |
color: #eef9d5 !important;
|
522 |
}
|
523 |
+
.agca-feedback-and-support a{
|
524 |
+
border: medium none;
|
525 |
+
border-radius: 4px;
|
526 |
+
color: #FFFFFF;
|
527 |
+
padding: 6px 9px;
|
528 |
+
min-width: 240px;
|
529 |
+
background: rgb(216, 234, 216);
|
530 |
+
display: inline-block;
|
531 |
+
text-decoration: none;
|
532 |
+
color: gray;
|
533 |
+
}
|
534 |
+
.agca-feedback-and-support a:hover{
|
535 |
+
background-color:#ACC491;
|
536 |
+
color:#fff;
|
537 |
+
}
|
538 |
+
#agca-your-feedback{
|
539 |
+
float:right;
|
540 |
+
width:160px;
|
541 |
+
margin-top: -25px;
|
542 |
+
}
|
543 |
+
#agca-your-feedback .dashicons{
|
544 |
+
font-size: 24px;
|
545 |
+
padding: 0 3px;
|
546 |
+
line-height: 18px;
|
547 |
+
}
|
548 |
+
#agca-your-feedback a{
|
549 |
+
text-decoration: none;
|
550 |
+
}
|
551 |
+
#agca-your-feedback a{
|
552 |
+
text-decoration: none;
|
553 |
+
}
|
554 |
+
#agca-your-feedback .feedback.negative{
|
555 |
+
color: #f08080;
|
556 |
+
}
|
557 |
+
#agca-your-feedback .feedback.negative:hover{
|
558 |
+
color: red;
|
559 |
+
}
|
560 |
+
#agca-your-feedback .feedback.positive{
|
561 |
+
color: #ACC491;
|
562 |
+
}
|
563 |
+
#agca-your-feedback .feedback.positive:hover{
|
564 |
+
color: green;
|
565 |
+
}
|
566 |
+
#agca_donate_button{
|
567 |
+
margin-left: 5px;
|
568 |
+
margin-top: 3px;
|
569 |
+
display: inline-block;
|
570 |
+
}
|
571 |
+
#section_ag_colorizer_settings .color input{
|
572 |
+
border-radius: 5px;
|
573 |
+
}
|
574 |
+
#section_ag_colorizer_settings .color .agca_button{
|
575 |
+
cursor:pointer;
|
576 |
+
}
|
577 |
+
#section_ag_colorizer_settings .color .agca_button span{
|
578 |
+
font-size: 35px;
|
579 |
+
padding: 0 6px;
|
580 |
+
color: #ACC491;
|
581 |
+
}
|
582 |
+
#section_ag_colorizer_settings .color .agca_button span:hover{
|
583 |
+
color: #659957;
|
584 |
+
}
|
585 |
+
#section_ag_colorizer_settings .color .agca_button span.clear{
|
586 |
+
color: #f08080;
|
587 |
+
}
|
588 |
+
#section_ag_colorizer_settings .color .agca_button span.clear:hover{
|
589 |
+
color: red;
|
590 |
+
}
|
uninstall.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
delete_option( 'agca_logout' );
|
10 |
delete_option( 'agca_remove_your_profile' );
|
11 |
delete_option( 'agca_logout_only' );
|
12 |
-
delete_option( 'agca_options_menu' );
|
13 |
delete_option( 'agca_howdy' );
|
14 |
delete_option( 'agca_header' );
|
15 |
delete_option( 'agca_header_show_logout' );
|
@@ -74,6 +74,7 @@
|
|
74 |
delete_option( 'agca_admin_menu_brand_link' );
|
75 |
delete_option( 'agca_admin_menu_autofold' );
|
76 |
delete_option( 'ag_edit_adminmenu_json' );
|
|
|
77 |
delete_option( 'ag_add_adminmenu_json' );
|
78 |
delete_option( 'ag_colorizer_json' );
|
79 |
delete_option( 'agca_colorizer_turnonoff' );
|
9 |
delete_option( 'agca_logout' );
|
10 |
delete_option( 'agca_remove_your_profile' );
|
11 |
delete_option( 'agca_logout_only' );
|
12 |
+
delete_option( 'agca_options_menu' ); //obsolete from 1.5
|
13 |
delete_option( 'agca_howdy' );
|
14 |
delete_option( 'agca_header' );
|
15 |
delete_option( 'agca_header_show_logout' );
|
74 |
delete_option( 'agca_admin_menu_brand_link' );
|
75 |
delete_option( 'agca_admin_menu_autofold' );
|
76 |
delete_option( 'ag_edit_adminmenu_json' );
|
77 |
+
delete_option( 'ag_edit_adminmenu_json_new' );
|
78 |
delete_option( 'ag_add_adminmenu_json' );
|
79 |
delete_option( 'ag_colorizer_json' );
|
80 |
delete_option( 'agca_colorizer_turnonoff' );
|