Ozh' Admin Drop Down Menu - Version 2.3.4.1

Version Description

Download this release

Release Info

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

Version 2.3.4.1

Files changed (58) hide show
  1. inc/adminmenu.css.php +234 -0
  2. inc/adminmenu.js +119 -0
  3. inc/core.php +366 -0
  4. inc/icons.php +50 -0
  5. inc/images/application_view_tile.png +0 -0
  6. inc/images/book_open.png +0 -0
  7. inc/images/comment.png +0 -0
  8. inc/images/comment_delete.png +0 -0
  9. inc/images/comment_edit.png +0 -0
  10. inc/images/computer_edit.png +0 -0
  11. inc/images/door_in.png +0 -0
  12. inc/images/door_out.png +0 -0
  13. inc/images/eye.png +0 -0
  14. inc/images/group.png +0 -0
  15. inc/images/image.png +0 -0
  16. inc/images/layers.png +0 -0
  17. inc/images/layout.png +0 -0
  18. inc/images/layout_add.png +0 -0
  19. inc/images/layout_edit.png +0 -0
  20. inc/images/layout_header.png +0 -0
  21. inc/images/lightning_go.png +0 -0
  22. inc/images/link.png +0 -0
  23. inc/images/link_add.png +0 -0
  24. inc/images/link_edit.png +0 -0
  25. inc/images/ozh.png +0 -0
  26. inc/images/page_edit.png +0 -0
  27. inc/images/page_white_edit.png +0 -0
  28. inc/images/page_white_wrench.png +0 -0
  29. inc/images/pencil.png +0 -0
  30. inc/images/plugin.png +0 -0
  31. inc/images/plugin_add.png +0 -0
  32. inc/images/plugin_edit.png +0 -0
  33. inc/images/tag_blue_edit.png +0 -0
  34. inc/images/tag_red.png +0 -0
  35. inc/images/tux.png +0 -0
  36. inc/images/user.png +0 -0
  37. inc/images/user_go.png +0 -0
  38. inc/images/world_delete.png +0 -0
  39. inc/images/world_link.png +0 -0
  40. inc/images/wrench.png +0 -0
  41. inc/images/wrench_orange.png +0 -0
  42. inc/mu.php +47 -0
  43. inc/options.php +116 -0
  44. inc/translations/adminmenu-da_DK.mo +0 -0
  45. inc/translations/adminmenu-da_DK.po +130 -0
  46. inc/translations/adminmenu-de_DE.mo +0 -0
  47. inc/translations/adminmenu-de_DE.po +130 -0
  48. inc/translations/adminmenu-es_ES.mo +0 -0
  49. inc/translations/adminmenu-es_ES.po +131 -0
  50. inc/translations/adminmenu-fr_FR.mo +0 -0
  51. inc/translations/adminmenu-fr_FR.po +131 -0
  52. inc/translations/adminmenu-it_IT.mo +0 -0
  53. inc/translations/adminmenu-it_IT.po +135 -0
  54. inc/translations/adminmenu.pot +130 -0
  55. readme.txt +30 -0
  56. screenshot-1.png +0 -0
  57. screenshot-2.png +0 -0
  58. wp_ozh_adminmenu.php +73 -0
