Version Description
Download this release
Release Info
Developer | Bueltge |
Plugin | Adminimize |
Version | 1.7.14 |
Comparing to | |
See all releases |
Code changes from version 1.7.13 to 1.7.14
- adminimize.php +116 -88
- adminimize_page.php +26 -856
- inc-options/backend_options.php +168 -0
- inc-options/global_options.php +120 -0
- links_options.php → inc-options/links_options.php +0 -0
- inc-options/menu_options.php +341 -0
- inc-options/minimenu.php +82 -0
- wp_nav_menu_options.php → inc-options/wp_nav_menu_options.php +1 -2
- inc-options/write_page_options.php +85 -0
- inc-options/write_post_options.php +86 -0
- readme.txt +6 -1
adminimize.php
CHANGED
@@ -12,7 +12,7 @@ Domain Path: /languages
|
|
12 |
Description: Visually compresses the administratrive meta-boxes so that more admin page content can be initially seen. The plugin that lets you hide 'unnecessary' items from the WordPress administration menu, for alle roles of your install. You can also hide post meta controls on the edit-area to simplify the interface. It is possible to simplify the admin in different for all roles.
|
13 |
Author: Frank Bültge
|
14 |
Author URI: http://bueltge.de/
|
15 |
-
Version: 1.7.
|
16 |
License: GPL
|
17 |
*/
|
18 |
|
@@ -29,12 +29,14 @@ if ( !function_exists ('add_action') || version_compare($wp_version, "2.5alpha",
|
|
29 |
$exit_msg = 'The plugin <em><a href="http://bueltge.de/wordpress-admin-theme-adminimize/674/">Adminimize</a></em> requires WordPress 2.5 or newer. <a href="http://codex.wordpress.org/Upgrading_WordPress">Please update WordPress</a> or delete the plugin.';
|
30 |
else
|
31 |
$exit_msg = '';
|
|
|
32 |
header('Status: 403 Forbidden');
|
33 |
header('HTTP/1.1 403 Forbidden');
|
34 |
exit($exit_msg);
|
35 |
}
|
36 |
|
37 |
if ( function_exists('add_action') ) {
|
|
|
38 |
// Pre-2.6 compatibility
|
39 |
if ( !defined( 'WP_CONTENT_URL' ) )
|
40 |
define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );
|
@@ -53,24 +55,25 @@ if ( function_exists('add_action') ) {
|
|
53 |
|
54 |
function _mw_adminimize_textdomain() {
|
55 |
|
56 |
-
|
57 |
-
load_plugin_textdomain( FB_ADMINIMIZE_TEXTDOMAIN, false, dirname( FB_ADMINIMIZE_BASENAME ) . '/languages');
|
58 |
}
|
59 |
|
60 |
|
61 |
function _mw_adminimize_register_styles() {
|
|
|
62 |
wp_register_style( 'adminimize-style', plugins_url( 'css/style.css', __FILE__ ) );
|
63 |
}
|
64 |
|
65 |
|
66 |
function recursive_in_array($needle, $haystack) {
|
67 |
-
|
|
|
68 |
foreach ($haystack as $stalk) {
|
69 |
if ( $needle == $stalk || ( is_array($stalk) && recursive_in_array($needle, $stalk) ) ) {
|
70 |
-
return
|
71 |
}
|
72 |
}
|
73 |
-
return
|
74 |
}
|
75 |
}
|
76 |
|
@@ -79,6 +82,10 @@ function recursive_in_array($needle, $haystack) {
|
|
79 |
* some basics for message
|
80 |
*/
|
81 |
class _mw_adminimize_message_class {
|
|
|
|
|
|
|
|
|
82 |
function _mw_adminimize_message_class() {
|
83 |
$this->localizionName = FB_ADMINIMIZE_TEXTDOMAIN;
|
84 |
$this->errors = new WP_Error();
|
@@ -86,19 +93,21 @@ class _mw_adminimize_message_class {
|
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
function get_error($code = '') {
|
94 |
$errorMessage = $this->errors->get_error_message($code);
|
95 |
-
if ($errorMessage ==
|
96 |
return __("Unknown error.", $this->localizionName);
|
97 |
}
|
98 |
return $errorMessage;
|
99 |
}
|
100 |
|
101 |
-
|
|
|
|
|
102 |
function initialize_errors() {
|
103 |
$this->errors->add('_mw_adminimize_update', __('The updates were saved.', $this->localizionName));
|
104 |
$this->errors->add('_mw_adminimize_access_denied', __('You have not enough rights to edit entries in the database.', $this->localizionName));
|
@@ -117,6 +126,7 @@ class _mw_adminimize_message_class {
|
|
117 |
* Inclusive self defined roles (for example with the 'Role Manager' plugin).
|
118 |
* code by Vincent Weber, www.webRtistik.nl
|
119 |
* @uses $wp_roles
|
|
|
120 |
*/
|
121 |
function get_all_user_roles() {
|
122 |
global $wp_roles;
|
@@ -138,6 +148,7 @@ function get_all_user_roles() {
|
|
138 |
* get_all_user_roles_names() - Returns an array with all user roles_names in it.
|
139 |
* Inclusive self defined roles (for example with the 'Role Manager' plugin).
|
140 |
* @uses $wp_roles
|
|
|
141 |
*/
|
142 |
function get_all_user_roles_names() {
|
143 |
global $wp_roles;
|
@@ -149,20 +160,26 @@ function get_all_user_roles_names() {
|
|
149 |
$data = translate_user_role( $data );
|
150 |
else
|
151 |
$data = translate_with_context( $data );
|
|
|
152 |
array_push($user_roles_names, $data );
|
153 |
}
|
154 |
|
155 |
return $user_roles_names;
|
156 |
}
|
157 |
|
158 |
-
|
|
|
|
|
|
|
|
|
159 |
function _mw_adminimize_control_flashloader() {
|
|
|
160 |
$_mw_adminimize_control_flashloader = _mw_adminimize_getOptionValue('_mw_adminimize_control_flashloader');
|
161 |
|
162 |
if ($_mw_adminimize_control_flashloader == '1') {
|
163 |
-
return
|
164 |
} else {
|
165 |
-
return
|
166 |
}
|
167 |
}
|
168 |
|
@@ -188,9 +205,9 @@ function _mw_adminimize_init() {
|
|
188 |
else
|
189 |
$post_id = 0;
|
190 |
$post_ID = $post_id;
|
191 |
-
$post =
|
192 |
-
$post_type_object =
|
193 |
-
$post_type =
|
194 |
if ( $post_id ) {
|
195 |
$post = get_post($post_id);
|
196 |
if ( $post ) {
|
@@ -218,11 +235,11 @@ function _mw_adminimize_init() {
|
|
218 |
$adminimizeoptions = get_option('mw_adminimize');
|
219 |
|
220 |
foreach ($user_roles as $role) {
|
221 |
-
$disabled_global_option_[$role]
|
222 |
-
$disabled_metaboxes_post_[$role]
|
223 |
-
$disabled_metaboxes_page_[$role]
|
224 |
-
$disabled_link_option_[$role]
|
225 |
-
$disabled_nav_menu_option_[$role]
|
226 |
}
|
227 |
|
228 |
$disabled_metaboxes_post_all = array();
|
@@ -390,17 +407,14 @@ function _mw_adminimize_init() {
|
|
390 |
add_action( 'init', '_mw_adminimize_textdomain' );
|
391 |
add_action( 'init', '_mw_adminimize_register_styles' );
|
392 |
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
}
|
399 |
|
400 |
-
|
401 |
-
|
402 |
-
if ( function_exists('register_uninstall_hook') )
|
403 |
-
register_uninstall_hook(__FILE__, '_mw_adminimize_deinstall');
|
404 |
//register_deactivation_hook(__FILE__, '_mw_adminimize_deinstall');
|
405 |
|
406 |
|
@@ -410,26 +424,27 @@ if ( function_exists('register_uninstall_hook') )
|
|
410 |
* http://www.wp-fun.co.uk/
|
411 |
* @param $value, $id, $size
|
412 |
*/
|
413 |
-
function _mw_adminimize_image_downsize($value =
|
414 |
|
415 |
if ( !wp_attachment_is_image($id) )
|
416 |
-
return
|
417 |
|
418 |
$img_url = wp_get_attachment_url($id);
|
|
|
419 |
// Mimic functionality in image_downsize function in wp-includes/media.php
|
420 |
if ( $intermediate = image_get_intermediate_size($id, $size) ) {
|
421 |
-
$img_url = str_replace(basename($img_url), $intermediate['file'], $img_url);
|
422 |
-
}
|
423 |
-
elseif ( $size == 'thumbnail' ) {
|
424 |
// fall back to the old thumbnail
|
425 |
if ( $thumb_file = wp_get_attachment_thumb_file() && $info = getimagesize($thumb_file) ) {
|
426 |
-
$img_url = str_replace(basename($img_url), basename($thumb_file), $img_url);
|
427 |
}
|
428 |
}
|
|
|
429 |
if ( $img_url)
|
430 |
return array($img_url, 0, 0);
|
431 |
|
432 |
-
return
|
433 |
}
|
434 |
|
435 |
|
@@ -453,7 +468,7 @@ function _mw_adminimize_sidecat_list_category_box() {
|
|
453 |
<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" />
|
454 |
<?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?>
|
455 |
<input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _e( 'Add' ); ?>" tabindex="3" />
|
456 |
-
<?php wp_nonce_field( 'add-category', '_ajax_nonce',
|
457 |
<span id="category-ajax-response"></span>
|
458 |
</p>
|
459 |
</div>
|
@@ -461,11 +476,11 @@ function _mw_adminimize_sidecat_list_category_box() {
|
|
461 |
<div id="category-adder" class="wp-hidden-children">
|
462 |
<h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4>
|
463 |
<p id="category-add" class="wp-hidden-child">
|
464 |
-
<label class="hidden" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" aria-required="
|
465 |
<br />
|
466 |
<label class="hidden" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?>
|
467 |
<input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _e( 'Add' ); ?>" tabindex="3" />
|
468 |
-
<?php wp_nonce_field( 'add-category', '_ajax_nonce',
|
469 |
<span id="category-ajax-response"></span>
|
470 |
</p>
|
471 |
</div>
|
@@ -503,6 +518,7 @@ function _mw_adminimize_remove_box() {
|
|
503 |
if ( function_exists('remove_meta_box') ) {
|
504 |
if ( !class_exists('SimpleTagsAdmin') )
|
505 |
remove_meta_box('tagsdiv', 'post', 'normal');
|
|
|
506 |
remove_meta_box('categorydiv', 'post', 'normal');
|
507 |
} else {
|
508 |
$_mw_adminimize_sidecat_admin_head = "\n" . '<script type="text/javascript">' . "\n";
|
@@ -748,7 +764,8 @@ function _mw_adminimize_remove_dashboard() {
|
|
748 |
* remove the flash_uploader
|
749 |
*/
|
750 |
function _mw_adminimize_disable_flash_uploader() {
|
751 |
-
|
|
|
752 |
}
|
753 |
|
754 |
|
@@ -770,49 +787,49 @@ function _mw_adminimize_set_menu_option() {
|
|
770 |
$_mw_adminimize_ui_redirect = _mw_adminimize_getOptionValue('_mw_adminimize_ui_redirect');
|
771 |
|
772 |
switch ($_mw_adminimize_user_info) {
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
break;
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
break;
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
break;
|
812 |
}
|
813 |
|
814 |
// set menu
|
815 |
-
if ($disabled_menu_['editor']
|
816 |
|
817 |
// set admin-menu
|
818 |
foreach ($user_roles as $role) {
|
@@ -923,7 +940,7 @@ function _mw_adminimize_set_metabox_post_option() {
|
|
923 |
foreach ($user_roles as $role) {
|
924 |
$user = wp_get_current_user();
|
925 |
if ( in_array($role, $user->roles) ) {
|
926 |
-
if ( current_user_can($role) && is_array($disabled_metaboxes_post_[$role]) ) {
|
927 |
$metaboxes = implode(',', $disabled_metaboxes_post_[$role]);
|
928 |
}
|
929 |
}
|
@@ -1066,17 +1083,21 @@ require_once('adminimize_page.php');
|
|
1066 |
* credit in wp-footer
|
1067 |
*/
|
1068 |
function _mw_adminimize_admin_footer() {
|
|
|
1069 |
$plugin_data = get_plugin_data( __FILE__ );
|
1070 |
$plugin_data['Title'] = $plugin_data['Name'];
|
|
|
1071 |
if ( !empty($plugin_data['PluginURI']) && !empty($plugin_data['Name']) )
|
1072 |
$plugin_data['Title'] = '<a href="' . $plugin_data['PluginURI'] . '" title="'.__( 'Visit plugin homepage' ).'">' . $plugin_data['Name'] . '</a>';
|
1073 |
|
1074 |
if ( basename($_SERVER['REQUEST_URI']) == 'adminimize.php') {
|
1075 |
printf('%1$s ' . __('plugin') . ' | ' . __('Version') . ' <a href="http://wordpress.org/extend/plugins/adminimize/changelog/" title="' . __('History', FB_ADMINIMIZE_TEXTDOMAIN ) . '">%2$s</a> | ' . __('Author') . ' %3$s<br />', $plugin_data['Title'], $plugin_data['Version'], $plugin_data['Author']);
|
1076 |
}
|
|
|
1077 |
if ( _mw_adminimize_getOptionValue('_mw_adminimize_advice') == 1 && basename($_SERVER['REQUEST_URI']) != 'adminimize.php' ) {
|
1078 |
printf('%1$s ' . __('plugin activate', FB_ADMINIMIZE_TEXTDOMAIN ) . ' | ' . stripslashes( _mw_adminimize_getOptionValue('_mw_adminimize_advice_txt') ) . '<br />', $plugin_data['Title']);
|
1079 |
}
|
|
|
1080 |
}
|
1081 |
|
1082 |
|
@@ -1092,7 +1113,7 @@ function _mw_adminimize_admin_footer() {
|
|
1092 |
function _mw_adminimize_filter_plugin_meta($links, $file) {
|
1093 |
|
1094 |
/* create link */
|
1095 |
-
if (
|
1096 |
array_unshift(
|
1097 |
$links,
|
1098 |
sprintf( '<a href="options-general.php?page=%s">%s</a>', FB_ADMINIMIZE_BASENAME, __('Settings') )
|
@@ -1108,6 +1129,7 @@ function _mw_adminimize_filter_plugin_meta($links, $file) {
|
|
1108 |
* @use function _mw_adminimize_get_resource_url() for display
|
1109 |
*/
|
1110 |
if ( isset($_GET['resource']) && !empty($_GET['resource']) ) {
|
|
|
1111 |
# base64 encoding performed by base64img.php from http://php.holtsmark.no
|
1112 |
$resources = array(
|
1113 |
'adminimize.gif' =>
|
@@ -1121,21 +1143,22 @@ if ( isset($_GET['resource']) && !empty($_GET['resource']) ) {
|
|
1121 |
$content = base64_decode($resources[ $_GET['resource'] ]);
|
1122 |
|
1123 |
$lastMod = filemtime(__FILE__);
|
1124 |
-
$client = ( isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? $_SERVER['HTTP_IF_MODIFIED_SINCE'] :
|
1125 |
// Checking if the client is validating his cache and if it is current.
|
1126 |
if (isset($client) && (strtotime($client) == $lastMod)) {
|
1127 |
// Client's cache IS current, so we just respond '304 Not Modified'.
|
1128 |
-
header('Last-Modified: '.gmdate('D, d M Y H:i:s', $lastMod).' GMT',
|
1129 |
exit;
|
1130 |
} else {
|
1131 |
// Image not cached or cache outdated, we respond '200 OK' and output the image.
|
1132 |
-
header('Last-Modified: '.gmdate('D, d M Y H:i:s', $lastMod).' GMT',
|
1133 |
header('Content-Length: '.strlen($content));
|
1134 |
header('Content-Type: image/' . substr(strrchr($_GET['resource'], '.'), 1) );
|
1135 |
echo $content;
|
1136 |
exit;
|
1137 |
}
|
1138 |
}
|
|
|
1139 |
}
|
1140 |
|
1141 |
|
@@ -1157,6 +1180,7 @@ function _mw_adminimize_get_resource_url($resourceID) {
|
|
1157 |
function _mw_adminimize_contextual_help() {
|
1158 |
|
1159 |
$content = __('<a href="http://wordpress.org/extend/plugins/adminimize/">Documentation</a>', FB_ADMINIMIZE_TEXTDOMAIN );
|
|
|
1160 |
return $content;
|
1161 |
}
|
1162 |
|
@@ -1179,10 +1203,12 @@ function _mw_adminimize_add_settings_page() {
|
|
1179 |
add_action( 'load-' . $pagehook, '_mw_adminimize_on_load_page' );
|
1180 |
add_filter( 'plugin_action_links', '_mw_adminimize_filter_plugin_meta', 10, 2 );
|
1181 |
}
|
|
|
1182 |
}
|
1183 |
|
1184 |
|
1185 |
function _mw_adminimize_on_load_page() {
|
|
|
1186 |
add_filter( 'contextual_help', '_mw_adminimize_contextual_help' );
|
1187 |
|
1188 |
wp_enqueue_style( 'adminimize-style' );
|
@@ -1201,11 +1227,12 @@ function _mw_adminimize_set_theme() {
|
|
1201 |
$admin_color = htmlspecialchars( stripslashes( $_POST[_mw_adminimize_set_theme] ) );
|
1202 |
|
1203 |
if ( !$user_ids )
|
1204 |
-
return
|
1205 |
|
1206 |
foreach( $user_ids as $user_id) {
|
1207 |
update_usermeta($user_id, 'admin_color', $admin_color);
|
1208 |
}
|
|
|
1209 |
}
|
1210 |
|
1211 |
|
@@ -1215,6 +1242,7 @@ function _mw_adminimize_set_theme() {
|
|
1215 |
function _mw_adminimize_getOptionValue($key) {
|
1216 |
|
1217 |
$adminimizeoptions = get_option('mw_adminimize');
|
|
|
1218 |
if ( isset($adminimizeoptions[$key]) )
|
1219 |
return ($adminimizeoptions[$key]);
|
1220 |
}
|
@@ -1468,7 +1496,7 @@ function _mw_adminimize_export() {
|
|
1468 |
header("Content-Type: application/force-download");
|
1469 |
header("Content-Type: application/octet-stream");
|
1470 |
header("Content-Type: application/download");
|
1471 |
-
header('Content-Type: text/seq; charset=' . get_option('blog_charset'),
|
1472 |
flush();
|
1473 |
|
1474 |
$export_data = mysql_query("SELECT option_value FROM $wpdb->options WHERE option_name = 'mw_adminimize'");
|
12 |
Description: Visually compresses the administratrive meta-boxes so that more admin page content can be initially seen. The plugin that lets you hide 'unnecessary' items from the WordPress administration menu, for alle roles of your install. You can also hide post meta controls on the edit-area to simplify the interface. It is possible to simplify the admin in different for all roles.
|
13 |
Author: Frank Bültge
|
14 |
Author URI: http://bueltge.de/
|
15 |
+
Version: 1.7.14
|
16 |
License: GPL
|
17 |
*/
|
18 |
|
29 |
$exit_msg = 'The plugin <em><a href="http://bueltge.de/wordpress-admin-theme-adminimize/674/">Adminimize</a></em> requires WordPress 2.5 or newer. <a href="http://codex.wordpress.org/Upgrading_WordPress">Please update WordPress</a> or delete the plugin.';
|
30 |
else
|
31 |
$exit_msg = '';
|
32 |
+
|
33 |
header('Status: 403 Forbidden');
|
34 |
header('HTTP/1.1 403 Forbidden');
|
35 |
exit($exit_msg);
|
36 |
}
|
37 |
|
38 |
if ( function_exists('add_action') ) {
|
39 |
+
|
40 |
// Pre-2.6 compatibility
|
41 |
if ( !defined( 'WP_CONTENT_URL' ) )
|
42 |
define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );
|
55 |
|
56 |
function _mw_adminimize_textdomain() {
|
57 |
|
58 |
+
load_plugin_textdomain( FB_ADMINIMIZE_TEXTDOMAIN, FALSE, dirname( FB_ADMINIMIZE_BASENAME ) . '/languages');
|
|
|
59 |
}
|
60 |
|
61 |
|
62 |
function _mw_adminimize_register_styles() {
|
63 |
+
|
64 |
wp_register_style( 'adminimize-style', plugins_url( 'css/style.css', __FILE__ ) );
|
65 |
}
|
66 |
|
67 |
|
68 |
function recursive_in_array($needle, $haystack) {
|
69 |
+
|
70 |
+
if ( '' != $haystack ) {
|
71 |
foreach ($haystack as $stalk) {
|
72 |
if ( $needle == $stalk || ( is_array($stalk) && recursive_in_array($needle, $stalk) ) ) {
|
73 |
+
return TRUE;
|
74 |
}
|
75 |
}
|
76 |
+
return FALSE;
|
77 |
}
|
78 |
}
|
79 |
|
82 |
* some basics for message
|
83 |
*/
|
84 |
class _mw_adminimize_message_class {
|
85 |
+
|
86 |
+
/**
|
87 |
+
* constructor
|
88 |
+
*/
|
89 |
function _mw_adminimize_message_class() {
|
90 |
$this->localizionName = FB_ADMINIMIZE_TEXTDOMAIN;
|
91 |
$this->errors = new WP_Error();
|
93 |
}
|
94 |
|
95 |
/**
|
96 |
+
* get_error - Returns an error message based on the passed code
|
97 |
+
* Parameters - $code (the error code as a string)
|
98 |
+
* @return Returns an error message
|
99 |
+
*/
|
100 |
function get_error($code = '') {
|
101 |
$errorMessage = $this->errors->get_error_message($code);
|
102 |
+
if ($errorMessage == NULL) {
|
103 |
return __("Unknown error.", $this->localizionName);
|
104 |
}
|
105 |
return $errorMessage;
|
106 |
}
|
107 |
|
108 |
+
/**
|
109 |
+
* Initializes all the error messages
|
110 |
+
*/
|
111 |
function initialize_errors() {
|
112 |
$this->errors->add('_mw_adminimize_update', __('The updates were saved.', $this->localizionName));
|
113 |
$this->errors->add('_mw_adminimize_access_denied', __('You have not enough rights to edit entries in the database.', $this->localizionName));
|
126 |
* Inclusive self defined roles (for example with the 'Role Manager' plugin).
|
127 |
* code by Vincent Weber, www.webRtistik.nl
|
128 |
* @uses $wp_roles
|
129 |
+
* @return $user_roles
|
130 |
*/
|
131 |
function get_all_user_roles() {
|
132 |
global $wp_roles;
|
148 |
* get_all_user_roles_names() - Returns an array with all user roles_names in it.
|
149 |
* Inclusive self defined roles (for example with the 'Role Manager' plugin).
|
150 |
* @uses $wp_roles
|
151 |
+
* @return $user_roles_names
|
152 |
*/
|
153 |
function get_all_user_roles_names() {
|
154 |
global $wp_roles;
|
160 |
$data = translate_user_role( $data );
|
161 |
else
|
162 |
$data = translate_with_context( $data );
|
163 |
+
|
164 |
array_push($user_roles_names, $data );
|
165 |
}
|
166 |
|
167 |
return $user_roles_names;
|
168 |
}
|
169 |
|
170 |
+
/**
|
171 |
+
* Control Flash Uploader
|
172 |
+
*
|
173 |
+
* @return boolean
|
174 |
+
*/
|
175 |
function _mw_adminimize_control_flashloader() {
|
176 |
+
|
177 |
$_mw_adminimize_control_flashloader = _mw_adminimize_getOptionValue('_mw_adminimize_control_flashloader');
|
178 |
|
179 |
if ($_mw_adminimize_control_flashloader == '1') {
|
180 |
+
return FALSE;
|
181 |
} else {
|
182 |
+
return TRUE;
|
183 |
}
|
184 |
}
|
185 |
|
205 |
else
|
206 |
$post_id = 0;
|
207 |
$post_ID = $post_id;
|
208 |
+
$post = NULL;
|
209 |
+
$post_type_object = NULL;
|
210 |
+
$post_type = NULL;
|
211 |
if ( $post_id ) {
|
212 |
$post = get_post($post_id);
|
213 |
if ( $post ) {
|
235 |
$adminimizeoptions = get_option('mw_adminimize');
|
236 |
|
237 |
foreach ($user_roles as $role) {
|
238 |
+
$disabled_global_option_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_global_option_'. $role .'_items');
|
239 |
+
$disabled_metaboxes_post_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_metaboxes_post_'. $role .'_items');
|
240 |
+
$disabled_metaboxes_page_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_metaboxes_page_'. $role .'_items');
|
241 |
+
$disabled_link_option_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_link_option_'. $role .'_items');
|
242 |
+
$disabled_nav_menu_option_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_nav_menu_option_'. $role .'_items');
|
243 |
}
|
244 |
|
245 |
$disabled_metaboxes_post_all = array();
|
407 |
add_action( 'init', '_mw_adminimize_textdomain' );
|
408 |
add_action( 'init', '_mw_adminimize_register_styles' );
|
409 |
|
410 |
+
// on admin init
|
411 |
+
add_action( 'admin_menu', '_mw_adminimize_add_settings_page' );
|
412 |
+
add_action( 'admin_menu', '_mw_adminimize_remove_dashboard' );
|
413 |
+
add_action( 'admin_init', '_mw_adminimize_init', 1 );
|
414 |
+
add_action( 'admin_init', '_mw_adminimize_admin_styles', 1 );
|
|
|
415 |
|
416 |
+
register_activation_hook( __FILE__, '_mw_adminimize_install' );
|
417 |
+
register_uninstall_hook( __FILE__, '_mw_adminimize_deinstall' );
|
|
|
|
|
418 |
//register_deactivation_hook(__FILE__, '_mw_adminimize_deinstall');
|
419 |
|
420 |
|
424 |
* http://www.wp-fun.co.uk/
|
425 |
* @param $value, $id, $size
|
426 |
*/
|
427 |
+
function _mw_adminimize_image_downsize($value = FALSE, $id = 0, $size = "medium") {
|
428 |
|
429 |
if ( !wp_attachment_is_image($id) )
|
430 |
+
return FALSE;
|
431 |
|
432 |
$img_url = wp_get_attachment_url($id);
|
433 |
+
|
434 |
// Mimic functionality in image_downsize function in wp-includes/media.php
|
435 |
if ( $intermediate = image_get_intermediate_size($id, $size) ) {
|
436 |
+
$img_url = str_replace( basename($img_url), $intermediate['file'], $img_url );
|
437 |
+
} elseif ( $size == 'thumbnail' ) {
|
|
|
438 |
// fall back to the old thumbnail
|
439 |
if ( $thumb_file = wp_get_attachment_thumb_file() && $info = getimagesize($thumb_file) ) {
|
440 |
+
$img_url = str_replace( basename($img_url), basename($thumb_file), $img_url );
|
441 |
}
|
442 |
}
|
443 |
+
|
444 |
if ( $img_url)
|
445 |
return array($img_url, 0, 0);
|
446 |
|
447 |
+
return FALSE;
|
448 |
}
|
449 |
|
450 |
|
468 |
<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" />
|
469 |
<?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?>
|
470 |
<input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _e( 'Add' ); ?>" tabindex="3" />
|
471 |
+
<?php wp_nonce_field( 'add-category', '_ajax_nonce', FALSE ); ?>
|
472 |
<span id="category-ajax-response"></span>
|
473 |
</p>
|
474 |
</div>
|
476 |
<div id="category-adder" class="wp-hidden-children">
|
477 |
<h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4>
|
478 |
<p id="category-add" class="wp-hidden-child">
|
479 |
+
<label class="hidden" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" aria-required="TRUE"/>
|
480 |
<br />
|
481 |
<label class="hidden" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?>
|
482 |
<input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _e( 'Add' ); ?>" tabindex="3" />
|
483 |
+
<?php wp_nonce_field( 'add-category', '_ajax_nonce', FALSE ); ?>
|
484 |
<span id="category-ajax-response"></span>
|
485 |
</p>
|
486 |
</div>
|
518 |
if ( function_exists('remove_meta_box') ) {
|
519 |
if ( !class_exists('SimpleTagsAdmin') )
|
520 |
remove_meta_box('tagsdiv', 'post', 'normal');
|
521 |
+
|
522 |
remove_meta_box('categorydiv', 'post', 'normal');
|
523 |
} else {
|
524 |
$_mw_adminimize_sidecat_admin_head = "\n" . '<script type="text/javascript">' . "\n";
|
764 |
* remove the flash_uploader
|
765 |
*/
|
766 |
function _mw_adminimize_disable_flash_uploader() {
|
767 |
+
|
768 |
+
return FALSE;
|
769 |
}
|
770 |
|
771 |
|
787 |
$_mw_adminimize_ui_redirect = _mw_adminimize_getOptionValue('_mw_adminimize_ui_redirect');
|
788 |
|
789 |
switch ($_mw_adminimize_user_info) {
|
790 |
+
case 1:
|
791 |
+
$_mw_adminimize_admin_head .= '<script type="text/javascript">' . "\n";
|
792 |
+
$_mw_adminimize_admin_head .= "\t" . 'jQuery(document).ready(function() { jQuery(\'#user_info\').remove(); });' . "\n";
|
793 |
+
$_mw_adminimize_admin_head .= '</script>' . "\n";
|
794 |
break;
|
795 |
+
case 2:
|
796 |
+
if ( version_compare($wp_version, "3.0alpha", ">=") ) {
|
797 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info30.css" type="text/css" />' . "\n";
|
798 |
+
} elseif ( version_compare(substr($wp_version, 0, 3), '2.7', '>=') ) {
|
799 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info27.css" type="text/css" />' . "\n";
|
800 |
+
} else {
|
801 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info.css" type="text/css" />' . "\n";
|
802 |
+
}
|
803 |
+
$_mw_adminimize_admin_head .= '<script type="text/javascript">' . "\n";
|
804 |
+
$_mw_adminimize_admin_head .= "\t" . 'jQuery(document).ready(function() { jQuery(\'#user_info\').remove();';
|
805 |
+
if ($_mw_adminimize_ui_redirect == '1') {
|
806 |
+
$_mw_adminimize_admin_head .= 'jQuery(\'div#wpcontent\').after(\'<div id="small_user_info"><p><a href="' . get_option('siteurl') . wp_nonce_url( ('/wp-login.php?action=logout&redirect_to=') . get_option('siteurl') , 'log-out' ) . '" title="' . __('Log Out') . '">' . __('Log Out') . '</a></p></div>\') });' . "\n";
|
807 |
+
} else {
|
808 |
+
$_mw_adminimize_admin_head .= 'jQuery(\'div#wpcontent\').after(\'<div id="small_user_info"><p><a href="' . get_option('siteurl') . wp_nonce_url( ('/wp-login.php?action=logout') , 'log-out' ) . '" title="' . __('Log Out') . '">' . __('Log Out') . '</a></p></div>\') });' . "\n";
|
809 |
+
}
|
810 |
+
$_mw_adminimize_admin_head .= '</script>' . "\n";
|
811 |
break;
|
812 |
+
case 3:
|
813 |
+
if ( version_compare($wp_version, "3.0alpha", ">=") ) {
|
814 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info30.css" type="text/css" />' . "\n";
|
815 |
+
} elseif ( version_compare(substr($wp_version, 0, 3), '2.7', '>=') ) {
|
816 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info27.css" type="text/css" />' . "\n";
|
817 |
+
} else {
|
818 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info.css" type="text/css" />' . "\n";
|
819 |
+
}
|
820 |
+
$_mw_adminimize_admin_head .= '<script type="text/javascript">' . "\n";
|
821 |
+
$_mw_adminimize_admin_head .= "\t" . 'jQuery(document).ready(function() { jQuery(\'#user_info\').remove();';
|
822 |
+
if ($_mw_adminimize_ui_redirect == '1') {
|
823 |
+
$_mw_adminimize_admin_head .= 'jQuery(\'div#wpcontent\').after(\'<div id="small_user_info"><p><a href="' . get_option('siteurl') . ('/wp-admin/profile.php') . '">' . $user_identity . '</a> | <a href="' . get_option('siteurl') . wp_nonce_url( ('/wp-login.php?action=logout&redirect_to=') . get_option('siteurl'), 'log-out' ) . '" title="' . __('Log Out') . '">' . __('Log Out') . '</a></p></div>\') });' . "\n";
|
824 |
+
} else {
|
825 |
+
$_mw_adminimize_admin_head .= 'jQuery(\'div#wpcontent\').after(\'<div id="small_user_info"><p><a href="' . get_option('siteurl') . ('/wp-admin/profile.php') . '">' . $user_identity . '</a> | <a href="' . get_option('siteurl') . wp_nonce_url( ('/wp-login.php?action=logout'), 'log-out' ) . '" title="' . __('Log Out') . '">' . __('Log Out') . '</a></p></div>\') });' . "\n";
|
826 |
+
}
|
827 |
+
$_mw_adminimize_admin_head .= '</script>' . "\n";
|
828 |
break;
|
829 |
}
|
830 |
|
831 |
// set menu
|
832 |
+
if ( '' != $disabled_menu_['editor'] ) {
|
833 |
|
834 |
// set admin-menu
|
835 |
foreach ($user_roles as $role) {
|
940 |
foreach ($user_roles as $role) {
|
941 |
$user = wp_get_current_user();
|
942 |
if ( in_array($role, $user->roles) ) {
|
943 |
+
if ( current_user_can($role) && isset($disabled_metaboxes_post_[$role]) && is_array($disabled_metaboxes_post_[$role]) ) {
|
944 |
$metaboxes = implode(',', $disabled_metaboxes_post_[$role]);
|
945 |
}
|
946 |
}
|
1083 |
* credit in wp-footer
|
1084 |
*/
|
1085 |
function _mw_adminimize_admin_footer() {
|
1086 |
+
|
1087 |
$plugin_data = get_plugin_data( __FILE__ );
|
1088 |
$plugin_data['Title'] = $plugin_data['Name'];
|
1089 |
+
|
1090 |
if ( !empty($plugin_data['PluginURI']) && !empty($plugin_data['Name']) )
|
1091 |
$plugin_data['Title'] = '<a href="' . $plugin_data['PluginURI'] . '" title="'.__( 'Visit plugin homepage' ).'">' . $plugin_data['Name'] . '</a>';
|
1092 |
|
1093 |
if ( basename($_SERVER['REQUEST_URI']) == 'adminimize.php') {
|
1094 |
printf('%1$s ' . __('plugin') . ' | ' . __('Version') . ' <a href="http://wordpress.org/extend/plugins/adminimize/changelog/" title="' . __('History', FB_ADMINIMIZE_TEXTDOMAIN ) . '">%2$s</a> | ' . __('Author') . ' %3$s<br />', $plugin_data['Title'], $plugin_data['Version'], $plugin_data['Author']);
|
1095 |
}
|
1096 |
+
|
1097 |
if ( _mw_adminimize_getOptionValue('_mw_adminimize_advice') == 1 && basename($_SERVER['REQUEST_URI']) != 'adminimize.php' ) {
|
1098 |
printf('%1$s ' . __('plugin activate', FB_ADMINIMIZE_TEXTDOMAIN ) . ' | ' . stripslashes( _mw_adminimize_getOptionValue('_mw_adminimize_advice_txt') ) . '<br />', $plugin_data['Title']);
|
1099 |
}
|
1100 |
+
|
1101 |
}
|
1102 |
|
1103 |
|
1113 |
function _mw_adminimize_filter_plugin_meta($links, $file) {
|
1114 |
|
1115 |
/* create link */
|
1116 |
+
if ( FB_ADMINIMIZE_BASENAME == $file ) {
|
1117 |
array_unshift(
|
1118 |
$links,
|
1119 |
sprintf( '<a href="options-general.php?page=%s">%s</a>', FB_ADMINIMIZE_BASENAME, __('Settings') )
|
1129 |
* @use function _mw_adminimize_get_resource_url() for display
|
1130 |
*/
|
1131 |
if ( isset($_GET['resource']) && !empty($_GET['resource']) ) {
|
1132 |
+
|
1133 |
# base64 encoding performed by base64img.php from http://php.holtsmark.no
|
1134 |
$resources = array(
|
1135 |
'adminimize.gif' =>
|
1143 |
$content = base64_decode($resources[ $_GET['resource'] ]);
|
1144 |
|
1145 |
$lastMod = filemtime(__FILE__);
|
1146 |
+
$client = ( isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? $_SERVER['HTTP_IF_MODIFIED_SINCE'] : FALSE );
|
1147 |
// Checking if the client is validating his cache and if it is current.
|
1148 |
if (isset($client) && (strtotime($client) == $lastMod)) {
|
1149 |
// Client's cache IS current, so we just respond '304 Not Modified'.
|
1150 |
+
header('Last-Modified: '.gmdate('D, d M Y H:i:s', $lastMod).' GMT', TRUE, 304);
|
1151 |
exit;
|
1152 |
} else {
|
1153 |
// Image not cached or cache outdated, we respond '200 OK' and output the image.
|
1154 |
+
header('Last-Modified: '.gmdate('D, d M Y H:i:s', $lastMod).' GMT', TRUE, 200);
|
1155 |
header('Content-Length: '.strlen($content));
|
1156 |
header('Content-Type: image/' . substr(strrchr($_GET['resource'], '.'), 1) );
|
1157 |
echo $content;
|
1158 |
exit;
|
1159 |
}
|
1160 |
}
|
1161 |
+
|
1162 |
}
|
1163 |
|
1164 |
|
1180 |
function _mw_adminimize_contextual_help() {
|
1181 |
|
1182 |
$content = __('<a href="http://wordpress.org/extend/plugins/adminimize/">Documentation</a>', FB_ADMINIMIZE_TEXTDOMAIN );
|
1183 |
+
|
1184 |
return $content;
|
1185 |
}
|
1186 |
|
1203 |
add_action( 'load-' . $pagehook, '_mw_adminimize_on_load_page' );
|
1204 |
add_filter( 'plugin_action_links', '_mw_adminimize_filter_plugin_meta', 10, 2 );
|
1205 |
}
|
1206 |
+
|
1207 |
}
|
1208 |
|
1209 |
|
1210 |
function _mw_adminimize_on_load_page() {
|
1211 |
+
|
1212 |
add_filter( 'contextual_help', '_mw_adminimize_contextual_help' );
|
1213 |
|
1214 |
wp_enqueue_style( 'adminimize-style' );
|
1227 |
$admin_color = htmlspecialchars( stripslashes( $_POST[_mw_adminimize_set_theme] ) );
|
1228 |
|
1229 |
if ( !$user_ids )
|
1230 |
+
return FALSE;
|
1231 |
|
1232 |
foreach( $user_ids as $user_id) {
|
1233 |
update_usermeta($user_id, 'admin_color', $admin_color);
|
1234 |
}
|
1235 |
+
|
1236 |
}
|
1237 |
|
1238 |
|
1242 |
function _mw_adminimize_getOptionValue($key) {
|
1243 |
|
1244 |
$adminimizeoptions = get_option('mw_adminimize');
|
1245 |
+
|
1246 |
if ( isset($adminimizeoptions[$key]) )
|
1247 |
return ($adminimizeoptions[$key]);
|
1248 |
}
|
1496 |
header("Content-Type: application/force-download");
|
1497 |
header("Content-Type: application/octet-stream");
|
1498 |
header("Content-Type: application/download");
|
1499 |
+
header('Content-Type: text/seq; charset=' . get_option('blog_charset'), TRUE);
|
1500 |
flush();
|
1501 |
|
1502 |
$export_data = mysql_query("SELECT option_value FROM $wpdb->options WHERE option_name = 'mw_adminimize'");
|
adminimize_page.php
CHANGED
@@ -124,866 +124,36 @@ function _mw_adminimize_options() {
|
|
124 |
}
|
125 |
?>
|
126 |
<div class="wrap">
|
127 |
-
<?php
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
<div id="side-info-column" class="inner-sidebar">
|
132 |
-
<div class="meta-box-sortables">
|
133 |
-
<div id="about" class="postbox ">
|
134 |
-
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
135 |
-
<h3 class="hndle" id="about-sidebar"><?php _e('About the plugin', FB_ADMINIMIZE_TEXTDOMAIN ) ?></h3>
|
136 |
-
<div class="inside">
|
137 |
-
<p><?php _e('Further information: Visit the <a href="http://bueltge.de/wordpress-admin-theme-adminimize/674/">plugin homepage</a> for further information or to grab the latest version of this plugin.', FB_ADMINIMIZE_TEXTDOMAIN); ?></p>
|
138 |
-
<p>
|
139 |
-
<span style="float: left;">
|
140 |
-
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
141 |
-
<input type="hidden" name="cmd" value="_s-xclick">
|
142 |
-
<input type="hidden" name="hosted_button_id" value="4578111">
|
143 |
-
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="<?php _e('PayPal - The safer, easier way to pay online!', FB_ADMINIMIZE_TEXTDOMAIN); ?>">
|
144 |
-
<img alt="" border="0" src="https://www.paypal.com/de_DE/i/scr/pixel.gif" width="1" height="1">
|
145 |
-
</form>
|
146 |
-
</span>
|
147 |
-
<?php _e('You want to thank me? Visit my <a href="http://bueltge.de/wunschliste/">wishlist</a> or donate.', FB_ADMINIMIZE_TEXTDOMAIN); ?>
|
148 |
-
</p>
|
149 |
-
<p>© Copyright 2008 - <?php echo date('Y'); ?> <a href="http://bueltge.de">Frank Bültge</a></p>
|
150 |
-
</div>
|
151 |
-
</div>
|
152 |
-
</div>
|
153 |
-
</div>
|
154 |
-
|
155 |
-
<div id="post-body" class="has-sidebar">
|
156 |
-
<div id="post-body-content" class="has-sidebar-content">
|
157 |
-
<div id="normal-sortables" class="meta-box-sortables">
|
158 |
-
<div id="about" class="postbox ">
|
159 |
-
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
160 |
-
<h3 class="hndle" id="menu"><?php _e('MiniMenu', FB_ADMINIMIZE_TEXTDOMAIN ) ?></h3>
|
161 |
-
<div class="inside">
|
162 |
-
<table class="widefat" cellspacing="0">
|
163 |
-
<tr class="alternate">
|
164 |
-
<td class="row-title"><a href="#backend_options"><?php _e('Backend Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
165 |
-
</tr>
|
166 |
-
<tr>
|
167 |
-
<td class="row-title"><a href="#global_options"><?php _e('Global options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
168 |
-
</tr>
|
169 |
-
<tr class="alternate">
|
170 |
-
<td class="row-title"><a href="#config_menu"><?php _e('Menu Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
171 |
-
</tr>
|
172 |
-
<tr>
|
173 |
-
<td class="row-title"><a href="#config_edit_post"><?php _e('Write options - Post', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
174 |
-
</tr>
|
175 |
-
<tr class="alternate">
|
176 |
-
<td class="row-title"><a href="#config_edit_page"><?php _e('Write options - Page', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
177 |
-
</tr>
|
178 |
-
<tr>
|
179 |
-
<td class="row-title"><a href="#links_options"><?php _e('Links options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
180 |
-
</tr>
|
181 |
-
<tr class="alternate">
|
182 |
-
<td class="row-title"><a href="#nav_menu_options"><?php _e('WP Nav Menu', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
183 |
-
</tr>
|
184 |
-
<tr>
|
185 |
-
<td class="row-title"><a href="#set_theme"><?php _e('Set Theme', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
186 |
-
</tr>
|
187 |
-
<tr class="alternate">
|
188 |
-
<td class="row-title"><a href="#import"><?php _e('Export/Import Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
189 |
-
</tr>
|
190 |
-
<tr>
|
191 |
-
<td class="row-title"><a href="#uninstall"><?php _e('Deinstall Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
192 |
-
</tr>
|
193 |
-
<tr class="alternate">
|
194 |
-
<td class="row-title"><a href="#about"><?php _e('About the plugin', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
195 |
-
</tr>
|
196 |
-
</table>
|
197 |
-
</div>
|
198 |
-
</div>
|
199 |
-
</div>
|
200 |
-
</div>
|
201 |
-
</div>
|
202 |
-
<br class="clear"/>
|
203 |
|
204 |
-
|
|
|
|
|
|
|
205 |
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
<?php $_mw_adminimize_user_info = _mw_adminimize_getOptionValue('_mw_adminimize_user_info'); ?>
|
221 |
-
<select name="_mw_adminimize_user_info">
|
222 |
-
<option value="0"<?php if ($_mw_adminimize_user_info == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
223 |
-
<option value="1"<?php if ($_mw_adminimize_user_info == '1') { echo ' selected="selected"'; } ?>><?php _e('Hide', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
224 |
-
<option value="2"<?php if ($_mw_adminimize_user_info == '2') { echo ' selected="selected"'; } ?>><?php _e('Only logout', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
225 |
-
<option value="3"<?php if ($_mw_adminimize_user_info == '3') { echo ' selected="selected"'; } ?>><?php _e('User & Logout', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
226 |
-
</select> <?php _e('The "User-Info-area" is on the top right side of the backend. You can hide or reduced show.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
227 |
-
</td>
|
228 |
-
</tr>
|
229 |
-
<?php if ( ($_mw_adminimize_user_info == '') || ($_mw_adminimize_user_info == '1') || ($_mw_adminimize_user_info == '0') ) $disabled_item = ' disabled="disabled"' ?>
|
230 |
-
<tr valign="top" class="form-invalid">
|
231 |
-
<td><?php _e('Change User-Info, redirect to', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
232 |
-
<td>
|
233 |
-
<?php $_mw_adminimize_ui_redirect = _mw_adminimize_getOptionValue('_mw_adminimize_ui_redirect'); ?>
|
234 |
-
<select name="_mw_adminimize_ui_redirect" <?php if ( isset($disabled_item) ) echo $disabled_item; ?>>
|
235 |
-
<option value="0"<?php if ($_mw_adminimize_ui_redirect == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
236 |
-
<option value="1"<?php if ($_mw_adminimize_ui_redirect == '1') { echo ' selected="selected"'; } ?>><?php _e('Frontpage of the Blog', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
237 |
-
</select> <?php _e('When the "User-Info-area" change it, then it is possible to change the redirect.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
238 |
-
</td>
|
239 |
-
</tr>
|
240 |
-
<tr valign="top">
|
241 |
-
<td><?php _e('Footer', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
242 |
-
<td>
|
243 |
-
<?php $_mw_adminimize_footer = _mw_adminimize_getOptionValue('_mw_adminimize_footer'); ?>
|
244 |
-
<select name="_mw_adminimize_footer">
|
245 |
-
<option value="0"<?php if ($_mw_adminimize_footer == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
246 |
-
<option value="1"<?php if ($_mw_adminimize_footer == '1') { echo ' selected="selected"'; } ?>><?php _e('Hide', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
247 |
-
</select> <?php _e('The Footer-area can hide, include all links and details.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
248 |
-
</td>
|
249 |
-
</tr>
|
250 |
-
<tr valign="top">
|
251 |
-
<td><?php _e('Header', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
252 |
-
<td>
|
253 |
-
<?php $_mw_adminimize_header = _mw_adminimize_getOptionValue('_mw_adminimize_header'); ?>
|
254 |
-
<select name="_mw_adminimize_header">
|
255 |
-
<option value="0"<?php if ($_mw_adminimize_header == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
256 |
-
<option value="1"<?php if ($_mw_adminimize_header == '1') { echo ' selected="selected"'; } ?>><?php _e('Hide', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
257 |
-
</select> <?php _e('The Header-area can hide, include all links and details.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
258 |
-
</td>
|
259 |
-
</tr>
|
260 |
-
<tr valign="top">
|
261 |
-
<td><?php _e('WriteScroll', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
262 |
-
<td>
|
263 |
-
<?php $_mw_adminimize_writescroll = _mw_adminimize_getOptionValue('_mw_adminimize_writescroll'); ?>
|
264 |
-
<select name="_mw_adminimize_writescroll">
|
265 |
-
<option value="0"<?php if ($_mw_adminimize_writescroll == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
266 |
-
<option value="1"<?php if ($_mw_adminimize_writescroll == '1') { echo ' selected="selected"'; } ?>><?php _e('Activate', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
267 |
-
</select> <?php _e('With the WriteScroll option active, these pages will automatically scroll to an optimal position for editing, when you visit Write Post or Write Page.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
268 |
-
</td>
|
269 |
-
</tr>
|
270 |
-
<tr valign="top">
|
271 |
-
<td><?php _e('Timestamp', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
272 |
-
<td>
|
273 |
-
<?php $_mw_adminimize_timestamp = _mw_adminimize_getOptionValue('_mw_adminimize_timestamp'); ?>
|
274 |
-
<select name="_mw_adminimize_timestamp">
|
275 |
-
<option value="0"<?php if ($_mw_adminimize_timestamp == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
276 |
-
<option value="1"<?php if ($_mw_adminimize_timestamp == '1') { echo ' selected="selected"'; } ?>><?php _e('Activate', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
277 |
-
</select> <?php _e('Opens the post timestamp editing fields without you having to click the "Edit" link every time.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
278 |
-
</td>
|
279 |
-
</tr>
|
280 |
-
<tr valign="top">
|
281 |
-
<td><?php _e('Thickbox FullScreen', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
282 |
-
<td>
|
283 |
-
<?php $_mw_adminimize_tb_window = _mw_adminimize_getOptionValue('_mw_adminimize_tb_window'); ?>
|
284 |
-
<select name="_mw_adminimize_tb_window">
|
285 |
-
<option value="0"<?php if ($_mw_adminimize_tb_window == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
286 |
-
<option value="1"<?php if ($_mw_adminimize_tb_window == '1') { echo ' selected="selected"'; } ?>><?php _e('Activate', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
287 |
-
</select> <?php _e('All Thickbox-function use the full area of the browser. Thickbox is for example in upload media-files.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
288 |
-
</td>
|
289 |
-
</tr>
|
290 |
-
<tr valign="top">
|
291 |
-
<td><?php _e('Flashuploader', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
292 |
-
<td>
|
293 |
-
<?php $_mw_adminimize_control_flashloader = _mw_adminimize_getOptionValue('_mw_adminimize_control_flashloader'); ?>
|
294 |
-
<select name="_mw_adminimize_control_flashloader">
|
295 |
-
<option value="0"<?php if ($_mw_adminimize_control_flashloader == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
296 |
-
<option value="1"<?php if ($_mw_adminimize_control_flashloader == '1') { echo ' selected="selected"'; } ?>><?php _e('Activate', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
297 |
-
</select> <?php _e('Disable the flashuploader and users use only the standard uploader.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
298 |
-
</td>
|
299 |
-
</tr>
|
300 |
-
<tr valign="top">
|
301 |
-
<td><?php _e('Category Height', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
302 |
-
<td>
|
303 |
-
<?php $_mw_adminimize_cat_full = _mw_adminimize_getOptionValue('_mw_adminimize_cat_full'); ?>
|
304 |
-
<select name="_mw_adminimize_cat_full">
|
305 |
-
<option value="0"<?php if ($_mw_adminimize_cat_full == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
306 |
-
<option value="1"<?php if ($_mw_adminimize_cat_full == '1') { echo ' selected="selected"'; } ?>><?php _e('Activate', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
307 |
-
</select> <?php _e('View the Meta Box with Categories in the full height, no scrollbar or whitespace.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
308 |
-
</td>
|
309 |
-
</tr>
|
310 |
-
<tr valign="top">
|
311 |
-
<td><?php _e('Advice in Footer', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
312 |
-
<td>
|
313 |
-
<?php $_mw_adminimize_advice = _mw_adminimize_getOptionValue('_mw_adminimize_advice'); ?>
|
314 |
-
<select name="_mw_adminimize_advice">
|
315 |
-
<option value="0"<?php if ($_mw_adminimize_advice == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
316 |
-
<option value="1"<?php if ($_mw_adminimize_advice == '1') { echo ' selected="selected"'; } ?>><?php _e('Activate', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
317 |
-
</select>
|
318 |
-
<textarea style="width: 85%;" class="code" rows="1" cols="60" name="_mw_adminimize_advice_txt" id="_mw_adminimize_advice_txt" ><?php echo htmlspecialchars(stripslashes(_mw_adminimize_getOptionValue('_mw_adminimize_advice_txt'))); ?></textarea><br /><?php _e('In the Footer you can display an advice for changing the Default-design, (x)HTML is possible.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
319 |
-
</td>
|
320 |
-
</tr>
|
321 |
-
<?php
|
322 |
-
// when remove dashboard
|
323 |
-
foreach ($user_roles as $role) {
|
324 |
-
$disabled_menu_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_menu_'. $role .'_items');
|
325 |
-
$disabled_submenu_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_submenu_'. $role .'_items');
|
326 |
-
}
|
327 |
-
|
328 |
-
$disabled_menu_all = array();
|
329 |
-
foreach ($user_roles as $role) {
|
330 |
-
array_push($disabled_menu_all, $disabled_menu_[$role]);
|
331 |
-
array_push($disabled_menu_all, $disabled_submenu_[$role]);
|
332 |
-
}
|
333 |
-
|
334 |
-
if ($disabled_menu_all != '') {
|
335 |
-
if ( !recursive_in_array('index.php', $disabled_menu_all) ) {
|
336 |
-
$disabled_item2 = ' disabled="disabled"';
|
337 |
-
}
|
338 |
-
?>
|
339 |
-
<tr valign="top" class="form-invalid">
|
340 |
-
<td><?php _e('Dashboard deactivate, redirect to', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
341 |
-
<td>
|
342 |
-
<?php $_mw_adminimize_db_redirect = _mw_adminimize_getOptionValue('_mw_adminimize_db_redirect'); ?>
|
343 |
-
<select name="_mw_adminimize_db_redirect"<?php if ( isset($disabled_item2) ) echo $disabled_item2; ?>>
|
344 |
-
<option value="0"<?php if ($_mw_adminimize_db_redirect == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (profile.php)</option>
|
345 |
-
<option value="1"<?php if ($_mw_adminimize_db_redirect == '1') { echo ' selected="selected"'; } ?>><?php _e('Manage Posts', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (edit.php)</option>
|
346 |
-
<option value="2"<?php if ($_mw_adminimize_db_redirect == '2') { echo ' selected="selected"'; } ?>><?php _e('Manage Pages', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (edit-pages.php)</option>
|
347 |
-
<option value="3"<?php if ($_mw_adminimize_db_redirect == '3') { echo ' selected="selected"'; } ?>><?php _e('Write Post', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (post-new.php)</option>
|
348 |
-
<option value="4"<?php if ($_mw_adminimize_db_redirect == '4') { echo ' selected="selected"'; } ?>><?php _e('Write Page', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (page-new.php)</option>
|
349 |
-
<option value="5"<?php if ($_mw_adminimize_db_redirect == '5') { echo ' selected="selected"'; } ?>><?php _e('Comments', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (edit-comments.php)</option>
|
350 |
-
<option value="6"<?php if ($_mw_adminimize_db_redirect == '6') { echo ' selected="selected"'; } ?>><?php _e('other Page', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
351 |
-
</select>
|
352 |
-
<textarea style="width: 85%;" class="code" rows="1" cols="60" name="_mw_adminimize_db_redirect_txt" id="_mw_adminimize_db_redirect_txt" ><?php echo htmlspecialchars(stripslashes(_mw_adminimize_getOptionValue('_mw_adminimize_db_redirect_txt'))); ?></textarea>
|
353 |
-
<br /><?php _e('You have deactivated the Dashboard, please select a page for redirection?', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
354 |
-
</td>
|
355 |
-
</tr>
|
356 |
-
<?php
|
357 |
-
}
|
358 |
-
?>
|
359 |
-
</tbody>
|
360 |
-
</table>
|
361 |
-
<p id="submitbutton">
|
362 |
-
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
|
363 |
-
</p>
|
364 |
-
<p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
|
365 |
-
|
366 |
-
</div>
|
367 |
-
</div>
|
368 |
-
</div>
|
369 |
-
|
370 |
-
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
371 |
-
<div class="postbox">
|
372 |
-
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
373 |
-
<h3 class="hndle" id="global_options"><?php _e('Global options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3>
|
374 |
-
<div class="inside">
|
375 |
-
<br class="clear" />
|
376 |
-
|
377 |
-
<table summary="config_edit_post" class="widefat">
|
378 |
-
<thead>
|
379 |
-
<tr>
|
380 |
-
<th><?php _e('Option', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
381 |
-
<?php
|
382 |
-
foreach ($user_roles_names as $role_name) { ?>
|
383 |
-
<th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br/>' . $role_name; ?></th>
|
384 |
-
<?php } ?>
|
385 |
-
</tr>
|
386 |
-
</thead>
|
387 |
-
|
388 |
-
<tbody>
|
389 |
-
<?php
|
390 |
-
foreach ($user_roles as $role) {
|
391 |
-
$disabled_global_option_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_global_option_'. $role .'_items');
|
392 |
-
}
|
393 |
-
|
394 |
-
$global_options = array(
|
395 |
-
'.show-admin-bar',
|
396 |
-
'#favorite-actions',
|
397 |
-
'#screen-meta',
|
398 |
-
'#screen-options, #screen-options-link-wrap',
|
399 |
-
'#contextual-help-link-wrap',
|
400 |
-
'#your-profile .form-table fieldset'
|
401 |
-
);
|
402 |
-
|
403 |
-
$global_options_names = array(
|
404 |
-
__('Admin Bar', FB_ADMINIMIZE_TEXTDOMAIN),
|
405 |
-
__('Favorite Actions', FB_ADMINIMIZE_TEXTDOMAIN),
|
406 |
-
__('Screen-Meta', FB_ADMINIMIZE_TEXTDOMAIN),
|
407 |
-
__('Screen Options', FB_ADMINIMIZE_TEXTDOMAIN),
|
408 |
-
__('Contextual Help', FB_ADMINIMIZE_TEXTDOMAIN),
|
409 |
-
__('Admin Color Scheme', FB_ADMINIMIZE_TEXTDOMAIN)
|
410 |
-
);
|
411 |
-
|
412 |
-
$_mw_adminimize_own_values = _mw_adminimize_getOptionValue('_mw_adminimize_own_values');
|
413 |
-
$_mw_adminimize_own_values = preg_split( "/\r\n/", $_mw_adminimize_own_values );
|
414 |
-
foreach ( (array) $_mw_adminimize_own_values as $key => $_mw_adminimize_own_value ) {
|
415 |
-
$_mw_adminimize_own_value = trim($_mw_adminimize_own_value);
|
416 |
-
array_push($global_options, $_mw_adminimize_own_value);
|
417 |
-
}
|
418 |
-
|
419 |
-
$_mw_adminimize_own_options = _mw_adminimize_getOptionValue('_mw_adminimize_own_options');
|
420 |
-
$_mw_adminimize_own_options = preg_split( "/\r\n/", $_mw_adminimize_own_options );
|
421 |
-
foreach ( (array) $_mw_adminimize_own_options as $key => $_mw_adminimize_own_option ) {
|
422 |
-
$_mw_adminimize_own_option = trim($_mw_adminimize_own_option);
|
423 |
-
array_push($global_options_names, $_mw_adminimize_own_option);
|
424 |
-
}
|
425 |
-
|
426 |
-
$x = 0;
|
427 |
-
foreach ($global_options as $index => $global_option) {
|
428 |
-
if ( $global_option != '') {
|
429 |
-
$checked_user_role_ = array();
|
430 |
-
foreach ($user_roles as $role) {
|
431 |
-
$checked_user_role_[$role] = ( isset($disabled_global_option_[$role]) && in_array($global_option, $disabled_global_option_[$role]) ) ? ' checked="checked"' : '';
|
432 |
-
}
|
433 |
-
echo '<tr>' . "\n";
|
434 |
-
echo '<td>' . $global_options_names[$index] . ' <span style="color:#ccc; font-weight: 400;">(' . $global_option . ')</span> </td>' . "\n";
|
435 |
-
foreach ($user_roles as $role) {
|
436 |
-
echo '<td class="num"><input id="check_post'. $role . $x .'" type="checkbox"' . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_global_option_'. $role .'_items[]" value="' . $global_option . '" /></td>' . "\n";
|
437 |
-
}
|
438 |
-
echo '</tr>' . "\n";
|
439 |
-
$x++;
|
440 |
-
}
|
441 |
-
}
|
442 |
-
?>
|
443 |
-
</tbody>
|
444 |
-
</table>
|
445 |
-
|
446 |
-
<?php
|
447 |
-
//your own global options
|
448 |
-
?>
|
449 |
-
<br style="margin-top: 10px;" />
|
450 |
-
<table summary="config_edit_post" class="widefat">
|
451 |
-
<thead>
|
452 |
-
<tr>
|
453 |
-
<th><?php _e('Your own options', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br />'; _e('ID or class', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
454 |
-
<th><?php echo '<br />'; _e('Option', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
455 |
-
</tr>
|
456 |
-
</thead>
|
457 |
-
|
458 |
-
<tbody>
|
459 |
-
<tr valign="top">
|
460 |
-
<td colspan="2"><?php _e('It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
461 |
-
</tr>
|
462 |
-
<tr valign="top">
|
463 |
-
<td>
|
464 |
-
<textarea name="_mw_adminimize_own_options" cols="60" rows="3" id="_mw_adminimize_own_options" style="width: 95%;" ><?php echo _mw_adminimize_getOptionValue('_mw_adminimize_own_options'); ?></textarea>
|
465 |
-
<br />
|
466 |
-
<?php _e('Possible nomination for ID or class. Separate multiple nominations through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
467 |
-
</td>
|
468 |
-
<td>
|
469 |
-
<textarea class="code" name="_mw_adminimize_own_values" cols="60" rows="3" id="_mw_adminimize_own_values" style="width: 95%;" ><?php echo _mw_adminimize_getOptionValue('_mw_adminimize_own_values'); ?></textarea>
|
470 |
-
<br />
|
471 |
-
<?php _e('Possible IDs or classes. Separate multiple values through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
472 |
-
</td>
|
473 |
-
</tr>
|
474 |
-
</tbody>
|
475 |
-
</table>
|
476 |
-
|
477 |
-
<p id="submitbutton">
|
478 |
-
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
|
479 |
-
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
|
480 |
-
</p>
|
481 |
-
<p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
|
482 |
-
|
483 |
-
</div>
|
484 |
-
</div>
|
485 |
-
</div>
|
486 |
-
|
487 |
-
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
488 |
-
<div class="postbox">
|
489 |
-
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
490 |
-
<h3 class="hndle" id="config_menu"><?php _e('Menu Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3>
|
491 |
-
<div class="inside">
|
492 |
-
<br class="clear" />
|
493 |
-
|
494 |
-
<table summary="config_menu" class="widefat">
|
495 |
-
<thead>
|
496 |
-
<tr>
|
497 |
-
<th><?php _e('Menu options - Menu, <span style=\"font-weight: 400;\">Submenu</span>', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
498 |
-
|
499 |
-
<?php foreach ($user_roles_names as $role_name) { ?>
|
500 |
-
<th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br/>' . $role_name; ?></th>
|
501 |
-
<?php } ?>
|
502 |
-
|
503 |
-
</tr>
|
504 |
-
</thead>
|
505 |
-
<tbody>
|
506 |
-
<?php
|
507 |
-
$menu = _mw_adminimize_getOptionValue('mw_adminimize_default_menu');
|
508 |
-
$submenu = _mw_adminimize_getOptionValue('mw_adminimize_default_submenu');
|
509 |
-
|
510 |
-
foreach ($user_roles as $role) {
|
511 |
-
$disabled_metaboxes_post_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_metaboxes_post_'. $role .'_items');
|
512 |
-
$disabled_metaboxes_page_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_metaboxes_page_'. $role .'_items');
|
513 |
-
}
|
514 |
-
|
515 |
-
$metaboxes = array(
|
516 |
-
'#contextual-help-link-wrap',
|
517 |
-
'#screen-options-link-wrap',
|
518 |
-
'#titlediv',
|
519 |
-
'#pageslugdiv',
|
520 |
-
'#tagsdiv,#tagsdivsb,#tagsdiv-post_tag',
|
521 |
-
'#categorydiv,#categorydivsb',
|
522 |
-
'#category-add-toggle',
|
523 |
-
'#postexcerpt',
|
524 |
-
'#trackbacksdiv',
|
525 |
-
'#postcustom',
|
526 |
-
'#commentsdiv',
|
527 |
-
'#passworddiv',
|
528 |
-
'#authordiv',
|
529 |
-
'#revisionsdiv',
|
530 |
-
'.side-info',
|
531 |
-
'#notice',
|
532 |
-
'#post-body h2',
|
533 |
-
'#media-buttons',
|
534 |
-
'#wp-word-count',
|
535 |
-
'#slugdiv,#edit-slug-box',
|
536 |
-
'#misc-publishing-actions',
|
537 |
-
'#commentstatusdiv',
|
538 |
-
'#editor-toolbar #edButtonHTML, #quicktags'
|
539 |
-
);
|
540 |
-
|
541 |
-
if ( function_exists('current_theme_supports') && current_theme_supports( 'post-thumbnails', 'post' ) )
|
542 |
-
array_push($metaboxes, '#postimagediv');
|
543 |
-
if (class_exists('SimpleTagsAdmin'))
|
544 |
-
array_push($metaboxes, '#suggestedtags');
|
545 |
-
if (function_exists('tc_post'))
|
546 |
-
array_push($metaboxes, '#textcontroldiv');
|
547 |
-
if (class_exists('HTMLSpecialCharactersHelper'))
|
548 |
-
array_push($metaboxes, '#htmlspecialchars');
|
549 |
-
if (class_exists('All_in_One_SEO_Pack'))
|
550 |
-
array_push($metaboxes, '#postaiosp, #aiosp');
|
551 |
-
if (function_exists('tdomf_edit_post_panel_admin_head'))
|
552 |
-
array_push($metaboxes, '#tdomf');
|
553 |
-
if (function_exists('post_notification_form'))
|
554 |
-
array_push($metaboxes, '#post_notification');
|
555 |
-
if (function_exists('sticky_add_meta_box'))
|
556 |
-
array_push($metaboxes, '#poststickystatusdiv');
|
557 |
-
|
558 |
-
$metaboxes_names = array(
|
559 |
-
__('Help'),
|
560 |
-
__('Screen Options'),
|
561 |
-
__('Title', FB_ADMINIMIZE_TEXTDOMAIN),
|
562 |
-
__('Permalink', FB_ADMINIMIZE_TEXTDOMAIN ),
|
563 |
-
__('Tags', FB_ADMINIMIZE_TEXTDOMAIN ),
|
564 |
-
__('Categories', FB_ADMINIMIZE_TEXTDOMAIN ),
|
565 |
-
__('Add New Category', FB_ADMINIMIZE_TEXTDOMAIN ),
|
566 |
-
__('Excerpt', FB_ADMINIMIZE_TEXTDOMAIN ),
|
567 |
-
__('Trackbacks', FB_ADMINIMIZE_TEXTDOMAIN ),
|
568 |
-
__('Custom Fields'),
|
569 |
-
__('Comments', FB_ADMINIMIZE_TEXTDOMAIN ),
|
570 |
-
__('Password Protect This Post', FB_ADMINIMIZE_TEXTDOMAIN ),
|
571 |
-
__('Post Author'),
|
572 |
-
__('Post Revisions'),
|
573 |
-
__('Related, Shortcuts', FB_ADMINIMIZE_TEXTDOMAIN ),
|
574 |
-
__('Messenges', FB_ADMINIMIZE_TEXTDOMAIN ),
|
575 |
-
__('h2: Advanced Options', FB_ADMINIMIZE_TEXTDOMAIN ),
|
576 |
-
__('Media Buttons (all)', FB_ADMINIMIZE_TEXTDOMAIN ),
|
577 |
-
__('Word count', FB_ADMINIMIZE_TEXTDOMAIN ),
|
578 |
-
__('Post Slug'),
|
579 |
-
__('Publish Actions', FB_ADMINIMIZE_TEXTDOMAIN ),
|
580 |
-
__('Discussion'),
|
581 |
-
__('HTML Editor Button')
|
582 |
-
);
|
583 |
-
|
584 |
-
if ( function_exists('current_theme_supports') && current_theme_supports( 'post-thumbnails', 'post' ) )
|
585 |
-
array_push($metaboxes_names, __('Post Thumbnail') );
|
586 |
-
if (class_exists('SimpleTagsAdmin'))
|
587 |
-
array_push($metaboxes_names, __('Suggested tags from'));
|
588 |
-
if (function_exists('tc_post'))
|
589 |
-
array_push($metaboxes_names, __('Text Control'));
|
590 |
-
if (class_exists('HTMLSpecialCharactersHelper'))
|
591 |
-
array_push($metaboxes_names, __('HTML Special Characters'));
|
592 |
-
if (class_exists('All_in_One_SEO_Pack'))
|
593 |
-
array_push($metaboxes_names, __('All in One SEO Pack'));
|
594 |
-
if (function_exists('tdomf_edit_post_panel_admin_head'))
|
595 |
-
array_push($metaboxes_names, 'TDOMF');
|
596 |
-
if (function_exists('post_notification_form'))
|
597 |
-
array_push($metaboxes_names, 'Post Notification');
|
598 |
-
if (function_exists('sticky_add_meta_box'))
|
599 |
-
array_push($metaboxes, 'Post Sticky Status');
|
600 |
-
|
601 |
-
// add own post options
|
602 |
-
$_mw_adminimize_own_post_values = _mw_adminimize_getOptionValue('_mw_adminimize_own_post_values');
|
603 |
-
$_mw_adminimize_own_post_values = preg_split( "/\r\n/", $_mw_adminimize_own_post_values );
|
604 |
-
foreach ( (array) $_mw_adminimize_own_post_values as $key => $_mw_adminimize_own_post_value ) {
|
605 |
-
$_mw_adminimize_own_post_value = trim($_mw_adminimize_own_post_value);
|
606 |
-
array_push($metaboxes, $_mw_adminimize_own_post_value);
|
607 |
-
}
|
608 |
-
|
609 |
-
$_mw_adminimize_own_post_options = _mw_adminimize_getOptionValue('_mw_adminimize_own_post_options');
|
610 |
-
$_mw_adminimize_own_post_options = preg_split( "/\r\n/", $_mw_adminimize_own_post_options );
|
611 |
-
foreach ( (array) $_mw_adminimize_own_post_options as $key => $_mw_adminimize_own_post_option ) {
|
612 |
-
$_mw_adminimize_own_post_option = trim($_mw_adminimize_own_post_option);
|
613 |
-
array_push($metaboxes_names, $_mw_adminimize_own_post_option);
|
614 |
-
}
|
615 |
-
|
616 |
-
// pages
|
617 |
-
$metaboxes_page = array(
|
618 |
-
'#contextual-help-link-wrap',
|
619 |
-
'#screen-options-link-wrap',
|
620 |
-
'#titlediv',
|
621 |
-
'#pageslugdiv',
|
622 |
-
'#pagepostcustom, #pagecustomdiv, #postcustom',
|
623 |
-
'#pagecommentstatusdiv, #commentsdiv',
|
624 |
-
'#pagepassworddiv',
|
625 |
-
'#pageparentdiv',
|
626 |
-
'#pagetemplatediv',
|
627 |
-
'#pageorderdiv',
|
628 |
-
'#pageauthordiv, #authordiv',
|
629 |
-
'#revisionsdiv',
|
630 |
-
'.side-info',
|
631 |
-
'#notice',
|
632 |
-
'#post-body h2',
|
633 |
-
'#media-buttons',
|
634 |
-
'#wp-word-count',
|
635 |
-
'#slugdiv,#edit-slug-box',
|
636 |
-
'#misc-publishing-actions',
|
637 |
-
'#commentstatusdiv',
|
638 |
-
'#editor-toolbar #edButtonHTML, #quicktags'
|
639 |
-
);
|
640 |
-
|
641 |
-
if ( function_exists('current_theme_supports') && current_theme_supports( 'post-thumbnails', 'page' ) )
|
642 |
-
array_push($metaboxes_page, '#postimagediv' );
|
643 |
-
if (class_exists('SimpleTagsAdmin'))
|
644 |
-
array_push($metaboxes_page, '#suggestedtags');
|
645 |
-
if (class_exists('HTMLSpecialCharactersHelper'))
|
646 |
-
array_push($metaboxes_page, '#htmlspecialchars');
|
647 |
-
if (class_exists('All_in_One_SEO_Pack'))
|
648 |
-
array_push($metaboxes_page, '#postaiosp, #aiosp');
|
649 |
-
if (function_exists('tdomf_edit_post_panel_admin_head'))
|
650 |
-
array_push($metaboxes_page, '#tdomf');
|
651 |
-
if (function_exists('post_notification_form'))
|
652 |
-
array_push($metaboxes_page, '#post_notification');
|
653 |
-
|
654 |
-
$metaboxes_names_page = array(
|
655 |
-
__('Help'),
|
656 |
-
__('Screen Options'),
|
657 |
-
__('Title', FB_ADMINIMIZE_TEXTDOMAIN),
|
658 |
-
__('Permalink', FB_ADMINIMIZE_TEXTDOMAIN ),
|
659 |
-
__('Custom Fields'),
|
660 |
-
__('Comments & Pings', FB_ADMINIMIZE_TEXTDOMAIN ),
|
661 |
-
__('Password Protect This Page', FB_ADMINIMIZE_TEXTDOMAIN ),
|
662 |
-
__('Attributes'),
|
663 |
-
__('Page Template', FB_ADMINIMIZE_TEXTDOMAIN ),
|
664 |
-
__('Page Order', FB_ADMINIMIZE_TEXTDOMAIN ),
|
665 |
-
__('Page Author'),
|
666 |
-
__('Page Revisions'),
|
667 |
-
__('Related', FB_ADMINIMIZE_TEXTDOMAIN ),
|
668 |
-
__('Messenges', FB_ADMINIMIZE_TEXTDOMAIN ),
|
669 |
-
__('h2: Advanced Options', FB_ADMINIMIZE_TEXTDOMAIN ),
|
670 |
-
__('Media Buttons (all)', FB_ADMINIMIZE_TEXTDOMAIN ),
|
671 |
-
__('Word count', FB_ADMINIMIZE_TEXTDOMAIN ),
|
672 |
-
__('Page Slug'),
|
673 |
-
__('Publish Actions', FB_ADMINIMIZE_TEXTDOMAIN ),
|
674 |
-
__('Discussion'),
|
675 |
-
__('HTML Editor Button')
|
676 |
-
);
|
677 |
-
|
678 |
-
if ( function_exists('current_theme_supports') && current_theme_supports( 'post-thumbnails', 'page' ) )
|
679 |
-
array_push($metaboxes_names_page, __('Page Image') );
|
680 |
-
if (class_exists('SimpleTagsAdmin'))
|
681 |
-
array_push($metaboxes_names_page, __('Suggested tags from', FB_ADMINIMIZE_TEXTDOMAIN ));
|
682 |
-
if (class_exists('HTMLSpecialCharactersHelper'))
|
683 |
-
array_push($metaboxes_names_page, __('HTML Special Characters'));
|
684 |
-
if (class_exists('All_in_One_SEO_Pack'))
|
685 |
-
array_push($metaboxes_names_page, 'All in One SEO Pack');
|
686 |
-
if (function_exists('tdomf_edit_post_panel_admin_head'))
|
687 |
-
array_push($metaboxes_names_page, 'TDOMF');
|
688 |
-
if (function_exists('post_notification_form'))
|
689 |
-
array_push($metaboxes_names_page, 'Post Notification');
|
690 |
-
|
691 |
-
// add own page options
|
692 |
-
$_mw_adminimize_own_page_values = _mw_adminimize_getOptionValue('_mw_adminimize_own_page_values');
|
693 |
-
$_mw_adminimize_own_page_values = preg_split( "/\r\n/", $_mw_adminimize_own_page_values );
|
694 |
-
foreach ( (array) $_mw_adminimize_own_page_values as $key => $_mw_adminimize_own_page_value ) {
|
695 |
-
$_mw_adminimize_own_page_value = trim($_mw_adminimize_own_page_value);
|
696 |
-
array_push($metaboxes_page, $_mw_adminimize_own_page_value);
|
697 |
-
}
|
698 |
-
|
699 |
-
$_mw_adminimize_own_page_options = _mw_adminimize_getOptionValue('_mw_adminimize_own_page_options');
|
700 |
-
$_mw_adminimize_own_page_options = preg_split( "/\r\n/", $_mw_adminimize_own_page_options );
|
701 |
-
foreach ( (array) $_mw_adminimize_own_page_options as $key => $_mw_adminimize_own_page_option ) {
|
702 |
-
$_mw_adminimize_own_page_option = trim($_mw_adminimize_own_page_option);
|
703 |
-
array_push($metaboxes_names_page, $_mw_adminimize_own_page_option);
|
704 |
-
}
|
705 |
-
|
706 |
-
// print menu, submenu
|
707 |
-
if ( isset($menu) && $menu != '') {
|
708 |
-
|
709 |
-
$i = 0;
|
710 |
-
$x = 0;
|
711 |
-
$class = '';
|
712 |
-
|
713 |
-
$users = array( 0 => 'Profile', 1 => 'edit_users', 2 => 'profile.php', 3 => '', 4 => 'menu-top', 5 => 'menu-users', 6 => 'div' );
|
714 |
-
//array_push( $menu, $users );
|
715 |
-
|
716 |
-
foreach ($menu as $item) {
|
717 |
-
|
718 |
-
// non checked items
|
719 |
-
if ( $item[2] === 'options-general.php' ) {
|
720 |
-
//$disabled_item_adm = ' disabled="disabled"';
|
721 |
-
$disabled_item_adm_hint = '<abbr title="' . __( 'After activate the check box it heavy attitudes will change.', FB_ADMINIMIZE_TEXTDOMAIN ) . '" style="cursor:pointer;"> ! </acronym>';
|
722 |
-
} else {
|
723 |
-
$disabled_item_adm = '';
|
724 |
-
$disabled_item_adm_hint = '';
|
725 |
-
}
|
726 |
-
|
727 |
-
if ( $item[0] != '' ) {
|
728 |
-
foreach($user_roles as $role) {
|
729 |
-
// checkbox checked
|
730 |
-
if ( isset( $disabled_menu_[$role]) && in_array($item[2], $disabled_menu_[$role]) ) {
|
731 |
-
$checked_user_role_[$role] = ' checked="checked"';
|
732 |
-
} else {
|
733 |
-
$checked_user_role_[$role] = '';
|
734 |
-
}
|
735 |
-
}
|
736 |
-
|
737 |
-
echo '<tr class="form-invalid">' . "\n";
|
738 |
-
echo "\t" . '<th>' . $item[0] . ' <span style="color:#ccc; font-weight: 400;">(' . $item[2] . ')</span> </th>';
|
739 |
-
foreach ($user_roles as $role) {
|
740 |
-
if ( $role != 'administrator' ) { // only admin disable items
|
741 |
-
$disabled_item_adm = '';
|
742 |
-
$disabled_item_adm_hint = '';
|
743 |
-
}
|
744 |
-
echo "\t" . '<td class="num">' . $disabled_item_adm_hint . '<input id="check_menu'. $role . $x .'" type="checkbox"' . $disabled_item_adm . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_menu_'. $role .'_items[]" value="' . $item[2] . '" />' . $disabled_item_adm_hint . '</td>' . "\n";
|
745 |
-
}
|
746 |
-
echo '</tr>';
|
747 |
-
|
748 |
-
// only for user smaller administrator, change user-Profile-File
|
749 |
-
if ( 'users.php' === $item[2] ) {
|
750 |
-
$x++;
|
751 |
-
echo '<tr class="form-invalid">' . "\n";
|
752 |
-
echo "\t" . '<th>' . __('Profile') . ' <span style="color:#ccc; font-weight: 400;">(profile.php)</span> </th>';
|
753 |
-
foreach ($user_roles as $role) {
|
754 |
-
echo "\t" . '<td class="num"><input disabled="disabled" id="check_menu'. $role . $x .'" type="checkbox"' . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_menu_'. $role .'_items[]" value="profile.php" /></td>' . "\n";
|
755 |
-
}
|
756 |
-
echo '</tr>';
|
757 |
-
}
|
758 |
-
|
759 |
-
$x++;
|
760 |
-
|
761 |
-
if ( !isset($submenu[$item[2]]) )
|
762 |
-
continue;
|
763 |
-
|
764 |
-
// submenu items
|
765 |
-
foreach ( $submenu[ $item[2] ] as $subitem ) {
|
766 |
-
$class = ( ' class="alternate"' == $class ) ? '' : ' class="alternate"';
|
767 |
-
if ( $subitem[2] === 'adminimize/adminimize.php' ) {
|
768 |
-
//$disabled_subitem_adm = ' disabled="disabled"';
|
769 |
-
$disabled_subitem_adm_hint = '<abbr title="' . __( 'After activate the check box it heavy attitudes will change.', FB_ADMINIMIZE_TEXTDOMAIN ) . '" style="cursor:pointer;"> ! </acronym>';
|
770 |
-
} else {
|
771 |
-
$disabled_subitem_adm = '';
|
772 |
-
$disabled_subitem_adm_hint = '';
|
773 |
-
}
|
774 |
-
|
775 |
-
echo '<tr' . $class . '>' . "\n";
|
776 |
-
foreach ($user_roles as $role) {
|
777 |
-
if ( isset($disabled_submenu_[$role]) )
|
778 |
-
$checked_user_role_[$role] = ( in_array($subitem[2], $disabled_submenu_[$role] ) ) ? ' checked="checked"' : '';
|
779 |
-
}
|
780 |
-
echo '<td> — ' . $subitem[0] . ' <span style="color:#ccc; font-weight: 400;">(' . $subitem[2] . ')</span> </td>' . "\n";
|
781 |
-
foreach ($user_roles as $role) {
|
782 |
-
if ( $role != 'administrator' ) { // only admin disable items
|
783 |
-
$disabled_subitem_adm = '';
|
784 |
-
$disabled_subitem_adm_hint = '';
|
785 |
-
}
|
786 |
-
echo '<td class="num">' . $disabled_subitem_adm_hint . '<input id="check_menu'. $role.$x .'" type="checkbox"' . $disabled_subitem_adm . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_submenu_'. $role .'_items[]" value="' . $subitem[2] . '" />' . $disabled_subitem_adm_hint . '</td>' . "\n";
|
787 |
-
}
|
788 |
-
echo '</tr>' . "\n";
|
789 |
-
$x++;
|
790 |
-
}
|
791 |
-
$i++;
|
792 |
-
$x++;
|
793 |
-
}
|
794 |
-
}
|
795 |
-
|
796 |
-
} else {
|
797 |
-
$myErrors = new _mw_adminimize_message_class();
|
798 |
-
$myErrors = '<tr><td style="color: red;">' . $myErrors->get_error('_mw_adminimize_get_option') . '</td></tr>';
|
799 |
-
echo $myErrors;
|
800 |
-
} ?>
|
801 |
-
</tbody>
|
802 |
-
</table>
|
803 |
-
|
804 |
-
<p id="submitbutton">
|
805 |
-
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
|
806 |
-
</p>
|
807 |
-
<p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
|
808 |
-
|
809 |
-
</div>
|
810 |
-
</div>
|
811 |
-
</div>
|
812 |
-
|
813 |
-
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
814 |
-
<div class="postbox">
|
815 |
-
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
816 |
-
<h3 class="hndle" id="config_edit_post"><?php _e('Write options - Post', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3>
|
817 |
-
<div class="inside">
|
818 |
-
<br class="clear" />
|
819 |
-
|
820 |
-
<table summary="config_edit_post" class="widefat">
|
821 |
-
<thead>
|
822 |
-
<tr>
|
823 |
-
<th><?php _e('Write options - Post', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
824 |
-
<?php
|
825 |
-
foreach ($user_roles_names as $role_name) { ?>
|
826 |
-
<th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br/>' . $role_name; ?></th>
|
827 |
-
<?php } ?>
|
828 |
-
</tr>
|
829 |
-
</thead>
|
830 |
-
|
831 |
-
<tbody>
|
832 |
-
<?php
|
833 |
-
$x = 0;
|
834 |
-
$class = '';
|
835 |
-
foreach ($metaboxes as $index => $metabox) {
|
836 |
-
if ($metabox != '') {
|
837 |
-
$class = ( ' class="alternate"' == $class ) ? '' : ' class="alternate"';
|
838 |
-
$checked_user_role_ = array();
|
839 |
-
foreach ($user_roles as $role) {
|
840 |
-
$checked_user_role_[$role] = ( isset($disabled_metaboxes_post_[$role]) && in_array($metabox, $disabled_metaboxes_post_[$role]) ) ? ' checked="checked"' : '';
|
841 |
-
}
|
842 |
-
echo '<tr' . $class . '>' . "\n";
|
843 |
-
echo '<td>' . $metaboxes_names[$index] . ' <span style="color:#ccc; font-weight: 400;">(' . $metabox . ')</span> </td>' . "\n";
|
844 |
-
foreach ($user_roles as $role) {
|
845 |
-
echo '<td class="num"><input id="check_post'. $role.$x .'" type="checkbox"' . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_metaboxes_post_'. $role .'_items[]" value="' . $metabox . '" /></td>' . "\n";
|
846 |
-
}
|
847 |
-
echo '</tr>' . "\n";
|
848 |
-
$x++;
|
849 |
-
}
|
850 |
-
}
|
851 |
-
?>
|
852 |
-
</tbody>
|
853 |
-
</table>
|
854 |
-
|
855 |
-
<?php
|
856 |
-
//your own post options
|
857 |
-
?>
|
858 |
-
<br style="margin-top: 10px;" />
|
859 |
-
<table summary="config_own_post" class="widefat">
|
860 |
-
<thead>
|
861 |
-
<tr>
|
862 |
-
<th><?php _e('Your own post options', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br />'; _e('ID or class', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
863 |
-
<th><?php echo '<br />'; _e('Option', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
864 |
-
</tr>
|
865 |
-
</thead>
|
866 |
-
|
867 |
-
<tbody>
|
868 |
-
<tr valign="top">
|
869 |
-
<td colspan="2"><?php _e('It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
870 |
-
</tr>
|
871 |
-
<tr valign="top">
|
872 |
-
<td>
|
873 |
-
<textarea name="_mw_adminimize_own_post_options" cols="60" rows="3" id="_mw_adminimize_own_post_options" style="width: 95%;" ><?php echo _mw_adminimize_getOptionValue('_mw_adminimize_own_post_options'); ?></textarea>
|
874 |
-
<br />
|
875 |
-
<?php _e('Possible nomination for ID or class. Separate multiple nominations through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
876 |
-
</td>
|
877 |
-
<td>
|
878 |
-
<textarea class="code" name="_mw_adminimize_own_post_values" cols="60" rows="3" id="_mw_adminimize_own_post_values" style="width: 95%;" ><?php echo _mw_adminimize_getOptionValue('_mw_adminimize_own_post_values'); ?></textarea>
|
879 |
-
<br />
|
880 |
-
<?php _e('Possible IDs or classes. Separate multiple values through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
881 |
-
</td>
|
882 |
-
</tr>
|
883 |
-
</tbody>
|
884 |
-
</table>
|
885 |
-
|
886 |
-
<p id="submitbutton">
|
887 |
-
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
|
888 |
-
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
|
889 |
-
</p>
|
890 |
-
<p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
|
891 |
-
|
892 |
-
</div>
|
893 |
-
</div>
|
894 |
-
</div>
|
895 |
-
|
896 |
-
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
897 |
-
<div class="postbox">
|
898 |
-
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
899 |
-
<h3 class="hndle" id="config_edit_page"><?php _e('Write options - Page', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3>
|
900 |
-
<div class="inside">
|
901 |
-
<br class="clear" />
|
902 |
-
|
903 |
-
<table summary="config_edit_page" class="widefat">
|
904 |
-
<thead>
|
905 |
-
<tr>
|
906 |
-
<th><?php _e('Write options - Page', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
907 |
-
<?php
|
908 |
-
foreach ($user_roles_names as $role_name) { ?>
|
909 |
-
<th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br />' . $role_name; ?></th>
|
910 |
-
<?php } ?>
|
911 |
-
</tr>
|
912 |
-
</thead>
|
913 |
-
|
914 |
-
<tbody>
|
915 |
-
<?php
|
916 |
-
$x = 0;
|
917 |
-
$class = '';
|
918 |
-
foreach ($metaboxes_page as $index => $metabox) {
|
919 |
-
if ($metabox != '') {
|
920 |
-
$class = ( ' class="alternate"' == $class ) ? '' : ' class="alternate"';
|
921 |
-
$checked_user_role_ = array();
|
922 |
-
foreach ($user_roles as $role) {
|
923 |
-
$checked_user_role_[$role] = ( isset($disabled_metaboxes_page_[$role]) && in_array($metabox, $disabled_metaboxes_page_[$role]) ) ? ' checked="checked"' : '';
|
924 |
-
}
|
925 |
-
echo '<tr' . $class . '>' . "\n";
|
926 |
-
echo '<td>' . $metaboxes_names_page[$index] . ' <span style="color:#ccc; font-weight: 400;">(' . $metabox . ')</span> </td>' . "\n";
|
927 |
-
foreach ($user_roles as $role) {
|
928 |
-
echo '<td class="num"><input id="check_page'. $role.$x .'" type="checkbox"' . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_metaboxes_page_'. $role .'_items[]" value="' . $metabox . '" /></td>' . "\n";
|
929 |
-
}
|
930 |
-
echo '</tr>' . "\n";
|
931 |
-
$x++;
|
932 |
-
}
|
933 |
-
}
|
934 |
-
?>
|
935 |
-
</tbody>
|
936 |
-
</table>
|
937 |
-
|
938 |
-
<?php
|
939 |
-
//ypur own page options
|
940 |
-
?>
|
941 |
-
<br style="margin-top: 10px;" />
|
942 |
-
<table summary="config_own_page" class="widefat">
|
943 |
-
<thead>
|
944 |
-
<tr>
|
945 |
-
<th><?php _e('Your own page options', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br />'; _e('ID or class', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
946 |
-
<th><?php echo '<br />'; _e('Option', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
947 |
-
</tr>
|
948 |
-
</thead>
|
949 |
-
|
950 |
-
<tbody>
|
951 |
-
<tr valign="top">
|
952 |
-
<td colspan="2"><?php _e('It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
953 |
-
</tr>
|
954 |
-
<tr valign="top">
|
955 |
-
<td>
|
956 |
-
<textarea name="_mw_adminimize_own_page_options" cols="60" rows="3" id="_mw_adminimize_own_page_options" style="width: 95%;" ><?php echo _mw_adminimize_getOptionValue('_mw_adminimize_own_page_options'); ?></textarea>
|
957 |
-
<br />
|
958 |
-
<?php _e('Possible nomination for ID or class. Separate multiple nominations through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
959 |
-
</td>
|
960 |
-
<td>
|
961 |
-
<textarea class="code" name="_mw_adminimize_own_page_values" cols="60" rows="3" id="_mw_adminimize_own_page_values" style="width: 95%;" ><?php echo _mw_adminimize_getOptionValue('_mw_adminimize_own_page_values'); ?></textarea>
|
962 |
-
<br />
|
963 |
-
<?php _e('Possible IDs or classes. Separate multiple values through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
964 |
-
</td>
|
965 |
-
</tr>
|
966 |
-
</tbody>
|
967 |
-
</table>
|
968 |
-
|
969 |
-
<p id="submitbutton">
|
970 |
-
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
|
971 |
-
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
|
972 |
-
</p>
|
973 |
-
<p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
|
974 |
-
|
975 |
-
</div>
|
976 |
-
</div>
|
977 |
-
</div>
|
978 |
-
|
979 |
-
<?php // Links Options
|
980 |
-
require_once('links_options.php');
|
981 |
-
?>
|
982 |
|
983 |
-
|
984 |
-
require_once('wp_nav_menu_options.php');
|
985 |
?>
|
986 |
-
|
|
|
987 |
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
988 |
<div class="postbox">
|
989 |
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
124 |
}
|
125 |
?>
|
126 |
<div class="wrap">
|
127 |
+
<?php
|
128 |
+
// Backend Options for all roles
|
129 |
+
require_once('inc-options/minimenu.php');
|
130 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
|
132 |
+
<form name="backend_option" method="post" id="_mw_adminimize_options" action="?page=<?php echo $_GET['page'];?>" >
|
133 |
+
<?php
|
134 |
+
// Backend Options for all roles
|
135 |
+
require_once('inc-options/backend_options.php');
|
136 |
|
137 |
+
// global options on all pages in backend for diffferent roles
|
138 |
+
require_once('inc-options/global_options.php');
|
139 |
+
|
140 |
+
// Menu Submenu Options
|
141 |
+
require_once('inc-options/menu_options.php');
|
142 |
+
|
143 |
+
// Write Page Options
|
144 |
+
require_once('inc-options/write_post_options.php');
|
145 |
+
|
146 |
+
// Write Page Options
|
147 |
+
require_once('inc-options/write_page_options.php');
|
148 |
+
|
149 |
+
// Links Options
|
150 |
+
require_once('inc-options/links_options.php');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
|
152 |
+
// WP Nav Menu Options
|
153 |
+
require_once('inc-options/wp_nav_menu_options.php');
|
154 |
?>
|
155 |
+
</form>
|
156 |
+
|
157 |
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
158 |
<div class="postbox">
|
159 |
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
inc-options/backend_options.php
ADDED
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// backend options
|
3 |
+
?>
|
4 |
+
|
5 |
+
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
6 |
+
<div class="postbox">
|
7 |
+
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
8 |
+
<h3 class="hndle" id="backend_options"><?php _e('Backend Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3>
|
9 |
+
<div class="inside">
|
10 |
+
|
11 |
+
|
12 |
+
<?php wp_nonce_field('mw_adminimize_nonce'); ?>
|
13 |
+
<br class="clear" />
|
14 |
+
<table summary="config" class="widefat">
|
15 |
+
<tbody>
|
16 |
+
<tr valign="top">
|
17 |
+
<td><?php _e('User-Info', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
18 |
+
<td>
|
19 |
+
<?php $_mw_adminimize_user_info = _mw_adminimize_getOptionValue('_mw_adminimize_user_info'); ?>
|
20 |
+
<select name="_mw_adminimize_user_info">
|
21 |
+
<option value="0"<?php if ($_mw_adminimize_user_info == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
22 |
+
<option value="1"<?php if ($_mw_adminimize_user_info == '1') { echo ' selected="selected"'; } ?>><?php _e('Hide', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
23 |
+
<option value="2"<?php if ($_mw_adminimize_user_info == '2') { echo ' selected="selected"'; } ?>><?php _e('Only logout', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
24 |
+
<option value="3"<?php if ($_mw_adminimize_user_info == '3') { echo ' selected="selected"'; } ?>><?php _e('User & Logout', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
25 |
+
</select> <?php _e('The "User-Info-area" is on the top right side of the backend. You can hide or reduced show.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
26 |
+
</td>
|
27 |
+
</tr>
|
28 |
+
<?php if ( ($_mw_adminimize_user_info == '') || ($_mw_adminimize_user_info == '1') || ($_mw_adminimize_user_info == '0') ) $disabled_item = ' disabled="disabled"' ?>
|
29 |
+
<tr valign="top" class="form-invalid">
|
30 |
+
<td><?php _e('Change User-Info, redirect to', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
31 |
+
<td>
|
32 |
+
<?php $_mw_adminimize_ui_redirect = _mw_adminimize_getOptionValue('_mw_adminimize_ui_redirect'); ?>
|
33 |
+
<select name="_mw_adminimize_ui_redirect" <?php if ( isset($disabled_item) ) echo $disabled_item; ?>>
|
34 |
+
<option value="0"<?php if ($_mw_adminimize_ui_redirect == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
35 |
+
<option value="1"<?php if ($_mw_adminimize_ui_redirect == '1') { echo ' selected="selected"'; } ?>><?php _e('Frontpage of the Blog', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
36 |
+
</select> <?php _e('When the "User-Info-area" change it, then it is possible to change the redirect.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
37 |
+
</td>
|
38 |
+
</tr>
|
39 |
+
<tr valign="top">
|
40 |
+
<td><?php _e('Footer', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
41 |
+
<td>
|
42 |
+
<?php $_mw_adminimize_footer = _mw_adminimize_getOptionValue('_mw_adminimize_footer'); ?>
|
43 |
+
<select name="_mw_adminimize_footer">
|
44 |
+
<option value="0"<?php if ($_mw_adminimize_footer == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
45 |
+
<option value="1"<?php if ($_mw_adminimize_footer == '1') { echo ' selected="selected"'; } ?>><?php _e('Hide', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
46 |
+
</select> <?php _e('The Footer-area can hide, include all links and details.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
47 |
+
</td>
|
48 |
+
</tr>
|
49 |
+
<tr valign="top">
|
50 |
+
<td><?php _e('Header', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
51 |
+
<td>
|
52 |
+
<?php $_mw_adminimize_header = _mw_adminimize_getOptionValue('_mw_adminimize_header'); ?>
|
53 |
+
<select name="_mw_adminimize_header">
|
54 |
+
<option value="0"<?php if ($_mw_adminimize_header == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
55 |
+
<option value="1"<?php if ($_mw_adminimize_header == '1') { echo ' selected="selected"'; } ?>><?php _e('Hide', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
56 |
+
</select> <?php _e('The Header-area can hide, include all links and details.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
57 |
+
</td>
|
58 |
+
</tr>
|
59 |
+
<tr valign="top">
|
60 |
+
<td><?php _e('WriteScroll', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
61 |
+
<td>
|
62 |
+
<?php $_mw_adminimize_writescroll = _mw_adminimize_getOptionValue('_mw_adminimize_writescroll'); ?>
|
63 |
+
<select name="_mw_adminimize_writescroll">
|
64 |
+
<option value="0"<?php if ($_mw_adminimize_writescroll == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
65 |
+
<option value="1"<?php if ($_mw_adminimize_writescroll == '1') { echo ' selected="selected"'; } ?>><?php _e('Activate', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
66 |
+
</select> <?php _e('With the WriteScroll option active, these pages will automatically scroll to an optimal position for editing, when you visit Write Post or Write Page.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
67 |
+
</td>
|
68 |
+
</tr>
|
69 |
+
<tr valign="top">
|
70 |
+
<td><?php _e('Timestamp', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
71 |
+
<td>
|
72 |
+
<?php $_mw_adminimize_timestamp = _mw_adminimize_getOptionValue('_mw_adminimize_timestamp'); ?>
|
73 |
+
<select name="_mw_adminimize_timestamp">
|
74 |
+
<option value="0"<?php if ($_mw_adminimize_timestamp == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
75 |
+
<option value="1"<?php if ($_mw_adminimize_timestamp == '1') { echo ' selected="selected"'; } ?>><?php _e('Activate', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
76 |
+
</select> <?php _e('Opens the post timestamp editing fields without you having to click the "Edit" link every time.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
77 |
+
</td>
|
78 |
+
</tr>
|
79 |
+
<tr valign="top">
|
80 |
+
<td><?php _e('Thickbox FullScreen', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
81 |
+
<td>
|
82 |
+
<?php $_mw_adminimize_tb_window = _mw_adminimize_getOptionValue('_mw_adminimize_tb_window'); ?>
|
83 |
+
<select name="_mw_adminimize_tb_window">
|
84 |
+
<option value="0"<?php if ($_mw_adminimize_tb_window == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
85 |
+
<option value="1"<?php if ($_mw_adminimize_tb_window == '1') { echo ' selected="selected"'; } ?>><?php _e('Activate', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
86 |
+
</select> <?php _e('All Thickbox-function use the full area of the browser. Thickbox is for example in upload media-files.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
87 |
+
</td>
|
88 |
+
</tr>
|
89 |
+
<tr valign="top">
|
90 |
+
<td><?php _e('Flashuploader', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
91 |
+
<td>
|
92 |
+
<?php $_mw_adminimize_control_flashloader = _mw_adminimize_getOptionValue('_mw_adminimize_control_flashloader'); ?>
|
93 |
+
<select name="_mw_adminimize_control_flashloader">
|
94 |
+
<option value="0"<?php if ($_mw_adminimize_control_flashloader == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
95 |
+
<option value="1"<?php if ($_mw_adminimize_control_flashloader == '1') { echo ' selected="selected"'; } ?>><?php _e('Activate', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
96 |
+
</select> <?php _e('Disable the flashuploader and users use only the standard uploader.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
97 |
+
</td>
|
98 |
+
</tr>
|
99 |
+
<tr valign="top">
|
100 |
+
<td><?php _e('Category Height', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
101 |
+
<td>
|
102 |
+
<?php $_mw_adminimize_cat_full = _mw_adminimize_getOptionValue('_mw_adminimize_cat_full'); ?>
|
103 |
+
<select name="_mw_adminimize_cat_full">
|
104 |
+
<option value="0"<?php if ($_mw_adminimize_cat_full == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
105 |
+
<option value="1"<?php if ($_mw_adminimize_cat_full == '1') { echo ' selected="selected"'; } ?>><?php _e('Activate', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
106 |
+
</select> <?php _e('View the Meta Box with Categories in the full height, no scrollbar or whitespace.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
107 |
+
</td>
|
108 |
+
</tr>
|
109 |
+
<tr valign="top">
|
110 |
+
<td><?php _e('Advice in Footer', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
111 |
+
<td>
|
112 |
+
<?php $_mw_adminimize_advice = _mw_adminimize_getOptionValue('_mw_adminimize_advice'); ?>
|
113 |
+
<select name="_mw_adminimize_advice">
|
114 |
+
<option value="0"<?php if ($_mw_adminimize_advice == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
115 |
+
<option value="1"<?php if ($_mw_adminimize_advice == '1') { echo ' selected="selected"'; } ?>><?php _e('Activate', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
116 |
+
</select>
|
117 |
+
<textarea style="width: 85%;" class="code" rows="1" cols="60" name="_mw_adminimize_advice_txt" id="_mw_adminimize_advice_txt" ><?php echo htmlspecialchars(stripslashes(_mw_adminimize_getOptionValue('_mw_adminimize_advice_txt'))); ?></textarea><br /><?php _e('In the Footer you can display an advice for changing the Default-design, (x)HTML is possible.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
118 |
+
</td>
|
119 |
+
</tr>
|
120 |
+
<?php
|
121 |
+
// when remove dashboard
|
122 |
+
foreach ($user_roles as $role) {
|
123 |
+
$disabled_menu_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_menu_'. $role .'_items');
|
124 |
+
$disabled_submenu_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_submenu_'. $role .'_items');
|
125 |
+
}
|
126 |
+
|
127 |
+
$disabled_menu_all = array();
|
128 |
+
foreach ($user_roles as $role) {
|
129 |
+
array_push($disabled_menu_all, $disabled_menu_[$role]);
|
130 |
+
array_push($disabled_menu_all, $disabled_submenu_[$role]);
|
131 |
+
}
|
132 |
+
|
133 |
+
if ($disabled_menu_all != '') {
|
134 |
+
if ( !recursive_in_array('index.php', $disabled_menu_all) ) {
|
135 |
+
$disabled_item2 = ' disabled="disabled"';
|
136 |
+
}
|
137 |
+
?>
|
138 |
+
<tr valign="top" class="form-invalid">
|
139 |
+
<td><?php _e('Dashboard deactivate, redirect to', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
140 |
+
<td>
|
141 |
+
<?php $_mw_adminimize_db_redirect = _mw_adminimize_getOptionValue('_mw_adminimize_db_redirect'); ?>
|
142 |
+
<select name="_mw_adminimize_db_redirect"<?php if ( isset($disabled_item2) ) echo $disabled_item2; ?>>
|
143 |
+
<option value="0"<?php if ($_mw_adminimize_db_redirect == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (profile.php)</option>
|
144 |
+
<option value="1"<?php if ($_mw_adminimize_db_redirect == '1') { echo ' selected="selected"'; } ?>><?php _e('Manage Posts', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (edit.php)</option>
|
145 |
+
<option value="2"<?php if ($_mw_adminimize_db_redirect == '2') { echo ' selected="selected"'; } ?>><?php _e('Manage Pages', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (edit-pages.php)</option>
|
146 |
+
<option value="3"<?php if ($_mw_adminimize_db_redirect == '3') { echo ' selected="selected"'; } ?>><?php _e('Write Post', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (post-new.php)</option>
|
147 |
+
<option value="4"<?php if ($_mw_adminimize_db_redirect == '4') { echo ' selected="selected"'; } ?>><?php _e('Write Page', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (page-new.php)</option>
|
148 |
+
<option value="5"<?php if ($_mw_adminimize_db_redirect == '5') { echo ' selected="selected"'; } ?>><?php _e('Comments', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (edit-comments.php)</option>
|
149 |
+
<option value="6"<?php if ($_mw_adminimize_db_redirect == '6') { echo ' selected="selected"'; } ?>><?php _e('other Page', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>
|
150 |
+
</select>
|
151 |
+
<textarea style="width: 85%;" class="code" rows="1" cols="60" name="_mw_adminimize_db_redirect_txt" id="_mw_adminimize_db_redirect_txt" ><?php echo htmlspecialchars(stripslashes(_mw_adminimize_getOptionValue('_mw_adminimize_db_redirect_txt'))); ?></textarea>
|
152 |
+
<br /><?php _e('You have deactivated the Dashboard, please select a page for redirection?', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
153 |
+
</td>
|
154 |
+
</tr>
|
155 |
+
<?php
|
156 |
+
}
|
157 |
+
?>
|
158 |
+
</tbody>
|
159 |
+
</table>
|
160 |
+
<p id="submitbutton">
|
161 |
+
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
|
162 |
+
</p>
|
163 |
+
<p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
|
164 |
+
|
165 |
+
</div>
|
166 |
+
</div>
|
167 |
+
</div>
|
168 |
+
|
inc-options/global_options.php
ADDED
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// options for all pages inn backend, global
|
3 |
+
?>
|
4 |
+
|
5 |
+
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
6 |
+
<div class="postbox">
|
7 |
+
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
8 |
+
<h3 class="hndle" id="global_options"><?php _e('Global options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3>
|
9 |
+
<div class="inside">
|
10 |
+
<br class="clear" />
|
11 |
+
|
12 |
+
<table summary="config_edit_post" class="widefat">
|
13 |
+
<thead>
|
14 |
+
<tr>
|
15 |
+
<th><?php _e('Option', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
16 |
+
<?php
|
17 |
+
foreach ($user_roles_names as $role_name) { ?>
|
18 |
+
<th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br/>' . $role_name; ?></th>
|
19 |
+
<?php } ?>
|
20 |
+
</tr>
|
21 |
+
</thead>
|
22 |
+
|
23 |
+
<tbody>
|
24 |
+
<?php
|
25 |
+
foreach ($user_roles as $role) {
|
26 |
+
$disabled_global_option_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_global_option_'. $role .'_items');
|
27 |
+
}
|
28 |
+
|
29 |
+
$global_options = array(
|
30 |
+
'.show-admin-bar',
|
31 |
+
'#favorite-actions',
|
32 |
+
'#screen-meta',
|
33 |
+
'#screen-options, #screen-options-link-wrap',
|
34 |
+
'#contextual-help-link-wrap',
|
35 |
+
'#your-profile .form-table fieldset'
|
36 |
+
);
|
37 |
+
|
38 |
+
$global_options_names = array(
|
39 |
+
__('Admin Bar', FB_ADMINIMIZE_TEXTDOMAIN),
|
40 |
+
__('Favorite Actions', FB_ADMINIMIZE_TEXTDOMAIN),
|
41 |
+
__('Screen-Meta', FB_ADMINIMIZE_TEXTDOMAIN),
|
42 |
+
__('Screen Options', FB_ADMINIMIZE_TEXTDOMAIN),
|
43 |
+
__('Contextual Help', FB_ADMINIMIZE_TEXTDOMAIN),
|
44 |
+
__('Admin Color Scheme', FB_ADMINIMIZE_TEXTDOMAIN)
|
45 |
+
);
|
46 |
+
|
47 |
+
$_mw_adminimize_own_values = _mw_adminimize_getOptionValue('_mw_adminimize_own_values');
|
48 |
+
$_mw_adminimize_own_values = preg_split( "/\r\n/", $_mw_adminimize_own_values );
|
49 |
+
foreach ( (array) $_mw_adminimize_own_values as $key => $_mw_adminimize_own_value ) {
|
50 |
+
$_mw_adminimize_own_value = trim($_mw_adminimize_own_value);
|
51 |
+
array_push($global_options, $_mw_adminimize_own_value);
|
52 |
+
}
|
53 |
+
|
54 |
+
$_mw_adminimize_own_options = _mw_adminimize_getOptionValue('_mw_adminimize_own_options');
|
55 |
+
$_mw_adminimize_own_options = preg_split( "/\r\n/", $_mw_adminimize_own_options );
|
56 |
+
foreach ( (array) $_mw_adminimize_own_options as $key => $_mw_adminimize_own_option ) {
|
57 |
+
$_mw_adminimize_own_option = trim($_mw_adminimize_own_option);
|
58 |
+
array_push($global_options_names, $_mw_adminimize_own_option);
|
59 |
+
}
|
60 |
+
|
61 |
+
$x = 0;
|
62 |
+
foreach ($global_options as $index => $global_option) {
|
63 |
+
if ( $global_option != '') {
|
64 |
+
$checked_user_role_ = array();
|
65 |
+
foreach ($user_roles as $role) {
|
66 |
+
$checked_user_role_[$role] = ( isset($disabled_global_option_[$role]) && in_array($global_option, $disabled_global_option_[$role]) ) ? ' checked="checked"' : '';
|
67 |
+
}
|
68 |
+
echo '<tr>' . "\n";
|
69 |
+
echo '<td>' . $global_options_names[$index] . ' <span style="color:#ccc; font-weight: 400;">(' . $global_option . ')</span> </td>' . "\n";
|
70 |
+
foreach ($user_roles as $role) {
|
71 |
+
echo '<td class="num"><input id="check_post'. $role . $x .'" type="checkbox"' . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_global_option_'. $role .'_items[]" value="' . $global_option . '" /></td>' . "\n";
|
72 |
+
}
|
73 |
+
echo '</tr>' . "\n";
|
74 |
+
$x++;
|
75 |
+
}
|
76 |
+
}
|
77 |
+
?>
|
78 |
+
</tbody>
|
79 |
+
</table>
|
80 |
+
|
81 |
+
<?php
|
82 |
+
//your own global options
|
83 |
+
?>
|
84 |
+
<br style="margin-top: 10px;" />
|
85 |
+
<table summary="config_edit_post" class="widefat">
|
86 |
+
<thead>
|
87 |
+
<tr>
|
88 |
+
<th><?php _e('Your own options', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br />'; _e('ID or class', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
89 |
+
<th><?php echo '<br />'; _e('Option', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
90 |
+
</tr>
|
91 |
+
</thead>
|
92 |
+
|
93 |
+
<tbody>
|
94 |
+
<tr valign="top">
|
95 |
+
<td colspan="2"><?php _e('It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
96 |
+
</tr>
|
97 |
+
<tr valign="top">
|
98 |
+
<td>
|
99 |
+
<textarea name="_mw_adminimize_own_options" cols="60" rows="3" id="_mw_adminimize_own_options" style="width: 95%;" ><?php echo _mw_adminimize_getOptionValue('_mw_adminimize_own_options'); ?></textarea>
|
100 |
+
<br />
|
101 |
+
<?php _e('Possible nomination for ID or class. Separate multiple nominations through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
102 |
+
</td>
|
103 |
+
<td>
|
104 |
+
<textarea class="code" name="_mw_adminimize_own_values" cols="60" rows="3" id="_mw_adminimize_own_values" style="width: 95%;" ><?php echo _mw_adminimize_getOptionValue('_mw_adminimize_own_values'); ?></textarea>
|
105 |
+
<br />
|
106 |
+
<?php _e('Possible IDs or classes. Separate multiple values through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
107 |
+
</td>
|
108 |
+
</tr>
|
109 |
+
</tbody>
|
110 |
+
</table>
|
111 |
+
|
112 |
+
<p id="submitbutton">
|
113 |
+
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
|
114 |
+
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
|
115 |
+
</p>
|
116 |
+
<p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
|
117 |
+
|
118 |
+
</div>
|
119 |
+
</div>
|
120 |
+
</div>
|
links_options.php → inc-options/links_options.php
RENAMED
File without changes
|
inc-options/menu_options.php
ADDED
@@ -0,0 +1,341 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// options for menu, submenu
|
3 |
+
?>
|
4 |
+
|
5 |
+
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
6 |
+
<div class="postbox">
|
7 |
+
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
8 |
+
<h3 class="hndle" id="config_menu"><?php _e('Menu Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3>
|
9 |
+
<div class="inside">
|
10 |
+
<br class="clear" />
|
11 |
+
|
12 |
+
<table summary="config_menu" class="widefat">
|
13 |
+
<thead>
|
14 |
+
<tr>
|
15 |
+
<th><?php _e('Menu options - Menu, <span style=\"font-weight: 400;\">Submenu</span>', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
16 |
+
|
17 |
+
<?php foreach ($user_roles_names as $role_name) { ?>
|
18 |
+
<th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br/>' . $role_name; ?></th>
|
19 |
+
<?php } ?>
|
20 |
+
|
21 |
+
</tr>
|
22 |
+
</thead>
|
23 |
+
<tbody>
|
24 |
+
<?php
|
25 |
+
$wp_menu = _mw_adminimize_getOptionValue('mw_adminimize_default_menu');
|
26 |
+
$wp_submenu = _mw_adminimize_getOptionValue('mw_adminimize_default_submenu');
|
27 |
+
|
28 |
+
if ( empty($wp_menu) ) {
|
29 |
+
global $menu;
|
30 |
+
|
31 |
+
$wp_menu = $menu;
|
32 |
+
}
|
33 |
+
if ( !isset($wp_submenu) ) {
|
34 |
+
global $submenu;
|
35 |
+
|
36 |
+
$wp_submenu = $submenu;
|
37 |
+
}
|
38 |
+
|
39 |
+
foreach ($user_roles as $role) {
|
40 |
+
$disabled_metaboxes_post_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_metaboxes_post_'. $role .'_items');
|
41 |
+
$disabled_metaboxes_page_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_metaboxes_page_'. $role .'_items');
|
42 |
+
}
|
43 |
+
|
44 |
+
$metaboxes = array(
|
45 |
+
'#contextual-help-link-wrap',
|
46 |
+
'#screen-options-link-wrap',
|
47 |
+
'#titlediv',
|
48 |
+
'#pageslugdiv',
|
49 |
+
'#tagsdiv,#tagsdivsb,#tagsdiv-post_tag',
|
50 |
+
'#categorydiv,#categorydivsb',
|
51 |
+
'#category-add-toggle',
|
52 |
+
'#postexcerpt',
|
53 |
+
'#trackbacksdiv',
|
54 |
+
'#postcustom',
|
55 |
+
'#commentsdiv',
|
56 |
+
'#passworddiv',
|
57 |
+
'#authordiv',
|
58 |
+
'#revisionsdiv',
|
59 |
+
'.side-info',
|
60 |
+
'#notice',
|
61 |
+
'#post-body h2',
|
62 |
+
'#media-buttons',
|
63 |
+
'#wp-word-count',
|
64 |
+
'#slugdiv,#edit-slug-box',
|
65 |
+
'#misc-publishing-actions',
|
66 |
+
'#commentstatusdiv',
|
67 |
+
'#editor-toolbar #edButtonHTML, #quicktags'
|
68 |
+
);
|
69 |
+
|
70 |
+
if ( function_exists('current_theme_supports') && current_theme_supports( 'post-thumbnails', 'post' ) )
|
71 |
+
array_push($metaboxes, '#postimagediv');
|
72 |
+
if (class_exists('SimpleTagsAdmin'))
|
73 |
+
array_push($metaboxes, '#suggestedtags');
|
74 |
+
if (function_exists('tc_post'))
|
75 |
+
array_push($metaboxes, '#textcontroldiv');
|
76 |
+
if (class_exists('HTMLSpecialCharactersHelper'))
|
77 |
+
array_push($metaboxes, '#htmlspecialchars');
|
78 |
+
if (class_exists('All_in_One_SEO_Pack'))
|
79 |
+
array_push($metaboxes, '#postaiosp, #aiosp');
|
80 |
+
if (function_exists('tdomf_edit_post_panel_admin_head'))
|
81 |
+
array_push($metaboxes, '#tdomf');
|
82 |
+
if (function_exists('post_notification_form'))
|
83 |
+
array_push($metaboxes, '#post_notification');
|
84 |
+
if (function_exists('sticky_add_meta_box'))
|
85 |
+
array_push($metaboxes, '#poststickystatusdiv');
|
86 |
+
|
87 |
+
$metaboxes_names = array(
|
88 |
+
__('Help'),
|
89 |
+
__('Screen Options'),
|
90 |
+
__('Title', FB_ADMINIMIZE_TEXTDOMAIN),
|
91 |
+
__('Permalink', FB_ADMINIMIZE_TEXTDOMAIN ),
|
92 |
+
__('Tags', FB_ADMINIMIZE_TEXTDOMAIN ),
|
93 |
+
__('Categories', FB_ADMINIMIZE_TEXTDOMAIN ),
|
94 |
+
__('Add New Category', FB_ADMINIMIZE_TEXTDOMAIN ),
|
95 |
+
__('Excerpt', FB_ADMINIMIZE_TEXTDOMAIN ),
|
96 |
+
__('Trackbacks', FB_ADMINIMIZE_TEXTDOMAIN ),
|
97 |
+
__('Custom Fields'),
|
98 |
+
__('Comments', FB_ADMINIMIZE_TEXTDOMAIN ),
|
99 |
+
__('Password Protect This Post', FB_ADMINIMIZE_TEXTDOMAIN ),
|
100 |
+
__('Post Author'),
|
101 |
+
__('Post Revisions'),
|
102 |
+
__('Related, Shortcuts', FB_ADMINIMIZE_TEXTDOMAIN ),
|
103 |
+
__('Messenges', FB_ADMINIMIZE_TEXTDOMAIN ),
|
104 |
+
__('h2: Advanced Options', FB_ADMINIMIZE_TEXTDOMAIN ),
|
105 |
+
__('Media Buttons (all)', FB_ADMINIMIZE_TEXTDOMAIN ),
|
106 |
+
__('Word count', FB_ADMINIMIZE_TEXTDOMAIN ),
|
107 |
+
__('Post Slug'),
|
108 |
+
__('Publish Actions', FB_ADMINIMIZE_TEXTDOMAIN ),
|
109 |
+
__('Discussion'),
|
110 |
+
__('HTML Editor Button')
|
111 |
+
);
|
112 |
+
|
113 |
+
if ( function_exists('current_theme_supports') && current_theme_supports( 'post-thumbnails', 'post' ) )
|
114 |
+
array_push($metaboxes_names, __('Post Thumbnail') );
|
115 |
+
if (class_exists('SimpleTagsAdmin'))
|
116 |
+
array_push($metaboxes_names, __('Suggested tags from'));
|
117 |
+
if (function_exists('tc_post'))
|
118 |
+
array_push($metaboxes_names, __('Text Control'));
|
119 |
+
if (class_exists('HTMLSpecialCharactersHelper'))
|
120 |
+
array_push($metaboxes_names, __('HTML Special Characters'));
|
121 |
+
if (class_exists('All_in_One_SEO_Pack'))
|
122 |
+
array_push($metaboxes_names, __('All in One SEO Pack'));
|
123 |
+
if (function_exists('tdomf_edit_post_panel_admin_head'))
|
124 |
+
array_push($metaboxes_names, 'TDOMF');
|
125 |
+
if (function_exists('post_notification_form'))
|
126 |
+
array_push($metaboxes_names, 'Post Notification');
|
127 |
+
if (function_exists('sticky_add_meta_box'))
|
128 |
+
array_push($metaboxes, 'Post Sticky Status');
|
129 |
+
|
130 |
+
// add own post options
|
131 |
+
$_mw_adminimize_own_post_values = _mw_adminimize_getOptionValue('_mw_adminimize_own_post_values');
|
132 |
+
$_mw_adminimize_own_post_values = preg_split( "/\r\n/", $_mw_adminimize_own_post_values );
|
133 |
+
foreach ( (array) $_mw_adminimize_own_post_values as $key => $_mw_adminimize_own_post_value ) {
|
134 |
+
$_mw_adminimize_own_post_value = trim($_mw_adminimize_own_post_value);
|
135 |
+
array_push($metaboxes, $_mw_adminimize_own_post_value);
|
136 |
+
}
|
137 |
+
|
138 |
+
$_mw_adminimize_own_post_options = _mw_adminimize_getOptionValue('_mw_adminimize_own_post_options');
|
139 |
+
$_mw_adminimize_own_post_options = preg_split( "/\r\n/", $_mw_adminimize_own_post_options );
|
140 |
+
foreach ( (array) $_mw_adminimize_own_post_options as $key => $_mw_adminimize_own_post_option ) {
|
141 |
+
$_mw_adminimize_own_post_option = trim($_mw_adminimize_own_post_option);
|
142 |
+
array_push($metaboxes_names, $_mw_adminimize_own_post_option);
|
143 |
+
}
|
144 |
+
|
145 |
+
// pages
|
146 |
+
$metaboxes_page = array(
|
147 |
+
'#contextual-help-link-wrap',
|
148 |
+
'#screen-options-link-wrap',
|
149 |
+
'#titlediv',
|
150 |
+
'#pageslugdiv',
|
151 |
+
'#pagepostcustom, #pagecustomdiv, #postcustom',
|
152 |
+
'#pagecommentstatusdiv, #commentsdiv',
|
153 |
+
'#pagepassworddiv',
|
154 |
+
'#pageparentdiv',
|
155 |
+
'#pagetemplatediv',
|
156 |
+
'#pageorderdiv',
|
157 |
+
'#pageauthordiv, #authordiv',
|
158 |
+
'#revisionsdiv',
|
159 |
+
'.side-info',
|
160 |
+
'#notice',
|
161 |
+
'#post-body h2',
|
162 |
+
'#media-buttons',
|
163 |
+
'#wp-word-count',
|
164 |
+
'#slugdiv,#edit-slug-box',
|
165 |
+
'#misc-publishing-actions',
|
166 |
+
'#commentstatusdiv',
|
167 |
+
'#editor-toolbar #edButtonHTML, #quicktags'
|
168 |
+
);
|
169 |
+
|
170 |
+
if ( function_exists('current_theme_supports') && current_theme_supports( 'post-thumbnails', 'page' ) )
|
171 |
+
array_push($metaboxes_page, '#postimagediv' );
|
172 |
+
if (class_exists('SimpleTagsAdmin'))
|
173 |
+
array_push($metaboxes_page, '#suggestedtags');
|
174 |
+
if (class_exists('HTMLSpecialCharactersHelper'))
|
175 |
+
array_push($metaboxes_page, '#htmlspecialchars');
|
176 |
+
if (class_exists('All_in_One_SEO_Pack'))
|
177 |
+
array_push($metaboxes_page, '#postaiosp, #aiosp');
|
178 |
+
if (function_exists('tdomf_edit_post_panel_admin_head'))
|
179 |
+
array_push($metaboxes_page, '#tdomf');
|
180 |
+
if (function_exists('post_notification_form'))
|
181 |
+
array_push($metaboxes_page, '#post_notification');
|
182 |
+
|
183 |
+
$metaboxes_names_page = array(
|
184 |
+
__('Help'),
|
185 |
+
__('Screen Options'),
|
186 |
+
__('Title', FB_ADMINIMIZE_TEXTDOMAIN),
|
187 |
+
__('Permalink', FB_ADMINIMIZE_TEXTDOMAIN ),
|
188 |
+
__('Custom Fields'),
|
189 |
+
__('Comments & Pings', FB_ADMINIMIZE_TEXTDOMAIN ),
|
190 |
+
__('Password Protect This Page', FB_ADMINIMIZE_TEXTDOMAIN ),
|
191 |
+
__('Attributes'),
|
192 |
+
__('Page Template', FB_ADMINIMIZE_TEXTDOMAIN ),
|
193 |
+
__('Page Order', FB_ADMINIMIZE_TEXTDOMAIN ),
|
194 |
+
__('Page Author'),
|
195 |
+
__('Page Revisions'),
|
196 |
+
__('Related', FB_ADMINIMIZE_TEXTDOMAIN ),
|
197 |
+
__('Messenges', FB_ADMINIMIZE_TEXTDOMAIN ),
|
198 |
+
__('h2: Advanced Options', FB_ADMINIMIZE_TEXTDOMAIN ),
|
199 |
+
__('Media Buttons (all)', FB_ADMINIMIZE_TEXTDOMAIN ),
|
200 |
+
__('Word count', FB_ADMINIMIZE_TEXTDOMAIN ),
|
201 |
+
__('Page Slug'),
|
202 |
+
__('Publish Actions', FB_ADMINIMIZE_TEXTDOMAIN ),
|
203 |
+
__('Discussion'),
|
204 |
+
__('HTML Editor Button')
|
205 |
+
);
|
206 |
+
|
207 |
+
if ( function_exists('current_theme_supports') && current_theme_supports( 'post-thumbnails', 'page' ) )
|
208 |
+
array_push($metaboxes_names_page, __('Page Image') );
|
209 |
+
if (class_exists('SimpleTagsAdmin'))
|
210 |
+
array_push($metaboxes_names_page, __('Suggested tags from', FB_ADMINIMIZE_TEXTDOMAIN ));
|
211 |
+
if (class_exists('HTMLSpecialCharactersHelper'))
|
212 |
+
array_push($metaboxes_names_page, __('HTML Special Characters'));
|
213 |
+
if (class_exists('All_in_One_SEO_Pack'))
|
214 |
+
array_push($metaboxes_names_page, 'All in One SEO Pack');
|
215 |
+
if (function_exists('tdomf_edit_post_panel_admin_head'))
|
216 |
+
array_push($metaboxes_names_page, 'TDOMF');
|
217 |
+
if (function_exists('post_notification_form'))
|
218 |
+
array_push($metaboxes_names_page, 'Post Notification');
|
219 |
+
|
220 |
+
// add own page options
|
221 |
+
$_mw_adminimize_own_page_values = _mw_adminimize_getOptionValue('_mw_adminimize_own_page_values');
|
222 |
+
$_mw_adminimize_own_page_values = preg_split( "/\r\n/", $_mw_adminimize_own_page_values );
|
223 |
+
foreach ( (array) $_mw_adminimize_own_page_values as $key => $_mw_adminimize_own_page_value ) {
|
224 |
+
$_mw_adminimize_own_page_value = trim($_mw_adminimize_own_page_value);
|
225 |
+
array_push($metaboxes_page, $_mw_adminimize_own_page_value);
|
226 |
+
}
|
227 |
+
|
228 |
+
$_mw_adminimize_own_page_options = _mw_adminimize_getOptionValue('_mw_adminimize_own_page_options');
|
229 |
+
$_mw_adminimize_own_page_options = preg_split( "/\r\n/", $_mw_adminimize_own_page_options );
|
230 |
+
foreach ( (array) $_mw_adminimize_own_page_options as $key => $_mw_adminimize_own_page_option ) {
|
231 |
+
$_mw_adminimize_own_page_option = trim($_mw_adminimize_own_page_option);
|
232 |
+
array_push($metaboxes_names_page, $_mw_adminimize_own_page_option);
|
233 |
+
}
|
234 |
+
|
235 |
+
// print menu, submenu
|
236 |
+
if ( isset($wp_menu) && '' != $wp_menu ) {
|
237 |
+
|
238 |
+
$i = 0;
|
239 |
+
$x = 0;
|
240 |
+
$class = '';
|
241 |
+
|
242 |
+
$users = array( 0 => 'Profile', 1 => 'edit_users', 2 => 'profile.php', 3 => '', 4 => 'menu-top', 5 => 'menu-users', 6 => 'div' );
|
243 |
+
//array_push( $menu, $users );
|
244 |
+
|
245 |
+
foreach ($wp_menu as $item) {
|
246 |
+
|
247 |
+
// non checked items
|
248 |
+
if ( $item[2] === 'options-general.php' ) {
|
249 |
+
//$disabled_item_adm = ' disabled="disabled"';
|
250 |
+
$disabled_item_adm_hint = '<abbr title="' . __( 'After activate the check box it heavy attitudes will change.', FB_ADMINIMIZE_TEXTDOMAIN ) . '" style="cursor:pointer;"> ! </acronym>';
|
251 |
+
} else {
|
252 |
+
$disabled_item_adm = '';
|
253 |
+
$disabled_item_adm_hint = '';
|
254 |
+
}
|
255 |
+
|
256 |
+
if ( $item[0] != '' ) {
|
257 |
+
foreach($user_roles as $role) {
|
258 |
+
// checkbox checked
|
259 |
+
if ( isset( $disabled_menu_[$role]) && in_array($item[2], $disabled_menu_[$role]) ) {
|
260 |
+
$checked_user_role_[$role] = ' checked="checked"';
|
261 |
+
} else {
|
262 |
+
$checked_user_role_[$role] = '';
|
263 |
+
}
|
264 |
+
}
|
265 |
+
|
266 |
+
echo '<tr class="form-invalid">' . "\n";
|
267 |
+
echo "\t" . '<th>' . $item[0] . ' <span style="color:#ccc; font-weight: 400;">(' . $item[2] . ')</span> </th>';
|
268 |
+
foreach ($user_roles as $role) {
|
269 |
+
if ( $role != 'administrator' ) { // only admin disable items
|
270 |
+
$disabled_item_adm = '';
|
271 |
+
$disabled_item_adm_hint = '';
|
272 |
+
}
|
273 |
+
echo "\t" . '<td class="num">' . $disabled_item_adm_hint . '<input id="check_menu'. $role . $x .'" type="checkbox"' . $disabled_item_adm . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_menu_'. $role .'_items[]" value="' . $item[2] . '" />' . $disabled_item_adm_hint . '</td>' . "\n";
|
274 |
+
}
|
275 |
+
echo '</tr>';
|
276 |
+
|
277 |
+
// only for user smaller administrator, change user-Profile-File
|
278 |
+
if ( 'users.php' === $item[2] ) {
|
279 |
+
$x++;
|
280 |
+
echo '<tr class="form-invalid">' . "\n";
|
281 |
+
echo "\t" . '<th>' . __('Profile') . ' <span style="color:#ccc; font-weight: 400;">(profile.php)</span> </th>';
|
282 |
+
foreach ($user_roles as $role) {
|
283 |
+
echo "\t" . '<td class="num"><input disabled="disabled" id="check_menu'. $role . $x .'" type="checkbox"' . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_menu_'. $role .'_items[]" value="profile.php" /></td>' . "\n";
|
284 |
+
}
|
285 |
+
echo '</tr>';
|
286 |
+
}
|
287 |
+
|
288 |
+
$x++;
|
289 |
+
|
290 |
+
if ( !isset($wp_submenu[$item[2]]) )
|
291 |
+
continue;
|
292 |
+
|
293 |
+
// submenu items
|
294 |
+
foreach ( $wp_submenu[ $item[2] ] as $subitem ) {
|
295 |
+
$class = ( ' class="alternate"' == $class ) ? '' : ' class="alternate"';
|
296 |
+
if ( $subitem[2] === 'adminimize/adminimize.php' ) {
|
297 |
+
//$disabled_subitem_adm = ' disabled="disabled"';
|
298 |
+
$disabled_subitem_adm_hint = '<abbr title="' . __( 'After activate the check box it heavy attitudes will change.', FB_ADMINIMIZE_TEXTDOMAIN ) . '" style="cursor:pointer;"> ! </acronym>';
|
299 |
+
} else {
|
300 |
+
$disabled_subitem_adm = '';
|
301 |
+
$disabled_subitem_adm_hint = '';
|
302 |
+
}
|
303 |
+
|
304 |
+
echo '<tr' . $class . '>' . "\n";
|
305 |
+
foreach ($user_roles as $role) {
|
306 |
+
if ( isset($disabled_submenu_[$role]) )
|
307 |
+
$checked_user_role_[$role] = ( in_array($subitem[2], $disabled_submenu_[$role] ) ) ? ' checked="checked"' : '';
|
308 |
+
}
|
309 |
+
echo '<td> — ' . $subitem[0] . ' <span style="color:#ccc; font-weight: 400;">(' . $subitem[2] . ')</span> </td>' . "\n";
|
310 |
+
foreach ($user_roles as $role) {
|
311 |
+
if ( $role != 'administrator' ) { // only admin disable items
|
312 |
+
$disabled_subitem_adm = '';
|
313 |
+
$disabled_subitem_adm_hint = '';
|
314 |
+
}
|
315 |
+
echo '<td class="num">' . $disabled_subitem_adm_hint . '<input id="check_menu'. $role.$x .'" type="checkbox"' . $disabled_subitem_adm . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_submenu_'. $role .'_items[]" value="' . $subitem[2] . '" />' . $disabled_subitem_adm_hint . '</td>' . "\n";
|
316 |
+
}
|
317 |
+
echo '</tr>' . "\n";
|
318 |
+
$x++;
|
319 |
+
}
|
320 |
+
$i++;
|
321 |
+
$x++;
|
322 |
+
}
|
323 |
+
}
|
324 |
+
|
325 |
+
} else {
|
326 |
+
$myErrors = new _mw_adminimize_message_class();
|
327 |
+
$myErrors = '<tr><td style="color: red;">' . $myErrors->get_error('_mw_adminimize_get_option') . '</td></tr>';
|
328 |
+
echo $myErrors;
|
329 |
+
} ?>
|
330 |
+
</tbody>
|
331 |
+
</table>
|
332 |
+
|
333 |
+
<p id="submitbutton">
|
334 |
+
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
|
335 |
+
</p>
|
336 |
+
<p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
|
337 |
+
|
338 |
+
</div>
|
339 |
+
</div>
|
340 |
+
</div>
|
341 |
+
|
inc-options/minimenu.php
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// options for write page
|
3 |
+
?>
|
4 |
+
|
5 |
+
<?php screen_icon('tools'); ?>
|
6 |
+
<h2><?php _e('Adminimize', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h2>
|
7 |
+
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
8 |
+
|
9 |
+
<div id="side-info-column" class="inner-sidebar">
|
10 |
+
<div class="meta-box-sortables">
|
11 |
+
<div id="about" class="postbox ">
|
12 |
+
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
13 |
+
<h3 class="hndle" id="about-sidebar"><?php _e('About the plugin', FB_ADMINIMIZE_TEXTDOMAIN ) ?></h3>
|
14 |
+
<div class="inside">
|
15 |
+
<p><?php _e('Further information: Visit the <a href="http://bueltge.de/wordpress-admin-theme-adminimize/674/">plugin homepage</a> for further information or to grab the latest version of this plugin.', FB_ADMINIMIZE_TEXTDOMAIN); ?></p>
|
16 |
+
<p>
|
17 |
+
<span style="float: left;">
|
18 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
19 |
+
<input type="hidden" name="cmd" value="_s-xclick">
|
20 |
+
<input type="hidden" name="hosted_button_id" value="4578111">
|
21 |
+
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="<?php _e('PayPal - The safer, easier way to pay online!', FB_ADMINIMIZE_TEXTDOMAIN); ?>">
|
22 |
+
<img alt="" border="0" src="https://www.paypal.com/de_DE/i/scr/pixel.gif" width="1" height="1">
|
23 |
+
</form>
|
24 |
+
</span>
|
25 |
+
<?php _e('You want to thank me? Visit my <a href="http://bueltge.de/wunschliste/">wishlist</a> or donate.', FB_ADMINIMIZE_TEXTDOMAIN); ?>
|
26 |
+
</p>
|
27 |
+
<p>© Copyright 2008 - <?php echo date('Y'); ?> <a href="http://bueltge.de">Frank Bültge</a></p>
|
28 |
+
</div>
|
29 |
+
</div>
|
30 |
+
</div>
|
31 |
+
</div>
|
32 |
+
|
33 |
+
<div id="post-body" class="has-sidebar">
|
34 |
+
<div id="post-body-content" class="has-sidebar-content">
|
35 |
+
<div id="normal-sortables" class="meta-box-sortables">
|
36 |
+
<div id="about" class="postbox ">
|
37 |
+
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
38 |
+
<h3 class="hndle" id="menu"><?php _e('MiniMenu', FB_ADMINIMIZE_TEXTDOMAIN ) ?></h3>
|
39 |
+
<div class="inside">
|
40 |
+
<table class="widefat" cellspacing="0">
|
41 |
+
<tr class="alternate">
|
42 |
+
<td class="row-title"><a href="#backend_options"><?php _e('Backend Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
43 |
+
</tr>
|
44 |
+
<tr>
|
45 |
+
<td class="row-title"><a href="#global_options"><?php _e('Global options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
46 |
+
</tr>
|
47 |
+
<tr class="alternate">
|
48 |
+
<td class="row-title"><a href="#config_menu"><?php _e('Menu Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
49 |
+
</tr>
|
50 |
+
<tr>
|
51 |
+
<td class="row-title"><a href="#config_edit_post"><?php _e('Write options - Post', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
52 |
+
</tr>
|
53 |
+
<tr class="alternate">
|
54 |
+
<td class="row-title"><a href="#config_edit_page"><?php _e('Write options - Page', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
55 |
+
</tr>
|
56 |
+
<tr>
|
57 |
+
<td class="row-title"><a href="#links_options"><?php _e('Links options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
58 |
+
</tr>
|
59 |
+
<tr class="alternate">
|
60 |
+
<td class="row-title"><a href="#nav_menu_options"><?php _e('WP Nav Menu', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
61 |
+
</tr>
|
62 |
+
<tr>
|
63 |
+
<td class="row-title"><a href="#set_theme"><?php _e('Set Theme', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
64 |
+
</tr>
|
65 |
+
<tr class="alternate">
|
66 |
+
<td class="row-title"><a href="#import"><?php _e('Export/Import Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
67 |
+
</tr>
|
68 |
+
<tr>
|
69 |
+
<td class="row-title"><a href="#uninstall"><?php _e('Deinstall Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
70 |
+
</tr>
|
71 |
+
<tr class="alternate">
|
72 |
+
<td class="row-title"><a href="#about"><?php _e('About the plugin', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
|
73 |
+
</tr>
|
74 |
+
</table>
|
75 |
+
</div>
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
<br class="clear"/>
|
81 |
+
</div>
|
82 |
+
|
wp_nav_menu_options.php → inc-options/wp_nav_menu_options.php
RENAMED
@@ -112,8 +112,7 @@
|
|
112 |
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
|
113 |
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
|
114 |
</p>
|
115 |
-
|
116 |
-
<p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
|
117 |
|
118 |
</div>
|
119 |
</div>
|
112 |
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
|
113 |
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
|
114 |
</p>
|
115 |
+
<p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
|
|
|
116 |
|
117 |
</div>
|
118 |
</div>
|
inc-options/write_page_options.php
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// options for write page
|
3 |
+
?>
|
4 |
+
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
5 |
+
<div class="postbox">
|
6 |
+
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
7 |
+
<h3 class="hndle" id="config_edit_page"><?php _e('Write options - Page', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3>
|
8 |
+
<div class="inside">
|
9 |
+
<br class="clear" />
|
10 |
+
|
11 |
+
<table summary="config_edit_page" class="widefat">
|
12 |
+
<thead>
|
13 |
+
<tr>
|
14 |
+
<th><?php _e('Write options - Page', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
15 |
+
<?php
|
16 |
+
foreach ($user_roles_names as $role_name) { ?>
|
17 |
+
<th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br />' . $role_name; ?></th>
|
18 |
+
<?php } ?>
|
19 |
+
</tr>
|
20 |
+
</thead>
|
21 |
+
|
22 |
+
<tbody>
|
23 |
+
<?php
|
24 |
+
$x = 0;
|
25 |
+
$class = '';
|
26 |
+
foreach ($metaboxes_page as $index => $metabox) {
|
27 |
+
if ($metabox != '') {
|
28 |
+
$class = ( ' class="alternate"' == $class ) ? '' : ' class="alternate"';
|
29 |
+
$checked_user_role_ = array();
|
30 |
+
foreach ($user_roles as $role) {
|
31 |
+
$checked_user_role_[$role] = ( isset($disabled_metaboxes_page_[$role]) && in_array($metabox, $disabled_metaboxes_page_[$role]) ) ? ' checked="checked"' : '';
|
32 |
+
}
|
33 |
+
echo '<tr' . $class . '>' . "\n";
|
34 |
+
echo '<td>' . $metaboxes_names_page[$index] . ' <span style="color:#ccc; font-weight: 400;">(' . $metabox . ')</span> </td>' . "\n";
|
35 |
+
foreach ($user_roles as $role) {
|
36 |
+
echo '<td class="num"><input id="check_page'. $role.$x .'" type="checkbox"' . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_metaboxes_page_'. $role .'_items[]" value="' . $metabox . '" /></td>' . "\n";
|
37 |
+
}
|
38 |
+
echo '</tr>' . "\n";
|
39 |
+
$x++;
|
40 |
+
}
|
41 |
+
}
|
42 |
+
?>
|
43 |
+
</tbody>
|
44 |
+
</table>
|
45 |
+
|
46 |
+
<?php
|
47 |
+
//ypur own page options
|
48 |
+
?>
|
49 |
+
<br style="margin-top: 10px;" />
|
50 |
+
<table summary="config_own_page" class="widefat">
|
51 |
+
<thead>
|
52 |
+
<tr>
|
53 |
+
<th><?php _e('Your own page options', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br />'; _e('ID or class', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
54 |
+
<th><?php echo '<br />'; _e('Option', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
55 |
+
</tr>
|
56 |
+
</thead>
|
57 |
+
|
58 |
+
<tbody>
|
59 |
+
<tr valign="top">
|
60 |
+
<td colspan="2"><?php _e('It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
61 |
+
</tr>
|
62 |
+
<tr valign="top">
|
63 |
+
<td>
|
64 |
+
<textarea name="_mw_adminimize_own_page_options" cols="60" rows="3" id="_mw_adminimize_own_page_options" style="width: 95%;" ><?php echo _mw_adminimize_getOptionValue('_mw_adminimize_own_page_options'); ?></textarea>
|
65 |
+
<br />
|
66 |
+
<?php _e('Possible nomination for ID or class. Separate multiple nominations through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
67 |
+
</td>
|
68 |
+
<td>
|
69 |
+
<textarea class="code" name="_mw_adminimize_own_page_values" cols="60" rows="3" id="_mw_adminimize_own_page_values" style="width: 95%;" ><?php echo _mw_adminimize_getOptionValue('_mw_adminimize_own_page_values'); ?></textarea>
|
70 |
+
<br />
|
71 |
+
<?php _e('Possible IDs or classes. Separate multiple values through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
72 |
+
</td>
|
73 |
+
</tr>
|
74 |
+
</tbody>
|
75 |
+
</table>
|
76 |
+
|
77 |
+
<p id="submitbutton">
|
78 |
+
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
|
79 |
+
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
|
80 |
+
</p>
|
81 |
+
<p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
|
82 |
+
|
83 |
+
</div>
|
84 |
+
</div>
|
85 |
+
</div>
|
inc-options/write_post_options.php
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// options for write post
|
3 |
+
?>
|
4 |
+
|
5 |
+
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
6 |
+
<div class="postbox">
|
7 |
+
<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
|
8 |
+
<h3 class="hndle" id="config_edit_post"><?php _e('Write options - Post', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3>
|
9 |
+
<div class="inside">
|
10 |
+
<br class="clear" />
|
11 |
+
|
12 |
+
<table summary="config_edit_post" class="widefat">
|
13 |
+
<thead>
|
14 |
+
<tr>
|
15 |
+
<th><?php _e('Write options - Post', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
16 |
+
<?php
|
17 |
+
foreach ($user_roles_names as $role_name) { ?>
|
18 |
+
<th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br/>' . $role_name; ?></th>
|
19 |
+
<?php } ?>
|
20 |
+
</tr>
|
21 |
+
</thead>
|
22 |
+
|
23 |
+
<tbody>
|
24 |
+
<?php
|
25 |
+
$x = 0;
|
26 |
+
$class = '';
|
27 |
+
foreach ($metaboxes as $index => $metabox) {
|
28 |
+
if ($metabox != '') {
|
29 |
+
$class = ( ' class="alternate"' == $class ) ? '' : ' class="alternate"';
|
30 |
+
$checked_user_role_ = array();
|
31 |
+
foreach ($user_roles as $role) {
|
32 |
+
$checked_user_role_[$role] = ( isset($disabled_metaboxes_post_[$role]) && in_array($metabox, $disabled_metaboxes_post_[$role]) ) ? ' checked="checked"' : '';
|
33 |
+
}
|
34 |
+
echo '<tr' . $class . '>' . "\n";
|
35 |
+
echo '<td>' . $metaboxes_names[$index] . ' <span style="color:#ccc; font-weight: 400;">(' . $metabox . ')</span> </td>' . "\n";
|
36 |
+
foreach ($user_roles as $role) {
|
37 |
+
echo '<td class="num"><input id="check_post'. $role.$x .'" type="checkbox"' . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_metaboxes_post_'. $role .'_items[]" value="' . $metabox . '" /></td>' . "\n";
|
38 |
+
}
|
39 |
+
echo '</tr>' . "\n";
|
40 |
+
$x++;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
?>
|
44 |
+
</tbody>
|
45 |
+
</table>
|
46 |
+
|
47 |
+
<?php
|
48 |
+
//your own post options
|
49 |
+
?>
|
50 |
+
<br style="margin-top: 10px;" />
|
51 |
+
<table summary="config_own_post" class="widefat">
|
52 |
+
<thead>
|
53 |
+
<tr>
|
54 |
+
<th><?php _e('Your own post options', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br />'; _e('ID or class', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
55 |
+
<th><?php echo '<br />'; _e('Option', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
|
56 |
+
</tr>
|
57 |
+
</thead>
|
58 |
+
|
59 |
+
<tbody>
|
60 |
+
<tr valign="top">
|
61 |
+
<td colspan="2"><?php _e('It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
|
62 |
+
</tr>
|
63 |
+
<tr valign="top">
|
64 |
+
<td>
|
65 |
+
<textarea name="_mw_adminimize_own_post_options" cols="60" rows="3" id="_mw_adminimize_own_post_options" style="width: 95%;" ><?php echo _mw_adminimize_getOptionValue('_mw_adminimize_own_post_options'); ?></textarea>
|
66 |
+
<br />
|
67 |
+
<?php _e('Possible nomination for ID or class. Separate multiple nominations through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
68 |
+
</td>
|
69 |
+
<td>
|
70 |
+
<textarea class="code" name="_mw_adminimize_own_post_values" cols="60" rows="3" id="_mw_adminimize_own_post_values" style="width: 95%;" ><?php echo _mw_adminimize_getOptionValue('_mw_adminimize_own_post_values'); ?></textarea>
|
71 |
+
<br />
|
72 |
+
<?php _e('Possible IDs or classes. Separate multiple values through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
|
73 |
+
</td>
|
74 |
+
</tr>
|
75 |
+
</tbody>
|
76 |
+
</table>
|
77 |
+
|
78 |
+
<p id="submitbutton">
|
79 |
+
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
|
80 |
+
<input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
|
81 |
+
</p>
|
82 |
+
<p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
|
83 |
+
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
</div>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bueltge.de/wunschliste/
|
|
4 |
Tags: color, scheme, theme, admin, dashboard, color scheme, plugin, interface, ui, metabox, hide, editor, minimal, menu, customization, interface, administration, lite, light, usability, lightweight, layout, zen
|
5 |
Requires at least: 2.5
|
6 |
Tested up to: 3.1
|
7 |
-
Stable tag: 1.7.
|
8 |
|
9 |
Adminimize is a WordPress plugin that lets you hide 'unnecessary' items from the WordPress backend and many many more ...
|
10 |
|
@@ -98,6 +98,11 @@ See on [the official website](http://bueltge.de/wordpress-admin-theme-adminimize
|
|
98 |
1. Adminimize Theme how in WordPress 2.3
|
99 |
|
100 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
101 |
= v1.7.13 (03/02/2011) =
|
102 |
* Maintenance: different changes on code
|
103 |
* Maintenance: usable in WP 3.1
|
4 |
Tags: color, scheme, theme, admin, dashboard, color scheme, plugin, interface, ui, metabox, hide, editor, minimal, menu, customization, interface, administration, lite, light, usability, lightweight, layout, zen
|
5 |
Requires at least: 2.5
|
6 |
Tested up to: 3.1
|
7 |
+
Stable tag: 1.7.14
|
8 |
|
9 |
Adminimize is a WordPress plugin that lets you hide 'unnecessary' items from the WordPress backend and many many more ...
|
10 |
|
98 |
1. Adminimize Theme how in WordPress 2.3
|
99 |
|
100 |
== Changelog ==
|
101 |
+
= v1.7.14 (03/03/2011) =
|
102 |
+
* Maintenance: remove php notice on role editor
|
103 |
+
* Maintenance: Add fallback for dont load menu/submenu
|
104 |
+
* Maintenance: Exclude all options in different files
|
105 |
+
|
106 |
= v1.7.13 (03/02/2011) =
|
107 |
* Maintenance: different changes on code
|
108 |
* Maintenance: usable in WP 3.1
|