PluginProbe
Adminimize / 1.11.11
Adminimize v1.11.11
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 / minimenu.php

minimenu.php in Adminimize 1.11.11, at inc-options/minimenu.php

230 lines 7.5 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 Menu on settings page
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 $screen = get_current_screen();
13 $message = '';
14 if ( _mw_adminimize_is_active_on_multisite() ) {
15 $message = esc_attr__( 'Network' );
16 }
17 ?>
18
19 <h2><?php esc_attr_e( 'Adminimize', 'adminimize' );
20 echo ' ' . $message; ?></h2>
21 <br class="clear" />
22 <div id="poststuff" class="ui-sortable meta-box-sortables"><!-- The ID should be unique. Right now, all the option panels are sharing the $poststuff ID-->
23 <div id="minimenu" class="postbox ">
24 <h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="menu"><?php esc_attr_e( 'MiniMenu', 'adminimize' ) ?></h3>
25
26 <div class="inside">
27 <table class="widefat" cellspacing="0">
28 <?php
29 /**
30 * Before first row minimenu
31 *
32 * Add the possibility to add element before first row of the minimenu.
33 *
34 * @since 1.11.6
35 */
36 do_action( 'mw_adminimize_minimenu_before_first_tr' );
37 ?>
38 <tr>
39 <td class="row-title"><a href="#about"><?php esc_attr_e(
40 'About the plugin', 'adminimize'
41 ); ?></a></td>
42 </tr>
43
44 <tr>
45 <td class="row-title"><a href="#self-settings"><?php esc_attr_e(
46 'Plugin Settings', 'adminimize'
47 ); ?></a></td>
48 </tr>
49
50 <tr>
51 <td class="row-title"><a href="#admin_bar_options"><?php esc_attr_e(
52 'Admin Bar Back end Options', 'adminimize'
53 ); ?></a></td>
54 </tr>
55
56 <tr>
57 <td class="row-title"><a href="#admin_bar_frontend_options"><?php esc_attr_e(
58 'Admin Bar Front end Options', 'adminimize'
59 ); ?></a></td>
60 </tr>
61
62 <tr>
63 <td class="row-title"><a href="#backend_options"><?php esc_attr_e(
64 'Backend Options', 'adminimize'
65 ); ?></a></td>
66 </tr>
67 <tr>
68 <td class="row-title"><a href="#global_options"><?php esc_attr_e(
69 'Global options', 'adminimize'
70 ); ?></a></td>
71 </tr>
72 <tr>
73 <td class="row-title"><a href="#dashboard_options"><?php esc_attr_e(
74 'Dashboard options', 'adminimize'
75 ); ?></a></td>
76 </tr>
77 <tr>
78 <td class="row-title"><a href="#config_menu"><?php esc_attr_e(
79 'Menu Options', 'adminimize'
80 ); ?></a></td>
81 </tr>
82 <tr>
83 <td class="row-title"><a href="#config_edit_post"><?php esc_attr_e(
84 'Write options - Post', 'adminimize'
85 ); ?></a></td>
86 </tr>
87 <tr>
88 <td class="row-title"><a href="#config_edit_page"><?php esc_attr_e(
89 'Write options - Page', 'adminimize'
90 ); ?></a></td>
91 </tr>
92 <?php
93 if ( function_exists( 'get_post_types' ) ) {
94 $args = array( 'public' => TRUE, '_builtin' => FALSE );
95 foreach ( get_post_types( $args ) as $post_type ) {
96 $post_type_object = get_post_type_object( $post_type );
97 ?>
98 <tr>
99 <td class="row-title">
100 <a href="#config_edit_<?php echo $post_type; ?>">
101 <?php esc_attr_e( 'Write options', 'adminimize' );
102 echo ' - ' . $post_type_object->label ?>
103 </a>
104 </td>
105 </tr>
106 <?php
107 }
108 }
109
110 // check for active links, active since WP 3.5
111 if ( 0 !== get_option( 'link_manager_enabled' ) ) {
112 ?>
113 <tr>
114 <td class="row-title"><a href="#links_options"><?php esc_attr_e(
115 'Links options', 'adminimize'
116 ); ?></a></td>
117 </tr>
118 <?php } ?>
119
120 <tr>
121 <td class="row-title"><a href="#widget_options"><?php esc_attr_e(
122 'Widgets', 'adminimize'
123 ); ?></a></td>
124 </tr>
125 <tr>
126 <td class="row-title"><a href="#nav_menu_options"><?php esc_attr_e(
127 'WP Nav Menu', 'adminimize'
128 ); ?></a></td>
129 </tr>
130 <tr>
131 <td class="row-title"><a href="#import"><?php esc_attr_e(
132 'Export/Import Options', 'adminimize'
133 ); ?></a></td>
134 </tr>
135 <tr>
136 <td class="row-title"><a href="#uninstall"><?php esc_attr_e(
137 'Uninstall Options', 'adminimize'
138 ); ?></a></td>
139 </tr>
140 <?php
141 /**
142 * After last row minimenu
143 *
144 * Add the possibility to add element after last row of the minimenu.
145 *
146 * @since 1.11.6
147 */
148 do_action( 'mw_adminimize_minimenu_after_last_tr' );
149 ?>
150 </table>
151 </div>
152 </div>
153 </div>
154
155 <div id="poststuff" class="ui-sortable meta-box-sortables">
156 <div id="about" class="postbox">
157 <h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="about-sidebar"><?php esc_attr_e( 'About the plugin', 'adminimize' ) ?></h3>
158
159 <div class="inside">
160 <p>
161 <?php
162 echo _mw_adminimize_get_plugin_data( 'Title' ) . ', ' .
163 esc_attr__( 'Version', 'adminimize' ) . ' ' . _mw_adminimize_get_plugin_data( 'Version' );
164 ?>
165 </p>
166
167 <p><?php echo _mw_adminimize_get_plugin_data( 'Description' ) ?></p>
168 <ul>
169 <li><?php
170 printf(
171 __(
172 'Further information: Visit the <a href="%1$s">plugin homepage</a> for further information or to grab the latest version of this plugin. Also see the <a href="%2$s">support forum</a> for questions.',
173 'adminimize'
174 ),
175 'http://wordpress.org/extend/plugins/adminimize/',
176 'http://wordpress.org/support/plugin/adminimize'
177 );
178 echo '<br>';
179 printf(
180 __( 'For more hints about the functions and how to\'s with the possibilities of the plugin settings see the <a href="%s">FAQ page</a> on the plugin site.', 'adminimize' ),
181 'https://wordpress.org/plugins/adminimize/faq/'
182 );?></li>
183 <li><?php esc_attr_e( 'Report a issue on the development repository:', 'adminimize' ); ?>
184 <a href="https://github.com/bueltge/Adminimize/issues">issues</a></li>
185 <li><?php esc_attr_e(
186 'The plugin have a github repository to easy add a issue or a create a fork, pull request:',
187 'adminimize'
188 ); ?> <a href="https://github.com/bueltge/Adminimize">github.com/bueltge/Adminimize</a></li>
189 <li>
190 <?php printf(
191 __(
192 'You want to thank me? Visit my <a href="%1$s">wishlist</a> or <a href="%2$s">donate</a>.',
193 'adminimize'
194 ),
195 'http://bueltge.de/wunschliste/',
196 'https://www.paypal.me/FrankBueltge'
197 ); ?>
198 <span>
199 </li>
200 </ul>
201 <div style="padding:.3em 1em;">
202 <p>
203 <span style="font-size: 35px; float: left; margin: -5px 3px 0 0;">&#x261D;</span><strong>
204 <?php esc_attr_e(
205 'Please note: The Adminimize settings page ignores the Menu Options below and displays the menu with all entries.',
206 'adminimize'
207 );
208 echo ' ';
209 esc_attr_e(
210 'To view your changes to the menu you need to navigate away from the Adminimize settings page.',
211 'adminimize'
212 ); ?>
213 </strong></p>
214 <?php if ( _mw_adminimize_is_active_on_multisite() ) { ?>
215 <p><?php esc_attr_e(
216 'You have activated the Plugin for your Multisite Network. By default you will have all active menu items and plugins. The settings are for all network sites, you can set it from any site and it will be set for all network. You should also update the settings on every network site to include every custom items that might exist for each of it.',
217 'adminimize'
218 ); ?></p>
219 <?php } ?>
220 </div>
221 <p>&copy; Copyright 2008 - <?php echo date( 'Y' ); ?> <a href="http://bueltge.de">Frank B&uuml;ltge</a></p>
222
223 <p>
224 <a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e(
225 'scroll to top', 'adminimize'
226 ); ?></a><br class="clear" /></p>
227 </div>
228 </div>
229 </div>
230