Dropdown Menu Widget - Version 1.9

Version Description

  • Changed: Minimized included CSS file.
  • Added: Support for changing arrow colors.
  • Added: Help links next to options settings fields.
  • Added: New Theme Rounded Corners.
  • Added: New Theme Rounded Corners Light.
  • Added: New Theme Pills.
Download this release

Release Info

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

Code changes from version 1.8.1 to 1.9

css/dropdown-admin.css CHANGED
@@ -191,7 +191,6 @@ font-size: 16px !important; font-weight:normal; text-shadow: #1A5B77 1px 1px 1px
191
  .stf_options ul.tabs li a.effects { padding-left:28px; background-image: url('images/lightning.png'); }
192
  .stf_options ul.tabs li a.template-tag { padding-left:28px; background-image: url('images/tag.png'); }
193
 
194
-
195
  /* Clearfix */
196
  .clearfix:after {
197
  clear: both;
191
  .stf_options ul.tabs li a.effects { padding-left:28px; background-image: url('images/lightning.png'); }
192
  .stf_options ul.tabs li a.template-tag { padding-left:28px; background-image: url('images/tag.png'); }
193
 
 
194
  /* Clearfix */
195
  .clearfix:after {
196
  clear: both;
css/shailan-dropdown.min.css ADDED
@@ -0,0 +1 @@
 
1
+ div.shailan-dropdown-menu table,div.shailan-dropdown-menu tbody,div.shailan-dropdown-menu tr,div.shailan-dropdown-menu td,div.shailan-dropdown-menu ul,div.shailan-dropdown-menu li,div.dropdown-horizontal-container,ul.dropdown *{margin:0;padding:0;border:0}.shailan-dropdown-menu{position:relative;z-index:597}ul.dropdown,ul.dropdown li,ul.dropdown ul{list-style:none;margin:0;padding:0}ul.dropdown li{position:relative;display:inline;vertical-align:middle;zoom:1}ul.dropdown li ul{position:absolute;z-index:598}ul.dropdown li.hover,ul.dropdown li:hover{cursor:default}ul.dropdown > li{float:left}ul.dropdown li a{padding:.3em .8em;cursor:pointer}ul.dropdown ul{position:absolute;top:100%;left:0}ul.dropdown ul li{float:none;display:list-item;list-style:none}ul.dropdown ul ul{top:1px;left:99%}ul.dropdown a:active,ul.dropdown a:focus{outline-style:none}* html ul.dropdown li{height:1px}ul.dropdown ul li,ul.dropdown-vertical{margin-left:0}ul.dropdown ul,ul.dropdown li.hover ul ul,ul.dropdown li.hover ul ul ul,ul.dropdown li.hover ul ul ul ul,ul.dropdown li.hover ul ul ul ul ul,ul.dropdown ul,ul.dropdown li:hover ul ul,ul.dropdown li:hover ul ul ul,ul.dropdown li:hover ul ul ul ul,ul.dropdown li:hover ul ul ul ul ul{display:none}ul.dropdown ul ul ul ul ul ul{display:none!important}.dm-align-right table{float:right}.dm-align-left table{float:left}ul.dropdown-horizontal.dropdown-align-right ul{right:0;left:auto}ul.dropdown-horizontal.dropdown-align-right ul ul{right:99%;left:auto}ul.dropdown-vertical.dropdown-align-left ul{top:1px;left:99%;right:auto}ul.dropdown-vertical.dropdown-align-right ul{top:1px;right:99%;left:auto}ul.dropdown-vertical li{float:none;display:block}.clearfix:after{clear:both;content:".";display:block;height:0;visibility:hidden}* html > body .clearfix{display:block;width:100%}* html .clearfix{height:1%}
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://shailan.com/donate
4
  Tags: css, dropdown, menu, widget, pages, categories, multi, jquery, navigation, category list, themes, custom-styles, options-page, animations, effects
5
  Requires at least: 2.8
6
  Tested up to: 3.3
7
- Stable tag: 1.8.1
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,14 @@ You can submit errors and bugs using the [online form](http://shailan.com/contac
47
 
48
  == Changelog ==
49
 
 
 
 
 
 
 
 
 
50
  = 1.8.1 =
51
  * Fixed: HoverIntent hotfix for older version users. (Thanks to Karsten)
52
  * Fixed: Various theme problems with vertical menus.
4
  Tags: css, dropdown, menu, widget, pages, categories, multi, jquery, navigation, category list, themes, custom-styles, options-page, animations, effects
5
  Requires at least: 2.8
6
  Tested up to: 3.3
7
+ Stable tag: 1.9
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.9 =
51
+ * Changed: Minimized included CSS file.
52
+ * Added: Support for changing arrow colors.
53
+ * Added: Help links next to options settings fields.
54
+ * Added: New Theme Rounded Corners.
55
+ * Added: New Theme Rounded Corners Light.
56
+ * Added: New Theme Pills.
57
+
58
  = 1.8.1 =
59
  * Fixed: HoverIntent hotfix for older version users. (Thanks to Karsten)
60
  * Fixed: Various theme problems with vertical menus.
shailan-dropdown-menu-options.php CHANGED
@@ -1,5 +1,9 @@
1
  <?php
2
 
 
 
 
 
3
  // Define themes
4
  $available_themes = array(
5
  'None' => '*none*',
@@ -17,7 +21,10 @@ $available_themes = array(
17
  'Nvidia theme' => plugins_url('/themes/nvidia.com/default.advanced.css', __FILE__),
18
  'Adobe theme' => plugins_url('/themes/adobe.com/default.advanced.css', __FILE__),
19
  'MTV theme' => plugins_url('/themes/mtv.com/default.ultimate.css', __FILE__),
20
- 'Hulu theme' => plugins_url('/themes/hulu/hulu.css', __FILE__)
 
 
 
21
  );
22
 
23
  // Check for theme style file
@@ -75,29 +82,35 @@ array(
75
  ),
76
 
77
  array( "name" => "Rename Homepage",
78
- "desc" => "You can change your homepage link here",
79
  "id" => "shailan_dm_home_tag",
80
  "std" => __("Home"),
81
  "type" => "text"),
82
 
83
  array( "name" => "Show parent indicators",
84
- "desc" => "This option will enable arrows next to parent items.",
85
  "id" => "shailan_dm_arrows",
86
  "type" => "checkbox",
87
  "std" => "on" ),
88
 
 
 
 
 
 
 
89
  array( "name" => "Wrap long menu items",
90
- "desc" => "If checked long menu items will wrap",
91
  "id" => "shailan_dm_allowmultiline",
92
  "type" => "checkbox"),
93
 
94
  array( "name" => "Remove title attributes",
95
- "desc" => "This will remove 'View all posts under..' title attributes from menu links",
96
  "id" => "shailan_dm_remove_title_attributes",
97
  "type" => "checkbox"),
98
 
99
  array( "name" => "Remove links from top levels",
100
- "desc" => "This will remove links from top level pages/categories. So user can only click to sub-level menu.",
101
  "id" => "shailan_dm_remove_top_level_links",
102
  "type" => "checkbox"),
103
 
@@ -110,24 +123,24 @@ array(
110
  ),
111
 
112
  array( "name" => "Enable dropdown effects",
113
- "desc" => "If checked sub menus will use effects below",
114
  "id" => "shailan_dm_effects",
115
  "type" => "checkbox"),
116
 
117
  array( "name" => "Effect",
118
- "desc" => "Select effect you want to use",
119
  "id" => "shailan_dm_effect",
120
  "type" => "select",
121
  "options" => $effects ),
122
 
123
  array( "name" => "Effect Speed",
124
- "desc" => "Select effect speed",
125
  "id" => "shailan_dm_effect_speed",
126
  "type" => "select",
127
  "options" => $speed ),
128
 
129
  array( "name" => "Effect delay",
130
- "desc" => "Select effect delay (hoverIntent script used for delayed effects.)",
131
  "id" => "shailan_dm_effect_delay",
132
  "type" => "select",
133
  "options" => $delay ),
@@ -141,14 +154,14 @@ array(
141
  ),
142
 
143
  array( "name" => "Dropdown Menu Theme",
144
- "desc" => "Skin for the menu",
145
  "id" => "shailan_dm_active_theme",
146
  "std" => "None",
147
  "options" => $themes,
148
  "type" => "select"),
149
 
150
  array( "name" => "Theme URL",
151
- "desc" => "If <strong>From URL</strong> is selected you can specify theme URL here. ",
152
  "id" => "shailan_dm_theme_url",
153
  "std" => "http://",
154
  "type" => "text"),
@@ -159,7 +172,7 @@ array(
159
  ),
160
 
161
  array( "name" => "Use custom colors",
162
- "desc" => "If not checked custom colors won't work.",
163
  "id" => "shailan_dm_custom_colors",
164
  "std" => true,
165
  "type" => "checkbox"),
@@ -167,31 +180,31 @@ array(
167
  array("type"=>"picker"),
168
 
169
  array( "name" => "Menu Background Color",
170
- "desc" => "Background color of the dropdown menu",
171
  "id" => "shailan_dm_color_menubg",
172
  "std" => '#000000',
173
  "type" => "text"),
174
 
175
  array( "name" => "Hover Background Color",
176
- "desc" => "Background color of list item link.",
177
  "id" => "shailan_dm_color_lihover",
178
  "std" => '#333333',
179
  "type" => "text"),
180
 
181
  array( "name" => "Link Text Color",
182
- "desc" => "Default link color",
183
  "id" => "shailan_dm_color_link",
184
  "std" => '#FFFFFF',
185
  "type" => "text"),
186
 
187
  array( "name" => "Link Text Color on mouse over",
188
- "desc" => "Secondary link color",
189
  "id" => "shailan_dm_color_hoverlink",
190
  "std" => '#FFFFFF',
191
  "type" => "text"),
192
 
193
  array( "name" => "Overlay",
194
- "desc" => "Menu overlay (Works on browsers that support png transparency only.)",
195
  "id" => "shailan_dm_overlay",
196
  "std" => "glass",
197
  "type" => "select",
@@ -206,27 +219,27 @@ array(
206
  ),
207
 
208
  array( "name" => "Dropdown Menu Font",
209
- "desc" => "Font family for the menu<br />Please leave blank to use your wordpress theme font.",
210
  "id" => "shailan_dm_font",
211
  "std" => '',
212
  "type" => "text"),
213
 
214
  array( "name" => "Dropdown Menu Font Size",
215
- "desc" => "Font size of the menu items (Eg: 12px OR 1em) <br />Please leave blank to use your wordpress theme font-size.",
216
  "id" => "shailan_dm_fontsize",
217
  "std" => '',
218
  "type" => "text"),
219
 
220
  array(
221
  "name" => "Custom CSS",
222
- "desc" => "You can paste your own customization file here.",
223
  "id" => "shailan_dm_custom_css",
224
  "std" => '',
225
  "type" => "textarea"
226
  ),
227
 
228
  array( "name" => "Show Empty Categories",
229
- "desc" => "If checked categories with no posts will be shown.",
230
  "id" => "shailan_dm_show_empty",
231
  "std" => false,
232
  "type" => "checkbox"),
@@ -240,49 +253,49 @@ array(
240
  ),
241
 
242
  array(
243
- "desc" => "Settings here only effect menus inserted with template tag : <code>&lt;?php shailan_dropdown_menu(); ?&gt;</code>. Widget settings are NOT affected by these settings. ",
244
  "type" => "paragraph"
245
  ),
246
 
247
  array( "name" => "Menu Type",
248
- "desc" => "Dropdown Menu Type",
249
  "id" => "shailan_dm_type",
250
  "std" => "pages",
251
  "options" => $types,
252
  "type" => "select"),
253
 
254
  array( "name" => "Home link",
255
- "desc" => "If checked dropdown menu displays home link",
256
  "id" => "shailan_dm_home",
257
  "std" => true,
258
  "type" => "checkbox"),
259
 
260
  array( "name" => "Login",
261
- "desc" => "If checked dropdown menu displays login link",
262
  "id" => "shailan_dm_login",
263
  "std" => true,
264
  "type" => "checkbox"),
265
 
266
  array( "name" => "Register / Site Admin",
267
- "desc" => "If checked dropdown menu displays register/site admin link.",
268
  "id" => "shailan_dm_login",
269
  "std" => true,
270
  "type" => "checkbox"),
271
 
272
  array( "name" => "Vertical menu",
273
- "desc" => "If checked dropdown menu is displayed vertical.",
274
  "id" => "shailan_dm_vertical",
275
  "std" => true,
276
  "type" => "checkbox"),
277
 
278
  array( "name" => "Exclude Pages",
279
- "desc" => "Excluded page IDs.",
280
  "id" => "shailan_dm_exclude",
281
  "std" => "",
282
  "type" => "text"),
283
 
284
  array( "name" => "Alignment",
285
- "desc" => "Menu alignment.",
286
  "id" => "shailan_dm_align",
287
  "std" => "left",
288
  "options" => $alignment,
1
  <?php
2
 
3
+ function help_icon($hash){
4
+ return " <a href=\"http://shailan.com/wordpress/plugins/dropdown-menu/help//#".$hash."\" class=\"help-icon\">(?)</a>";
5
+ }
6
+
7
  // Define themes
8
  $available_themes = array(
9
  'None' => '*none*',
21
  'Nvidia theme' => plugins_url('/themes/nvidia.com/default.advanced.css', __FILE__),
22
  'Adobe theme' => plugins_url('/themes/adobe.com/default.advanced.css', __FILE__),
23
  'MTV theme' => plugins_url('/themes/mtv.com/default.ultimate.css', __FILE__),
24
+ 'Hulu theme' => plugins_url('/themes/hulu/hulu.css', __FILE__),
25
+ 'Rounded Corners by Shailan' => plugins_url('/themes/rounded-corners.css', __FILE__),
26
+ 'Rounded Corners Light by Shailan' => plugins_url('/themes/rounded-corners-light.css', __FILE__),
27
+ 'Pills by Shailan' => plugins_url('/themes/pills.css', __FILE__)
28
  );
29
 
30
  // Check for theme style file
82
  ),
83
 
84
  array( "name" => "Rename Homepage",
85
+ "desc" => "You can change your homepage link text here " . help_icon("rename-homepage"),
86
  "id" => "shailan_dm_home_tag",
87
  "std" => __("Home"),
88
  "type" => "text"),
89
 
90
  array( "name" => "Show parent indicators",
91
+ "desc" => "This option will enable arrows next to parent items.". help_icon("parent-indicators"),
92
  "id" => "shailan_dm_arrows",
93
  "type" => "checkbox",
94
  "std" => "on" ),
95
 
96
+ array( "name" => "Indicator color",
97
+ "desc" => "Change indicator color (eg. #000000).". help_icon("indicator-color"),
98
+ "id" => "shailan_dm_arrow_color",
99
+ "std" => "rgba(0,0,0,0.5)",
100
+ "type" => "text"),
101
+
102
  array( "name" => "Wrap long menu items",
103
+ "desc" => "If checked long menu items will wrap". help_icon("wrap-long-menu-items"),
104
  "id" => "shailan_dm_allowmultiline",
105
  "type" => "checkbox"),
106
 
107
  array( "name" => "Remove title attributes",
108
+ "desc" => "This will remove 'View all posts under..' title attributes from menu links". help_icon("remove-title-attributes"),
109
  "id" => "shailan_dm_remove_title_attributes",
110
  "type" => "checkbox"),
111
 
112
  array( "name" => "Remove links from top levels",
113
+ "desc" => "This will remove links from top level pages/categories. So user can only click to sub-level menu.". help_icon("remove-links-from-top-levels"),
114
  "id" => "shailan_dm_remove_top_level_links",
115
  "type" => "checkbox"),
116
 
123
  ),
124
 
125
  array( "name" => "Enable dropdown effects",
126
+ "desc" => "If checked sub menus will use effects below". help_icon("enable-dropdown-effects"),
127
  "id" => "shailan_dm_effects",
128
  "type" => "checkbox"),
129
 
130
  array( "name" => "Effect",
131
+ "desc" => "Select effect you want to use".help_icon("effect"),
132
  "id" => "shailan_dm_effect",
133
  "type" => "select",
134
  "options" => $effects ),
135
 
136
  array( "name" => "Effect Speed",
137
+ "desc" => "Select effect speed".help_icon("effect-speed"),
138
  "id" => "shailan_dm_effect_speed",
139
  "type" => "select",
140
  "options" => $speed ),
141
 
142
  array( "name" => "Effect delay",
143
+ "desc" => "Select effect delay (uses hoverIntent)".help_icon("effect-delay"),
144
  "id" => "shailan_dm_effect_delay",
145
  "type" => "select",
146
  "options" => $delay ),
154
  ),
155
 
156
  array( "name" => "Dropdown Menu Theme",
157
+ "desc" => "Skin for the menu".help_icon("menu-theme"),
158
  "id" => "shailan_dm_active_theme",
159
  "std" => "None",
160
  "options" => $themes,
161
  "type" => "select"),
162
 
163
  array( "name" => "Theme URL",
164
+ "desc" => "If <strong>From URL</strong> is selected you can specify theme URL here. ".help_icon("theme-url"),
165
  "id" => "shailan_dm_theme_url",
166
  "std" => "http://",
167
  "type" => "text"),
172
  ),
173
 
174
  array( "name" => "Use custom colors",
175
+ "desc" => "If not checked custom colors won't work.".help_icon("use-custom-colors"),
176
  "id" => "shailan_dm_custom_colors",
177
  "std" => true,
178
  "type" => "checkbox"),
180
  array("type"=>"picker"),
181
 
182
  array( "name" => "Menu Background Color",
183
+ "desc" => "Background color of the dropdown menu".help_icon("menu-background-color"),
184
  "id" => "shailan_dm_color_menubg",
185
  "std" => '#000000',
186
  "type" => "text"),
187
 
188
  array( "name" => "Hover Background Color",
189
+ "desc" => "Background color of list item link.".help_icon("hover-background-color"),
190
  "id" => "shailan_dm_color_lihover",
191
  "std" => '#333333',
192
  "type" => "text"),
193
 
194
  array( "name" => "Link Text Color",
195
+ "desc" => "Default link color".help_icon("link-text-color"),
196
  "id" => "shailan_dm_color_link",
197
  "std" => '#FFFFFF',
198
  "type" => "text"),
199
 
200
  array( "name" => "Link Text Color on mouse over",
201
+ "desc" => "Secondary link color".help_icon("link-text-color-on-mouse-over"),
202
  "id" => "shailan_dm_color_hoverlink",
203
  "std" => '#FFFFFF',
204
  "type" => "text"),
205
 
206
  array( "name" => "Overlay",
207
+ "desc" => "Menu overlay (Works on browsers that support png transparency only.)".help_icon("overlay"),
208
  "id" => "shailan_dm_overlay",
209
  "std" => "glass",
210
  "type" => "select",
219
  ),
220
 
221
  array( "name" => "Dropdown Menu Font",
222
+ "desc" => "Font family for the menu<br />Please leave blank to use your wordpress theme font.".help_icon("dropdown-menu-font"),
223
  "id" => "shailan_dm_font",
224
  "std" => '',
225
  "type" => "text"),
226
 
227
  array( "name" => "Dropdown Menu Font Size",
228
+ "desc" => "Font size of the menu items (Eg: 12px OR 1em) <br />Please leave blank to use your wordpress theme font-size.".help_icon("dropdown-menu-font-size"),
229
  "id" => "shailan_dm_fontsize",
230
  "std" => '',
231
  "type" => "text"),
232
 
233
  array(
234
  "name" => "Custom CSS",
235
+ "desc" => "You can paste your own customization file here.".help_icon("custom-css"),
236
  "id" => "shailan_dm_custom_css",
237
  "std" => '',
238
  "type" => "textarea"
239
  ),
240
 
241
  array( "name" => "Show Empty Categories",
242
+ "desc" => "If checked categories with no posts will be shown.".help_icon("show-empty-categories"),
243
  "id" => "shailan_dm_show_empty",
244
  "std" => false,
245
  "type" => "checkbox"),
253
  ),
254
 
255
  array(
256
+ "desc" => "Settings here only effect menus inserted with template tag : <code>&lt;?php shailan_dropdown_menu(); ?&gt;</code>. Widget settings are NOT affected by these settings. ".help_icon("template-tag"),
257
  "type" => "paragraph"
258
  ),
259
 
260
  array( "name" => "Menu Type",
261
+ "desc" => "Dropdown Menu Type".help_icon("menu-type"),
262
  "id" => "shailan_dm_type",
263
  "std" => "pages",
264
  "options" => $types,
265
  "type" => "select"),
266
 
267
  array( "name" => "Home link",
268
+ "desc" => "If checked dropdown menu displays home link".help_icon("home-link"),
269
  "id" => "shailan_dm_home",
270
  "std" => true,
271
  "type" => "checkbox"),
272
 
273
  array( "name" => "Login",
274
+ "desc" => "If checked dropdown menu displays login link".help_icon("login"),
275
  "id" => "shailan_dm_login",
276
  "std" => true,
277
  "type" => "checkbox"),
278
 
279
  array( "name" => "Register / Site Admin",
280
+ "desc" => "If checked dropdown menu displays register/site admin link.".help_icon("register-site-admin"),
281
  "id" => "shailan_dm_login",
282
  "std" => true,
283
  "type" => "checkbox"),
284
 
285
  array( "name" => "Vertical menu",
286
+ "desc" => "If checked dropdown menu is displayed vertical.".help_icon("vertical-menu"),
287
  "id" => "shailan_dm_vertical",
288
  "std" => true,
289
  "type" => "checkbox"),
290
 
291
  array( "name" => "Exclude Pages",
292
+ "desc" => "Excluded page IDs.".help_icon("exclude-pages"),
293
  "id" => "shailan_dm_exclude",
294
  "std" => "",
295
  "type" => "text"),
296
 
297
  array( "name" => "Alignment",
298
+ "desc" => "Menu alignment.".help_icon("alignment"),
299
  "id" => "shailan_dm_align",
300
  "std" => "left",
301
  "options" => $alignment,
shailan.DropDownMenu.php CHANGED
@@ -4,20 +4,20 @@ 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, jquery, template, multi-color, theme
7
- Version: 1.8.1
8
  Author: Matt Say
9
  Author URI: http://shailan.com
10
  Text Domain: shailan-dropdown-menu
11
  */
12
 
13
- define('VERSION', '1.7.2');
14
 
15
  class shailan_DropdownWidget extends WP_Widget {
16
 
17
  function shailan_DropdownWidget(){
18
  $widget_ops = array(
19
  'classname' => 'shailan-dropdown-menu-widget',
20
- 'description' => __( 'Dropdown page/category menu', 'shailan-dropdown-menu' )
21
  );
22
 
23
  $this->WP_Widget('dropdown-menu', __('Dropdown Menu', 'shailan-dropdown-menu'), $widget_ops);
@@ -26,6 +26,8 @@ class shailan_DropdownWidget extends WP_Widget {
26
  $this->pluginname = "Dropdown Menu";
27
  $this->shortname = "shailan_dm";
28
 
 
 
29
  $this->version = VERSION;
30
  $this->settings_key = "shailan_dropdown_menu";
31
  $this->options_page = "dropdown-menu";
@@ -307,9 +309,9 @@ function options_page(){
307
 
308
  $nl = "\n"; $indent = "\n\t"; $indent2 = "\n\t\t";
309
 
310
- echo $nl . "<!-- Dropdown Menu Widget by shailan (http://shailan.com) v". VERSION ." on wp".get_bloginfo( 'version' )." -->";
311
  echo $nl . "<!-- Menu Type : " . $type . " -->";
312
- echo $nl . "<div class=\"shailan-dropdown-menu\">";
313
 
314
  $dropdown_wrapper_open = $nl . '<div id="shailan-dropdown-wrapper-' . $this->number . '" >';
315
 
@@ -475,40 +477,75 @@ function options_page(){
475
  $vertical = (bool) $vertical;
476
 
477
  ?>
478
- <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title :', 'shailan-dropdown-menu'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></label></p>
 
 
 
479
 
480
  <p>
481
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('show_title'); ?>" name="<?php echo $this->get_field_name('show_title'); ?>"<?php checked( $show_title ); ?> />
482
- <label for="<?php echo $this->get_field_id('show_title'); ?>"><?php _e( 'Show widget title' , 'shailan-dropdown-menu' ); ?></label><br />
483
 
484
- <p><label for="<?php echo $this->get_field_id('type'); ?>"><?php _e('Menu:'); ?>
485
  <select name="<?php echo $this->get_field_name('type'); ?>" id="<?php echo $this->get_field_id('type'); ?>">
486
  <?php foreach ($this->menu_types as $key=>$option) { ?>
487
  <option <?php if ($type == $key) { echo 'selected="selected"'; } ?> value="<?php echo $key; ?>"><?php echo $option; ?></option><?php } ?>
488
  </select>
489
- </label></p>
490
 
491
- <p><label for="<?php echo $this->get_field_id('exclude'); ?>"><?php _e('Exclude:', 'shailan-dropdown-menu'); ?> <input class="widefat" id="<?php echo $this->get_field_id('exclude'); ?>" name="<?php echo $this->get_field_name('exclude'); ?>" type="text" value="<?php echo $exclude; ?>" /></label><br />
492
  <small>Page IDs, separated by commas.</small></p>
493
 
494
- <p><label for="<?php echo $this->get_field_id('width'); ?>"><?php _e('Menu Width:', 'shailan-dropdown-menu'); ?> <input class="widefat" id="<?php echo $this->get_field_id('width'); ?>" name="<?php echo $this->get_field_name('width'); ?>" type="text" value="<?php echo $width; ?>" /></label><br />
495
  <small>Menu width, leave blank for default.</small></p>
496
 
497
  <p>
498
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('home'); ?>" name="<?php echo $this->get_field_name('home'); ?>"<?php checked( $home ); ?> />
499
- <label for="<?php echo $this->get_field_id('home'); ?>"><?php _e( 'Add homepage link' , 'shailan-dropdown-menu' ); ?></label><br />
500
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('login'); ?>" name="<?php echo $this->get_field_name('login'); ?>"<?php checked( $login ); ?> />
501
- <label for="<?php echo $this->get_field_id('login'); ?>"><?php _e( 'Add login/logout' , 'shailan-dropdown-menu' ); ?></label><br />
502
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('admin'); ?>" name="<?php echo $this->get_field_name('admin'); ?>"<?php checked( $admin ); ?> />
503
- <label for="<?php echo $this->get_field_id('admin'); ?>"><?php _e( 'Add Register/Site Admin' , 'shailan-dropdown-menu' ); ?></label><br />
504
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('vertical'); ?>" name="<?php echo $this->get_field_name('vertical'); ?>"<?php checked( $vertical ); ?> />
505
- <label for="<?php echo $this->get_field_id('vertical'); ?>"><?php _e( 'Vertical menu' , 'shailan-dropdown-menu' ); ?></label>
506
  </p>
507
 
508
- <p><?php _e('Align:', 'shailan-dropdown-menu'); ?> <label for="left"><input type="radio" id="left" name="<?php echo $this->get_field_name('align'); ?>" value="left" <?php if($align=='left'){ echo 'checked="checked"'; } ?> /> <?php _e('Left', 'shailan-dropdown-menu'); ?></label> <label for="center"><input type="radio" id="center" name="<?php echo $this->get_field_name('align'); ?>" value="center" <?php if($align=='center'){ echo 'checked="checked"'; } ?>/> <?php _e('Center', 'shailan-dropdown-menu'); ?></label> <label for="right"><input type="radio" id="right" name="<?php echo $this->get_field_name('align'); ?>" value="right" <?php if($align=='right'){ echo 'checked="checked"'; } ?>/> <?php _e('Right', 'shailan-dropdown-menu'); ?></label></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
509
 
510
- <div class="widget-control-actions alignright">
511
- <p><small><a href="options-general.php?page=dropdown-menu"><?php esc_attr_e('Menu Style', 'shailan-dropdown-menu'); ?></a> | <a href="http://shailan.com/wordpress/plugins/dropdown-menu"><?php esc_attr_e('Visit plugin site', 'shailan-dropdown-menu'); ?></a></small></p>
512
  </div>
513
  <br class="clear" />
514
 
@@ -537,7 +574,7 @@ function options_page(){
537
  $is_fx_active = (bool) ( 'on' == $this->get_plugin_setting('shailan_dm_effects') );
538
 
539
  echo "\n\n<!-- Dropdown Menu Widget Styles by shailan (http://shailan.com) v" . VERSION . " on wp" . get_bloginfo( 'version' ) . " -->"; // For debug
540
- echo "\n<link rel=\"stylesheet\" href=\"". plugins_url( '/css/shailan-dropdown.css' , __FILE__ ) . "\" type=\"text/css\" />";
541
 
542
  if( $theme!='*none*' && $theme != '*custom*' ){
543
  if( false === strpos($theme, 'http') ){
@@ -639,6 +676,7 @@ function options_page(){
639
  // Arrow pointers
640
 
641
  if( 'on' == $this->get_plugin_setting('shailan_dm_arrows') ){
 
642
 
643
  ?>
644
  ul.dropdown li.parent>a{
@@ -646,16 +684,16 @@ ul.dropdown li.parent>a{
646
  }
647
  ul.dropdown li.parent>a:after{
648
  content:""; position:absolute; top: 45%; right:6px;width:0;height:0;
649
- border-top:4px solid rgba(0,0,0,0.3);border-right:4px solid transparent;border-left:4px solid transparent }
650
  ul.dropdown li.parent:hover>a:after{
651
  content:"";position:absolute; top: 45%; right:6px; width:0; height:0;
652
- border-top:4px solid rgba(0,0,0,0.4);border-right:4px solid transparent;border-left:4px solid transparent }
653
  ul.dropdown li li.parent>a:after{
654
  content:"";position:absolute;top: 40%; right:5px;width:0;height:0;
655
- border-left:4px solid rgba(0,0,0,0.3);border-top:4px solid transparent;border-bottom:4px solid transparent }
656
  ul.dropdown li li.parent:hover>a:after{
657
  content:"";position:absolute;top: 40%; right:5px;width:0;height:0;
658
- border-left:4px solid rgba(0,0,0,0.4);border-top:4px solid transparent;border-bottom:4px solid transparent }
659
 
660
  <?php }
661
 
@@ -744,6 +782,10 @@ ul.dropdown li li.parent:hover>a:after{
744
  } // fx active
745
 
746
  }
 
 
 
 
747
 
748
  }
749
  // *** END OF CLASS ***
@@ -760,7 +802,6 @@ function get_dropdown_setting( $key, $default = '' ) {
760
  return FALSE;
761
  }
762
 
763
-
764
  // Register widget
765
  add_action('widgets_init', create_function('', 'return register_widget("shailan_DropdownWidget");'));
766
 
@@ -805,4 +846,5 @@ function shailan_dropdown_menu( $args = array() ){
805
  if(!empty( $args['menu'] )){ $options['type'] = $args['menu']; }
806
 
807
  the_widget( 'shailan_DropdownWidget', $options );
 
808
  }
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, jquery, template, multi-color, theme
7
+ Version: 1.9
8
  Author: Matt Say
9
  Author URI: http://shailan.com
10
  Text Domain: shailan-dropdown-menu
11
  */
12
 
13
+ define('VERSION', '1.9');
14
 
15
  class shailan_DropdownWidget extends WP_Widget {
16
 
17
  function shailan_DropdownWidget(){
18
  $widget_ops = array(
19
  'classname' => 'shailan-dropdown-menu-widget',
20
+ 'description' => __( 'Dropdown page/category/custom menu', 'shailan-dropdown-menu' )
21
  );
22
 
23
  $this->WP_Widget('dropdown-menu', __('Dropdown Menu', 'shailan-dropdown-menu'), $widget_ops);
26
  $this->pluginname = "Dropdown Menu";
27
  $this->shortname = "shailan_dm";
28
 
29
+ $this->help_url = "http://shailan.com/wordpress/plugins/dropdown-menu/help/";
30
+
31
  $this->version = VERSION;
32
  $this->settings_key = "shailan_dropdown_menu";
33
  $this->options_page = "dropdown-menu";
309
 
310
  $nl = "\n"; $indent = "\n\t"; $indent2 = "\n\t\t";
311
 
312
+ echo $nl . "<!-- Dropdown Menu Widget by Shailan.com (http://shailan.com) v". VERSION ." on wp".get_bloginfo( 'version' )." -->";
313
  echo $nl . "<!-- Menu Type : " . $type . " -->";
314
+ echo $nl . "<div class=\"shailan-dropdown-menu\" >";
315
 
316
  $dropdown_wrapper_open = $nl . '<div id="shailan-dropdown-wrapper-' . $this->number . '" >';
317
 
477
  $vertical = (bool) $vertical;
478
 
479
  ?>
480
+
481
+ <style type="text/css">.help-link{ padding:2px 5px; text-decoration:none; }</style>
482
+
483
+ <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title :', 'shailan-dropdown-menu'); ?> <?php $this->help_link('widget-title'); ?><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></label> </p>
484
 
485
  <p>
486
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('show_title'); ?>" name="<?php echo $this->get_field_name('show_title'); ?>"<?php checked( $show_title ); ?> />
487
+ <label for="<?php echo $this->get_field_id('show_title'); ?>"><?php _e( 'Show widget title' , 'shailan-dropdown-menu' ); ?></label><?php $this->help_link('show-title'); ?> <br />
488
 
489
+ <p><label for="<?php echo $this->get_field_id('type'); ?>"><?php _e('Menu Type:'); ?>
490
  <select name="<?php echo $this->get_field_name('type'); ?>" id="<?php echo $this->get_field_id('type'); ?>">
491
  <?php foreach ($this->menu_types as $key=>$option) { ?>
492
  <option <?php if ($type == $key) { echo 'selected="selected"'; } ?> value="<?php echo $key; ?>"><?php echo $option; ?></option><?php } ?>
493
  </select>
494
+ </label><?php $this->help_link('widget-menu-type'); ?> </p>
495
 
496
+ <p><label for="<?php echo $this->get_field_id('exclude'); ?>"><?php _e('Exclude:', 'shailan-dropdown-menu'); ?> <?php $this->help_link('exclude'); ?> <input class="widefat" id="<?php echo $this->get_field_id('exclude'); ?>" name="<?php echo $this->get_field_name('exclude'); ?>" type="text" value="<?php echo $exclude; ?>" /></label><br />
497
  <small>Page IDs, separated by commas.</small></p>
498
 
499
+ <p><label for="<?php echo $this->get_field_id('width'); ?>"><?php _e('Menu Width:', 'shailan-dropdown-menu'); ?> <?php $this->help_link('widget-width'); ?><input class="widefat" id="<?php echo $this->get_field_id('width'); ?>" name="<?php echo $this->get_field_name('width'); ?>" type="text" value="<?php echo $width; ?>" /></label><br />
500
  <small>Menu width, leave blank for default.</small></p>
501
 
502
  <p>
503
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('home'); ?>" name="<?php echo $this->get_field_name('home'); ?>"<?php checked( $home ); ?> />
504
+ <label for="<?php echo $this->get_field_id('home'); ?>"><?php _e( 'Add homepage link' , 'shailan-dropdown-menu' ); ?></label><?php $this->help_link('homepage-link'); ?><br />
505
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('login'); ?>" name="<?php echo $this->get_field_name('login'); ?>"<?php checked( $login ); ?> />
506
+ <label for="<?php echo $this->get_field_id('login'); ?>"><?php _e( 'Add login/logout' , 'shailan-dropdown-menu' ); ?></label><?php $this->help_link('login-logout-link'); ?><br />
507
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('admin'); ?>" name="<?php echo $this->get_field_name('admin'); ?>"<?php checked( $admin ); ?> />
508
+ <label for="<?php echo $this->get_field_id('admin'); ?>"><?php _e( 'Add Register/Site Admin' , 'shailan-dropdown-menu' ); ?></label><?php $this->help_link('site-admin-link'); ?><br />
509
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('vertical'); ?>" name="<?php echo $this->get_field_name('vertical'); ?>"<?php checked( $vertical ); ?> />
510
+ <label for="<?php echo $this->get_field_id('vertical'); ?>"><?php _e( 'Vertical menu' , 'shailan-dropdown-menu' ); ?><?php $this->help_link('vertical-menu'); ?></label>
511
  </p>
512
 
513
+ <p><?php _e('Align:', 'shailan-dropdown-menu'); ?> <?php $this->help_link('alignment'); ?><label for="left"><input type="radio" id="left" name="<?php echo $this->get_field_name('align'); ?>" value="left" <?php if($align=='left'){ echo 'checked="checked"'; } ?> /> <?php _e('Left', 'shailan-dropdown-menu'); ?></label> <label for="center"><input type="radio" id="center" name="<?php echo $this->get_field_name('align'); ?>" value="center" <?php if($align=='center'){ echo 'checked="checked"'; } ?>/> <?php _e('Center', 'shailan-dropdown-menu'); ?></label> <label for="right"><input type="radio" id="right" name="<?php echo $this->get_field_name('align'); ?>" value="right" <?php if($align=='right'){ echo 'checked="checked"'; } ?>/> <?php _e('Right', 'shailan-dropdown-menu'); ?></label></p>
514
+
515
+ <p><?php _e('Current Theme:', 'shailan-dropdown-menu') ?><br />
516
+ <?php $theme = $this->get_plugin_setting('shailan_dm_active_theme');
517
+
518
+ $available_themes = array(
519
+ 'None' => '*none*',
520
+ 'From URL' => '*url*',
521
+ 'Custom CSS' => '*custom*',
522
+ 'Color Scheme' => 'color-scheme',
523
+ 'Web 2.0 by Shailan' => plugins_url('/themes/web20.css', __FILE__),
524
+ 'Simple White' => plugins_url('/themes/simple.css', __FILE__),
525
+ 'Wordpress Default' => plugins_url('/themes/wpdefault.css', __FILE__),
526
+ 'Grayscale' => plugins_url('/themes/grayscale.css', __FILE__),
527
+ 'Aqua' => plugins_url('/themes/aqua.css', __FILE__),
528
+ 'Blue gradient' => plugins_url('/themes/simple-blue.css', __FILE__),
529
+ 'Shiny Black' => plugins_url('/themes/shiny-black.css', __FILE__),
530
+ 'Flickr theme' => plugins_url('/themes/flickr.com/default.ultimate.css', __FILE__),
531
+ 'Nvidia theme' => plugins_url('/themes/nvidia.com/default.advanced.css', __FILE__),
532
+ 'Adobe theme' => plugins_url('/themes/adobe.com/default.advanced.css', __FILE__),
533
+ 'MTV theme' => plugins_url('/themes/mtv.com/default.ultimate.css', __FILE__),
534
+ 'Hulu theme' => plugins_url('/themes/hulu/hulu.css', __FILE__),
535
+ 'Rounded Corners by Shailan' => plugins_url('/themes/rounded-corners.css', __FILE__),
536
+ 'Rounded Corners Light by Shailan' => plugins_url('/themes/rounded-corners-light.css', __FILE__),
537
+ 'Pills by Shailan' => plugins_url('/themes/pills.css', __FILE__)
538
+ );
539
+
540
+ $theme_names = array_flip($available_themes);
541
+ $theme_name = $theme_names[$theme];
542
+ echo "<strong>" . $theme_name . "</strong>";
543
+ ?>
544
+ <a href="options-general.php?page=dropdown-menu" style="text-decoration:none;"><?php esc_attr_e('Change theme &rarr;', 'shailan-dropdown-menu'); ?></a>
545
+ </p>
546
 
547
+ <div class="widget-control-actions">
548
+ <p><small>Powered by <a href="http://shailan.com/wordpress/plugins/dropdown-menu/" title="Wordpress Tips and tricks, Freelancing, Web Design">Shailan.com</a> | <a href="http://shailan.com/wordpress/" title="Get more wordpress widgets and themes" target="_blank" >Get more..</a></small></p>
549
  </div>
550
  <br class="clear" />
551
 
574
  $is_fx_active = (bool) ( 'on' == $this->get_plugin_setting('shailan_dm_effects') );
575
 
576
  echo "\n\n<!-- Dropdown Menu Widget Styles by shailan (http://shailan.com) v" . VERSION . " on wp" . get_bloginfo( 'version' ) . " -->"; // For debug
577
+ echo "\n<link rel=\"stylesheet\" href=\"". plugins_url( '/css/shailan-dropdown.min.css' , __FILE__ ) . "\" type=\"text/css\" />";
578
 
579
  if( $theme!='*none*' && $theme != '*custom*' ){
580
  if( false === strpos($theme, 'http') ){
676
  // Arrow pointers
677
 
678
  if( 'on' == $this->get_plugin_setting('shailan_dm_arrows') ){
679
+ $clr = $this->get_plugin_setting('shailan_dm_arrow_color');
680
 
681
  ?>
682
  ul.dropdown li.parent>a{
684
  }
685
  ul.dropdown li.parent>a:after{
686
  content:""; position:absolute; top: 45%; right:6px;width:0;height:0;
687
+ border-top:4px solid <?php echo $clr; ?>;border-right:4px solid transparent;border-left:4px solid transparent }
688
  ul.dropdown li.parent:hover>a:after{
689
  content:"";position:absolute; top: 45%; right:6px; width:0; height:0;
690
+ border-top:4px solid <?php echo $clr; ?>;border-right:4px solid transparent;border-left:4px solid transparent }
691
  ul.dropdown li li.parent>a:after{
692
  content:"";position:absolute;top: 40%; right:5px;width:0;height:0;
693
+ border-left:4px solid <?php echo $clr; ?>;border-top:4px solid transparent;border-bottom:4px solid transparent }
694
  ul.dropdown li li.parent:hover>a:after{
695
  content:"";position:absolute;top: 40%; right:5px;width:0;height:0;
696
+ border-left:4px solid <?php echo $clr; ?>;border-top:4px solid transparent;border-bottom:4px solid transparent }
697
 
698
  <?php }
699
 
782
  } // fx active
783
 
784
  }
785
+
786
+ function help_link($key, $text = '(?)'){
787
+ echo '<a href="'.$this->help_url.'#' . $key. '" target="_blank" class="help-link">' . $text . '</a>';
788
+ }
789
 
790
  }
791
  // *** END OF CLASS ***
802
  return FALSE;
803
  }
804
 
 
805
  // Register widget
806
  add_action('widgets_init', create_function('', 'return register_widget("shailan_DropdownWidget");'));
807
 
846
  if(!empty( $args['menu'] )){ $options['type'] = $args['menu']; }
847
 
848
  the_widget( 'shailan_DropdownWidget', $options );
849
+
850
  }
themes/mtv.com/default.css CHANGED
@@ -53,7 +53,7 @@
53
 
54
  ul.dropdown ul {
55
  /*left: auto;*/
56
- right: 0;
57
  margin-top: -1px;
58
  border-top: 1px solid #1a1a1a;
59
  border-left: solid 1px #4c4c4c;
53
 
54
  ul.dropdown ul {
55
  /*left: auto;*/
56
+ /* right: 0; Removed because it was causing problems */
57
  margin-top: -1px;
58
  border-top: 1px solid #1a1a1a;
59
  border-left: solid 1px #4c4c4c;
themes/nvidia.com/default.advanced.css CHANGED
@@ -50,7 +50,7 @@ ul.dropdown li a {
50
 
51
  ul.dropdown ul a {
52
  padding: 4px 5px 4px 14px;
53
- width: 151px; /* Especially for IE */
54
  }
55
 
56
  ul.dropdown ul a:hover {
50
 
51
  ul.dropdown ul a {
52
  padding: 4px 5px 4px 14px;
53
+ /* width: 151px; */ /* Especially for IE */
54
  }
55
 
56
  ul.dropdown ul a:hover {
themes/nvidia.com/default.css CHANGED
@@ -3,7 +3,7 @@ ul.dropdown li { background-color: #000; color: #fff; line-height: normal; }
3
  ul.dropdown a, ul.dropdown a:link, ul.dropdown a:visited { color: #fff; text-decoration: none; }
4
  ul.dropdown a:hover { color: #76b900; text-decoration: none; } ul.dropdown a:active { color: #fff; }
5
  ul.dropdown ul {
6
- width: 170px;
7
  background-color: #333;
8
  color: #fff;
9
  font-size: 11px;
3
  ul.dropdown a, ul.dropdown a:link, ul.dropdown a:visited { color: #fff; text-decoration: none; }
4
  ul.dropdown a:hover { color: #76b900; text-decoration: none; } ul.dropdown a:active { color: #fff; }
5
  ul.dropdown ul {
6
+ /* width: 170px; Removed width because of indicator problem */
7
  background-color: #333;
8
  color: #fff;
9
  font-size: 11px;
themes/pills.css ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "UTF-8";
2
+ @import url('http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold&v1');
3
+
4
+ /** Container */
5
+ .shailan-dropdown-menu .dropdown-horizontal-container{
6
+ background: transparent;
7
+ font-family:'Droid Sans', Arial, sans-serif;
8
+ font-weight:bold;
9
+ margin: 10px 0 15px;
10
+ }
11
+
12
+ ul.dropdown li {
13
+ border-radius: 16px;
14
+ background:rgba(0,0,0,0.4);
15
+ }
16
+
17
+ ul.dropdown-align-left li, ul.dropdown-align-center li { margin: 2px 10px 0 0; }
18
+ ul.dropdown-align-left ul li, ul.dropdown-align-center ul li { margin: 0; }
19
+ ul.dropdown-align-right li { margin: 2px 0px 0 10px; }
20
+ ul.dropdown-align-right ul li { margin: 0; }
21
+
22
+ ul.dropdown-horizontal li.parent:hover, ul.dropdown-horizontal li.parent.hover{
23
+ border-bottom-left-radius: 0;
24
+ border-bottom-right-radius: 0;
25
+ }
26
+
27
+ ul.dropdown ul li { }
28
+ ul.dropdown-vertical>li{ }
29
+ ul.dropdown-horizontal.dropdown-align-left>li { }
30
+ ul.dropdown-horizontal.dropdown-align-left>li:last-child { }
31
+ ul.dropdown-horizontal.dropdown-align-right>li { }
32
+ ul.dropdown-horizontal.dropdown-align-right>li:first-child { }
33
+
34
+ /** Right align fix */
35
+ ul.dropdown-align-right li{ }
36
+
37
+ ul.dropdown li a {
38
+ padding: 5px 15px;
39
+ line-height: 22px;
40
+ font-size:1.2em;
41
+ }
42
+
43
+ /** Link colors */
44
+ ul.dropdown a, ul.dropdown a:link, ul.dropdown a:visited { color: #EEE; text-decoration: none; display:block; }
45
+ ul.dropdown a:hover { color: #FFF; text-shadow: #222 1px 1px 1px; }
46
+
47
+ /** Sub menus */
48
+ ul.dropdown ul { background:rgba(0,0,0,0.4); border-radius: 8px; padding: 7px 0; }
49
+ ul.dropdown-align-left ul, ul.dropdown-align-center ul { border-top-left-radius: 0; }
50
+ ul.dropdown-align-right ul { border-top-right-radius: 0; }
51
+ ul.dropdown ul li { background: transparent; }
52
+ ul.dropdown ul li a{ font-size:1.1em; padding:2px 15px; }
53
+
54
+ /** Current menu item */
55
+ li.current-cat>a, li.current_page_item>a, li.current-menu-item>a,
56
+ li.current-cat>a:link, li.current_page_item>a:link, li.current-menu-item>a:link,
57
+ li.current-cat>a:visited, li.current_page_item>a:visited, li.current-menu-item>a:visited{ color: #444; }
58
+
59
+ /** Ancestor */
60
+ li.current_page_ancestor>a,li.current_page_ancestor>a:visited, li.current_page_ancestor>a:link { color: #444; }
61
+ li.current-menu-ancestor>a,li.current-menu-ancestor>a:visited, li.current-menu-ancestor>a:link { color: #444; }
themes/rounded-corners-light.css ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "UTF-8";
2
+ @import url('http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold&v1');
3
+
4
+ /** Container */
5
+ .shailan-dropdown-menu .dropdown-horizontal-container{
6
+ background: transparent;
7
+ font-family:'Droid Sans', Arial, sans-serif;
8
+ font-weight:bold;
9
+ margin: 10px 0 15px;
10
+ }
11
+
12
+ ul.dropdown li { }
13
+ ul.dropdown ul li { }
14
+ ul.dropdown-vertical>li{ }
15
+ ul.dropdown-horizontal.dropdown-align-left>li { }
16
+ ul.dropdown-horizontal.dropdown-align-left>li:last-child { }
17
+ ul.dropdown-horizontal.dropdown-align-right>li { }
18
+ ul.dropdown-horizontal.dropdown-align-right>li:first-child { }
19
+
20
+ /** Right align fix */
21
+ ul.dropdown-align-right li{ }
22
+
23
+ ul.dropdown li a {
24
+ padding: 5px 15px;
25
+ line-height: 22px;
26
+ border-radius: 4px;
27
+ background:rgba(200,200,200,0.4);
28
+ font-size:1.2em;
29
+ }
30
+
31
+ /** Link colors */
32
+ ul.dropdown a, ul.dropdown a:link, ul.dropdown a:visited { color: #222; text-decoration: none; display:block; margin: 2px 6px 0 0; }
33
+ ul.dropdown a:hover { color: #444; }
34
+
35
+ /** Sub menus */
36
+ ul.dropdown ul { }
37
+ ul.dropdown ul li { }
38
+ ul.dropdown ul li a{ font-size:1em; }
39
+
40
+ /** Current menu item */
41
+ li.current-cat>a, li.current_page_item>a, li.current-menu-item>a,
42
+ li.current-cat>a:link, li.current_page_item>a:link, li.current-menu-item>a:link,
43
+ li.current-cat>a:visited, li.current_page_item>a:visited, li.current-menu-item>a:visited{ color: #444; }
44
+
45
+ /** Ancestor */
46
+ li.current_page_ancestor>a,li.current_page_ancestor>a:visited, li.current_page_ancestor>a:link { color: #444; }
47
+ li.current-menu-ancestor>a,li.current-menu-ancestor>a:visited, li.current-menu-ancestor>a:link { color: #444; }
themes/rounded-corners.css ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "UTF-8";
2
+ @import url('http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold&v1');
3
+
4
+ /** Container */
5
+ .shailan-dropdown-menu .dropdown-horizontal-container{
6
+ background: transparent;
7
+ font-family:'Droid Sans', Arial, sans-serif;
8
+ font-weight:bold;
9
+ margin: 10px 0 15px;
10
+ }
11
+
12
+ ul.dropdown li { }
13
+ ul.dropdown ul li { }
14
+ ul.dropdown-vertical>li{ }
15
+ ul.dropdown-horizontal.dropdown-align-left>li { }
16
+ ul.dropdown-horizontal.dropdown-align-left>li:last-child { }
17
+ ul.dropdown-horizontal.dropdown-align-right>li { }
18
+ ul.dropdown-horizontal.dropdown-align-right>li:first-child { }
19
+
20
+ /** Right align fix */
21
+ ul.dropdown-align-right li{ }
22
+
23
+ ul.dropdown li a {
24
+ padding: 5px 15px;
25
+ line-height: 22px;
26
+ border-radius: 4px;
27
+ background:rgba(0,0,0,0.4);
28
+ font-size:1.2em;
29
+ }
30
+
31
+ /** Link colors */
32
+ ul.dropdown a, ul.dropdown a:link, ul.dropdown a:visited { color: #fff; text-decoration: none; display:block; margin: 2px 6px 0 0; }
33
+ ul.dropdown a:hover { color: #444; }
34
+
35
+ /** Sub menus */
36
+ ul.dropdown ul { }
37
+ ul.dropdown ul li { }
38
+ ul.dropdown ul li a{ font-size:1em; }
39
+
40
+ /** Current menu item */
41
+ li.current-cat>a, li.current_page_item>a, li.current-menu-item>a,
42
+ li.current-cat>a:link, li.current_page_item>a:link, li.current-menu-item>a:link,
43
+ li.current-cat>a:visited, li.current_page_item>a:visited, li.current-menu-item>a:visited{ color: #444; }
44
+
45
+ /** Ancestor */
46
+ li.current_page_ancestor>a,li.current_page_ancestor>a:visited, li.current_page_ancestor>a:link { color: #444; }
47
+ li.current-menu-ancestor>a,li.current-menu-ancestor>a:visited, li.current-menu-ancestor>a:link { color: #444; }