inc/adminmenu.css.php ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Part of Plugin: Ozh' Admin Drop Down Menu
4
+ http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/
5
+ */
6
+
7
+ function make_link_relative( $link ) {
8
+ return preg_replace('|https?://[^/]+(/.*)|i', '$1', $link );
9
+ }
10
+
11
+ // Get vars & needed links, make them relative to be sure no one will be leeching icons or anything from someone else
12
+ $admin = make_link_relative( $_GET['admin'] );
13
+ $plugin = make_link_relative( $_GET['plugin'] );
14
+ $icons = ($_GET['icons'] == 1) ? true : false ;
15
+ $fluency = ($_GET['fluency'] == 1) ? true : false;
16
+ $submenu = ($_GET['submenu'] == 1) ? true : false;
17
+ $mu = ($_GET['mu'] == 1) ? true : false;
18
+
19
+ header('Content-type:text/css');
20
+ ?>
21
+
22
+ /* Restyle or hide original items */
23
+ #sidemenu, #adminmenu, #dashmenu {
24
+ display:none;
25
+ }
26
+ #media-upload-header #sidemenu li {
27
+ display:auto;
28
+ }
29
+ #wphead h1 {
30
+ font-size:25px;
31
+ }
32
+ #wphead #viewsite {
33
+ margin-top: 6px;
34
+ }
35
+ #wphead #viewsite a {
36
+ font-size:10px;
37
+ }
38
+ /* Styles for our new menu */
39
+ #ozhmenu { /* our new ul */
40
+ font-size:12px;
41
+ left:0px;
42
+ list-style-image:none;
43
+ list-style-position:outside;
44
+ list-style-type:none;
45
+ margin:0pt;
46
+ padding-left:8px;
47
+ position:absolute;
48
+ top:4px;
49
+ width:95%; /* width required for -wtf?- dropping li elements to be 100% wide in their containing ul */
50
+ overflow:show;
51
+ z-index:80;
52
+ }
53
+ #ozhmenu li { /* all list items */
54
+ display:inline;
55
+ line-height:200%;
56
+ list-style-image:none;
57
+ list-style-position:outside;
58
+ list-style-type:none;
59
+ margin:0 3px;
60
+ padding:0;
61
+ white-space:nowrap;
62
+ float: left;
63
+ width: 1*; /* maybe needed for some Opera ? */
64
+ }
65
+ #ozhmenu a { /* all links */
66
+ text-decoration:none;
67
+ color:#bbb;
68
+ line-height:220%;
69
+ padding:0px 10px;
70
+ display:block;
71
+ width:1*; /* maybe needed for some Opera ? */
72
+ }
73
+ #ozhmenu li:hover,
74
+ #ozhmenu li.ozhmenu_over,
75
+ #ozhmenu li .current {
76
+ background-color: #14568A;
77
+ -moz-border-radius-topleft: 3px;
78
+ -moz-border-radius-topright: 3px;
79
+ -webkit-border-top-left-radius:3px;
80
+ -webkit-border-top-right-radius:3px;
81
+ border-top-left-radius:3px;
82
+ border-top-right-radius:3px;
83
+ color: #ddd;
84
+ }
85
+ #ozhmenu .ozhmenu_sublevel a:hover,
86
+ #ozhmenu .ozhmenu_sublevel a.current,
87
+ #ozhmenu .ozhmenu_sublevel a.current:hover {
88
+ background-color: #e4f2fd;
89
+ -moz-border-radius-topleft: 0px;
90
+ -moz-border-radius-topright: 0px;
91
+ -webkit-border-top-left-radius:0;
92
+ -webkit-border-top-right-radius:0;
93
+ border-top-left-radius:0;
94
+ border-top-right-radius:0;
95
+ color: #555;
96
+ }
97
+ #ozhmenu li ul { /* drop down lists */
98
+ padding: 0;
99
+ margin: 0;
100
+ padding-bottom:5px;
101
+ list-style: none;
102
+ position: absolute;
103
+ background: white;
104
+ opacity:0.95;
105
+ filter:alpha(opacity=95);
106
+ border-left:1px solid #c6d9e9 ;
107
+ border-right:1px solid #c6d9e9 ;
108
+ border-bottom:1px solid #c6d9e9 ;
109
+ -moz-border-radius-bottomleft:5px;
110
+ -moz-border-radius-bottomright:5px;
111
+ -webkit-border-bottom-left-radius:5px;
112
+ -webkit-border-bottom-right-radius:5px;
113
+ border-bottom-left-radius:5px;
114
+ border-bottom-right-radius:5px;
115
+ width: 1*; /* maybe needed for some Opera ? */
116
+ min-width:6em;
117
+ left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
118
+ list-style-position:auto;
119
+ list-style-type:auto;
120
+ }
121
+ #ozhmenu li ul li { /* dropped down lists item */
122
+ background:transparent !important;
123
+ float:none;
124
+ text-align:left;
125
+ }
126
+ #ozhmenu li ul li a { /* links in dropped down list items*/
127
+ margin:0px;
128
+ color:#666;
129
+ }
130
+ #ozhmenu li:hover ul, #ozhmenu li.ozhmenu_over ul { /* lists dropped down under hovered list items */
131
+ left: auto;
132
+ z-index:999999;
133
+ }
134
+ #ozhmenu li a #awaiting-mod, #ozhmenu li a #update-plugins {
135
+ position: absolute;
136
+ margin-left: 0.1em;
137
+ font-size: 0.8em;
138
+ background-image: url(<?php echo $admin; ?>/images/comment-stalk-fresh.gif);
139
+ background-repeat: no-repeat;
140
+ background-position: -160px bottom;
141
+ height: 1.7em;
142
+ width: 1em;
143
+ }
144
+ #ozhmenu li.ozhmenu_over a #awaiting-mod, #ozhmenu li a:hover #awaiting-mod, #ozhmenu li.ozhmenu_over a #update-plugins, #ozhmenu li a:hover #update-plugins {
145
+ background-position: -2px bottom;
146
+ }
147
+ #ozhmenu li a #awaiting-mod span, #ozhmenu li a #update-plugins span {
148
+ color: #fff;
149
+ top: -0.3em;
150
+ right: -0.5em;
151
+ position: absolute;
152
+ display: block;
153
+ height: 1.3em;
154
+ line-height: 1.3em;
155
+ padding: 0 0.8em;
156
+ background-color: #2583AD;
157
+ -moz-border-radius: 4px;
158
+ -khtml-border-radius: 4px;
159
+ -webkit-border-radius: 4px;
160
+ border-radius: 4px;
161
+ }
162
+ #ozhmenu li.ozhmenu_over a #awaiting-mod span, #ozhmenu li a:hover #awaiting-mod span, #ozhmenu li.ozhmenu_over a #update-plugins span, #ozhmenu li a:hover #update-plugins span {
163
+ background-color:#D54E21;
164
+ }
165
+ #ozhmenu .current {
166
+ border:0px; /* MSIE insists on having this */
167
+ }
168
+ #ozhmenu li ul li a.current:before {
169
+ content: "\00BB \0020";
170
+ color:#d54e21;
171
+ }
172
+ /* Mu Specific */
173
+ #ozhmumenu_head {
174
+ color:#bbb;
175
+ font-weight:bolder;
176
+ }
177
+ #ozhmumenu_head #all-my-blogs {
178
+ position:relative;
179
+ top:0px;
180
+ background:#ffa;
181
+ color:#000;
182
+ }
183
+ /* Just for IE7 */
184
+ #wphead {
185
+ #border-top-width: 31px;
186
+ }
187
+ #media-upload-header #sidemenu { display: block; }
188
+
189
+ <?php if (!$submenu) { ?>
190
+ /* Hide vanilla submenu */
191
+ #wpwrap #submenu li {display:none;}
192
+ <?php } ?>
193
+
194
+ <?php if ($fluency) { ?>
195
+ /* Fluency compat + fixes */
196
+ #TB_overlay {z-index:99001;}
197
+ #TB_window {z-index:99002;}
198
+ <?php } ?>
199
+
200
+ <?php if ($fluency && $icons) { ?>
201
+ #ozhmenu li.ozhmenu_toplevel ul li.ozhmenu_sublevel a {padding-left:22px;}
202
+ <?php } ?>
203
+
204
+ <?php if ($icons) {
205
+ require(dirname(__FILE__).'/icons.php');
206
+ ?>
207
+ /* Icons */
208
+ #ozhmenu .ozhmenu_sublevel a {
209
+ padding-left:22px;
210
+ background-repeat:no-repeat;
211
+ background-position:3px center;
212
+ }
213
+ .oam_plugin a {
214
+ background-image:url(<?php echo $plugin; ?>/images/plugin.png);
215
+ }
216
+ <?php
217
+ foreach($wp_ozh_adminmenu['icon_names'] as $link=>$icon) {
218
+ $link = str_replace(array('.php','.','/'),array('','_','_'),$link);
219
+ echo "#oamsub_$link a {background-image:url($plugin/images/$icon.png);}\n";
220
+ }
221
+
222
+ } ?>
223
+
224
+ <?php if ($mu && $icons) { ?>
225
+ #ozhmumenu .ozhmenu_sublevel a {background-image:url(<?php echo $plugin; ?>/images/world_link.png);}
226
+ <?php
227
+ foreach($wp_ozh_adminmenu['icon_names_mu'] as $link=>$icon) {
228
+ $link = str_replace(array('.php','.','/'),array('','_','_'),$link);
229
+ echo "#oamsub_$link a {background-image:url($plugin/images/$icon.png);}\n";
230
+ }
231
+
232
+ } ?>
233
+
234
+ /**/
inc/adminmenu.js ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Part of Plugin: Ozh' Admin Drop Down Menu
3
+ http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/
4
+ */
5
+
6
+ // Resize menu to make sure it doesnt overlap with #user_info or blog title
7
+ function ozhmenu_resize() {
8
+ // Reinit positions
9
+ jQuery('#ozhmenu').css('width','');
10
+ jQuery('#wphead').css('border-top-width', '30px');
11
+ // Resize
12
+ var ozh_w = parseInt(jQuery('#ozhmenu').css('width').replace(/px/,''));
13
+ var info_w = parseInt(jQuery('#user_info').css('width').replace(/px/,'')) || 130; // the " or 130" part is for when width = 'auto' (on MSIE..) to get 130 instead of NaN
14
+ jQuery('#ozhmenu').css('width', (ozh_w - info_w - 1)+'px' );
15
+ var ozh_h = parseInt(jQuery('#ozhmenu').css('height').replace(/px/,''));
16
+ // Compare positions of first & last top level lis
17
+ var num_li=jQuery('#ozhmenu li.ozhmenu_toplevel').length;
18
+ var first_li = jQuery('#ozhmenu li.ozhmenu_toplevel').eq(0).offset();
19
+ var last_li = jQuery('#ozhmenu li.ozhmenu_toplevel').eq(num_li-1).offset(); // Dunno why, but jQuery('#ozhmenu li.ozhmenu_toplevel :last') doesn't work...
20
+ if (!ozh_h) {ozh_h = last_li.top + 25 }
21
+ if ( first_li.top < last_li.top ) {
22
+ jQuery('#wphead').css('border-top-width', (ozh_h+4)+'px');
23
+ }
24
+ }
25
+
26
+ jQuery(document).ready(function() {
27
+ if (oam_adminmenu) {
28
+ // Remove unnecessary links in the top right corner
29
+ var ozhmenu_uselesslinks = jQuery('#user_info p').html();
30
+ ozhmenu_uselesslinks = ozhmenu_uselesslinks.replace(/ \| <a href="http:\/\/codex.wordpress.org\/.*?">.*?<\/a>/i, ''); // remove any link from the codex
31
+ ozhmenu_uselesslinks = ozhmenu_uselesslinks.replace(/ \| <a href="http:\/\/wordpress.org\/support\/">.*?<\/a>/i, '');
32
+ jQuery('#user_info p').html(ozhmenu_uselesslinks);
33
+ jQuery('#user_info').css('z-index','81');
34
+ // Get and apply current menu colors
35
+ var ozhmenu_bgcolor = jQuery("#wphead").css('background-color');
36
+ var ozhmenu_color = jQuery('#dashmenu li a').css('color');
37
+ jQuery('#ozhmenu li.ozhmenu_over').css('background-color', ozhmenu_bgcolor).css('color', ozhmenu_color);
38
+ jQuery('#ozhmenu li .current').css('background-color', ozhmenu_bgcolor).css('color', ozhmenu_color);
39
+ // Remove original menus (this is, actually, not needed, since the CSS should have taken care of this)
40
+ jQuery('#sidemenu').remove();
41
+ jQuery('#adminmenu').remove();
42
+ jQuery('#dashmenu').remove();
43
+ jQuery('#user_info').css('right','1em');
44
+ if (oam_hidesubmenu) {
45
+ jQuery('#wpwrap #submenu').html('');
46
+ }
47
+ // Make title header smaller (same comment as above)
48
+ jQuery('#wphead #viewsite a').css('font-size','10px');
49
+ jQuery('#wphead h1').css('font-size','25px');
50
+ // jQueryfication of the Son of Suckerfish Drop Down Menu
51
+ // Original at: http://www.htmldog.com/articles/suckerfish/dropdowns/
52
+ jQuery('#ozhmenu li.ozhmenu_toplevel').each(function() {
53
+ jQuery(this).mouseover(function(){
54
+ jQuery(this).addClass('ozhmenu_over');
55
+ if (jQuery.browser.msie) {ozhmenu_hide_selects(true);}
56
+ }).mouseout(function(){
57
+ jQuery(this).removeClass('ozhmenu_over');
58
+ if (jQuery.browser.msie) {ozhmenu_hide_selects(false);}
59
+ });
60
+ });
61
+ // Function to hide <select> elements (display bug with MSIE)
62
+ function ozhmenu_hide_selects(hide) {
63
+ var hidden = (hide) ? 'hidden' : 'visible';
64
+ jQuery('select').css('visibility',hidden);
65
+ }
66
+ // Show our new menu
67
+ jQuery('#ozhmenu').show();
68
+
69
+ // Fluency conditional stuff. A few stuff disabled with this plugin.
70
+ if (!oam_fluency) {
71
+ // Resize menu if needed and bind the resize event
72
+ if (!jQuery.browser.safari) { // Safari on Mac doesn't like this. Safari sucks to be honest.
73
+ ozhmenu_resize();
74
+ jQuery(window).resize(function(){ozhmenu_resize();});
75
+ }
76
+
77
+ // Dynamically float submenu elements if there are too many
78
+ var menuresize = {};
79
+ jQuery('.ozhmenu_toplevel span').mouseover(
80
+ function(){
81
+ var target = jQuery(this).parent().parent().attr('id');
82
+ if (!target || menuresize[target]) return; // we've hovered a speech bubble, or we've already reworked this menu
83
+ var menulength = jQuery('#'+target+' ul li').length;
84
+ if (menulength > oam_toomanypluygins) {
85
+ var maxw = 0;
86
+ // float every item to the left and get the biggest size
87
+ jQuery('#'+target+' ul li').each(function(){
88
+ jQuery(this).css('float', 'left');
89
+ maxw = Math.max(parseInt(jQuery(this).css('width')), maxw);
90
+ });
91
+ // Resize the whole submenu
92
+ if (maxw) {
93
+ var cols = parseInt(menulength / oam_toomanypluygins)+1;
94
+ jQuery('#'+target+' ul li').each(function(){
95
+ jQuery(this).css('width', maxw+'px');
96
+ });
97
+ // Give the submenu a width = (max item width)*number of columns + 20px between each column
98
+ jQuery('#'+target+' ul').css('width', ( cols*maxw + (20*(cols-1)) )+'px');
99
+ }
100
+ }
101
+ menuresize[target] = true;
102
+ }
103
+ );
104
+
105
+ }
106
+
107
+ // WPMU : behavior for the "All my blogs" link
108
+ jQuery( function($) {
109
+ var form = $( '#all-my-blogs' ).submit( function() { document.location = form.find( 'select' ).val(); return false;} );
110
+ var tab = $('#all-my-blogs-tab a');
111
+ var head = $('#wphead');
112
+ $('.blog-picker-toggle').click( function() {
113
+ form.toggle();
114
+ tab.toggleClass( 'current' );
115
+ return false;
116
+ });
117
+ } );
118
+ }
119
+ })
inc/core.php ADDED
@@ -0,0 +1,366 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Part of Plugin: Ozh' Admin Drop Down Menu
4
+ http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/
5
+ */
6
+
7
+ function wp_ozh_adminmenu() {
8
+ global $wp_ozh_adminmenu;
9
+
10
+ $menu = wp_ozh_adminmenu_build();
11
+
12
+ echo "</ul>"; // close original <ul id="dashmenu"> before we add ours
13
+
14
+ $ozh_menu = '<ul id="ozhmenu">';
15
+
16
+ foreach ($menu as $k=>$v) {
17
+ $url = $v['url'];
18
+ $name = $k;
19
+ $id = 'oam_'.str_replace('.php','',$k);
20
+ $anchor = $v['name'];
21
+ $class = $v['class'];
22
+ if ($wp_ozh_adminmenu['toplinks']) {
23
+ $href = "href='$url'";
24
+ } else {
25
+ $href = ( $v['sub'] )? '' : "href='$url'" ;
26
+ }
27
+
28
+ $ozh_menu .= "\t<li class='ozhmenu_toplevel' id='$id'><a $href $class><span>$anchor</span></a>";
29
+ if (is_array($v['sub'])) {
30
+
31
+ $ulclass='';
32
+ if ($class) $ulclass = " class='ulcurrent'";
33
+ $ozh_menu .= "\n\t\t<ul$ulclass>\n";
34
+
35
+ foreach ($v['sub'] as $subk=>$subv) {
36
+ $id = 'oamsub_'.str_replace(array('.php','.','/'),array('','_','_'),$subk);
37
+ $suburl = $subv['url'];
38
+ $subanchor = $subv['name'];
39
+ $icon = $subv['icon'];
40
+ if ($subv['hook'] && $wp_ozh_adminmenu['icons']) {
41
+ // we're dealing with a plugin, does it have a special icon?
42
+ $plugin_icon = apply_filters('ozh_adminmenu_icon', $subv['hook']);
43
+ // if no filter is defined, $plugin_icon = $subv['hook'], otherwise keep track of the returned value
44
+ if ($plugin_icon != $subv['hook']) {
45
+ $plugin_icons[str_replace(array('.php','.','/'),array('','_','_'),$subv['hook'])] = $plugin_icon;
46
+ }
47
+ }
48
+ $subclass='';
49
+ if (array_key_exists('class',$subv)) $subclass=$subv['class'];
50
+ $ozh_menu .= "\t\t\t<li class='ozhmenu_sublevel $icon' id='$id'><a href='$suburl'$subclass>$subanchor</a></li>\n";
51
+ }
52
+ $ozh_menu .= "\t</ul>\n";
53
+ }
54
+ $ozh_menu .="\t</li>\n";
55
+ }
56
+
57
+ if ($plugin_icons) {
58
+ echo "\n".'<style type="text/css">'."\n";
59
+ foreach($plugin_icons as $hook=>$icon) {
60
+ $hook = plugin_basename($hook);
61
+ echo "#oamsub_$hook a {background-image:url($icon);}\n";
62
+ }
63
+ echo "</style>\n";
64
+ }
65
+
66
+ echo $ozh_menu;
67
+
68
+ }
69
+
70
+
71
+ /* Core stuff : builds an array populated with all the infos needed for menu and submenu */
72
+ function wp_ozh_adminmenu_build () {
73
+ global $menu, $submenu, $plugin_page, $pagenow;
74
+
75
+ /* Most of the following garbage are bits from admin-header.php,
76
+ * modified to populate an array of all links to display in the menu
77
+ */
78
+
79
+ $self = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
80
+ $self = preg_replace('|^.*/plugins/|i', '', $self);
81
+
82
+ // Other plugins can use add_filter('pre_ozh_adminmenu_menu', 'my_function') to modify $menu as WP defines it
83
+ $menu = apply_filters('pre_ozh_adminmenu_menu', $menu);
84
+
85
+ /* Make sure that "Manage" always stays the same. Stolen from Andy @ YellowSwordFish */
86
+ $menu[5][0] = __("Write");
87
+ $menu[5][1] = "edit_posts";
88
+ $menu[5][2] = "post-new.php";
89
+ $menu[10][0] = __("Manage");
90
+ $menu[10][1] = "edit_posts";
91
+ $menu[10][2] = "edit.php";
92
+
93
+ // Other plugins can use add_filter('ozh_adminmenu_menu', 'my_function') to modify our modified $menu
94
+ $menu = apply_filters('ozh_adminmenu_menu', $menu);
95
+
96
+ // The array containing all menu entries
97
+ $altmenu = array();
98
+
99
+ // Other plugins can use add_filter('pre_ozh_adminmenu_altmenu', 'my_function') to "pre-populate" $altmenu
100
+ $altmenu = apply_filters('pre_ozh_adminmenu_altmenu', $altmenu );
101
+
102
+ /* Step 1 : populate first level menu as per user rights */
103
+ foreach ($menu as $item) {
104
+ // 0 = name, 1 = capability, 2 = file
105
+ if ( current_user_can($item[1]) ) {
106
+ if ( file_exists(ABSPATH . "wp-admin/{$item[2]}"))
107
+ $altmenu[$item[2]]['url'] = get_option('siteurl') . "/wp-admin/{$item[2]}";
108
+ else
109
+ $altmenu[$item[2]]['url'] = get_option('siteurl') . "/wp-admin/admin.php?page={$item[2]}";
110
+
111
+ if (( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file)))
112
+ $altmenu[$item[2]]['class'] = " class='current'";
113
+
114
+ $altmenu[$item[2]]['name'] = $item[0];
115
+
116
+ /* Windows installs may have backslashes instead of slashes in some paths, fix this */
117
+ $altmenu[$item[2]]['name'] = str_replace(chr(92),chr(92).chr(92),$altmenu[$item[2]]['name']);
118
+ }
119
+ }
120
+
121
+ /* Step 2 : populate second level menu */
122
+ foreach ($submenu as $k=>$v) {
123
+ foreach ($v as $item) {
124
+ if (array_key_exists($k,$altmenu) and current_user_can($item[1])) {
125
+
126
+ // What's the link ?
127
+ $menu_hook = get_plugin_page_hook($item[2], $k);
128
+
129
+ if (file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") || ! empty($menu_hook)) {
130
+ list($_plugin_page,$temp) = explode('?',$altmenu[$k]['url']);
131
+ $link = $_plugin_page.'?page='.$item[2];
132
+ $altmenu[$k]['sub'][$item[2]]['icon'] = 'oam_plugin';
133
+ $altmenu[$k]['sub'][$item[2]]['hook'] = $item[2];
134
+ } else {
135
+ $link = $item[2];
136
+ $altmenu[$k]['sub'][$item[2]]['icon'] = 'oam_'.str_replace(array('.php','.','/'),array('','_','_'),$item[2]);
137
+ }
138
+
139
+ /* Windows installs may put backslashes instead of slashes in paths, fix this */
140
+ $link = str_replace(chr(92),chr(92).chr(92),$link);
141
+
142
+ $altmenu[$k]['sub'][$item[2]]['url'] = $link;
143
+
144
+ // Is it current page ?
145
+ $class = '';
146
+ if ( (isset($plugin_page) && $plugin_page == $item[2] && $pagenow == $k) || (!isset($plugin_page) && $self == $item[2] ) ) $class=" class='current'";
147
+ if ($class) {
148
+ $altmenu[$k]['sub'][$item[2]]['class'] = $class;
149
+ $altmenu[$k]['class'] = $class;
150
+ }
151
+
152
+ // What's its name again ?
153
+ $altmenu[$k]['sub'][$item[2]]['name'] = $item[0];
154
+ }
155
+ }
156
+ }
157
+
158
+ // Dirty debugging: break page and dies
159
+ /**
160
+ echo "</ul><pre style='font-size:9px'>";
161
+ echo '__MENU ';print_r($menu);
162
+ echo 'SUBMENU ';print_r($submenu);
163
+ echo 'ALTMENU ';print_r($altmenu);
164
+ die();
165
+ /**/
166
+
167
+ // Clean debugging: prints after footer
168
+ /**
169
+ global $wpdb;
170
+ $wpdb->wp_ozh_adminmenu_neat_array = "<pre style='font-size:80%'>Our Oh-So-Beautiful-4-Levels-".htmlentities(print_r($altmenu,true))."</pre>";
171
+ add_action('admin_footer', create_function('', 'global $wpdb; echo $wpdb->wp_ozh_adminmenu_neat_array;'));
172
+ /**/
173
+
174
+ // Other plugins can use add_filter('ozh_adminmenu_array', 'my_function') to modify $altmenu
175
+ $altmenu = apply_filters('ozh_adminmenu_altmenu', $altmenu );
176
+
177
+ return ($altmenu);
178
+ }
179
+
180
+
181
+ function wp_ozh_adminmenu_js() {
182
+ global $wp_ozh_adminmenu;
183
+
184
+ $submenu = $wp_ozh_adminmenu['display_submenu'] ? 'false': 'true';
185
+ $toomanyplugins = $wp_ozh_adminmenu['too_many_plugins'];
186
+ $fluency = function_exists('wp_admin_fluency_css') ? 'true' : 'false';
187
+
188
+ $plugin_url = WP_PLUGIN_URL.'/'.plugin_basename(dirname(__FILE__));
189
+ $insert_main_js = '<script src="'.$plugin_url.'/adminmenu.js" type="text/javascript"></script>';
190
+
191
+ echo <<<JS
192
+ <script type="text/javascript"><!--//--><![CDATA[//><!--
193
+ var oam_toomanypluygins = $toomanyplugins;
194
+ var oam_adminmenu = false;
195
+ var oam_fluency = $fluency;
196
+ var oam_hidesubmenu = $submenu;
197
+ jQuery(document).ready(function() {
198
+ // Do we need to init everything ?
199
+ var ozhmenu_uselesslinks = jQuery('#user_info p').html();
200
+ if (ozhmenu_uselesslinks) {
201
+ oam_adminmenu = true;
202
+ }
203
+ })
204
+ //--><!]]></script>
205
+ $insert_main_js
206
+ JS;
207
+
208
+ }
209
+
210
+
211
+ function wp_ozh_adminmenu_css() {
212
+ global $wp_ozh_adminmenu, $pagenow;
213
+
214
+ $submenu = ($wp_ozh_adminmenu['display_submenu'] or ($pagenow == "media-upload.php") ) ? 1 : 0;
215
+ $fluency = (function_exists('wp_admin_fluency_css')) ? 1 : 0;
216
+ $plugin = wp_make_link_relative(WP_PLUGIN_URL.'/'.plugin_basename(dirname(__FILE__)));
217
+ $admin = wp_make_link_relative(get_option('siteurl') . '/wp-admin');
218
+ $mu = (function_exists('wp_ozh_adminmenu_blogswitch_init')) ? 1 : 0;
219
+ // Making links relative so they're more readable and shorter in the query string (also made relative in the .css.php)
220
+ $icons = $wp_ozh_adminmenu['icons'];
221
+ echo '<link rel="stylesheet" href="'.$plugin."/adminmenu.css.php?admin=$admin&amp;plugin=$plugin&amp;icons=$icons&amp;submenu=$submenu&amp;fluency=$fluency&amp;mu=$mu\" type=\"text/css\" media=\"all\" />\n";
222
+ }
223
+
224
+
225
+ function wp_ozh_adminmenu_head() {
226
+ wp_ozh_adminmenu_css();
227
+ wp_ozh_adminmenu_js();
228
+ }
229
+
230
+
231
+ // Read plugin options or set default values
232
+ function wp_ozh_adminmenu_init() {
233
+ global $wp_ozh_adminmenu;
234
+
235
+ global $plugin_page, $pagenow;
236
+ $page_hook = get_plugin_page_hook($plugin_page, $pagenow);
237
+ add_action('load-'.$page_hook, 'wp_ozh_adminmenu_load_page'); // if we're on the plugin page, load translation file. Don't bother otherwise
238
+
239
+ if ( !defined('WP_CONTENT_URL') )
240
+ define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
241
+ if ( !defined('WP_PLUGIN_URL') )
242
+ define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
243
+ if ( !defined('WP_CONTENT_DIR') )
244
+ define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
245
+ if ( !defined('WP_PLUGIN_DIR') )
246
+ define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // full path, no trailing slash
247
+
248
+ $defaults = array(
249
+ 'display_submenu' => 0,
250
+ 'too_many_plugins' => 30,
251
+ 'toplinks' => 1,
252
+ 'icons' => 1);
253
+
254
+ if (!count($wp_ozh_adminmenu)) {
255
+ $wp_ozh_adminmenu = (array)get_option('ozh_adminmenu');
256
+ unset($wp_ozh_adminmenu[0]);
257
+ }
258
+
259
+ $wp_ozh_adminmenu = array_merge($defaults, $wp_ozh_adminmenu);
260
+ // upon Fluency activation+deactivation, too_many_plugins can be 0, let's fix this
261
+ if (!$wp_ozh_adminmenu['too_many_plugins']) $wp_ozh_adminmenu['too_many_plugins'] = 30;
262
+
263
+ // This plugin will have its own icon of course
264
+ add_filter( 'ozh_adminmenu_icon', 'wp_ozh_adminmenu_customicon');
265
+
266
+ add_filter( 'plugin_action_links', 'wp_ozh_adminmenu_plugin_actions', -10, 2);
267
+ }
268
+
269
+
270
+ // Stuff to do when loading the admin plugin page
271
+ function wp_ozh_adminmenu_load_page() {
272
+ wp_ozh_adminmenu_load_text_domain();
273
+ if (isset($_POST['ozh_adminmenu']) && ($_POST['ozh_adminmenu'] == 1) )
274
+ wp_ozh_adminmenu_processform();
275
+ }
276
+
277
+
278
+ // Hooked into 'ozh_adminmenu_icon', this function give this plugin its own icon
279
+ function wp_ozh_adminmenu_customicon($in) {
280
+ if ($in == 'ozh_admin_menu') return WP_PLUGIN_URL.'/'.plugin_basename(dirname(__FILE__)).'/images/ozh.png';
281
+ return $in;
282
+ }
283
+
284
+
285
+ function wp_ozh_adminmenu_add_page() {
286
+ add_options_page('Admin Drop Down Menu', 'Admin Menu', 'manage_options', 'ozh_admin_menu', 'wp_ozh_adminmenu_options_page_includes');
287
+ }
288
+
289
+
290
+ function wp_ozh_adminmenu_options_page_includes() {
291
+ require_once(dirname(__FILE__).'/options.php');
292
+ wp_ozh_adminmenu_options_page();
293
+ }
294
+
295
+
296
+ // Add the 'Settings' link to the plugin page
297
+ function wp_ozh_adminmenu_plugin_actions($links, $file) {
298
+ if ($file == plugin_basename(dirname(dirname(__FILE__)).'/wp_ozh_adminmenu.php'))
299
+ $links[] = "<a href='options-general.php?page=ozh_admin_menu'><b>Settings</b></a>";
300
+ return $links;
301
+ }
302
+
303
+
304
+ // Translation wrapper
305
+ function wp_ozh_adminmenu__($string) {
306
+ return __($string, 'adminmenu');
307
+ }
308
+
309
+
310
+ // Load translation file if any
311
+ function wp_ozh_adminmenu_load_text_domain() {
312
+ $locale = get_locale();
313
+ $mofile = WP_PLUGIN_DIR.'/'.plugin_basename(dirname(__FILE__)).'/translations/adminmenu' . '-' . $locale . '.mo';
314
+ load_textdomain('adminmenu', $mofile);
315
+ }
316
+
317
+
318
+ function wp_ozh_adminmenu_footer() {
319
+ echo <<<HTML
320
+ 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/>
321
+ HTML;
322
+ }
323
+
324
+
325
+ // Process $_POST
326
+ function wp_ozh_adminmenu_processform() {
327
+
328
+ global $wp_ozh_adminmenu;
329
+
330
+ check_admin_referer('ozh-adminmenu');
331
+
332
+ // Debug:
333
+ // echo "<pre>";echo htmlentities(print_r($_POST,true));echo "</pre>";
334
+
335
+ switch ($_POST['action']) {
336
+ case 'update_options':
337
+
338
+ $options['display_submenu'] = ($_POST['oam_displaysub']) ? '1' : '0';
339
+ $options['toplinks'] = ($_POST['oam_toplinks'])? '1' : '0';
340
+ $options['icons'] = ($_POST['oam_icons'])? '1' : '0';
341
+ $options['too_many_plugins'] = intval($_POST['oam_too_many_plugins']);
342
+
343
+ if (!update_option('ozh_adminmenu', $options))
344
+ add_option('ozh_adminmenu', $options);
345
+
346
+ $wp_ozh_adminmenu = array_merge( (array)$wp_ozh_adminmenu, $options );
347
+
348
+ $msg = wp_ozh_adminmenu__("updated");
349
+ break;
350
+
351
+ case 'reset_options':
352
+ delete_option('ozh_adminmenu');
353
+ $msg = wp_ozh_adminmenu__("deleted");
354
+ break;
355
+ }
356
+
357
+ $message = '<div id="message" class="updated fade">';
358
+ $message .= '<p>'.sprintf(wp_ozh_adminmenu__('Admin Drop Down Menu settings <strong>%s</strong>'), $msg)."</p>\n";
359
+ $message .= "</div>\n";
360
+
361
+ // 'admin_notices' is definitely under used, should use more!
362
+ add_action('admin_notices', create_function( '', "echo '$message';" ) );
363
+ }
364
+
365
+
366
+ ?>
inc/icons.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Part of Plugin: Ozh' Admin Drop Down Menu
4
+ http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/
5
+ */
6
+
7
+ $wp_ozh_adminmenu['icon_names'] = array(
8
+ 'index.php' => 'application_view_tile',
9
+ 'post-new.php' => 'page_white_edit',
10
+ 'page-new.php' => 'page_edit',
11
+ 'link-add.php' => 'link_add',
12
+ 'edit.php' => 'pencil',
13
+ 'edit-pages.php' => 'page_edit',
14
+ 'link-manager.php' => 'link',
15
+ 'categories.php' => 'tag_red',
16
+ 'edit-tags.php' => 'tag_blue_edit',
17
+ 'edit-link-categories.php' => 'link_edit',
18
+ 'upload.php' => 'image',
19
+ 'import.php' => 'door_in',
20
+ 'export.php' => 'door_out',
21
+ 'themes.php' => 'layout',
22
+ 'widgets.php' => 'layout_add',
23
+ 'theme-editor.php' => 'layout_edit',
24
+ 'functions.php' => 'layout_header',
25
+ 'edit-comments.php' => 'comment',
26
+ 'akismet-admin' => 'comment_delete',
27
+ 'options-general.php' => 'wrench',
28
+ 'options-writing.php' => 'page_white_wrench',
29
+ 'options-reading.php' => 'book_open',
30
+ 'options-discussion.php' => 'comment_edit',
31
+ 'options-privacy.php' => 'eye',
32
+ 'options-permalink.php' => 'link_edit',
33
+ 'options-misc.php' => 'wrench_orange',
34
+ 'plugins.php' => 'plugin_add',
35
+ 'plugin-editor.php' => 'plugin_edit',
36
+ 'users.php' => 'group',
37
+ 'profile.php' => 'user'
38
+ );
39
+
40
+ $wp_ozh_adminmenu['icon_names_mu'] = array(
41
+ 'wpmu-admin.php' => 'tux',
42
+ 'wpmu-blogs.php' => 'world_link',
43
+ 'wpmu-users.php' => 'user_go',
44
+ 'wpmu-themes.php' => 'layers',
45
+ 'wpmu-options.php' => 'computer_edit',
46
+ 'wpmu-upgrade-site.php' => 'lightning_go',
47
+ 'delete-blog' => 'world_delete',
48
+ )
49
+
50
+ ?>
inc/images/application_view_tile.png ADDED
Binary file
inc/images/book_open.png ADDED
Binary file
inc/images/comment.png ADDED
Binary file
inc/images/comment_delete.png ADDED
Binary file
inc/images/comment_edit.png ADDED
Binary file
inc/images/computer_edit.png ADDED
Binary file
inc/images/door_in.png ADDED
Binary file
inc/images/door_out.png ADDED
Binary file
inc/images/eye.png ADDED
Binary file
inc/images/group.png ADDED
Binary file
inc/images/image.png ADDED
Binary file
inc/images/layers.png ADDED
Binary file
inc/images/layout.png ADDED
Binary file
inc/images/layout_add.png ADDED
Binary file
inc/images/layout_edit.png ADDED
Binary file
inc/images/layout_header.png ADDED
Binary file
inc/images/lightning_go.png ADDED
Binary file
inc/images/link.png ADDED
Binary file
inc/images/link_add.png ADDED
Binary file
inc/images/link_edit.png ADDED
Binary file
inc/images/ozh.png ADDED
Binary file
inc/images/page_edit.png ADDED
Binary file
inc/images/page_white_edit.png ADDED
Binary file
inc/images/page_white_wrench.png ADDED
Binary file
inc/images/pencil.png ADDED
Binary file
inc/images/plugin.png ADDED
Binary file
inc/images/plugin_add.png ADDED
Binary file
inc/images/plugin_edit.png ADDED
Binary file
inc/images/tag_blue_edit.png ADDED
Binary file
inc/images/tag_red.png ADDED
Binary file
inc/images/tux.png ADDED
Binary file
inc/images/user.png ADDED
Binary file
inc/images/user_go.png ADDED
Binary file
inc/images/world_delete.png ADDED
Binary file
inc/images/world_link.png ADDED
Binary file
inc/images/wrench.png ADDED
Binary file
inc/images/wrench_orange.png ADDED
Binary file
inc/mu.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Part of Plugin: Ozh' Admin Drop Down Menu
4
+ http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/
5
+ */
6
+
7
+ /***** Mu specific ****/
8
+
9
+ function wp_ozh_adminmenu_remove_blogswitch_init() {
10
+ remove_action( '_admin_menu', 'blogswitch_init' );
11
+ add_action( '_admin_menu', 'wp_ozh_adminmenu_blogswitch_init' );
12
+ }
13
+
14
+ function wp_ozh_adminmenu_blogswitch_init() {
15
+ global $current_user, $current_blog;
16
+ $blogs = get_blogs_of_user( $current_user->ID );
17
+ if ( !$blogs )
18
+ return;
19
+ add_action( 'admin_menu', 'wp_ozh_adminmenu_blogswitch_ob_start' );
20
+ add_action( 'dashmenu', 'blogswitch_markup' );
21
+
22
+ }
23
+
24
+
25
+ function wp_ozh_adminmenu_blogswitch_ob_start() {
26
+ ob_start( 'wp_ozh_adminmenu_blogswitch_ob_content' );
27
+ }
28
+
29
+ function wp_ozh_adminmenu_blogswitch_ob_content( $content ) {
30
+ // Menu with blog list
31
+ $mumenu = preg_replace( '#.*%%REAL_DASH_MENU%%(.*?)%%END_REAL_DASH_MENU%%.*#s', '\\1', $content );
32
+ $mumenu = str_replace ('<li>', '<li class="ozhmenu_sublevel">', $mumenu);
33
+ $mumenu = preg_replace( '#</ul>.*?<form id="all-my-blogs"#s', '<li><form id="all-my-blogs"', $mumenu);
34
+ $mumenu = str_replace ('</form>', '</form></li></ul>', $mumenu);
35
+
36
+
37
+ $content = preg_replace( '#%%REAL_DASH_MENU%%(.*?)%%END_REAL_DASH_MENU%%#s', '', $content );
38
+ $content = str_replace( '<ul id="ozhmenu">', '<ul id="ozhmenu"><li class="ozhmenu_toplevel" id="ozhmumenu_head"><a href="">My blogs</a><ul id="ozhmumenu">'.$mumenu.'</li>', $content );
39
+
40
+ return $content;
41
+ }
42
+
43
+
44
+
45
+
46
+
47
+ ?>
inc/options.php ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Part of Plugin: Ozh' Admin Drop Down Menu
4
+ http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/
5
+ */
6
+
7
+ global $wp_ozh_adminmenu;
8
+
9
+ function wp_ozh_adminmenu_options_page() {
10
+ global $wp_ozh_adminmenu;
11
+
12
+ //echo "<pre>".wp_ozh_adminmenu_sanitize(print_r($wp_ozh_adminmenu,true))."</pre>";
13
+
14
+ $checked_displaysub = ($wp_ozh_adminmenu['display_submenu'] == 1) ? 'checked="checked"' : '' ;
15
+ $checked_icons = ($wp_ozh_adminmenu['icons'] == 1) ? 'checked="checked"' : '' ;
16
+ $checked_toplinks = ($wp_ozh_adminmenu['toplinks'] == 1) ? 'checked="checked"' : '' ;
17
+ $too_many_plugins = intval($wp_ozh_adminmenu['too_many_plugins']);
18
+
19
+ echo '
20
+ <style type="text/css">
21
+ .wrap {margin-bottom:2em}
22
+ </style>
23
+ <div class="wrap">
24
+ <h2>Admin Drop Down Menu</h2>
25
+ <form method="post" action="">
26
+ ';
27
+ wp_nonce_field('ozh-adminmenu');
28
+ ?>
29
+ <table class="form-table"><tbody>
30
+ <input type="hidden" name="ozh_adminmenu" value="1"/>
31
+ <input type="hidden" name="action" value="update_options">
32
+
33
+ <tr><th scope="row"><?php echo wp_ozh_adminmenu__('Icons'); ?></th>
34
+ <td><label><input type="checkbox" <?php echo $checked_icons; ?> name="oam_icons"> <?php echo wp_ozh_adminmenu__('Display menu icons');?></label><br/>
35
+ <?php printf(wp_ozh_adminmenu__("They're so cute (and they're from %s)"),'<a href="http://www.famfamfam.com/">famfamfam</a>'); ?>
36
+ </td></tr>
37
+
38
+ <?php if (!function_exists('wp_admin_fluency_css') ) { // stuff that are disabled with Fluency ?>
39
+
40
+ <tr><th scope="row"><?php echo wp_ozh_adminmenu__('Submenus'); ?></th>
41
+ <td><label><input type="checkbox" <?php echo $checked_displaysub; ?> name="oam_displaysub"> <?php echo wp_ozh_adminmenu__('Display sub menus the regular way'); ?></label><br/>
42
+ <?php echo wp_ozh_adminmenu__("Some like it better when sub menus don't even need you to hover the top menu link"); ?>
43
+ </td></tr>
44
+
45
+ <tr><th scope="row"><?php echo wp_ozh_adminmenu__('Break Long Lists'); ?></th>
46
+ <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/>
47
+ <?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)'); ?>
48
+ </td></tr>
49
+
50
+ <?php } ?>
51
+
52
+ <tr><th scope="row"><?php echo wp_ozh_adminmenu__('Top Links'); ?></th>
53
+ <td><label><input type="checkbox" <?php echo $checked_toplinks; ?> name="oam_toplinks"> <?php echo wp_ozh_adminmenu__('Make top links clickable'); ?></label><br/>
54
+ <?php echo wp_ozh_adminmenu__('Uncheck this option to improve compatibility with browsers that cannot handle the "hover" event (<em>ie</em> most handheld devices)'); ?>
55
+ </td></tr>
56
+
57
+ <tr><th scope="row"><?php echo wp_ozh_adminmenu__('Give Some &hearts;'); ?></th>
58
+ <td><?php printf(wp_ozh_adminmenu__('Do you like this plugin? Then <a href="%s">rate it 5 Stars</a> on the official Plugin Directory!'),'http://wordpress.org/extend/plugins/ozh-admin-drop-down-menu/'); ?><br/>
59
+ <?php printf(wp_ozh_adminmenu__('Do you <em>love</em> this plugin? Please <a href="%s">blog about it</a>! Tell your readers you like it so they will discover, try and hopefully like it too&nbsp;:)'),'post-new.php'); ?><br/>
60
+ <?php printf(wp_ozh_adminmenu__('Are you <span id="totallycrazy">crazy</span> about this plugin? <a href="%s">Paypal me a beer</a>! Every donation warms my heart and motivates me to release free stuff!'),'http://planetozh.com/exit/donate'); ?>
61
+ </td></tr>
62
+
63
+ <script type="text/javascript">
64
+ function oam_dance() {
65
+ var fontstyle, delay;
66
+ if (jQuery('#totallycrazy').css('font-style') == 'italic') {
67
+ fontstyle = 'normal'; delay = 500;
68
+ } else {
69
+ fontstyle = 'italic'; delay = 200;
70
+ }
71
+ jQuery('#totallycrazy').css('font-style',fontstyle);
72
+ oam_danceagain(delay);
73
+ }
74
+ function oam_danceagain(delay) {setTimeout(function(){oam_dance();}, delay);}
75
+ oam_danceagain(100);
76
+ </script>
77
+
78
+ </tbody></table>
79
+
80
+ <p class="submit">
81
+ <input name="submit" value="<?php echo wp_ozh_adminmenu__('Save Changes');?>" type="submit" />
82
+ </p>
83
+
84
+ </form>
85
+ </div>
86
+
87
+ <div class="wrap"><h2><?php echo wp_ozh_adminmenu__('Reset Settings');?></h2>
88
+ <form method="post" action="">
89
+
90
+ <?php
91
+ wp_nonce_field('ozh-adminmenu');
92
+ ?>
93
+ <input type="hidden" name="ozh_adminmenu" value="1"/>
94
+ <input type="hidden" name="action" value="reset_options">
95
+
96
+ <p><?php echo wp_ozh_adminmenu__('Clicking the following button will remove all the settings for this plugin from your database. You might want to do so in the following cases:');?></p>
97
+ <ul>
98
+ <li><?php echo wp_ozh_adminmenu__('you want to uninstall the plugin and leave no unnecessary entries in your database.');?></li>
99
+ <li><?php echo wp_ozh_adminmenu__('you want all settings to be reverted to their default values');?></li>
100
+ </ul>
101
+ <p class="submit" style="border-top:0px;padding:0;"><input style="color:red" name="submit" value="<?php echo wp_ozh_adminmenu__('Reset Settings');?>" onclick="return(confirm('<?php echo js_escape(wp_ozh_adminmenu__('Really do?'));?>'))" type="submit" /></p>
102
+ <p><?php echo wp_ozh_adminmenu__('There is no undo, so be very sure you want to click the button!');?></p>
103
+
104
+ </form>
105
+ </div>
106
+ <?php
107
+
108
+ }
109
+
110
+ // Sanitize string for display: escape HTML but preserve UTF8 (or whatever)
111
+ function wp_ozh_adminmenu_sanitize($string) {
112
+ return stripslashes(attribute_escape($string));
113
+ //return stripslashes(htmlentities($string, ENT_COMPAT, get_bloginfo('charset')));
114
+ }
115
+
116
+ ?>
inc/translations/adminmenu-da_DK.mo ADDED
Binary file
inc/translations/adminmenu-da_DK.po ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Ozh' Admin Drop Down Menu\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-08-24 21:31+0100\n"
6
+ "Last-Translator: Thomas Blomberg Hansen <playr@playr.dk>\n"
7
+ "Language-Team: Ozh <ozh at planetozh dot com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-KeywordsList: wp_ozh_adminmenu__\n"
12
+ "X-Poedit-Basepath: E:\\home\\ozh\\planetozh.com\\blog\\wp-content\\plugins\\ozh-admin-drop-down-menu\n"
13
+ "X-Poedit-Language: English\n"
14
+ "X-Poedit-SearchPath-0: E:\\home\\ozh\\planetozh.com\\blog\\wp-content\\plugins\\ozh-admin-drop-down-menu\n"
15
+
16
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:32
17
+ msgid "updated"
18
+ msgstr "opdateret"
19
+
20
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:37
21
+ msgid "deleted"
22
+ msgstr "slettet"
23
+
24
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:42
25
+ #, php-format
26
+ msgid "Admin Drop Down Menu settings <strong>%s</strong>"
27
+ msgstr "Admin Drop Down Menu indstillinger <strong>%s</strong>"
28
+
29
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:81
30
+ msgid "Icons"
31
+ msgstr "Ikoner"
32
+
33
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:82
34
+ msgid "Display menu icons"
35
+ msgstr "Vis menu ikoner"
36
+
37
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:83
38
+ #, php-format
39
+ msgid "They're so cute (and they're from %s)"
40
+ msgstr "De er s&aring; nuttet (og de er fra %s)"
41
+
42
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:86
43
+ msgid "Submenus"
44
+ msgstr "Undermenuer"
45
+
46
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:87
47
+ msgid "Display sub menus the regular way"
48
+ msgstr "Vis undermenuer p&aring; den normale m&aring;de"
49
+
50
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:88
51
+ msgid "Some like it better when sub menus don't even need you to hover the top menu link"
52
+ msgstr "Nogle synes at det er bedre n&aring;r undermenuer folder sig ud, uden musen beh&oslash;ver at flyttes over hoved menupunktet"
53
+
54
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:91
55
+ msgid "Break Long Lists"
56
+ msgstr "Deler lange lister"
57
+
58
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:92
59
+ #, php-format
60
+ msgid "Break if more than %s menu entries"
61
+ msgstr "Del hvis der er mere end %s menupunkter"
62
+
63
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:93
64
+ msgid "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)"
65
+ msgstr "Hvis en undermenu bliver længere end denne v&aelig;rdi, vil den blive vist horisontalt, så den forh&aringbenligt passer til din sk&aelig;rm (Kr&aelig;ver JavaScript aktiveret)"
66
+
67
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:96
68
+ msgid "Top Links"
69
+ msgstr "Top links"
70
+
71
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:97
72
+ msgid "Make top links clickable"
73
+ msgstr "G&oslash;r top links klikbare"
74
+
75
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:98
76
+ msgid "Uncheck this option to improve compatibility with browsers that cannot handle the \"hover\" event (<em>ie</em> most handheld devices)"
77
+ msgstr "Fjern fluebenet for, at forbedre kompatibiliteten med browsere, der ikke kan h&aring;ndterer \"hover\" event'et (<em>f.eks</em> h&aring;ndholdte gadgets)"
78
+
79
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:101
80
+ msgid "Give Some &hearts;"
81
+ msgstr "Giv lidt &hearts;"
82
+
83
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:102
84
+ #, php-format
85
+ msgid "Do you like this plugin? Then <a href=\"%s\">rate it 5 Stars</a> on the official Plugin Directory!"
86
+ msgstr "Kan du lide dette plugin? S&aring; <a href=\"%s\">bed&oslash;m det med 5 stjerner</a> p&aring; den officielle plugin side (Plugin Directory)!"
87
+
88
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:103
89
+ #, php-format
90
+ msgid "Do you <em>love</em> this plugin? Please <a href=\"%s\">blog about it</a>! Tell your readers you like it so they will discover, try and hopefully like it too&nbsp;:)"
91
+ msgstr "<em>Elsker</em> du dette plugin? S&aring; <a href=\"%s\">blog om det</a>! Fort&aelig;l dem du kan lide det, s&aring; de m&aring;ske pr&oslash;ver det og forh&aring;benlig kan lide det&nbsp;:)"
92
+
93
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:104
94
+ #, php-format
95
+ msgid "Are you <span id=\"totallycrazy\">crazy</span> about this plugin? <a href=\"%s\">Paypal me a beer</a>! Every donation warms my heart and motivates me to release free stuff!"
96
+ msgstr "Er du fuldst&aelig;ndig <span id=\"totallycrazy\">vild</span> med dette plugin? <a href=\"%s\">Paypal mig en &oslash;l</a>! Hver eneste donation varmer mit hjerte og motivere mig til, at udgive mere der er gratis!"
97
+
98
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:127
99
+ msgid "Save Changes"
100
+ msgstr "Gem &Aelig;ndringer"
101
+
102
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:127
103
+ msgid "(might need a page refresh here)"
104
+ msgstr "(du er m&aringske n&oslash;dt til at opdaterer siden)"
105
+
106
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:133
107
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:147
108
+ msgid "Reset Settings"
109
+ msgstr "Nulstil indstillinger"
110
+
111
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:142
112
+ msgid "Clicking the following button will remove all the settings for this plugin from your database. You might want to do so in the following cases:"
113
+ msgstr "Klik p&aring; den f&oslashlgende knap for, at fjerne alle indstillinger for dette plugin i din database. Du har m&aring;ske brug for det i f&oslash;lgende tilf&aelig;lde: "
114
+
115
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:144
116
+ msgid "you want to uninstall the plugin and leave no unnecessary entries in your database."
117
+ msgstr "du vil afinstallere pluginet og ikke efterlade un&oslashdvendige data i din database."
118
+
119
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:145
120
+ msgid "you want all settings to be reverted to their default values"
121
+ msgstr "Du vil have alle indstillinger skal nulstilles til standard"
122
+
123
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:147
124
+ msgid "Really do?"
125
+ msgstr "Er du sikker?"
126
+
127
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:148
128
+ msgid "There is no undo, so be very sure you want to click the button!"
129
+ msgstr "Du kan ikke fortryde, s&aring; du skal v&aelig;re 100% sikker n&aring;r du klikker p&aring; denne knap!"
130
+
inc/translations/adminmenu-de_DE.mo ADDED
Binary file
inc/translations/adminmenu-de_DE.po ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Ozh' Admin Drop Down Menu\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-08-25 16:23+0100\n"
6
+ "Last-Translator: Christoph Fertinger <allcf@arcor.de>\n"
7
+ "Language-Team: Ozh <ozh at planetozh dot com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-KeywordsList: wp_ozh_adminmenu__\n"
12
+ "X-Poedit-Basepath: E:\\home\\ozh\\planetozh.com\\blog\\wp-content\\plugins\\ozh-admin-drop-down-menu\n"
13
+ "X-Poedit-Language: English\n"
14
+ "X-Poedit-SearchPath-0: E:\\home\\ozh\\planetozh.com\\blog\\wp-content\\plugins\\ozh-admin-drop-down-menu\n"
15
+
16
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:32
17
+ msgid "updated"
18
+ msgstr "aktualisiert"
19
+
20
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:37
21
+ msgid "deleted"
22
+ msgstr "gel&ouml;scht"
23
+
24
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:42
25
+ #, php-format
26
+ msgid "Admin Drop Down Menu settings <strong>%s</strong>"
27
+ msgstr "Admin Drop Down Men&uuml; Einstellungen <strong>%s</strong>"
28
+
29
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:81
30
+ msgid "Icons"
31
+ msgstr "Icons"
32
+
33
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:82
34
+ msgid "Display menu icons"
35
+ msgstr "Zeige Men&uuml; Icons"
36
+
37
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:83
38
+ #, php-format
39
+ msgid "They're so cute (and they're from %s)"
40
+ msgstr "Die sind klasse (und von %s)"
41
+
42
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:86
43
+ msgid "Submenus"
44
+ msgstr "Untermen&uuml;s"
45
+
46
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:87
47
+ msgid "Display sub menus the regular way"
48
+ msgstr "Men&uuml;s normal anzeigen"
49
+
50
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:88
51
+ msgid "Some like it better when sub menus don't even need you to hover the top menu link"
52
+ msgstr "Das Standart-Men&uuml; ebenfalls anzeigen"
53
+
54
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:91
55
+ msgid "Break Long Lists"
56
+ msgstr "K&uuml;rze lange Listen"
57
+
58
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:92
59
+ #, php-format
60
+ msgid "Break if more than %s menu entries"
61
+ msgstr "K&uuml;rzen bei mehr als %s Eintr&auml;gen"
62
+
63
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:93
64
+ msgid "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)"
65
+ msgstr "Wenn eine Dropdown-Men&uuml; mehr Eintr&auml;ge hat, wird es horizontal dargestellt, so dass es hoffentlich auf Deinen Bildschirm passt (ben&ouml;tigt Javascript)"
66
+
67
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:96
68
+ msgid "Top Links"
69
+ msgstr "Top Links"
70
+
71
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:97
72
+ msgid "Make top links clickable"
73
+ msgstr "Top Links anklickbar machen"
74
+
75
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:98
76
+ msgid "Uncheck this option to improve compatibility with browsers that cannot handle the \"hover\" event (<em>ie</em> most handheld devices)"
77
+ msgstr "Deaktiviere diese Option, um die Kompatibilit&auml;t mit Browsern, die den \"hover\" Befehl nicht unterst&uuml;tzen (in der Regel Handhelds), zu verbessern"
78
+
79
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:101
80
+ msgid "Give Some &hearts;"
81
+ msgstr "Zuneigung zeigen &hearts;"
82
+
83
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:102
84
+ #, php-format
85
+ msgid "Do you like this plugin? Then <a href=\"%s\">rate it 5 Stars</a> on the official Plugin Directory!"
86
+ msgstr "Du magst dieses Plugin? Dann <a href=\"%s\">bewerte es mit 5 Sternen</a> im offiziellen Plugin-Verzeichnis!"
87
+
88
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:103
89
+ #, php-format
90
+ msgid "Do you <em>love</em> this plugin? Please <a href=\"%s\">blog about it</a>! Tell your readers you like it so they will discover, try and hopefully like it too&nbsp;:)"
91
+ msgstr "Du <em>liebst</em> dieses Plugin? Dann <a href=\"%s\">schreibe dar&uuml;ber</a>! Berichte Deinen Lesern &uuml;ber dieses Plugin, damit sie es kennenlernen und hoffentlich genauso klasse finden &nbsp;:)"
92
+
93
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:104
94
+ #, php-format
95
+ msgid "Are you <span id=\"totallycrazy\">crazy</span> about this plugin? <a href=\"%s\">Paypal me a beer</a>! Every donation warms my heart and motivates me to release free stuff!"
96
+ msgstr "Du bist <span id=\"totallycrazy\">total verr&uuml;ckt</span> nach diesem Plugin? Dann <a href=\"%s\">spendiere mir ein Bier via Paypal</a>! Jede Spende freut mich und motiviert mich, freie Software zu ver&ouml;ffentlichen!"
97
+
98
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:127
99
+ msgid "Save Changes"
100
+ msgstr "&Auml;nderungen speichern"
101
+
102
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:127
103
+ msgid "(might need a page refresh here)"
104
+ msgstr "(Seite evtl. neu laden)"
105
+
106
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:133
107
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:147
108
+ msgid "Reset Settings"
109
+ msgstr "Einstellungen zur&uuml;cksetzen"
110
+
111
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:142
112
+ msgid "Clicking the following button will remove all the settings for this plugin from your database. You might want to do so in the following cases:"
113
+ msgstr "Klicke hier, um alle Einstellung dieses Plugins aus der Datenbank zu entfernen. Das ist in folgenden F&auml;llen sinnvoll:"
114
+
115
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:144
116
+ msgid "you want to uninstall the plugin and leave no unnecessary entries in your database."
117
+ msgstr "Du willst das Plugin deinstalieren und keine unn&ouml;tigen Eintr&auml;ge in der Datenbank zur&uuml;cklassen."
118
+
119
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:145
120
+ msgid "you want all settings to be reverted to their default values"
121
+ msgstr "Du willst die Einstellungen auf die Standartwerte zur&uuml;cksetzen"
122
+
123
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:147
124
+ msgid "Really do?"
125
+ msgstr "Bist Du sicher?"
126
+
127
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:148
128
+ msgid "There is no undo, so be very sure you want to click the button!"
129
+ msgstr "Dieser Schritt kann nicht r&uuml;ckg&auml;ngig gemacht werden!"
130
+
inc/translations/adminmenu-es_ES.mo ADDED
Binary file
inc/translations/adminmenu-es_ES.po ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Ozh' Admin Drop Down Menu\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-08-25 21:37-0600\n"
6
+ "Last-Translator: Karin Sequen <karin.sequen@bumerang180.com>\n"
7
+ "Language-Team: Bumerang 180 <info at bumerang dot com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-KeywordsList: wp_ozh_adminmenu__\n"
12
+ "X-Poedit-Basepath: E:\\home\\ozh\\planetozh.com\\blog\\wp-content\\plugins\\ozh-admin-drop-down-menu\n"
13
+ "X-Poedit-Language: Spanish\n"
14
+ "X-Poedit-Country: GUATEMALA\n"
15
+ "X-Poedit-SearchPath-0: E:\\home\\ozh\\planetozh.com\\blog\\wp-content\\plugins\\ozh-admin-drop-down-menu\n"
16
+
17
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:32
18
+ msgid "updated"
19
+ msgstr "actualizadas"
20
+
21
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:37
22
+ msgid "deleted"
23
+ msgstr "eliminadas"
24
+
25
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:42
26
+ #, php-format
27
+ msgid "Admin Drop Down Menu settings <strong>%s</strong>"
28
+ msgstr "Opciones de Admin Drop Down Menu <strong>%s</strong>"
29
+
30
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:81
31
+ msgid "Icons"
32
+ msgstr "Iconos"
33
+
34
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:82
35
+ msgid "Display menu icons"
36
+ msgstr "Mostrar iconos en los menús"
37
+
38
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:83
39
+ #, php-format
40
+ msgid "They're so cute (and they're from %s)"
41
+ msgstr "Son tan lindos (y provienen de %s)"
42
+
43
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:86
44
+ msgid "Submenus"
45
+ msgstr "Submenús"
46
+
47
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:87
48
+ msgid "Display sub menus the regular way"
49
+ msgstr "Mostrar submenús de la forma normal"
50
+
51
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:88
52
+ msgid "Some like it better when sub menus don't even need you to hover the top menu link"
53
+ msgstr "Algunos prefieren cuando los submenús no requiren que te posiciones sobre la opción principal del menú para desplegarse"
54
+
55
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:91
56
+ msgid "Break Long Lists"
57
+ msgstr "Partir Listas Largas"
58
+
59
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:92
60
+ #, php-format
61
+ msgid "Break if more than %s menu entries"
62
+ msgstr "Partir en columnas si hay más de %s opciones en el menú"
63
+
64
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:93
65
+ msgid "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)"
66
+ msgstr "Si un menú tiene más opciones que este valor, cambiará a modo horizontal para que quepan en tu pantalla (requiere javascript)"
67
+
68
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:96
69
+ msgid "Top Links"
70
+ msgstr "Enlaces Superiores"
71
+
72
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:97
73
+ msgid "Make top links clickable"
74
+ msgstr "Permitir hacer clic en los enlaces superiores"
75
+
76
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:98
77
+ msgid "Uncheck this option to improve compatibility with browsers that cannot handle the \"hover\" event (<em>ie</em> most handheld devices)"
78
+ msgstr "Desmarque esta opción para mejorar la compatibilidad con browsers que no pueden manejar el evento \"hover\" (<em>ie</em> debe manejar dispositivos)"
79
+
80
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:101
81
+ msgid "Give Some &hearts;"
82
+ msgstr "Da un poco de &hearts;"
83
+
84
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:102
85
+ #, php-format
86
+ msgid "Do you like this plugin? Then <a href=\"%s\">rate it 5 Stars</a> on the official Plugin Directory!"
87
+ msgstr "¿Te gusta este plugin? Entonces <a href=\"%s\">dale 5 estrellas</a> en el directorio oficial de plugins!"
88
+
89
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:103
90
+ #, php-format
91
+ msgid "Do you <em>love</em> this plugin? Please <a href=\"%s\">blog about it</a>! Tell your readers you like it so they will discover, try and hopefully like it too&nbsp;:)"
92
+ msgstr "¿Te <em>encanta</em> este plugin? Por favor <a href=\"%s\">promociónalo</a>! Cuéntale a tus lectores que te gusta para que ellos lo descubran, prueben y posiblemente disfruten también&nbsp;:)"
93
+
94
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:104
95
+ #, php-format
96
+ msgid "Are you <span id=\"totallycrazy\">crazy</span> about this plugin? <a href=\"%s\">Paypal me a beer</a>! Every donation warms my heart and motivates me to release free stuff!"
97
+ msgstr "¿Estás <span id=\"totallycrazy\">loco</span> por este plugin? <a href=\"%s\">Haz una donación vía Paypal</a>! Cada donación anima mi corazón y me motiva a continuar ofreciendo cosas gratuitas!"
98
+
99
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:127
100
+ msgid "Save Changes"
101
+ msgstr "Guardar Cambios"
102
+
103
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:127
104
+ msgid "(might need a page refresh here)"
105
+ msgstr "(puede necesitar volver a cargar la página aquí)"
106
+
107
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:133
108
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:147
109
+ msgid "Reset Settings"
110
+ msgstr "Reiniciar Opciones"
111
+
112
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:142
113
+ msgid "Clicking the following button will remove all the settings for this plugin from your database. You might want to do so in the following cases:"
114
+ msgstr "Al hacer clic en el siguiente botón se removerán todas las configuraciones de este plugin de tu base de datos. Es posible que quieras hacerlo en alguno de estos casos:"
115
+
116
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:144
117
+ msgid "you want to uninstall the plugin and leave no unnecessary entries in your database."
118
+ msgstr "deseas desinstalar el plugin y no dejar información innecesaria en tu base de datos."
119
+
120
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:145
121
+ msgid "you want all settings to be reverted to their default values"
122
+ msgstr "deseas que todas las opciones vuelvan a tener sus valores predeterminados."
123
+
124
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:147
125
+ msgid "Really do?"
126
+ msgstr "¿En verdad deseas hacer esto?"
127
+
128
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:148
129
+ msgid "There is no undo, so be very sure you want to click the button!"
130
+ msgstr "No hay opción de deshacer, así que sea muy cuidadoso al darle clic a este botón!"
131
+
inc/translations/adminmenu-fr_FR.mo ADDED
Binary file
inc/translations/adminmenu-fr_FR.po ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Ozh' Admin Drop Down Menu\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-08-22 17:14+0100\n"
6
+ "Last-Translator: Ozh <ozh at planetozh dot com>\n"
7
+ "Language-Team: Ozh <ozh at planetozh dot com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-KeywordsList: wp_ozh_adminmenu__\n"
12
+ "X-Poedit-Basepath: E:\\home\\ozh\\planetozh.com\\blog\\wp-content\\plugins\\ozh-admin-drop-down-menu\n"
13
+ "X-Poedit-Language: French\n"
14
+ "X-Poedit-Country: FRANCE\n"
15
+ "X-Poedit-SearchPath-0: E:\\home\\ozh\\planetozh.com\\blog\\wp-content\\plugins\\ozh-admin-drop-down-menu\n"
16
+
17
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:32
18
+ msgid "updated"
19
+ msgstr "mises à jour"
20
+
21
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:37
22
+ msgid "deleted"
23
+ msgstr "supprimées"
24
+
25
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:42
26
+ #, php-format
27
+ msgid "Admin Drop Down Menu settings <strong>%s</strong>"
28
+ msgstr "Préférences pour Admin Drop Down Menu <strong>%s</strong>"
29
+
30
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:81
31
+ msgid "Icons"
32
+ msgstr "Icones"
33
+
34
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:82
35
+ msgid "Display menu icons"
36
+ msgstr "Afficher les icones dans les menus"
37
+
38
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:83
39
+ #, php-format
40
+ msgid "They're so cute (and they're from %s)"
41
+ msgstr "Elles sont si mignonnes (et elles viennent de %s)"
42
+
43
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:86
44
+ msgid "Submenus"
45
+ msgstr "Sous-menus"
46
+
47
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:87
48
+ msgid "Display sub menus the regular way"
49
+ msgstr "Afficher les sous-menus à l'ancienne"
50
+
51
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:88
52
+ msgid "Some like it better when sub menus don't even need you to hover the top menu link"
53
+ msgstr "Pour ceux qui préfèrent quand les sous-menus sont directement accessibles sans avoir besoin de survoler les menus du haut."
54
+
55
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:91
56
+ msgid "Break Long Lists"
57
+ msgstr "Couper les longues listes"
58
+
59
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:92
60
+ #, php-format
61
+ msgid "Break if more than %s menu entries"
62
+ msgstr "Couper si un menu a plus de %s lignes"
63
+
64
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:93
65
+ msgid "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)"
66
+ msgstr "Si un menu comporte plus d'éléments que cette valeur, il basculera en mode horizontal afin de pouvoir être affiché en entier (nécessite que javascript soit activé)"
67
+
68
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:96
69
+ msgid "Top Links"
70
+ msgstr "Liens du haut"
71
+
72
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:97
73
+ msgid "Make top links clickable"
74
+ msgstr "Rendre les liens du haut clicables"
75
+
76
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:98
77
+ msgid "Uncheck this option to improve compatibility with browsers that cannot handle the \"hover\" event (<em>ie</em> most handheld devices)"
78
+ msgstr "Décocher cette option améliore la compatibilité avec les navigateurs qui ne supportent pas l'évènement \"hover\" (la plupart des PDA et téléphones)"
79
+
80
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:101
81
+ msgid "Give Some &hearts;"
82
+ msgstr "Un peu d'&hearts;"
83
+
84
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:102
85
+ #, php-format
86
+ msgid "Do you like this plugin? Then <a href=\"%s\">rate it 5 Stars</a> on the official Plugin Directory!"
87
+ msgstr "Vous appréciez ce plugin? Alors <a href=\"%s\">donnez lui 5 étoiles</a> dans le répertoire officiel des plugins!"
88
+
89
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:103
90
+ #, php-format
91
+ msgid "Do you <em>love</em> this plugin? Please <a href=\"%s\">blog about it</a>! Tell your readers you like it so they will discover, try and hopefully like it too&nbsp;:)"
92
+ msgstr "Vous <em>aimez</em> ce plugin? Parlez-en, <a href=\"%s\">blogguez-le</a>! Faites le découvrir à vos lecteurs qui peut-être l'essaieront et l'aimeront aussi!&nbsp;:)"
93
+
94
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:104
95
+ #, php-format
96
+ msgid "Are you <span id=\"totallycrazy\">crazy</span> about this plugin? <a href=\"%s\">Paypal me a beer</a>! Every donation warms my heart and motivates me to release free stuff!"
97
+ msgstr "Vous êtes <span id=\"totallycrazy\">dingue</span> de ce plugin? <a href=\"%s\">Paypalez moi une bière</a>! Chaque donation me fait chaud au coeur et me motive pour continuer à faire et améliorer mes plugins!"
98
+
99
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:127
100
+ msgid "Save Changes"
101
+ msgstr "Sauver"
102
+
103
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:127
104
+ msgid "(might need a page refresh here)"
105
+ msgstr "(nécessitera peut-être un rafraîchissement de la page)"
106
+
107
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:133
108
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:147
109
+ msgid "Reset Settings"
110
+ msgstr "Réinitialiser les préférences"
111
+
112
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:142
113
+ msgid "Clicking the following button will remove all the settings for this plugin from your database. You might want to do so in the following cases:"
114
+ msgstr "Cliquer sur ce bouton effacera toutes les préférences pour ce plugin de la base de données, ce que vous pourriez vouloir faire pour deux raisons:"
115
+
116
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:144
117
+ msgid "you want to uninstall the plugin and leave no unnecessary entries in your database."
118
+ msgstr "vous voulez désinstaller ce plugin et ne laisser aucune trace inutile dans la base de données"
119
+
120
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:145
121
+ msgid "you want all settings to be reverted to their default values"
122
+ msgstr "vous voulez réinitialiser les préférences de ce plugin à leurs valeurs par défaut"
123
+
124
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:147
125
+ msgid "Really do?"
126
+ msgstr "Vraiment?"
127
+
128
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:148
129
+ msgid "There is no undo, so be very sure you want to click the button!"
130
+ msgstr "Il n'y a pas de fonction \"annuler\", soyez donc sûr de ce que vous faites!"
131
+
inc/translations/adminmenu-it_IT.mo ADDED
Binary file
inc/translations/adminmenu-it_IT.po ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Ozh' Admin Drop Down Menu in italiano\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-08-22 10:58+0100\n"
6
+ "Last-Translator: Gianni Diurno (aka gidibao) <gidibao@gmail.com>\n"
7
+ "Language-Team: Gianni Diurno | http://gidibao.net/ <gidibao at gmail dot com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-KeywordsList: wp_ozh_adminmenu__\n"
12
+ "X-Poedit-Basepath: E:\\home\\ozh\\planetozh.com\\blog\\wp-content\\plugins\\ozh-admin-drop-down-menu\n"
13
+ "X-Poedit-Language: Italian\n"
14
+ "X-Poedit-Country: ITALY\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-SearchPath-0: E:\\home\\ozh\\planetozh.com\\blog\\wp-content\\plugins\\ozh-admin-drop-down-menu\n"
17
+
18
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:32
19
+ msgid "updated"
20
+ msgstr "aggiornato"
21
+
22
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:37
23
+ msgid "deleted"
24
+ msgstr "cancellato"
25
+
26
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:42
27
+ #, php-format
28
+ msgid "Admin Drop Down Menu settings <strong>%s</strong>"
29
+ msgstr "Impostazioni menu Drop Down di amministrazione <strong>%s</strong>"
30
+
31
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:81
32
+ msgid "Icons"
33
+ msgstr "Icone"
34
+
35
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:82
36
+ msgid "Display menu icons"
37
+ msgstr "Mostra il menu ad icone"
38
+
39
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:83
40
+ #, php-format
41
+ msgid "They're so cute (and they're from %s)"
42
+ msgstr "(icone fornite da %s)"
43
+
44
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:86
45
+ msgid "Submenus"
46
+ msgstr "Menu a discesa"
47
+
48
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:87
49
+ msgid "Display sub menus the regular way"
50
+ msgstr "Mostra i sotto-menu nel modo consueto"
51
+
52
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:88
53
+ msgid "Some like it better when sub menus don't even need you to hover the top menu link"
54
+ msgstr "Qualora preferissi non utilizzare la funzione hover per la navigazione dei link dal menu principale "
55
+
56
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:91
57
+ msgid "Break Long Lists"
58
+ msgstr "Elenchi"
59
+
60
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:92
61
+ #, php-format
62
+ msgid "Break if more than %s menu entries"
63
+ msgstr "Spezza in presenza di più di %s voci nel menu"
64
+
65
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:93
66
+ msgid "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)"
67
+ msgstr "Se il numero degli elementi sarà superiore a questo valore, la loro disposizione verrà mostrata orizzontalmente nella speranza che la visualizzazione possa essere adeguata allo schermo (javascript necessario) "
68
+
69
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:96
70
+ msgid "Top Links"
71
+ msgstr "Link principali"
72
+
73
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:97
74
+ msgid "Make top links clickable"
75
+ msgstr "Rende cliccabili i link del menu principale"
76
+
77
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:98
78
+ msgid "Uncheck this option to improve compatibility with browsers that cannot handle the \"hover\" event (<em>ie</em> most handheld devices)"
79
+ msgstr "Leva il segno di spunta per migliorare la compatibilità con quella tipologia di browsers che non sono in grado di gestire la funzione \"hover\" (<em>ie</em>)"
80
+
81
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:101
82
+ msgid "Give Some &hearts;"
83
+ msgstr "Riconoscimenti"
84
+
85
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:102
86
+ #, php-format
87
+ msgid "Do you like this plugin? Then <a href=\"%s\">rate it 5 Stars</a> on the official Plugin Directory!"
88
+ msgstr "Ti piace questo plugin? Allora <a href=\"%s\">vota 5 stelle</a> nella Plugin Directory ufficiale!"
89
+
90
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:103
91
+ #, php-format
92
+ msgid "Do you <em>love</em> this plugin? Please <a href=\"%s\">blog about it</a>! Tell your readers you like it so they will discover, try and hopefully like it too&nbsp;:)"
93
+ msgstr "<em>Ami</em> questo plugin? Scrivi un <a href=\"%s\">articolo</a> nel tuo blog! Racconta ai tuoi lettori quanto ti piaccia facendo sì che anche loro lo possano conoscere&nbsp;:)"
94
+
95
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:104
96
+ #, php-format
97
+ msgid "Are you <span id=\"totallycrazy\">crazy</span> about this plugin? <a href=\"%s\">Paypal me a beer</a>! Every donation warms my heart and motivates me to release free stuff!"
98
+ msgstr "Sei <span id=\"totallycrazy\">follemente</span> innamorato di questo plugin? <a href=\"%s\">offrimi una birra con Paypal</a>! Ogni donazione affrancherà il mio cuore motivandomi ulteriormente nella creazione di nuovi plugin!"
99
+
100
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:127
101
+ msgid "Save Changes"
102
+ msgstr "Salva le modifiche"
103
+
104
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:127
105
+ msgid "(might need a page refresh here)"
106
+ msgstr "(potrebbe essere necessario ricaricare la pagina)"
107
+
108
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:133
109
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:147
110
+ msgid "Reset Settings"
111
+ msgstr "Ripristino impostazioni"
112
+
113
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:142
114
+ msgid "Clicking the following button will remove all the settings for this plugin from your database. You might want to do so in the following cases:"
115
+ msgstr "Cliccando sul pulsante verranno rimosse dal database tutte le impostazioni per il plugin. L'operazione é necessaria nei seguenti casi:"
116
+
117
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:144
118
+ msgid "you want to uninstall the plugin and leave no unnecessary entries in your database."
119
+ msgstr "desideri disinstallare il plugin e non lasciare alcun dato inutile nel database"
120
+
121
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:145
122
+ msgid "you want all settings to be reverted to their default values"
123
+ msgstr "desideri che tutte le impostazioni siano ripristinate ai loro valori predefiniti"
124
+
125
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:147
126
+ msgid "Really do?"
127
+ msgstr "Sei certo?"
128
+
129
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:148
130
+ msgid "There is no undo, so be very sure you want to click the button!"
131
+ msgstr "L'operazione sarà irreversibile. Sii ben certo di quello che stai facendo prima di cliccare il bottone!"
132
+
133
+ #~ msgid "They're so cute."
134
+ #~ msgstr "Bellissime"
135
+
inc/translations/adminmenu.pot ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Ozh' Admin Drop Down Menu\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-08-22 11:12+0100\n"
6
+ "Last-Translator: Ozh <ozh at planetozh dot com>\n"
7
+ "Language-Team: Ozh <ozh at planetozh dot com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-KeywordsList: wp_ozh_adminmenu__\n"
12
+ "X-Poedit-Basepath: E:\\home\\ozh\\planetozh.com\\blog\\wp-content\\plugins\\ozh-admin-drop-down-menu\n"
13
+ "X-Poedit-Language: English\n"
14
+ "X-Poedit-SearchPath-0: E:\\home\\ozh\\planetozh.com\\blog\\wp-content\\plugins\\ozh-admin-drop-down-menu\n"
15
+
16
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:32
17
+ msgid "updated"
18
+ msgstr ""
19
+
20
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:37
21
+ msgid "deleted"
22
+ msgstr ""
23
+
24
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:42
25
+ #, php-format
26
+ msgid "Admin Drop Down Menu settings <strong>%s</strong>"
27
+ msgstr ""
28
+
29
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:81
30
+ msgid "Icons"
31
+ msgstr ""
32
+
33
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:82
34
+ msgid "Display menu icons"
35
+ msgstr ""
36
+
37
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:83
38
+ #, php-format
39
+ msgid "They're so cute (and they're from %s)"
40
+ msgstr ""
41
+
42
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:86
43
+ msgid "Submenus"
44
+ msgstr ""
45
+
46
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:87
47
+ msgid "Display sub menus the regular way"
48
+ msgstr ""
49
+
50
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:88
51
+ msgid "Some like it better when sub menus don't even need you to hover the top menu link"
52
+ msgstr ""
53
+
54
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:91
55
+ msgid "Break Long Lists"
56
+ msgstr ""
57
+
58
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:92
59
+ #, php-format
60
+ msgid "Break if more than %s menu entries"
61
+ msgstr ""
62
+
63
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:93
64
+ msgid "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)"
65
+ msgstr ""
66
+
67
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:96
68
+ msgid "Top Links"
69
+ msgstr ""
70
+
71
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:97
72
+ msgid "Make top links clickable"
73
+ msgstr ""
74
+
75
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:98
76
+ msgid "Uncheck this option to improve compatibility with browsers that cannot handle the \"hover\" event (<em>ie</em> most handheld devices)"
77
+ msgstr ""
78
+
79
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:101
80
+ msgid "Give Some &hearts;"
81
+ msgstr ""
82
+
83
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:102
84
+ #, php-format
85
+ msgid "Do you like this plugin? Then <a href=\"%s\">rate it 5 Stars</a> on the official Plugin Directory!"
86
+ msgstr ""
87
+
88
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:103
89
+ #, php-format
90
+ msgid "Do you <em>love</em> this plugin? Please <a href=\"%s\">blog about it</a>! Tell your readers you like it so they will discover, try and hopefully like it too&nbsp;:)"
91
+ msgstr ""
92
+
93
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:104
94
+ #, php-format
95
+ msgid "Are you <span id=\"totallycrazy\">crazy</span> about this plugin? <a href=\"%s\">Paypal me a beer</a>! Every donation warms my heart and motivates me to release free stuff!"
96
+ msgstr ""
97
+
98
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:127
99
+ msgid "Save Changes"
100
+ msgstr ""
101
+
102
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:127
103
+ msgid "(might need a page refresh here)"
104
+ msgstr ""
105
+
106
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:133
107
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:147
108
+ msgid "Reset Settings"
109
+ msgstr ""
110
+
111
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:142
112
+ msgid "Clicking the following button will remove all the settings for this plugin from your database. You might want to do so in the following cases:"
113
+ msgstr ""
114
+
115
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:144
116
+ msgid "you want to uninstall the plugin and leave no unnecessary entries in your database."
117
+ msgstr ""
118
+
119
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:145
120
+ msgid "you want all settings to be reverted to their default values"
121
+ msgstr ""
122
+
123
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:147
124
+ msgid "Really do?"
125
+ msgstr ""
126
+
127
+ #: E:\home\ozh\planetozh.com\blog\wp-content\plugins\ozh-admin-drop-down-menu/inc/options.php:148
128
+ msgid "There is no undo, so be very sure you want to click the button!"
129
+ msgstr ""
130
+
readme.txt ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 2.5
5
+ Tested up to: 2.6.5
6
+ Stable tag: trunk
7
+ Contributors: ozh
8
+
9
+ All admin links available in a neat drop down menu. Go to any admin page from any admin page in 1 click.
10
+
11
+ == Description ==
12
+
13
+ The lazy and the productive will love it : all admin links available in a neat CSS driven drop down menu. No need to click on "Manage" then "Pages" to edit pages, go to *any admin page* from *any admin page*.
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 2.5+ only. For WordPress 2.3.3 and older, see the plugin's page and download the old version (1.3.1)
18
+
19
+ == Screenshots ==
20
+
21
+ 1. Regular drop down menu, with no icons
22
+ 2. Drop down menu with icons (optional)
23
+
24
+ == Installation ==
25
+
26
+ Installation is, as usual :
27
+
28
+ 1. Upload files to your `/wp-content/plugins/` directory (preserve sub-directory structure if applicable)
29
+ 1. Activate the plugin through the 'Plugins' menu in WordPress
30
+ 1. Refer to the official plugin page for documentation, usage and tips
screenshot-1.png ADDED
Binary file
screenshot-2.png ADDED
Binary file
wp_ozh_adminmenu.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
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: Replaces admin menus with a CSS dropdown menu bar. Saves lots of clicks and page loads! <strong>For WordPress 2.5+</strong>
6
+ Version: 2.3.4.1
7
+ Author: Ozh
8
+ Author URI: http://planetOzh.com/
9
+ */
10
+
11
+ /* Release History :
12
+ * 1.0: Initial release
13
+ * 1.1: Tiger Admin compatibility !
14
+ * 1.2: Multiple Page Plugin (ex: Akismet) compatibility and minor CSS improvements
15
+ * 1.3: Fix for plugins with subfolders on Windows WP installs
16
+ * 1.3.1: Minor CSS tweaks
17
+ * 2.0: Complete rewrite for WordPress 2.5
18
+ * 2.0.1: Fixed: Bug with uploader
19
+ * 2.0.2: Improved: Compatibility with admin custom CSS (some colors are now dynamically picked)
20
+ Fixed: Bug with submenu under plugin toplevel menus
21
+ Fixed: WP's internal behavior or rewriting the "Manage" link according to the current "Write" page and vice-versa (makes sense?:)
22
+ Added: Option to display original submenu, per popular demand
23
+ * 2.0.3: Fixed: CSS bug with uploader, again. Grrrr.
24
+ * 2.1: Added: WordPress Mu compatibility \o/
25
+ Fixed: CSS issues with IE7, thanks Stuart
26
+ Added: Ability to dynamically resize menu on two lines when too many entries.
27
+ Added: Option to set max number of submenu entries before switching to horizontal display
28
+ * 2.2: Fixed: Compatibilty with WP 2.6 (thanks to Matt Robenolt from ydekproductions.com for saving me some time:)
29
+ Added: Option page
30
+ Improved: Compatibility with handheld devices
31
+ Improved: File structure for minimal memory footprint
32
+ * 2.2.1: Improved: Some CSS tweaks (thanks to Dan Rubin)
33
+ Improved: The comment bubble now points to moderation
34
+ Improved: Compatibility with Fluency (and even fixing stuff on the Fluency side)
35
+ * 2.2.1.1: Fixed: A depecrated function was in! (Thanks Scribu)
36
+ Added: A small LOLZ on the Option page :)
37
+ * 2.3: Added: hooks! HOOKS!! API to allow other plugins to interact more easily. This is l33t.
38
+ Added: CSS classes and ids to all menu elements
39
+ Added: Optional icons for menu elements
40
+ Added: Ready for translation
41
+ * 2.3.1: Fixed: Was always showing plugin special icons even with icons disabled
42
+ * 2.3.2: Fixed: Top level links could be wrong
43
+ * 2.3.4: Improved: Compatibility with Fluency yet again
44
+ Improved: Smarter submenu breaking with too long lists (now columns)
45
+ Improved: Better handling of POST on plugin page
46
+ Fixed: Bug with Safari and the resize menu stuff
47
+ Added: French and Italian translations
48
+ Improved: Support for WordPress Mu with specific icons
49
+ * 2.3.4.1: Fixed, or maybe not: same bug with Safari on Mac. This browser is a crap, Safari users I pity you.
50
+ * 2.3.4.2: Fixed: potential incompatibility with plugins using post-admin.php
51
+ */
52
+
53
+
54
+ /***** Hook things in when visiting an admin page. When viewing a blog page, nothing even loads in memory. ****/
55
+
56
+ if (is_admin()) {
57
+ global $wp_ozh_adminmenu;
58
+ require_once(dirname(__FILE__).'/inc/core.php');
59
+ add_action('init', create_function('', 'wp_enqueue_script("jquery");')); // Make sure jQuery is always loaded
60
+ add_action('admin_menu', 'wp_ozh_adminmenu_init', -1000); // Init plugin defaults or read options
61
+ add_action('admin_menu', 'wp_ozh_adminmenu_add_page', -999); // Add option page
62
+ add_action('dashmenu', 'wp_ozh_adminmenu'); // Replace the menus with our stuff
63
+ add_action('admin_head', 'wp_ozh_adminmenu_head', 999); // Insert CSS & JS in <head>
64
+ add_action('in_admin_footer', 'wp_ozh_adminmenu_footer'); // Add unobstrusive credits in footer
65
+
66
+ global $wpmu_version;
67
+ if ($wpmu_version) {
68
+ require_once(dirname(__FILE__).'/inc/mu.php');
69
+ add_action( '_admin_menu', 'wp_ozh_adminmenu_remove_blogswitch_init', -100 ); // MU specific menu takeover
70
+ }
71
+ }
72
+
73
+ ?>