PluginProbe
Adminimize / 1.11.3
Adminimize v1.11.3
1.11.14 1.11.13 1.11.1 1.11.10 1.11.11 1.11.12 1.11.2 1.11.3 1.11.4 1.11.5 1.11.6 1.11.7 1.11.8 1.11.9 1.3 1.4.7 1.6 1.7.12 1.7.13 1.7.14 1.7.15 1.7.16 1.7.17 1.7.18 1.7.19 All 53 releases
adminimize / inc-options / backend_options.php

backend_options.php in Adminimize 1.11.3, at inc-options/backend_options.php

261 lines 11.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Adminimize
4 * @subpackage Backend Options
5 * @author Frank Bültge
6 */
7 if ( ! function_exists( 'add_action' ) ) {
8 echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
9 exit;
10 }
11 ?>
12
13 <div id="poststuff" class="ui-sortable meta-box-sortables">
14 <div class="postbox">
15 <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"><br /></div>
16 <h3 class="hndle" id="backend_options"><?php esc_attr_e( 'Backend Options', 'adminimize' ); ?></h3>
17 <div class="inside">
18
19
20 <?php wp_nonce_field( 'mw_adminimize_nonce' ); ?>
21 <br class="clear" />
22 <table summary="config" class="widefat">
23 <tbody>
24 <?php
25 if ( _mw_adminimize_is_active_on_multisite() && function_exists( 'is_super_admin' )
26 ) { ?>
27 <tr valign="top">
28 <td><?php esc_attr_e( 'Exclude Super Admin', 'adminimize' ); ?></td>
29 <td>
30 <?php $_mw_adminimize_exclude_super_admin = _mw_adminimize_get_option_value(
31 '_mw_adminimize_exclude_super_admin'
32 ); ?>
33 <select name="_mw_adminimize_exclude_super_admin">
34 <option value="0"<?php if ( $_mw_adminimize_exclude_super_admin === 0 ) {
35 echo ' selected="selected"';
36 } ?>><?php esc_attr_e( 'Default', 'adminimize' ); ?></option>
37 <option value="1"<?php if ( $_mw_adminimize_exclude_super_admin === 1 ) {
38 echo ' selected="selected"';
39 } ?>><?php esc_attr_e( 'Activate', 'adminimize' ); ?></option>
40 </select> <?php esc_attr_e(
41 'Exclude the Super Admin on a WP Multisite Install from all limitations of this plugin.',
42 'adminimize'
43 ); ?>
44 </td>
45 </tr>
46 <?php } ?>
47 <tr valign="top">
48 <td><?php esc_attr_e( 'User-Info', 'adminimize' ); ?></td>
49 <td>
50 <?php $_mw_adminimize_user_info = _mw_adminimize_get_option_value(
51 '_mw_adminimize_user_info'
52 ); ?>
53 <select name="_mw_adminimize_user_info">
54 <option value="0"<?php if ( $_mw_adminimize_user_info === 0 ) {
55 echo ' selected="selected"';
56 } ?>><?php esc_attr_e( 'Default', 'adminimize' ); ?></option>
57 <option value="1"<?php if ( $_mw_adminimize_user_info === 1 ) {
58 echo ' selected="selected"';
59 } ?>><?php esc_attr_e( 'Hide', 'adminimize' ); ?></option>
60 <option value="2"<?php if ( $_mw_adminimize_user_info === 2 ) {
61 echo ' selected="selected"';
62 } ?>><?php esc_attr_e( 'Only logout', 'adminimize' ); ?></option>
63 <option value="3"<?php if ( $_mw_adminimize_user_info === 3 ) {
64 echo ' selected="selected"';
65 } ?>><?php esc_attr_e( 'User &amp; Logout', 'adminimize' ); ?></option>
66 </select> <?php esc_attr_e(
67 'The &quot;User-Info-area&quot; is on the top right side of the backend. You can hide or reduced show.',
68 'adminimize'
69 ); ?>
70 </td>
71 </tr>
72 <?php if ( ( $_mw_adminimize_user_info === '' ) || ( $_mw_adminimize_user_info === 1 ) || ( $_mw_adminimize_user_info === 0 ) ) {
73 $disabled_item = ' disabled="disabled"';
74 } ?>
75 <tr valign="top">
76 <td><label for="_mw_adminimize_ui_redirect"><?php esc_attr_e( 'Change User-Info, redirect to', 'adminimize' ); ?></td>
77 <td>
78 <?php $_mw_adminimize_ui_redirect = (int) _mw_adminimize_get_option_value(
79 '_mw_adminimize_ui_redirect'
80 ); ?>
81 <select name="_mw_adminimize_ui_redirect" id="_mw_adminimize_ui_redirect"
82 <?php if ( isset( $disabled_item ) ) { echo $disabled_item; } ?>>
83 <option value="0"<?php if ( $_mw_adminimize_ui_redirect === 0 ) {
84 echo ' selected="selected"';} ?>>
85 <?php esc_attr_e( 'Default', 'adminimize' ); ?>
86 </option>
87 <option value="1"<?php if ( $_mw_adminimize_ui_redirect === 1 ) {
88 echo ' selected="selected"';} ?>>
89 <?php esc_attr_e( 'Frontpage of the Blog', 'adminimize' ); ?>
90 </option>
91 </select> <?php esc_attr_e(
92 'When the &quot;User-Info-area&quot; change it, then it is possible to change the redirect.',
93 'adminimize'
94 ); ?>
95 </td>
96 </tr>
97 <tr valign="top">
98 <td><label for="_mw_adminimize_footer"><?php esc_attr_e( 'Footer', 'adminimize' ); ?></label></td>
99 <td>
100 <?php $_mw_adminimize_footer = (int) _mw_adminimize_get_option_value( '_mw_adminimize_footer' ); ?>
101 <select name="_mw_adminimize_footer" id="_mw_adminimize_footer">
102 <option value="0"<?php if ( 0 === $_mw_adminimize_footer ) {
103 echo ' selected="selected"'; } ?>>
104 <?php esc_attr_e( 'Default', 'adminimize' ); ?>
105 </option>
106 <option value="1"<?php if ( 1 === $_mw_adminimize_footer ) {
107 echo ' selected="selected"';} ?>>
108 <?php esc_attr_e( 'Hide', 'adminimize' ); ?>
109 </option>
110 </select> <?php esc_attr_e(
111 'The Footer-area can hide, include all links and details.', 'adminimize'
112 ); ?>
113 </td>
114 </tr>
115 <tr valign="top">
116 <td><?php esc_attr_e( 'Timestamp', 'adminimize' ); ?></td>
117 <td>
118 <?php $_mw_adminimize_timestamp = (int) _mw_adminimize_get_option_value(
119 '_mw_adminimize_timestamp'
120 ); ?>
121 <select name="_mw_adminimize_timestamp">
122 <option value="0"<?php if ( $_mw_adminimize_timestamp === 0 ) {
123 echo ' selected="selected"';
124 } ?>><?php esc_attr_e( 'Default', 'adminimize' ); ?></option>
125 <option value="1"<?php if ( $_mw_adminimize_timestamp === 1 ) {
126 echo ' selected="selected"';
127 } ?>><?php esc_attr_e( 'Activate', 'adminimize' ); ?></option>
128 </select> <?php esc_attr_e(
129 'Opens the post timestamp editing fields without you having to click the "Edit" link every time.',
130 'adminimize'
131 ); ?>
132 </td>
133 </tr>
134 <tr valign="top">
135 <td><?php esc_attr_e( 'Category Height', 'adminimize' ); ?></td>
136 <td>
137 <?php $_mw_adminimize_cat_full = (int) _mw_adminimize_get_option_value(
138 '_mw_adminimize_cat_full'
139 ); ?>
140 <select name="_mw_adminimize_cat_full">
141 <option value="0"<?php if ( $_mw_adminimize_cat_full === 0 ) {
142 echo ' selected="selected"';
143 } ?>><?php esc_attr_e( 'Default', 'adminimize' ); ?></option>
144 <option value="1"<?php if ( $_mw_adminimize_cat_full === 1 ) {
145 echo ' selected="selected"';
146 } ?>><?php esc_attr_e( 'Activate', 'adminimize' ); ?></option>
147 </select> <?php esc_attr_e(
148 'View the Meta Box with Categories in the full height, no scrollbar or whitespace.',
149 'adminimize'
150 ); ?>
151 </td>
152 </tr>
153 <tr valign="top">
154 <td><?php esc_attr_e( 'Advice in Footer', 'adminimize' ); ?></td>
155 <td>
156 <?php $_mw_adminimize_advice = (int) _mw_adminimize_get_option_value( '_mw_adminimize_advice' ); ?>
157 <select name="_mw_adminimize_advice">
158 <option value="0"<?php if ( $_mw_adminimize_advice === 0 ) {
159 echo ' selected="selected"';
160 } ?>><?php esc_attr_e( 'Default', 'adminimize' ); ?></option>
161 <option value="1"<?php if ( $_mw_adminimize_advice === 1 ) {
162 echo ' selected="selected"';
163 } ?>><?php esc_attr_e( 'Activate', 'adminimize' ); ?></option>
164 </select>
165 <br>
166 <textarea style="width: 85%;" class="code" rows="1" cols="60" name="_mw_adminimize_advice_txt" id="_mw_adminimize_advice_txt"><?php echo _mw_adminimize_get_option_value( '_mw_adminimize_advice_txt' ); ?></textarea>
167 <br /><?php esc_attr_e(
168 'In the Footer you can display an advice for changing the Default-design, (x)HTML is possible.',
169 'adminimize'
170 ); ?>
171 <code>a - (href, title), br, em, strong</code>
172 </td>
173 </tr>
174 <?php
175 // when remove dashboard
176 foreach ( $user_roles as $role ) {
177 $disabled_menu_[ $role ] = _mw_adminimize_get_option_value(
178 'mw_adminimize_disabled_menu_' . $role . '_items'
179 );
180 $disabled_submenu_[ $role ] = _mw_adminimize_get_option_value(
181 'mw_adminimize_disabled_submenu_' . $role . '_items'
182 );
183 }
184
185 $disabled_menu_all = array();
186 foreach ( $user_roles as $role ) {
187 $disabled_menu_all[] = $disabled_menu_[ $role ];
188 $disabled_menu_all[] = $disabled_submenu_[ $role ];
189 }
190
191 if ( '' !== $disabled_menu_all ) {
192 if ( ! _mw_adminimize_recursive_in_array( 'index.php', $disabled_menu_all ) ) {
193 $disabled_item2 = ' disabled="disabled"';
194 }
195 ?>
196 <tr valign="top">
197 <td><?php esc_attr_e( 'Dashboard deactivate, redirect to', 'adminimize' ); ?></td>
198 <td>
199 <?php $_mw_adminimize_db_redirect = _mw_adminimize_get_option_value(
200 '_mw_adminimize_db_redirect'
201 ); ?>
202 <select name="_mw_adminimize_db_redirect"<?php if ( isset( $disabled_item2 ) ) {
203 echo $disabled_item2;
204 } ?>>
205 <option value="0"<?php if ( $_mw_adminimize_db_redirect === 0 ) {
206 echo ' selected="selected"';
207 } ?>><?php esc_attr_e( 'Default', 'adminimize' ); ?> (profile.php)
208 </option>
209 <option value="1"<?php if ( $_mw_adminimize_db_redirect === 1 ) {
210 echo ' selected="selected"';
211 } ?>><?php esc_attr_e( 'Manage Posts', 'adminimize' ); ?> (edit.php)
212 </option>
213 <option value="2"<?php if ( $_mw_adminimize_db_redirect === 2 ) {
214 echo ' selected="selected"';
215 } ?>><?php esc_attr_e( 'Manage Pages', 'adminimize' ); ?> (edit-pages.php)
216 </option>
217 <option value="3"<?php if ( $_mw_adminimize_db_redirect === 3 ) {
218 echo ' selected="selected"';
219 } ?>><?php esc_attr_e( 'Write Post', 'adminimize' ); ?> (post-new.php)
220 </option>
221 <option value="4"<?php if ( $_mw_adminimize_db_redirect === 4 ) {
222 echo ' selected="selected"';
223 } ?>><?php esc_attr_e( 'Write Page', 'adminimize' ); ?> (page-new.php)
224 </option>
225 <option value="5"<?php if ( $_mw_adminimize_db_redirect === 5 ) {
226 echo ' selected="selected"';
227 } ?>><?php esc_attr_e( 'Comments', 'adminimize' ); ?> (edit-comments.php)
228 </option>
229 <option value="6"<?php if ( $_mw_adminimize_db_redirect === 6 ) {
230 echo ' selected="selected"';
231 } ?>><?php esc_attr_e( 'Other Page', 'adminimize' ); ?></option>
232 </select>
233 <br>
234 <textarea style="width: 85%;" class="code" rows="1" cols="60" name="_mw_adminimize_db_redirect_txt" id="_mw_adminimize_db_redirect_txt"><?php
235 echo htmlspecialchars(
236 stripslashes( _mw_adminimize_get_option_value( '_mw_adminimize_db_redirect_txt' ) )
237 ); ?></textarea>
238 <br /><?php esc_attr_e(
239 'You have deactivated the Dashboard, please select a page for redirection or define custom url, include http://?',
240 'adminimize'
241 ); ?>
242 </td>
243 </tr>
244 <?php
245 }
246 ?>
247 </tbody>
248 </table>
249 <p id="submitbutton">
250 <input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php esc_attr_e(
251 'Update Options', 'adminimize'
252 ); ?> &raquo;" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
253 </p>
254 <p>
255 <a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php
256 esc_attr_e( 'scroll to top', 'adminimize' ); ?></a><br class="clear" />
257 </p>
258 </div>
259 </div>
260 </div>
261