Dropdown Menu Widget - Version 1.5.5

Version Description

  • New theme! Hulu style theme.
  • Added new action hooks to insert your items to the dropdown menu.
Download this release

Release Info

Developer mattsay
Plugin Icon wp plugin Dropdown Menu Widget
Version 1.5.5
Comparing to
See all releases

Code changes from version 1.5.4 to 1.5.5

readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://shailan.com/donate
4
  Tags: css, dropdown, menu, widget, pages, categories, multi
5
  Requires at least: 2.8
6
  Tested up to: 3.0
7
- Stable tag: 1.5.4
8
 
9
  This widget adds a beatiful vertical/horizontal CSS only dropdown menu of Pages, Categories or Custom navigation menus of your blog.
10
 
@@ -47,6 +47,10 @@ You can submit errors and bugs using the [online form](http://shailan.com/contac
47
 
48
  == Changelog ==
49
 
 
 
 
 
50
  = 1.5.4 =
51
  * Added first-child & last-child selector for styling to dropdown menu. (available when jquery is active only)
52
  * Fixed IE display errors for shiny black theme.
4
  Tags: css, dropdown, menu, widget, pages, categories, multi
5
  Requires at least: 2.8
6
  Tested up to: 3.0
7
+ Stable tag: 1.5.5
8
 
9
  This widget adds a beatiful vertical/horizontal CSS only dropdown menu of Pages, Categories or Custom navigation menus of your blog.
10
 
47
 
48
  == Changelog ==
49
 
50
+ = 1.5.5 =
51
+ * New theme! Hulu style theme.
52
+ * Added new action hooks to insert your items to the dropdown menu.
53
+
54
  = 1.5.4 =
55
  * Added first-child & last-child selector for styling to dropdown menu. (available when jquery is active only)
56
  * Fixed IE display errors for shiny black theme.
shailan.DropDownMenu.php CHANGED
@@ -3,13 +3,14 @@
3
  Plugin Name: Dropdown Menu Widget
4
  Plugin URI: http://shailan.com/wordpress/plugins/dropdown-menu
5
  Description: A multi widget to generate drop-down menus from your pages, categories & navigation menus. You can find more widgets, plugins and themes at <a href="http://shailan.com">shailan.com</a>.
6
- Version: 1.5.4
 
7
  Author: Matt Say
8
  Author URI: http://shailan.com
9
  Text Domain: shailan-dropdown-menu
10
  */
11
 
12
- define('SHAILAN_DM_VERSION','1.5.4');
13
  define('SHAILAN_DM_TITLE', 'Dropdown Menu');
14
  define('SHAILAN_DM_FOLDER', 'dropdown-menu-widget');
15
 
@@ -40,12 +41,12 @@ class shailan_DropdownWidget extends WP_Widget {
40
  'Grayscale'=>'grayscale',
41
  'Aqua'=>'aqua',
42
  'Blue gradient'=>'simple-blue',
43
- /* 'Tabs Blue'=> 'tabs-blue', */
44
  'Shiny Black'=> 'shiny-black',
45
  'Flickr theme'=>'flickr.com/default.ultimate',
46
  'Nvidia theme'=>'nvidia.com/default.advanced',
47
  'Adobe theme'=>'adobe.com/default.advanced',
48
- 'MTV theme'=>'mtv.com/default.ultimate'
 
49
  );
50
 
51
  // Swap array for options page
@@ -267,10 +268,9 @@ class shailan_DropdownWidget extends WP_Widget {
267
 
268
  <?php
269
 
270
- $dropdown_open = '<div id="shailan-dropdown-wrapper-' . $this->number . '" ><div class="'.$orientation.'-container" align="' . $align . '" >
271
- <table cellpadding="0" cellspacing="0">
272
- <tr><td>';
273
 
 
274
  $list_open = '<ul class="dropdown '. $orientation . ' dropdown-align-'.$align.'">';
275
 
276
  if($home && ($type == 'pages' || $type == 'categories')){
@@ -289,11 +289,11 @@ class shailan_DropdownWidget extends WP_Widget {
289
 
290
  $list_close = ($admin ? wp_register('<li class="admintab">','</li>', false) : '') . ($login ? '<li class="page_item">'. wp_loginout('', false) . '</li>' : '') . '
291
  </ul>';
292
-
293
  $dropdown_close = '</td>
294
  </tr></table>
295
- </div>
296
- </div> ';
 
297
 
298
  $menu_defaults = array(
299
  'order_by'=>'name',
@@ -311,11 +311,17 @@ class shailan_DropdownWidget extends WP_Widget {
311
  $page_walker = new shailan_PageWalker();
312
  $menu_defaults = wp_parse_args( array('walker'=>$page_walker) , $menu_defaults ); }
313
 
 
 
314
  echo $dropdown_open;
315
  echo $list_open;
 
316
  wp_list_pages($menu_defaults);
 
317
  echo $list_close;
318
  echo $dropdown_close;
 
 
319
 
320
  break;
321
 
@@ -328,11 +334,17 @@ class shailan_DropdownWidget extends WP_Widget {
328
 
329
  if($show_empty){$menu_defaults = wp_parse_args( array('hide_empty'=>'0') , $menu_defaults ); }
330
 
 
 
331
  echo $dropdown_open;
332
  echo $list_open;
 
333
  wp_list_categories($menu_defaults);
 
334
  echo $list_close;
335
  echo $dropdown_close;
 
 
336
 
337
  break;
338
 
@@ -361,9 +373,13 @@ class shailan_DropdownWidget extends WP_Widget {
361
  $page_walker = new shailan_PageWalker();
362
  $menu_args = wp_parse_args( array('walker'=>$page_walker) , $menu_args ); }
363
 
 
 
364
  echo $dropdown_open;
365
  wp_nav_menu($menu_args);
366
  echo $dropdown_close;
 
 
367
 
368
  } // switch ($type)
369
 
3
  Plugin Name: Dropdown Menu Widget
4
  Plugin URI: http://shailan.com/wordpress/plugins/dropdown-menu
5
  Description: A multi widget to generate drop-down menus from your pages, categories & navigation menus. You can find more widgets, plugins and themes at <a href="http://shailan.com">shailan.com</a>.
6
+ Tags: dropdown, menu, css, css-dropdown, navigation, widget, dropdown-menu, customization, theme
7
+ Version: 1.5.5
8
  Author: Matt Say
9
  Author URI: http://shailan.com
10
  Text Domain: shailan-dropdown-menu
11
  */
12
 
13
+ define('SHAILAN_DM_VERSION','1.5.5');
14
  define('SHAILAN_DM_TITLE', 'Dropdown Menu');
15
  define('SHAILAN_DM_FOLDER', 'dropdown-menu-widget');
16
 
41
  'Grayscale'=>'grayscale',
42
  'Aqua'=>'aqua',
43
  'Blue gradient'=>'simple-blue',
 
44
  'Shiny Black'=> 'shiny-black',
45
  'Flickr theme'=>'flickr.com/default.ultimate',
46
  'Nvidia theme'=>'nvidia.com/default.advanced',
47
  'Adobe theme'=>'adobe.com/default.advanced',
48
+ 'MTV theme'=>'mtv.com/default.ultimate',
49
+ 'Hulu theme'=>'hulu/hulu'
50
  );
51
 
52
  // Swap array for options page
268
 
269
  <?php
270
 
271
+ $dropdown_wrapper_open = '<div id="shailan-dropdown-wrapper-' . $this->number . '" >';
 
 
272
 
273
+ $dropdown_open = '<div class="'.$orientation.'-container" align="' . $align . '" class="dm-align-'.$align.'"><table cellpadding="0" cellspacing="0"><tr><td>';
274
  $list_open = '<ul class="dropdown '. $orientation . ' dropdown-align-'.$align.'">';
275
 
276
  if($home && ($type == 'pages' || $type == 'categories')){
289
 
290
  $list_close = ($admin ? wp_register('<li class="admintab">','</li>', false) : '') . ($login ? '<li class="page_item">'. wp_loginout('', false) . '</li>' : '') . '
291
  </ul>';
 
292
  $dropdown_close = '</td>
293
  </tr></table>
294
+ </div>';
295
+
296
+ $dropdown_wrapper_close = '</div> ';
297
 
298
  $menu_defaults = array(
299
  'order_by'=>'name',
311
  $page_walker = new shailan_PageWalker();
312
  $menu_defaults = wp_parse_args( array('walker'=>$page_walker) , $menu_defaults ); }
313
 
314
+ echo $dropdown_wrapper_open;
315
+ do_action('dropdown_before');
316
  echo $dropdown_open;
317
  echo $list_open;
318
+ do_action('dropdown_list_before');
319
  wp_list_pages($menu_defaults);
320
+ do_action('dropdown_list_after');
321
  echo $list_close;
322
  echo $dropdown_close;
323
+ do_action('dropdown_after');
324
+ echo $dropdown_wrapper_close;
325
 
326
  break;
327
 
334
 
335
  if($show_empty){$menu_defaults = wp_parse_args( array('hide_empty'=>'0') , $menu_defaults ); }
336
 
337
+ echo $dropdown_wrapper_open;
338
+ do_action('dropdown_before');
339
  echo $dropdown_open;
340
  echo $list_open;
341
+ do_action('dropdown_list_before');
342
  wp_list_categories($menu_defaults);
343
+ do_action('dropdown_list_after');
344
  echo $list_close;
345
  echo $dropdown_close;
346
+ do_action('dropdown_after');
347
+ echo $dropdown_wrapper_close;
348
 
349
  break;
350
 
373
  $page_walker = new shailan_PageWalker();
374
  $menu_args = wp_parse_args( array('walker'=>$page_walker) , $menu_args ); }
375
 
376
+ echo $dropdown_wrapper_open;
377
+ do_action('dropdown_before');
378
  echo $dropdown_open;
379
  wp_nav_menu($menu_args);
380
  echo $dropdown_close;
381
+ do_action('dropdown_after');
382
+ echo $dropdown_wrapper_close;
383
 
384
  } // switch ($type)
385
 
themes/hulu/dock_bg.gif ADDED
Binary file
themes/hulu/hulu.css ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "UTF-8";
2
+
3
+ /** Container */
4
+ .shailan-dropdown-menu .dropdown-horizontal-container{ background:#ddd url('nav-background.gif') repeat-x bottom; height:27px !important; }
5
+
6
+ ul.dropdown li { color: #fff; text-align:center;
7
+ font-family:Arial, Verdana, Geneva, sans-serif; font-size:14px; font-weight:bold; text-shadow:#222 0px 1px 2px;
8
+ }
9
+ ul.dropdown-vertical li{ border-top:1px solid #4283b9; }
10
+ ul.dropdown li { border:none; }
11
+
12
+ /** Right align fix */
13
+ ul.dropdown-align-right li{ border-width: 0px 0px 0px 1px; }
14
+
15
+ /** Hover effect */
16
+ ul.dropdown li.hover, ul.dropdown li:hover { background:#444 url('nav-hover.gif') repeat-x bottom; }
17
+ ul.dropdown ul li.hover, ul.dropdown ul li:hover { background:transparent; }
18
+ ul.dropdown li.hover a, ul.dropdown li:hover a{background:transparent;}
19
+
20
+ /** Link colors */
21
+ ul.dropdown a:link, ul.dropdown a:visited { color: #fff; text-decoration: none; line-height:27px;}
22
+ ul.dropdown a:hover { color: #99cc33; background:transparent; }
23
+ ul.dropdown a:active { color: #fff; }
24
+
25
+ /** Sub menus */
26
+ ul.dropdown ul { margin-top: 0px; margin-left: -1px; border:none; border:0px;
27
+ background: url('dock_bg.gif') repeat-x 0% 0%;
28
+ color: #CCC;
29
+ cursor: default;
30
+ padding: 5px 0px;
31
+ }
32
+ ul.dropdown ul li { background:transparent; text-align: left; border:0px; border-top:1px solid #666; }
33
+ ul.dropdown ul li.first-child{border:0px;}
34
+ ul.dropdown ul li a{
35
+ color: white;
36
+ font-size: 12px;
37
+ font-weight: normal;
38
+ margin: 0px;
39
+ padding-bottom: 4px;
40
+ padding-left: 6px;
41
+ padding-top: 4px;
42
+ width: 100%;
43
+ }
44
+
45
+ /** Current menu item */
46
+ li.current-cat, li.current_page_item, li.current-menu-item{ background:#444 url('nav-hover.gif') repeat-x bottom; }
47
+ ul.dropdown ul li.current-cat a, ul.dropdown ul li.current_page_item a, ul.dropdown ul li.current-menu-item a{ color:#999; }
48
+
49
+ /** Not current fix */
50
+
themes/hulu/nav-background.gif ADDED
Binary file
themes/hulu/nav-hover.gif ADDED
Binary file