Ozh' Admin Drop Down Menu - Version 3.6.1

Version Description

Download this release

Release Info

Developer ozh
Plugin Icon 128x128 Ozh' Admin Drop Down Menu
Version 3.6.1
Comparing to
See all releases

Code changes from version 3.5.4 to 3.6.1

inc/adminmenu.css.php CHANGED
@@ -17,28 +17,28 @@ function wp_ozh_adminmenu_color($col) {
17
  return '#'.str_replace('#', '', urldecode($col)); // Make sure there's always a # prefixing color code
18
  }
19
 
 
 
 
 
20
  // Get vars & needed links, make them relative to be sure no one will be leeching icons or anything from somewhere else
21
- $plugin = make_link_relative( $_GET['p'] );
22
- $admin = make_link_relative( $_GET['a'] );
23
- $icons = ($_GET['i'] == 1) ? true : false ;
24
- $wpicons = ($_GET['w'] == 1) ? true : false ;
25
- $compact = ($_GET['c'] == 1) ? true : false ;
26
- $minimode = ($_GET['m'] == 1) ? true : false ;
27
- $hidebubble = ($_GET['h'] == 1) ? true : false ;
28
- $display_fav = ($_GET['f'] == 1) ? true : false ;
29
- $nograd = ($_GET['n'] == 1) ? true : false ;
30
- $dir = ($_GET['d'] == 'right') ? 'right' : 'left' ; // text direction
31
- $opdir = ($_GET['d'] == 'right') ? 'left' : 'right' ; // OPposite DIRection
32
- $grad = ($_GET['g']) ? wp_ozh_adminmenu_color($_GET['g']) : '#676768' ;
33
 
34
  header('Content-type:text/css');
35
 
36
  ?>
37
 
38
- /*
39
- <?php var_dump( $admin ); ?>
40
- */
41
-
42
  /* Style for Ozh's Admin Drop Down Menu */
43
  /* Restyle or hide original items */
44
  #adminmenu {display:none;}
@@ -52,6 +52,30 @@ header('Content-type:text/css');
52
  #screen-meta {
53
  display:none; /* hidden in case we have no JS to move it */
54
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  /* Styles for our new menu */
56
  #ozhmenu_wrap {
57
  z-index:43000;
@@ -72,7 +96,7 @@ header('Content-type:text/css');
72
  width:100%; /* width required for -wtf?- dropping li elements to be 100% wide in their containing ul */
73
  overflow:hidden;
74
  z-index:1000;
75
- background:<?php echo $grad; ?> <?php if (!$nograd) { ?>url(<?php echo $plugin; ?>/images/grad-trans.png) repeat-x <?php echo $dir; ?> top<?php } ?>;
76
  }
77
  #ozhmenu li { /* all list items */
78
  display:inline;
@@ -100,7 +124,7 @@ header('Content-type:text/css');
100
  -moz-border-radius: 11px;
101
  -webkit-border-radius: 11px;
102
  color: #ffe;
103
- background: <?php echo $grad; ?> <?php if (!$nograd) { ?>url(<?php echo $plugin; ?>/images/grad-trans.png) repeat-x <?php echo $dir; ?> -5px<?php } ?>;
104
  }
105
 
106
  #ozhmenu li:hover {
@@ -162,7 +186,7 @@ header('Content-type:text/css');
162
  position: absolute;
163
  margin-<?php echo $dir; ?>: 0.1em;
164
  font-size: 0.8em;
165
- background-image: url(<?php echo $plugin; ?>/images/comment-stalk-<?php echo ($dir == 'left' ? 'fresh' : 'rtl'); ?>.gif);
166
  background-repeat: no-repeat;
167
  background-position: <?php echo ($dir == 'left' ? '-243' : '-67'); ?>px bottom;
168
  height: 1.7em;
@@ -225,32 +249,32 @@ header('Content-type:text/css');
225
  #ozhmenu li.ozhmenu_toplevel ul li.toplevel_label span.update-plugins,
226
  #ozhmenu li.ozhmenu_toplevel ul li.toplevel_label span.pending-count {display:none;}
227
 
