PluginProbe
Adminimize / 1.9.1
Adminimize v1.9.1
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.9.1, at inc-options/minimenu.php

209 lines 6.9 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">
23 <div id="minimeu" class="postbox ">
24 <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><br /></div>
25 <h3 class="hndle" id="menu"><?php esc_attr_e( 'MiniMenu', 'adminimize' ) ?></h3>
26
27 <div class="inside">
28 <table class="widefat" cellspacing="0">
29 <tr>
30 <td class="row-title"><a href="#about"><?php esc_attr_e(
31 'About the plugin', 'adminimize'
32 ); ?></a></td>
33 </tr>
34
35 <tr>
36 <td class="row-title"><a href="#admin_bar_options"><?php esc_attr_e(
37 'Admin Bar Back end Options', 'adminimize'
38 ); ?></a></td>
39 </tr>
40
41 <tr>
42 <td class="row-title"><a href="#admin_bar_frontend_options"><?php esc_attr_e(
43 'Admin Bar Front end Options', 'adminimize'
44 ); ?></a></td>
45 </tr>
46
47 <tr>
48 <td class="row-title"><a href="#backend_options"><?php esc_attr_e(
49 'Backend Options', 'adminimize'
50 ); ?></a></td>
51 </tr>
52 <tr>
53 <td class="row-title"><a href="#global_options"><?php esc_attr_e(
54 'Global options', 'adminimize'
55 ); ?></a></td>
56 </tr>
57 <tr>
58 <td class="row-title"><a href="#dashboard_options"><?php esc_attr_e(
59 'Dashboard options', 'adminimize'
60 ); ?></a></td>
61 </tr>
62 <tr>
63 <td class="row-title"><a href="#config_menu"><?php esc_attr_e(
64 'Menu Options', 'adminimize'
65 ); ?></a></td>
66 </tr>
67 <tr>
68 <td class="row-title"><a href="#config_edit_post"><?php esc_attr_e(
69 'Write options - Post', 'adminimize'
70 ); ?></a></td>
71 </tr>
72 <tr>
73 <td class="row-title"><a href="#config_edit_page"><?php esc_attr_e(
74 'Write options - Page', 'adminimize'
75 ); ?></a></td>
76 </tr>
77 <?php
78 if ( function_exists( 'get_post_types' ) ) {
79 $args = array( 'public' => TRUE, '_builtin' => FALSE );
80 foreach ( get_post_types( $args ) as $post_type ) {
81 $post_type_object = get_post_type_object( $post_type );
82 ?>
83 <tr class="form-invalid">
84 <td class="row-title">
85 <a href="#config_edit_<?php echo $post_type; ?>">
86 <?php esc_attr_e( 'Write options', 'adminimize' );
87 echo ' - ' . $post_type_object->label ?>
88 </a>
89 </td>
90 </tr>
91 <?php
92 }
93 }
94
95 // check for active links, active since WP 3.5
96 if ( 0 !== (int) get_option( 'link_manager_enabled' ) ) {
97 ?>
98 <tr>
99 <td class="row-title"><a href="#links_options"><?php esc_attr_e(
100 'Links options', 'adminimize'
101 ); ?></a></td>
102 </tr>
103 <?php } ?>
104
105 <tr>
106 <td class="row-title"><a href="#widget_options"><?php esc_attr_e(
107 'Widgets', 'adminimize'
108 ); ?></a></td>
109 </tr>
110 <tr>
111 <td class="row-title"><a href="#nav_menu_options"><?php esc_attr_e(
112 'WP Nav Menu', 'adminimize'
113 ); ?></a></td>
114 </tr>
115 <tr>
116 <td class="row-title"><a href="#set_theme"><?php esc_attr_e(
117 'Set Theme', 'adminimize'
118 ); ?></a></td>
119 </tr>
120 <tr>
121 <td class="row-title"><a href="#import"><?php esc_attr_e(
122 'Export/Import Options', 'adminimize'
123 ); ?></a></td>
124 </tr>
125 <tr>
126 <td class="row-title"><a href="#uninstall"><?php esc_attr_e(
127 'Uninstall Options', 'adminimize'
128 ); ?></a></td>
129 </tr>
130 </table>
131 </div>
132 </div>
133 </div>
134
135 <div id="poststuff" class="ui-sortable meta-box-sortables">
136 <div id="about" class="postbox ">
137 <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><br /></div>
138 <h3 class="hndle" id="about-sidebar"><?php esc_attr_e( 'About the plugin', 'adminimize' ) ?></h3>
139
140 <div class="inside">
141 <p>
142 <?php
143 echo _mw_adminimize_get_plugin_data( 'Title' ) . ', ' .
144 esc_attr__( 'Version', 'adminimize' ) . ' ' . _mw_adminimize_get_plugin_data( 'Version' );
145 ?>
146 </p>
147
148 <p><?php echo _mw_adminimize_get_plugin_data( 'Description' ) ?></p>
149 <ul>
150 <li><?php
151 printf(
152 __(
153 '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.',
154 'adminimize'
155 ),
156 'http://wordpress.org/extend/plugins/adminimize/',
157 'http://wordpress.org/support/plugin/adminimize'
158 );
159 printf(
160 __( '<br>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' ),
161 'https://wordpress.org/plugins/adminimize/faq/'
162 );?></li>
163 <li><?php esc_attr_e( 'Report a issue on the development repository:', 'adminimize' ); ?>
164 <a href="https://github.com/bueltge/Adminimize/issues">issues</a></li>
165 <li><?php esc_attr_e(
166 'The plugin have a github repository to easy add a issue or a create a fork, pull request:',
167 'adminimize'
168 ); ?> <a href="https://github.com/bueltge/Adminimize">github.com/bueltge/Adminimize</a></li>
169 <li>
170 <?php printf(
171 __(
172 'You want to thank me? Visit my <a href="%1$s">wishlist</a> or <a href="%2$s">donate</a>.',
173 'adminimize'
174 ),
175 'http://bueltge.de/wunschliste/',
176 'https://www.paypal.me/FrankBueltge'
177 ); ?>
178 <span>
179 </li>
180 </ul>
181 <div class="form-invalid" style="padding:.3em 1em;">
182 <p>
183 <span style="font-size: 35px; float: left; margin: -5px 3px 0 0;">&#x261D;</span>
184 <?php esc_attr_e(
185 'Please note: The Adminimize settings page ignores the Menu Options below and displays the menu with all entries.',
186 'adminimize'
187 );
188 esc_attr_e(
189 'To view your changes to the menu you need to navigate away from the Adminimize settings page.',
190 'adminimize'
191 ); ?>
192 </p>
193 <?php if ( _mw_adminimize_is_active_on_multisite() ) { ?>
194 <p><?php esc_attr_e(
195 'You have to activated the Plugin for your Multisite Network. Your settings works now on all blogs in the network. Please set the settings only in one blog, there you have all active menu items and plugins. If you update the settings then write the plugin new settings in dependence of the blog where you put, save the settings.',
196 'adminimize'
197 ); ?></p>
198 <?php } ?>
199 </div>
200 <p>&copy; Copyright 2008 - <?php echo date( 'Y' ); ?> <a href="http://bueltge.de">Frank B&uuml;ltge</a></p>
201
202 <p>
203 <a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php esc_attr_e(
204 'scroll to top', 'adminimize'
205 ); ?></a><br class="clear" /></p>
206 </div>
207 </div>
208 </div>
209