228
- #oam_menu-site div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -363px -35px no-repeat;}
229
- #oam_menu-site:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -363px -3px no-repeat;}
230
- #oam_menu-dashboard div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -61px -35px no-repeat;}
231
- #oam_menu-dashboard:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -61px -3px no-repeat;}
232
- #oam_menu-posts div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -272px -35px no-repeat;}
233
- #oam_menu-posts:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -272px -3px no-repeat;}
234
- #oam_menu-media div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -121px -35px no-repeat;}
235
- #oam_menu-media:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -121px -3px no-repeat;}
236
- #oam_menu-links div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -91px -35px no-repeat;}
237
- #oam_menu-links:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -91px -3px no-repeat;}
238
- #oam_menu-pages div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -151px -35px no-repeat;}
239
- #oam_menu-pages:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -151px -3px no-repeat;}
240
- #oam_menu-comments div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -31px -35px no-repeat;}
241
- #oam_menu-comments:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -31px -3px no-repeat;}
242
- #oam_menu-appearance div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -1px -35px no-repeat;}
243
- #oam_menu-appearance:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -1px -3px no-repeat;}
244
- #oam_menu-plugins div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -181px -35px no-repeat;}
245
- #oam_menu-plugins:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -181px -3px no-repeat;}
246
- #oam_menu-users div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -301px -35px no-repeat;}
247
- #oam_menu-users:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -301px -3px no-repeat;}
248
- #oam_menu-tools div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -211px -35px no-repeat;}
249
- #oam_menu-tools:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -211px -3px no-repeat;}
250
- #oam_menu-update div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -211px -35px no-repeat;}
251
- #oam_menu-update:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -211px -3px no-repeat;}
252
- #oam_menu-settings div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -241px -35px no-repeat;}
253
- #oam_menu-settings:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>/images/menu.png) -241px -3px no-repeat;}
254
  #ozhmenu img.wp-menu-image {float:<?php echo $dir; ?>;opacity:0.6;padding:5px 1px 0;filter:alpha(opacity=60);}
255
  #ozhmenu .ozhmenu_toplevel:hover img.wp-menu-image {opacity:1;filter:alpha(opacity=100);}
256
 
@@ -301,9 +325,9 @@ span.count-0 {display:none;}
301
  background-position:<?php echo ($dir == 'left' ? '3px' : '97%'); ?> center;
302
  }
303
  .oam_plugin a {
304
- background-image:url(<?php echo $plugin; ?>/images/cog.png);
305
  }
306
- #ozhmumenu .ozhmenu_sublevel a {background-image:url(<?php echo $plugin; ?>/images/world_link.png);}
307
  <?php
308
  foreach($wp_ozh_adminmenu['icon_names'] as $link=>$icon) {
309
  $link = wp_ozh_adminmenu_sanitize_id($link);
17
  return '#'.str_replace('#', '', urldecode($col)); // Make sure there's always a # prefixing color code
18
  }
19
 
20
+ function wp_ozh_adminmenu_true_if_set( $param ) {
21
+ return ( ( isset( $_GET[ $param ] ) && $_GET[ $param ] == 1 ) ? true : false );
22
+ }
23
+
24
  // Get vars & needed links, make them relative to be sure no one will be leeching icons or anything from somewhere else
25
+ $plugin = isset( $_GET['p'] ) ? make_link_relative( $_GET['p'] ) : '';
26
+ $admin = isset( $_GET['a'] ) ? make_link_relative( $_GET['a'] ) : '';
27
+ $icons = wp_ozh_adminmenu_true_if_set( 'i' );
28
+ $wpicons = wp_ozh_adminmenu_true_if_set( 'w' );
29
+ $compact = wp_ozh_adminmenu_true_if_set( 'c' );
30
+ $minimode = wp_ozh_adminmenu_true_if_set( 'm' );
31
+ $hidebubble = wp_ozh_adminmenu_true_if_set( 'h' );
32
+ $display_fav = wp_ozh_adminmenu_true_if_set( 'f' );
33
+ $nograd = wp_ozh_adminmenu_true_if_set( 'n' );
34
+ $dir = ( isset( $_GET['d'] ) && $_GET['d'] == 'right' ) ? 'right' : 'left' ; // text direction
35
+ $opdir = ( isset( $_GET['r'] ) && $_GET['r'] == 'right' ) ? 'left' : 'right' ; // OPposite DIRection
36
+ $grad = ( isset( $_GET['g'] ) ) ? wp_ozh_adminmenu_color($_GET['g']) : '#676768' ;
37
 
38
  header('Content-type:text/css');
39
 
40
  ?>
41
 
 
 
 
 
42
  /* Style for Ozh's Admin Drop Down Menu */
43
  /* Restyle or hide original items */
44
  #adminmenu {display:none;}
52
  #screen-meta {
53
  display:none; /* hidden in case we have no JS to move it */
54
  }
55
+ /* added for WP 3.2 */
56
+ #adminmenuback, #adminmenuwrap, #adminmenu,
57
+ .folded #adminmenu .wp-submenu.sub-open, .folded #adminmenu .wp-submenu-wrap,
58
+ .folded #adminmenuback, .folded #adminmenuwrap, .folded #adminmenu, .folded #adminmenu li.menu-top,
59
+ .js.folded #adminmenuback, .js.folded #adminmenuwrap, .js.folded #adminmenu, .js.folded #adminmenu li.menu-top {
60
+ width: 0;
61
+ }
62
+ #wpcontent, #footer, .folded #wpcontent, .folded #footer, .js.folded #wpcontent, .js.folded #footer {
63
+ margin-left: 0px;
64
+ margin-right:0px;
65
+ }
66
+ #wphead {
67
+ background:#D1E5EE;
68
+ margin-right:0px;
69
+ margin-left:0px;
70
+ padding-right:15px;
71
+ padding-left:18px;
72
+ }
73
+ #footer-left, #footer-ozh-oam {
74
+ padding-left:15px;
75
+ }
76
+ #footer-upgrade {
77
+ padding-right:15px;
78
+ }
79
  /* Styles for our new menu */
80
  #ozhmenu_wrap {
81
  z-index:43000;
96
  width:100%; /* width required for -wtf?- dropping li elements to be 100% wide in their containing ul */
97
  overflow:hidden;
98
  z-index:1000;
99
+ background:<?php echo $grad; ?> <?php if (!$nograd) { ?>url(<?php echo $plugin; ?>images/grad-trans.png) repeat-x <?php echo $dir; ?> top<?php } ?>;
100
  }
101
  #ozhmenu li { /* all list items */
102
  display:inline;
124
  -moz-border-radius: 11px;
125
  -webkit-border-radius: 11px;
126
  color: #ffe;
127
+ background: <?php echo $grad; ?> <?php if (!$nograd) { ?>url(<?php echo $plugin; ?>images/grad-trans.png) repeat-x <?php echo $dir; ?> -5px<?php } ?>;
128
  }
129
 
130
  #ozhmenu li:hover {
186
  position: absolute;
187
  margin-<?php echo $dir; ?>: 0.1em;
188
  font-size: 0.8em;
189
+ background-image: url(<?php echo $plugin; ?>images/comment-stalk-<?php echo ($dir == 'left' ? 'fresh' : 'rtl'); ?>.gif);
190
  background-repeat: no-repeat;
191
  background-position: <?php echo ($dir == 'left' ? '-243' : '-67'); ?>px bottom;
192
  height: 1.7em;
249
  #ozhmenu li.ozhmenu_toplevel ul li.toplevel_label span.update-plugins,
250
  #ozhmenu li.ozhmenu_toplevel ul li.toplevel_label span.pending-count {display:none;}
251
 
252
+ #oam_menu-site div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -363px -35px no-repeat;}
253
+ #oam_menu-site:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -363px -3px no-repeat;}
254
+ #oam_menu-dashboard div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -61px -35px no-repeat;}
255
+ #oam_menu-dashboard:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -61px -3px no-repeat;}
256
+ #oam_menu-posts div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -272px -35px no-repeat;}
257
+ #oam_menu-posts:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -272px -3px no-repeat;}
258
+ #oam_menu-media div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -121px -35px no-repeat;}
259
+ #oam_menu-media:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -121px -3px no-repeat;}
260
+ #oam_menu-links div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -91px -35px no-repeat;}
261
+ #oam_menu-links:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -91px -3px no-repeat;}
262
+ #oam_menu-pages div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -151px -35px no-repeat;}
263
+ #oam_menu-pages:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -151px -3px no-repeat;}
264
+ #oam_menu-comments div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -31px -35px no-repeat;}
265
+ #oam_menu-comments:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -31px -3px no-repeat;}
266
+ #oam_menu-appearance div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -1px -35px no-repeat;}
267
+ #oam_menu-appearance:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -1px -3px no-repeat;}
268
+ #oam_menu-plugins div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -181px -35px no-repeat;}
269
+ #oam_menu-plugins:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -181px -3px no-repeat;}
270
+ #oam_menu-users div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -301px -35px no-repeat;}
271
+ #oam_menu-users:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -301px -3px no-repeat;}
272
+ #oam_menu-tools div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -211px -35px no-repeat;}
273
+ #oam_menu-tools:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -211px -3px no-repeat;}
274
+ #oam_menu-update div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -211px -35px no-repeat;}
275
+ #oam_menu-update:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -211px -3px no-repeat;}
276
+ #oam_menu-settings div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -241px -35px no-repeat;}
277
+ #oam_menu-settings:hover div.wp-menu-image {background:transparent url(<?php echo $admin; ?>images/menu.png) -241px -3px no-repeat;}
278
  #ozhmenu img.wp-menu-image {float:<?php echo $dir; ?>;opacity:0.6;padding:5px 1px 0;filter:alpha(opacity=60);}
279
  #ozhmenu .ozhmenu_toplevel:hover img.wp-menu-image {opacity:1;filter:alpha(opacity=100);}
280
 
325
  background-position:<?php echo ($dir == 'left' ? '3px' : '97%'); ?> center;
326
  }
327
  .oam_plugin a {
328
+ background-image:url(<?php echo $plugin; ?>images/cog.png);
329
  }
330
+ #ozhmumenu .ozhmenu_sublevel a {background-image:url(<?php echo $plugin; ?>images/world_link.png);}
331
  <?php
332
  foreach($wp_ozh_adminmenu['icon_names'] as $link=>$icon) {
333
  $link = wp_ozh_adminmenu_sanitize_id($link);
inc/core.php CHANGED
@@ -254,8 +254,8 @@ function wp_ozh_adminmenu_css() {
254
  // query vars
255
  $query = array(
256
  'v' => OZH_MENU_VER,
257
- 'p' => wp_make_link_relative($plugin),
258
- 'a' => wp_make_link_relative( get_admin_url() ),
259
  'i' => $wp_ozh_adminmenu['icons'],
260
  'w' => $wp_ozh_adminmenu['wpicons'],
261
  'm' => $wp_ozh_adminmenu['minimode'],
@@ -282,7 +282,6 @@ function wp_ozh_adminmenu_defaults() {
282
  return array(
283
  'grad' => '#676768',
284
  'nograd' => 0,
285
- 'displayfav' => 1,
286
  'compact' => 0,
287
  'minimode' => 0,
288
  'hidebubble' => 0,
@@ -311,7 +310,8 @@ function wp_ozh_adminmenu_init() {
311
  unset($wp_ozh_adminmenu[0]);
312
  }
313
 
314
- $wp_ozh_adminmenu = array_merge($defaults, $wp_ozh_adminmenu);
 
315
 
316
  // Cannot have wpicons == 0 && compact == 1
317
  if ($wp_ozh_adminmenu['compact'] == 1)
@@ -385,7 +385,7 @@ function wp_ozh_adminmenu_load_text_domain() {
385
 
386
  function wp_ozh_adminmenu_footer() {
387
  echo <<<HTML
388
- Thank you for using <a href="http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/">Admin Drop Down Menu</a>, a wonderful plugin by <a href="http://planetozh.com/blog/">Ozh</a><br/>
389
  HTML;
390
  }
391
 
254
  // query vars
255
  $query = array(
256
  'v' => OZH_MENU_VER,
257
+ 'p' => wp_make_link_relative( $plugin ),
258
+ 'a' => wp_make_link_relative( trailingslashit( get_admin_url() ) ),
259
  'i' => $wp_ozh_adminmenu['icons'],
260
  'w' => $wp_ozh_adminmenu['wpicons'],
261
  'm' => $wp_ozh_adminmenu['minimode'],
282
  return array(
283
  'grad' => '#676768',
284
  'nograd' => 0,
 
285
  'compact' => 0,
286
  'minimode' => 0,
287
  'hidebubble' => 0,
310
  unset($wp_ozh_adminmenu[0]);
311
  }
312
 
313
+ // Allow plugins to modify the config
314
+ $wp_ozh_adminmenu = apply_filters( 'ozh_adminmenu_init_config', array_merge( $defaults, $wp_ozh_adminmenu ) );
315
 
316
  // Cannot have wpicons == 0 && compact == 1
317
  if ($wp_ozh_adminmenu['compact'] == 1)
385
 
386
  function wp_ozh_adminmenu_footer() {
387
  echo <<<HTML
388
+ <p id="footer-ozh-oam">Thank you for using <a href="http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/">Admin Drop Down Menu</a>, a wonderful plugin by <a href="http://planetozh.com/blog/">Ozh</a></p>
389
  HTML;
390
  }
391
 
inc/options.php CHANGED
@@ -116,11 +116,6 @@ function wp_ozh_adminmenu_options_page() {
116
  <?php echo wp_ozh_adminmenu__("Remove the whole header bar for maximum screen real estate. Note: The quick link to your blog will be added to the menu, the Logout link in the Users sub-menu."); ?>
117
  </td></tr>
118
 
119
- <tr id="oam_fav_row"><th scope="row"><?php echo wp_ozh_adminmenu__('Favorite Actions'); ?></th>
120
- <td><label><?php wp_ozh_adminmenu_checkbox('displayfav'); ?> <?php echo wp_ozh_adminmenu__('Display Favorite Actions'); ?></label><br/>
121
- <?php echo wp_ozh_adminmenu__("Just in case you realize you don't need this anymore with such a fast and usable menu."); ?>
122
- </td></tr>
123
-
124
  <tr><th scope="row"><?php echo wp_ozh_adminmenu__('Break Long Lists'); ?></th>
125
  <td><label><?php printf(wp_ozh_adminmenu__('Break if more than %s menu entries'), "<input type=\"text\" value=\"$too_many_plugins\" size=\"2\" name=\"oam_too_many_plugins\">"); ?></label><br/>
126
  <?php echo wp_ozh_adminmenu__('If a dropdown gets longer than this value, it will switch to horizontal mode so that it will hopefully fit in your screen (requires javascript)'); ?>
116
  <?php echo wp_ozh_adminmenu__("Remove the whole header bar for maximum screen real estate. Note: The quick link to your blog will be added to the menu, the Logout link in the Users sub-menu."); ?>
117
  </td></tr>
118
 
 
 
 
 
 
119
  <tr><th scope="row"><?php echo wp_ozh_adminmenu__('Break Long Lists'); ?></th>
120
  <td><label><?php printf(wp_ozh_adminmenu__('Break if more than %s menu entries'), "<input type=\"text\" value=\"$too_many_plugins\" size=\"2\" name=\"oam_too_many_plugins\">"); ?></label><br/>
121
  <?php echo wp_ozh_adminmenu__('If a dropdown gets longer than this value, it will switch to horizontal mode so that it will hopefully fit in your screen (requires javascript)'); ?>
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === Ozh' Admin Drop Down Menu ===
2
  Donate link: http://planetozh.com/exit/donate
3
  Tags: ozh, menu, menus, dashboard, admin, dropdown, drop down, productivity, css
4
- Requires at least: 3.1
5
  Tested up to: 9.9
6
  Stable tag: trunk
7
  Contributors: ozh
@@ -14,7 +14,7 @@ The lazy and the productive will love it : all admin links available in a neat h
14
 
15
  For documentation, examples, screenshot and a live demo, please refer to the official plugin page for [Admin Drop Down Menu](http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/ "Admin Drop Down Menu"). There is also an API for plugin coders (give your plugin its own special icon!).
16
 
17
- Current version is for WordPress 3.1+ only. For older unsupported versions, see the plugin's page.
18
 
19
  == Screenshots ==
20
 
1
  === Ozh' Admin Drop Down Menu ===
2
  Donate link: http://planetozh.com/exit/donate
3
  Tags: ozh, menu, menus, dashboard, admin, dropdown, drop down, productivity, css
4
+ Requires at least: 3.2
5
  Tested up to: 9.9
6
  Stable tag: trunk
7
  Contributors: ozh
14
 
15
  For documentation, examples, screenshot and a live demo, please refer to the official plugin page for [Admin Drop Down Menu](http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/ "Admin Drop Down Menu"). There is also an API for plugin coders (give your plugin its own special icon!).
16
 
17
+ For older unsupported versions (for older unsupported WordPress installs), see the plugin's page.
18
 
19
  == Screenshots ==
20
 
inc/test.html → test.html RENAMED
@@ -2,8 +2,8 @@
2
  <head>
3
  </head>
4
  <body>
5
- <p>Load this file in your browser (http://yoursite/wp-content/plugins/ozh-admin-drop-down-menu/inc/test.html)</p>
6
  <p>If you see anything but CSS code below, your problem is that your server disables PHP files execution when found in <code>wp-content</code> directory. It's either done by a .htaccess rule you made, a plugin you uploaded, or sever configuration. In case 1 or 2, you're on your own. In case 3, contact your server admin. In any case: this server limitation is totally useless regarding hacks and stuff. Just thought I'd let you know.</p>
7
- <iframe src="adminmenu.css.php" width="100%" height="500" frameborder="0" scrolling="no" style="background:#ddf"/ >
8
  </body>
9
  </html>
2
  <head>
3
  </head>
4
  <body>
5
+ <p>Load this file in your browser (http://yoursite/wp-content/plugins/ozh-admin-drop-down-menu/test.html)</p>
6
  <p>If you see anything but CSS code below, your problem is that your server disables PHP files execution when found in <code>wp-content</code> directory. It's either done by a .htaccess rule you made, a plugin you uploaded, or sever configuration. In case 1 or 2, you're on your own. In case 3, contact your server admin. In any case: this server limitation is totally useless regarding hacks and stuff. Just thought I'd let you know.</p>
7
+ <iframe src="inc/adminmenu.css.php" width="100%" height="500" frameborder="0" scrolling="no" style="background:#ddf"/ >
8
  </body>
9
  </html>
wp_ozh_adminmenu.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ozh' Admin Drop Down Menu
4
  Plugin URI: http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/
5
  Description: All admin links available in a neat horizontal drop down menu. Saves lots of screen real estate! <strong>For WordPress 3.0+</strong>
6
- Version: 3.5.4
7
  Author: Ozh
8
  Author URI: http://ozh.org/
9
  */
@@ -108,10 +108,13 @@ Author URI: http://ozh.org/
108
  * 3.5.2: Added: version constant
109
  * 3.5.3: Removed: a console.debug might be problematic
110
  * 3.5.4: Fixed: deprecated function calls removed
 
 
 
111
  */
112
 
113
 
114
- define( 'OZH_MENU_VER', '3.5.4' );
115
 
116
  /***** Hook things in when visiting an admin page. When viewing a blog page, nothing even loads in memory. ****/
117
  if ( is_admin() ){
@@ -126,12 +129,12 @@ if ( is_admin() ){
126
  add_filter('all_admin_notices', 'wp_ozh_adminmenu', -9999); // Add the new admin menu right after the header area. Make sure we're first.
127
  }
128
 
129
- // Make sure it's WP 3.1+ only
130
  function wp_ozh_adminmenu_check(){
131
  global $wp_version;
132
- if ( version_compare($wp_version, '3.1', '<') ) {
133
  deactivate_plugins( basename(__FILE__) );
134
- wp_die("Sorry, this plugin requires WordPress 3.1 at least");
135
  }
136
  }
137
  register_activation_hook(__FILE__, 'wp_ozh_adminmenu_check');
3
  Plugin Name: Ozh' Admin Drop Down Menu
4
  Plugin URI: http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/
5
  Description: All admin links available in a neat horizontal drop down menu. Saves lots of screen real estate! <strong>For WordPress 3.0+</strong>
6
+ Version: 3.6.1
7
  Author: Ozh
8
  Author URI: http://ozh.org/
9
  */
108
  * 3.5.2: Added: version constant
109
  * 3.5.3: Removed: a console.debug might be problematic
110
  * 3.5.4: Fixed: deprecated function calls removed
111
+ * 3.6: Fixed: Compatibility with WP 3.2
112
+ Fixed: useless double slash in image URLs in .css.php
113
+ * 3.6.1: Added: Filter for global config array
114
  */
115
 
116
 
117
+ define( 'OZH_MENU_VER', '3.6.1' );
118
 
119
  /***** Hook things in when visiting an admin page. When viewing a blog page, nothing even loads in memory. ****/
120
  if ( is_admin() ){
129
  add_filter('all_admin_notices', 'wp_ozh_adminmenu', -9999); // Add the new admin menu right after the header area. Make sure we're first.
130
  }
131
 
132
+ // Make sure it's WP 3.2+ only
133
  function wp_ozh_adminmenu_check(){
134
  global $wp_version;
135
+ if ( version_compare($wp_version, '3.2-beta1', '<') ) {
136
  deactivate_plugins( basename(__FILE__) );
137
+ wp_die("Sorry, this plugin requires WordPress 3.2 at least");
138
  }
139
  }
140
  register_activation_hook(__FILE__, 'wp_ozh_adminmenu_check');