Dropdown Menu Widget - Version 1.5.1

Version Description

  • Removed custom walker support for now.
  • Removed blue tabs theme since it was using custom walkers.
  • Fixed all the styles to work with new css classes.
  • Updated Shiny Black theme to work with wide links.
  • Complete support for custom css insert.
Download this release

Release Info

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

Code changes from version 1.4.0 to 1.5.1

admin.css ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /** Dropdown Menu Widget Admin Styles */
2
+ .shailan_dm_input{padding:10px;}
3
+ .shailan_dm_input small{font-style:italic; font-size:smaller; color:#666;}
4
+ .shailan_dm_input label{ font-size:12px;
5
+ width:200px;
6
+ display:block;
7
+ float:left; }
8
+
9
+ .shailan_dm_input input[type=text]{
10
+ width:280px;}
11
+
12
+ .shailan_dm_input textarea{
13
+ width:400px; height:150px; }
14
+
15
+ #widgets-right .widgets-sortables{ min-height:0px; }
16
+
17
+ .sidebar-name{overflow:auto; display:block;}
18
+ .sidebar-name h3{float:left;}
19
+ .sidebar-name span{float:right;}
options-page.php ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ global $pluginname, $shortname, $pluginoptions;
4
+
5
+ $i=0;
6
+
7
+ //if ( @$_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$pluginname.' settings saved.</strong></p></div>';
8
+ //if ( @$_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$pluginname.' settings reset.</strong></p></div>';
9
+
10
+ ?>
11
+
12
+ <div class="wrap">
13
+ <?php screen_icon(); ?>
14
+ <h2><?php echo esc_html( $title ); ?></h2>
15
+
16
+ <?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
17
+ <div id="message" class="updated"><p><?php echo $messages[$_GET['message']]; ?></p></div>
18
+ <?php } ?>
19
+ <?php if ( isset($_GET['error']) && isset($errors[$_GET['error']]) ) { ?>
20
+ <div id="message" class="error"><p><?php echo $errors[$_GET['error']]; ?></p></div>
21
+ <?php } ?>
22
+
23
+ <form id="frmShailanDm" name="frmShailanDm" method="post" action="">
24
+
25
+ <div class="widget-liquid-left">
26
+ <div id="widgets-left">
27
+
28
+
29
+ <?php foreach ($pluginoptions as $value) {
30
+ switch ( $value['type'] ) {
31
+
32
+ case "open":
33
+ ?>
34
+
35
+ <?php break;
36
+
37
+ case "close":
38
+ ?>
39
+
40
+ <br class="clear">
41
+ </div>
42
+ </div>
43
+
44
+
45
+ <?php break;
46
+
47
+ case "title":
48
+ ?>
49
+ <p>To easily use the <?php echo $pluginname;?>, you can use the menu below.</p>
50
+
51
+
52
+ <?php break;
53
+
54
+ case 'text':
55
+ ?>
56
+
57
+ <div class="shailan_dm_input shailan_dm_text">
58
+ <label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
59
+ <input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_option( $value['id'] ) != "") { echo stripslashes(get_option( $value['id']) ); } else { echo $value['std']; } ?>" />
60
+ <small><?php echo $value['desc']; ?></small><div class="clearfix"></div>
61
+
62
+ </div>
63
+ <?php
64
+ break;
65
+
66
+ case 'textarea':
67
+ ?>
68
+
69
+ <div class="shailan_dm_input shailan_dm_textarea">
70
+ <label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
71
+ <textarea name="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" cols="" rows=""><?php if ( get_option( $value['id'] ) != "") { echo stripslashes(get_option( $value['id']) ); } else { echo $value['std']; } ?></textarea>
72
+ <small><?php echo $value['desc']; ?></small><div class="clearfix"></div>
73
+
74
+ </div>
75
+
76
+ <?php
77
+ break;
78
+
79
+ case 'select':
80
+ ?>
81
+
82
+ <div class="shailan_dm_input shailan_dm_select">
83
+ <label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
84
+
85
+ <!-- <pre>
86
+ <?php print_r($value['options']); ?>
87
+ </pre> -->
88
+
89
+ <select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
90
+ <?php foreach ($value['options'] as $key=>$option) { ?>
91
+ <option <?php if (get_option( $value['id'] ) == $key) { echo 'selected="selected"'; } ?> value="<?php echo $key; ?>"><?php echo $option; ?></option><?php } ?>
92
+ </select>
93
+
94
+ <small><?php echo $value['desc']; ?></small><div class="clearfix"></div>
95
+ </div>
96
+ <?php
97
+ break;
98
+
99
+ case "checkbox":
100
+ ?>
101
+
102
+ <div class="shailan_dm_input shailan_dm_checkbox">
103
+ <label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
104
+
105
+ <?php if(get_option($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = "";} ?>
106
+ <input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
107
+
108
+
109
+ <small><?php echo $value['desc']; ?></small><div class="clearfix"></div>
110
+ </div>
111
+ <?php break;
112
+ case "section":
113
+
114
+ $i++;
115
+
116
+ ?>
117
+
118
+ <div id="available-widgets" class="widgets-holder-wrap">
119
+
120
+ <div class="sidebar-name"><h3><?php echo $value['name']; ?></h3> <span style="float:right;"><input name="save<?php echo $i; ?>" type="submit" class="button-primary menu-save" value="Save changes" />
121
+ </span><br class="clear" /></div>
122
+ <div class="widget-holder">
123
+
124
+
125
+ <?php break;
126
+
127
+ }
128
+ }
129
+ ?>
130
+
131
+ </div>
132
+ </div>
133
+
134
+ <div class="widget-liquid-right">
135
+ <div id="widgets-right">
136
+
137
+ <div class="widgets-holder-wrap">
138
+ <div class="sidebar-name">
139
+ <div class="sidebar-name-arrow"><br /></div>
140
+ <h3>Help
141
+ <span><img src="<?php echo esc_url( admin_url( 'images/wpspin_dark.gif' ) ); ?>" class="ajax-feedback" title="" alt="" /></span></h3></div>
142
+
143
+ <div id='widgets-entry-bottom' class='widgets-sortables'>
144
+ <div class='sidebar-description'>
145
+ <ul>
146
+ <li><a href="http://shailan.com/wordpress/plugins/dropdown-menu">Plugin page</a></li>
147
+ <li><a href="http://wordpress.org/tags/dropdown-menu-widget">Support</a></li>
148
+ </ul></div>
149
+ </div>
150
+ </div>
151
+
152
+ <div class="widgets-holder-wrap">
153
+ <div class="sidebar-name">
154
+ <div class="sidebar-name-arrow"><br /></div>
155
+ <h3>Shailan.com
156
+ <span><img src="<?php echo esc_url( admin_url( 'images/wpspin_dark.gif' ) ); ?>" class="ajax-feedback" title="" alt="" /></span></h3></div>
157
+
158
+ <div id='widgets-entry-bottom' class='widgets-sortables'>
159
+ <div class='sidebar-description'><p class='description'>
160
+
161
+ <?php
162
+ //echo get_latest_tweet('mattsay');
163
+
164
+ $rss_options = array(
165
+ 'link' => 'http://shailan.com',
166
+ 'url' => 'http://feeds.feedburner.com/shailan',
167
+ 'title' => '',
168
+ 'items' => 3,
169
+ 'show_summary' => 0,
170
+ 'show_author' => 0,
171
+ 'show_date' => 0,
172
+ 'before' => 'text'
173
+ );
174
+
175
+ wp_widget_rss_output( $rss_options ); ?>
176
+
177
+
178
+ </p></div>
179
+ </div>
180
+ </div>
181
+
182
+ <div class="widgets-holder-wrap">
183
+ <div class="sidebar-name">
184
+ <div class="sidebar-name-arrow"><br /></div>
185
+ <h3>Support
186
+ <span><img src="<?php echo esc_url( admin_url( 'images/wpspin_dark.gif' ) ); ?>" class="ajax-feedback" title="" alt="" /></span></h3></div>
187
+
188
+ <div id='widgets-entry-bottom' class='widgets-sortables'>
189
+ <div class='sidebar-description'><p class='description'>
190
+
191
+ <p>If you like this plugin you can use one of the following options to support it:</p>
192
+
193
+ <ul style="padding:0px 15px; list-style:disc;">
194
+ <li><a href="http://shailan.com/wordpress/plugins/dropdown-menu/">Commenting on plugin page</a></li>
195
+ <li><a href="http://wordpress.org/extend/plugins/dropdown-menu-widget/">Rating it on wordpress plugin page</a></li>
196
+ <li><a href="http://shailan.com/wordpress/plugins/dropdown-menu/" title="Permanent link to Dropdown menu widget" >Writing a post about it</a></li>
197
+ <!-- <li><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fshailan.com%2Fwordpress%2Fplugins%2Fdropdown-menu&amp;layout=button_count&amp;show_faces=false&amp;width=200&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:21px;" allowTransparency="true"></iframe></li>
198
+ <li><script type="text/javascript">
199
+ tweetmeme_url = 'http://shailan.com/wordpress/plugins/dropdown-menu/'; tweetmeme_style = 'compact'; tweetmeme_source = 'mattsay';
200
+ </script><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></li> -->
201
+ </ul>
202
+
203
+ <p>You can also donate a few bugs using the button below: <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
204
+ <input type="hidden" name="cmd" value="_s-xclick">
205
+ <input type="hidden" name="hosted_button_id" value="8F7M79S2PBU3G">
206
+ <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
207
+ <img alt="" border="0" src="https://www.paypal.com/tr_TR/i/scr/pixel.gif" width="1" height="1">
208
+ </form></p>
209
+
210
+ </div>
211
+ </div>
212
+ </div>
213
+
214
+ </div>
215
+ </div>
216
+
217
+ <br class="clear">
218
+
219
+ <input type="hidden" name="action" value="save" />
220
+ </form>
221
+
222
+ <!-- <form method="post">
223
+ <p class="submit">
224
+ <input name="reset" type="submit" value="Reset Options" />
225
+ <input type="hidden" name="action" value="reset" />
226
+ </p>
227
+ </form> -->
228
+
229
+ <p class="aligncenter">
230
+ <a href="http://shailan.com/wordpress/plugins/dropdown-menu">Dropdown Menu <?php echo SHAILAN_DM_VERSION; ?></a> by <a href="http://shailan.com">shailan</a> &copy; 2010
231
+ </p>
232
+
233
+
234
+ </div> <!-- wrap -->
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
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: 2.9.2
7
- Stable tag: 1.4.0
8
 
9
  This widget adds a beatiful vertical/horizontal CSS only dropdown menu of pages OR categories of your blog.
10
 
@@ -48,6 +48,24 @@ You can submit errors and bugs using the [online form](http://shailan.com/contac
48
 
49
  == Changelog ==
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  = 1.4.0 =
52
  * Added option for multiline links. If checked a link with more than one word will be wrapped.
53
  * Another fix for IE. Hopefully last.
4
  Tags: css, dropdown, menu, widget, pages, categories, multi
5
  Requires at least: 2.8
6
  Tested up to: 2.9.2
7
+ Stable tag: 1.5.1
8
 
9
  This widget adds a beatiful vertical/horizontal CSS only dropdown menu of pages OR categories of your blog.
10
 
48
 
49
  == Changelog ==
50
 
51
+ = 1.5.1 =
52
+ * Removed custom walker support for now.
53
+ * Removed blue tabs theme since it was using custom walkers.
54
+ * Fixed all the styles to work with new css classes.
55
+ * Updated Shiny Black theme to work with wide links.
56
+ * Complete support for custom css insert.
57
+
58
+ = 1.5 =
59
+ * Fixed issues with wordpress 3.0.
60
+ * Renamed plugin to dropdown menu.
61
+ * Removed inline style option.
62
+ * Removed unnecessary screenshots.
63
+ * Added support for wordpress 3.0 navigation menus.
64
+ * Removed exclude pages plugin.
65
+
66
+ = 1.4.1 =
67
+ * A minor fix for `Parse error: parse error, expecting `T_FUNCTION' in C:\wamp\www\wordpress\wp-content\plugins\dropdown-menu-widget\shailan-multi-dropdown.php on line 194` error.
68
+
69
  = 1.4.0 =
70
  * Added option for multiline links. If checked a link with more than one word will be wrapped.
71
  * Another fix for IE. Hopefully last.
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.png DELETED
Binary file
screenshot-4.png DELETED
Binary file
screenshot-5.PNG DELETED
Binary file
shailan-dropdown.css CHANGED
@@ -1,80 +1,41 @@
1
  @charset "UTF-8";
2
 
3
- ul.dropdown,
4
- ul.dropdown li,
5
- ul.dropdown ul {
6
- list-style: none;
7
- margin: 0;
8
- padding: 0;
9
- }
10
 
11
- ul.dropdown {
12
- position: relative;
13
- z-index: 597;
14
- float: left;
15
- }
 
 
 
 
16
 
17
- ul.dropdown li {
18
- float: left;
19
- line-height: 1.3em;
20
- vertical-align: middle;
21
- zoom: 1;
22
- }
23
 
24
- ul.dropdown li.hover,
25
- ul.dropdown li:hover {
26
- position: relative;
27
- z-index: 599;
28
- cursor: default;
29
- }
30
 
31
- ul.dropdown ul {
32
- visibility: hidden;
33
- position: absolute;
34
- top: 100%;
35
- left: 0;
36
- z-index: 598;
37
- width: 100%;
38
- }
39
-
40
- ul.dropdown ul li {
41
- float: none;
42
- }
43
-
44
- ul.dropdown ul ul {
45
- top: 1px;
46
- left: 99%;
47
- }
48
-
49
- ul.dropdown li:hover > ul, ul.dropdown li.hover ul{
50
- visibility: visible;
51
- }
52
-
53
- * html ul.dropdown li {
54
- height: 1px;
55
- }
56
-
57
- ul.dropdown ul li,
58
- ul.dropdown-vertical {
59
- margin-left: -16px;
60
- mar\gin-left: 0;
61
- }
62
 
 
 
 
 
 
 
63
  ul.dropdown ul,
64
  ul.dropdown li:hover ul ul,
65
  ul.dropdown li:hover ul ul ul,
66
  ul.dropdown li:hover ul ul ul ul,
67
  ul.dropdown li:hover ul ul ul ul ul {
68
- visibility: hidden;
69
- }
70
-
71
- ul.dropdown li.hover ul ul,
72
- ul.dropdown li.hover ul ul ul,
73
- ul.dropdown li.hover ul ul ul ul,
74
- ul.dropdown li.hover ul ul ul ul ul{
75
- visibility:hidden;
76
  }
77
 
 
78
  ul.dropdown li.hover ul,
79
  ul.dropdown ul li.hover ul,
80
  ul.dropdown ul ul li.hover ul,
@@ -85,12 +46,10 @@ ul.dropdown ul li:hover ul,
85
  ul.dropdown ul ul li:hover ul,
86
  ul.dropdown ul ul ul li:hover ul,
87
  ul.dropdown ul ul ul ul li:hover ul {
88
- visibility: visible;
89
  }
90
 
91
- ul.dropdown ul ul ul ul ul ul {
92
- visibility: hidden !important;
93
- }
94
 
95
  /* Vertical menu support */
96
  ul.dropdown-vertical { /*width: 200px;*/ }
1
  @charset "UTF-8";
2
 
3
+ /** Remove list styling */
4
+ ul.dropdown, ul.dropdown li, ul.dropdown ul { list-style: none; margin: 0; padding: 0; }
 
 
 
 
 
5
 
6
+ ul.dropdown { position: relative; z-index: 597; float: left; }
7
+ * html ul.dropdown, * html ul.dropdown li.hover, * html ul.dropdown li:hover { zoom:1; } /** Added as IE fix */
8
+ ul.dropdown li { float: left; vertical-align: middle; zoom: 1; }
9
+ * html ul.dropdown li {display:inline;} /** Added as IE fix */
10
+ ul.dropdown li a{ padding: .3em .8em; }
11
+ ul.dropdown li.hover, ul.dropdown li:hover{ position: relative; z-index: 599; cursor: default; }
12
+ ul.dropdown ul { display: none; position: absolute; top: 100%; left: 0; z-index: 598; }
13
+ ul.dropdown ul li { float: none; }
14
+ ul.dropdown ul ul { top: 1px; left: 99%; }
15
 
16
+ ul.dropdown li:hover > ul, ul.dropdown li.hover ul{ display: block; }
17
+ ul.dropdown a:active, ul.dropdown a:focus { outline-style:none; }
 
 
 
 
18
 
19
+ * html ul.dropdown li { height: 1px; }
 
 
 
 
 
20
 
21
+ /* IE Submenu margin fix */
22
+ ul.dropdown ul li, ul.dropdown-vertical { margin-left: -16px; mar\gin-left: 0; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
+ /** Hide submenus */
25
+ ul.dropdown ul,
26
+ ul.dropdown li.hover ul ul,
27
+ ul.dropdown li.hover ul ul ul,
28
+ ul.dropdown li.hover ul ul ul ul,
29
+ ul.dropdown li.hover ul ul ul ul ul,
30
  ul.dropdown ul,
31
  ul.dropdown li:hover ul ul,
32
  ul.dropdown li:hover ul ul ul,
33
  ul.dropdown li:hover ul ul ul ul,
34
  ul.dropdown li:hover ul ul ul ul ul {
35
+ display: none;
 
 
 
 
 
 
 
36
  }
37
 
38
+ /** Show current submenu */
39
  ul.dropdown li.hover ul,
40
  ul.dropdown ul li.hover ul,
41
  ul.dropdown ul ul li.hover ul,
46
  ul.dropdown ul ul li:hover ul,
47
  ul.dropdown ul ul ul li:hover ul,
48
  ul.dropdown ul ul ul ul li:hover ul {
49
+ display: block;
50
  }
51
 
52
+ ul.dropdown ul ul ul ul ul ul { display: none !important; }
 
 
53
 
54
  /* Vertical menu support */
55
  ul.dropdown-vertical { /*width: 200px;*/ }
shailan-multi-dropdown.php CHANGED
@@ -3,7 +3,7 @@
3
  class shailan_MultiDropDown extends WP_Widget {
4
  /** constructor */
5
  function shailan_MultiDropDown() {
6
- $widget_ops = array('classname' => 'shailan-dropdown-menu', 'description' => __( 'Dropdown page & category menu', 'shailan-dropdown-menu' ) );
7
  $this->WP_Widget('multi-dropdown-menu', __('Dropdown Multi', 'shailan-multi-dropdown'), $widget_ops);
8
  $this->alt_option_name = 'widget_multi_dropdown';
9
 
@@ -112,7 +112,7 @@ class shailan_MultiDropDown extends WP_Widget {
112
  <?php wp_list_bookmarks('title_li=&category_before=&category_after=&categorize=0'); ?>
113
  </ul>
114
  </li>
115
- <? } ?>
116
 
117
  <?php if($admin){ wp_register('<li class="admintab">','</li>'); } if($login){ ?><li class="page_item"><?php wp_loginout(); ?><?php } ?>
118
 
3
  class shailan_MultiDropDown extends WP_Widget {
4
  /** constructor */
5
  function shailan_MultiDropDown() {
6
+ $widget_ops = array('classname' => 'shailan-multi-dropdown', 'description' => __( 'Dropdown page & category menu', 'shailan-dropdown-menu' ) );
7
  $this->WP_Widget('multi-dropdown-menu', __('Dropdown Multi', 'shailan-multi-dropdown'), $widget_ops);
8
  $this->alt_option_name = 'widget_multi_dropdown';
9
 
112
  <?php wp_list_bookmarks('title_li=&category_before=&category_after=&categorize=0'); ?>
113
  </ul>
114
  </li>
115
+ <?php } ?>
116
 
117
  <?php if($admin){ wp_register('<li class="admintab">','</li>'); } if($login){ ?><li class="page_item"><?php wp_loginout(); ?><?php } ?>
118
 
shailan-page-walker.php CHANGED
@@ -56,13 +56,20 @@ class shailan_PageWalker extends Walker {
56
  * @param int $depth Depth of page in reference to parent pages. Used for padding.
57
  * @param array $args Uses 'selected' argument for selected page to set selected HTML attribute for option element.
58
  */
59
- function start_el(&$output, $page, $depth, $args, $current_page) {
60
  if ( $depth )
61
  $indent = str_repeat("\t", $depth);
62
  else
63
  $indent = '';
 
 
 
 
 
64
 
 
65
  extract($args, EXTR_SKIP);
 
66
  $css_class = array('page_item', 'page-item-'.$page->ID);
67
  if ( !empty($current_page) ) {
68
  $_current_page = get_page( $current_page );
56
  * @param int $depth Depth of page in reference to parent pages. Used for padding.
57
  * @param array $args Uses 'selected' argument for selected page to set selected HTML attribute for option element.
58
  */
59
+ function start_el(&$output, $page, $depth, $args=array(), $current_page=NULL) {
60
  if ( $depth )
61
  $indent = str_repeat("\t", $depth);
62
  else
63
  $indent = '';
64
+
65
+ $defaults = array(
66
+ 'link_before' => '',
67
+ 'link_after' => ''
68
+ );
69
 
70
+ $args = wp_parse_args( $args, $defaults );
71
  extract($args, EXTR_SKIP);
72
+
73
  $css_class = array('page_item', 'page-item-'.$page->ID);
74
  if ( !empty($current_page) ) {
75
  $_current_page = get_page( $current_page );
shailan-theme-selector.php DELETED
@@ -1,9 +0,0 @@
1
- <script type="text/javascript">
2
- function selectTheme(theme){
3
- alert(theme);
4
- }
5
- </script>
6
- <?php foreach($themes as $name=>$path){
7
- $selected = ($theme == $path ? 'selected' : '');
8
- echo '<div style="display:inline; float:left;text-align:center;font-size:0.8em; border:1px solid #ddd; margin:2px; padding:3px;"><a href="#" onclick="selectTheme(\''.$path.'\');return false;"><img src="'.WP_PLUGIN_URL.'/'.SHAILAN_DM_FOLDER.'/themes/'.$path.'.jpg" class="'.$selected.'" style="width:100px; border:1px solid #999;" title="'.$name.'" alt="'.$name.'"/></a><br />'.$name.'</div>';
9
- } ?>
 
 
 
 
 
 
 
 
 
shailan.DropDownMenu.php CHANGED
@@ -1,15 +1,15 @@
1
  <?php
2
  /*
3
- Plugin Name: Shailan 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 and categories. This widget is best used in <a href="http://shailan.com">Shailan.com</a> themes. You can find more widgets, plugins and themes at <a href="http://shailan.com">shailan.com</a>.
6
- Version: 1.4.0
7
  Author: Matt Say
8
  Author URI: http://shailan.com
9
  Text Domain: shailan-dropdown-menu
10
  */
11
 
12
- define('SHAILAN_DM_VERSION','1.4.0');
13
  define('SHAILAN_DM_TITLE', 'Dropdown Menu');
14
  define('SHAILAN_DM_FOLDER', 'dropdown-menu-widget');
15
 
@@ -19,310 +19,356 @@ define('SHAILAN_DM_FOLDER', 'dropdown-menu-widget');
19
  class shailan_DropdownWidget extends WP_Widget {
20
  /** constructor */
21
  function shailan_DropdownWidget() {
 
 
22
  $widget_ops = array('classname' => 'shailan-dropdown-menu', 'description' => __( 'Dropdown page/category menu', 'shailan-dropdown-menu' ) );
23
  $this->WP_Widget('dropdown-menu', __('Dropdown Menu', 'shailan-dropdown-menu'), $widget_ops);
24
  $this->alt_option_name = 'widget_dropdown_menu';
25
 
26
- // if ( is_active_widget(false, false, $this->id_base) )
27
- // @shailan: disabled for the_widget support.
28
- add_action( 'wp_head', array(&$this, 'styles') );
29
-
30
- }
31
-
32
- // Add settings page
33
- function adminMenu(){
34
- if (function_exists('add_options_page')) {
35
- add_options_page(__('Settings for Dropdown Menu', 'shailan-dropdown-menu') , __('Dropdown Menu', 'shailan-dropdown-menu'), 9, 'dropdown-menu', array('shailan_DropdownWidget', 'getOptionsPage'));
36
- }
37
- }
38
-
39
- function getOptionsPage(){
40
- // Option names
41
- $theme_tag = 'theme';
42
-
43
- $type_tag = 'shailan_dm_type';
44
- $exclude_tag = 'shailan_dm_exclude';
45
- $inline_style_tag = 'shailan_dm_style';
46
- $home_tag = 'shailan_dm_home';
47
- $login_tag = 'shailan_dm_login';
48
- $admin_tag = 'shailan_dm_admin';
49
- $vertical_tag = 'shailan_dm_vertical';
50
- $width_tag = 'shailan_dm_width';
51
- $custom_walkers_tag = 'shailan_dm_customwalkers';
52
- $allow_multiline_tag = 'shailan_dm_allowmultiline';
53
-
54
- // Read options
55
- $theme = get_option($theme_tag);
56
-
57
- $type = get_option($type_tag);
58
- $exclude = get_option($exclude_tag);
59
- $inline_style = get_option($inline_style_tag);
60
- $home = (bool) get_option($home_tag);
61
- $login = (bool) get_option($login_tag);
62
- $admin = (bool) get_option($admin_tag);
63
- $vertical = (bool) get_option($vertical_tag);
64
- $width = (int) get_option($width_tag);
65
- $custom_walkers = (bool) get_option($custom_walkers_tag);
66
- $allow_multiline = (bool) get_option($allow_multiline_tag);
67
-
68
- if(wp_verify_nonce($_POST['_wpnonce'])){ // Form submitted. Save settings.
69
-
70
- $theme = $_POST[$theme_tag]; //get_option('theme');
71
-
72
-
73
- $type = $_POST[$type_tag];
74
- $exclude = $_POST[$exclude_tag];
75
- $inline_style = $_POST[$inline_style_tag];
76
- $home = (bool) $_POST[$home_tag];
77
- $login = (bool) $_POST[$login_tag];
78
- $admin = (bool) $_POST[$admin_tag];
79
- $vertical = (bool) $_POST[$vertical_tag];
80
- $width = (int) $_POST[$width];
81
- $custom_walkers = (bool) $_POST[$custom_walkers_tag];
82
- $allow_multiline = (bool) $_POST[$allow_multiline_tag];
83
 
84
- update_option($theme_tag, $theme);
85
- update_option($type_tag, $type);
86
- update_option($exclude_tag, $exclude);
87
- update_option($inline_style_tag, $inline_style);
88
- update_option($home_tag, $home);
89
- update_option($login_tag, $login);
90
- update_option($admin_tag, $admin);
91
- update_option($vertical_tag, $vertical);
92
- update_option($width_tag, $width);
93
- update_option($custom_walkers_tag, $custom_walkers);
94
- update_option($allow_multiline_tag, $allow_multiline);
95
-
96
- ?>
97
- <div class="updated"><p><strong><?php _e('Options saved.', 'shailan-dropdown-menu'); ?></strong></p></div>
98
-
99
- <?php
100
- }
101
-
102
- $themes = array(
103
  'None'=>'NONE',
 
104
  'Simple White'=>'simple',
105
  'Wordpress Default'=>'wpdefault',
106
- 'Mystique'=>'mystique',
107
  'Grayscale'=>'grayscale',
108
  'Aqua'=>'aqua',
109
  'Blue gradient'=>'simple-blue',
110
- 'Tabs Blue'=> 'tabs-blue',
111
  'Shiny Black'=> 'shiny-black',
112
  'Flickr theme'=>'flickr.com/default.ultimate',
113
  'Nvidia theme'=>'nvidia.com/default.advanced',
114
  'Adobe theme'=>'adobe.com/default.advanced',
115
  'MTV theme'=>'mtv.com/default.ultimate'
116
  );
117
-
118
- ?>
119
-
120
- <div class="wrap">
121
- <h2><?php echo esc_html( SHAILAN_DM_TITLE . ' ' . SHAILAN_DM_VERSION ); ?></h2>
122
-
123
- <div style="width:140px; padding:10px; border:1px solid #ddd; float:right;">
124
- Please support if you like this plugin:
125
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
126
- <input type="hidden" name="cmd" value="_s-xclick">
127
- <input type="hidden" name="hosted_button_id" value="10214058">
128
- <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
129
- <img alt="" border="0" src="https://www.paypal.com/tr_TR/i/scr/pixel.gif" width="1" height="1">
130
- </form>
131
- </div>
132
-
133
- <p><?php _e('Dropdown menu creates a beautiful CSS only dropdown menu from your wordpress pages or categories. You can customize dropdown menu theme and settings here:', 'shailan-dropdown-menu'); ?></p>
134
-
135
- <form id="frmShailanDm" name="frmShailanDm" method="post" action="">
136
-
137
- <?php wp_nonce_field(); ?>
138
-
139
- <table class="form-table">
140
- <tr valign="top">
141
- <th scope="row"><label for="<?php echo $theme_tag; ?>"><?php _e('Dropdown menu theme', 'shailan-dropdown-menu') ?></label></th>
142
- <td><select name="<?php echo $theme_tag; ?>" id="theme">
143
-
144
- <?php foreach($themes as $name=>$path){
145
- $selected = ($theme == $path ? 'selected' : '');
146
- echo '<option value="'.$path.'" '.$selected.'>'.$name.'</option>';
147
- } ?>
148
-
149
- </select> <span class="description"><?php _e('You can choose a theme for your dropdown menu here.', 'shailan-dropdown-menu'); ?></span></td>
150
- </tr>
151
-
152
- <tr valign="top">
153
- <th scope="row"><label for="<?php echo $custom_walkers_tag; ?>"><?php _e('Display title attributes', 'shailan-dropdown-menu') ?></label></th>
154
- <td>
155
-
156
- <input type="checkbox" class="checkbox" id="<?php echo $custom_walkers_tag; ?>" name="<?php echo $custom_walkers_tag; ?>"<?php checked( $custom_walkers ); ?> />
157
-
158
- <span class="description"><?php _e('If checked menu will display title attributes.', 'shailan-dropdown-menu'); ?></span></td>
159
- </tr>
160
-
161
- <tr valign="top">
162
- <th scope="row"><label for="<?php echo $allow_multiline_tag; ?>"><?php _e('Allow multiline links', 'shailan-dropdown-menu') ?></label></th>
163
- <td>
164
-
165
- <input type="checkbox" class="checkbox" id="<?php echo $allow_multiline_tag; ?>" name="<?php echo $allow_multiline_tag; ?>"<?php checked( $allow_multiline ); ?> />
166
-
167
- <span class="description"><?php _e('If checked menu will wrap long menu items.', 'shailan-dropdown-menu'); ?></span></td>
168
- </tr>
169
-
170
- </table>
171
-
172
- <fieldset width="400">
173
- <h2><?php _e('Template tag options', 'shailan-dropdown-menu'); ?></h2>
174
- <p><?php _e('You can use following template tag in your themes to display the dropdown menu.', 'shailan-dropdown-menu'); ?><br />
175
- <blockquote><code>&lt;?php if(function_exists('shailan_dropdown_menu')){ shailan_dropdown_menu(); } ?&gt;</code></blockquote>
176
- <?php _e('Here you can set template tag options:', 'shailan-dropdown-menu'); ?>
177
- </p>
178
- <div style="padding:10px; border:1px solid #ddd; width:275px; ">
179
- <!-- <p><label for="<?php echo $title_tag; ?>"><?php _e('Title (won\'t be shown):'); ?> <input class="widefat" id="<?php echo $title_tag; ?>" name="<?php echo $title_tag; ?>" type="text" value="<?php echo $title; ?>" /></label></p> -->
180
 
181
- <p><?php _e('Type:'); ?> <label for="Pages"><input type="radio" id="Pages" name="<?php echo $type_tag; ?>" value="Pages" <?php if($type=='Pages'){ echo 'checked="checked"'; } ?> /> <?php _e('Pages', 'shailan-dropdown-menu'); ?></label> <label for="Categories"><input type="radio" id="Categories" name="<?php echo $type_tag; ?>" value="Categories" <?php if($type=='Categories'){ echo 'checked="checked"'; } ?>/> <?php _e('Categories', 'shailan-dropdown-menu'); ?></label></p>
 
 
 
 
 
 
 
 
 
 
182
 
183
- <p><label for="<?php echo $exclude_tag; ?>"><?php _e('Exclude:', 'shailan-dropdown-menu'); ?> <input class="widefat" id="<?php echo $exclude_tag; ?>" name="<?php echo $exclude_tag; ?>" type="text" value="<?php echo $exclude; ?>" /></label><br />
184
- <small><?php _e('Page IDs, separated by commas.', 'shailan-dropdown-menu'); ?></small></p>
 
 
 
 
 
 
 
 
 
 
 
 
185
 
186
- <p>
187
- <input type="checkbox" class="checkbox" id="<?php echo $home_tag; ?>" name="<?php echo $home_tag; ?>"<?php checked( $home ); ?> />
188
- <label for="<?php echo $home_tag; ?>"><?php _e( 'Add homepage link', 'shailan-dropdown-menu' ); ?></label><br />
189
- <input type="checkbox" class="checkbox" id="<?php echo $login_tag; ?>" name="<?php echo $login_tag; ?>"<?php checked( $login ); ?> />
190
- <label for="<?php echo $login_tag; ?>"><?php _e( 'Add login/logout', 'shailan-dropdown-menu' ); ?></label><br />
191
- <input type="checkbox" class="checkbox" id="<?php echo $admin_tag; ?>" name="<?php echo $admin_tag; ?>"<?php checked( $admin ); ?> />
192
- <label for="<?php echo $admin_tag; ?>"><?php _e( 'Add Register/Site Admin', 'shailan-dropdown-menu' ); ?></label><br />
193
- <input type="checkbox" class="checkbox" id="<?php echo $vertical_tag; ?>" name="<?php echo $vertical_tag; ?>"<?php checked( $vertical ); ?> />
194
- <label for="<?php echo $vertical_tag; ?>"><?php _e( 'Vertical menu', 'shailan-dropdown-menu' ); ?></label>
195
- </p>
196
 
197
- <p><label for="<?php echo $inline_style_tag; ?>"><?php _e('Inline Style:', 'shailan-dropdown-menu'); ?> <input class="widefat" id="<?php echo $inline_style_tag; ?>" name="<?php echo $inline_style_tag; ?>" type="text" value="<?php echo $inline_style; ?>" /></label><br />
198
- <small><?php _e('Applied to menu container &lt;div&gt;', 'shailan-dropdown-menu'); ?></small></p>
 
 
 
 
199
 
200
- <p><small><?php _e('NOTE: Widgets have their own options. Those options won\'t affect widgets.', 'shailan-dropdown-menu'); ?></small></p>
201
- </div>
202
- </fieldset>
203
-
204
- <p><?php _e('NOTE : Onscreen theme edit will be available soon. Be sure to check <a href="http://shailan.com">shailan.com</a> regularly for updates.', 'shailan-dropdown-menu'); ?></p>
205
- </div>
206
- <p class="submit">
207
- <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes', 'shailan-dropdown-menu'); ?>" />
208
- </p>
209
- <p><?php _e('Visit <a href="http://shailan.com">shailan.com</a> for more wordpress themes, plugins and widgets.', 'shailan-dropdown-menu'); ?></p>
210
- </form>
211
-
212
- <h2><?php _e('Contributors', 'shailan-dropdown-menu'); ?></h2>
213
- <p>Translators: </p>
214
- <ul>
215
- <li>Belorussian - <a href="http://pc.de/">Marcis G.</a></li>
216
- </ul>
217
-
218
-
219
- <p>
220
- <a href="http://shailan.com/wordpress/plugins/dropdown-menu">Dropdown Menu <?php echo SHAILAN_DM_VERSION; ?></a> by <a href="http://shailan.com">shailan</a></a> &copy; 2010
221
- </p>
222
- </div> <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
223
 
224
  }
225
 
226
  /** @see WP_Widget::widget */
227
  function widget($args, $instance) {
228
  extract( $args );
229
- $title = apply_filters('widget_title', $instance['title']);
230
- $type = $instance['type'];
231
- $exclude = $instance['exclude'];
232
- $inline_style = $instance['style'];
233
- $home = (bool) $instance['home'];
234
- $login = (bool) $instance['login'];
235
- $admin = (bool) $instance['admin'];
236
- $vertical = (bool) $instance['vertical'];
237
- $align = $instance['align'];
238
 
239
  $orientation = ($vertical ? 'dropdown-vertical' : 'dropdown-horizontal');
240
-
241
- $custom_walkers = (bool) get_option('shailan_dm_customwalkers');
242
 
243
  ?>
244
- <?php echo $before_widget; ?>
245
  <?php /*if ( $title )
246
  echo $before_title . $title . $after_title;*/ // Title is disabled for this widget
247
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
 
249
- <div id="shailan-dropdown-wrapper-<?php echo $this->number; ?>" style="<?php echo $inline_style; ?>">
250
- <div <?php switch($align){
251
- case 'right':
252
- echo ' align="right"';
253
- break;
254
- case 'center':
255
- echo ' align="center"';
256
- break;
257
 
258
- case 'left':
259
- default:
 
 
 
260
 
261
- }; ?>>
262
- <table cellpadding="0" cellspacing="0">
263
- <tr><td>
264
- <ul class="dropdown <?php echo $orientation; ?>">
265
 
266
- <?php if($home){ ?>
267
- <li class="page_item cat-item blogtab <?php if ( is_front_page() && !is_paged() ){ ?>current_page_item current-cat<?php } ?>"><a href="<?php echo get_option('home'); ?>/"><span><?php _e('Home', 'shailan-dropdown-menu'); ?></span></a></li>
268
- <?php } ?>
269
-
 
 
 
 
 
 
 
270
 
271
- <?php if($type == 'Pages'){ ?>
 
 
 
 
 
 
 
272
 
273
- <?php
274
- if($custom_walkers){
275
- echo "<!-- custom walkers ON -->";
276
-
277
- $page_walker = new shailan_PageWalker();
278
- wp_list_pages(array(
279
- 'walker'=>$page_walker,
280
- 'sort_column'=>'menu_order',
281
- 'depth'=>'4',
282
- 'title_li'=>'',
283
- 'exclude'=>$exclude
284
- ));
285
- } else {
286
-
287
- echo "<!-- custom walkers OFF -->";
288
-
289
- wp_list_pages(array(
290
- 'sort_column'=>'menu_order',
291
- 'depth'=>'4',
292
- 'title_li'=>'',
293
- 'exclude'=>$exclude
294
- ));
295
- } ?>
296
-
297
- <?php } else { ?>
 
 
 
298
 
299
- <?php
300
- if($custom_walkers){
301
- $cat_walker = new shailan_CategoryWalker();
302
- wp_list_categories(array(
303
- 'walker'=>$cat_walker,
304
- 'order_by'=>'name',
305
- 'depth'=>'4',
306
- 'title_li'=>'',
307
- 'exclude'=>$exclude
308
- ));
309
- } else {
310
- wp_list_categories(array(
311
- 'order_by'=>'name',
312
- 'depth'=>'4',
313
- 'title_li'=>'',
314
- 'exclude'=>$exclude
315
- ));
316
- } ?>
317
-
318
- <?php } ?>
319
 
320
- <?php if($admin){ wp_register('<li class="admintab">','</li>'); } if($login){ ?><li class="page_item"><?php wp_loginout(); ?><?php } ?>
 
 
 
 
 
 
321
 
322
- </ul></td>
323
- </tr></table>
324
- </div>
325
- </div>
326
  <?php echo $after_widget; ?>
327
  <?php
328
  }
@@ -333,21 +379,24 @@ Please support if you like this plugin:
333
  }
334
 
335
  /** @see WP_Widget::form */
336
- function form($instance) {
337
- $title = esc_attr($instance['title']);
338
- $type = $instance['type'];
339
- $exclude = $instance['exclude'];
340
- $inline_style = $instance['style'];
341
- $home = (bool) $instance['home'];
342
- $login = (bool) $instance['login'];
343
- $admin = (bool) $instance['admin'];
344
- $vertical = (bool) $instance['vertical'];
345
- $align = $instance['align'];
346
 
347
  ?>
348
  <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title (won\'t be shown):', '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>
349
 
350
- <p><?php _e('Type:'); ?> <label for="Pages"><input type="radio" id="Pages" name="<?php echo $this->get_field_name('type'); ?>" value="Pages" <?php if($type=='Pages'){ echo 'checked="checked"'; } ?> /> <?php _e('Pages', 'shailan-dropdown-menu'); ?></label> <label for="Categories"><input type="radio" id="Categories" name="<?php echo $this->get_field_name('type'); ?>" value="Categories" <?php if($type=='Categories'){ echo 'checked="checked"'; } ?>/> <?php _e('Categories', 'shailan-dropdown-menu'); ?></label></p>
 
 
 
 
 
351
 
352
  <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 />
353
  <small>Page IDs, separated by commas.</small></p>
@@ -364,52 +413,68 @@ Please support if you like this plugin:
364
  </p>
365
 
366
  <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>
367
-
368
- <p><label for="<?php echo $this->get_field_id('style'); ?>"><?php _e('Inline Style:', 'shailan-dropdown-menu'); ?> <input class="widefat" id="<?php echo $this->get_field_id('style'); ?>" name="<?php echo $this->get_field_name('style'); ?>" type="text" value="<?php echo $inline_style; ?>" /></label><br />
369
- <small><?php _e('Applied to menu container &lt;div&gt;.', 'shailan-dropdown-menu'); ?></small></p>
370
 
371
- <div class="widget-control-actions alignright">
372
- <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>
373
- </div>
 
374
 
375
  <?php
376
  }
377
 
378
  function styles($instance){
379
 
380
- $theme = get_option('theme');
381
- $allow_multiline = (bool) get_option($allow_multiline_tag);
382
-
383
-
384
- echo "\n<!-- Start of Dropdown Menu Widget Styles by shailan (http://shailan.com) -->";
385
-
386
- echo "\n\t<link rel=\"stylesheet\" href=\"".WP_PLUGIN_URL."/".SHAILAN_DM_FOLDER."/shailan-dropdown.css\" type=\"text/css\" />";
387
-
388
- if($theme!='NONE'){
389
- echo "\n\t<link rel=\"stylesheet\" href=\"".WP_PLUGIN_URL."/".SHAILAN_DM_FOLDER."/themes/".$theme.".css\" type=\"text/css\" />";
390
- }
391
-
392
- // Font family and font size
393
- $font_family = '"Segoe UI",Calibri,"Myriad Pro",Myriad,"Trebuchet MS",Helvetica,Arial,sans-serif';
394
- $font_size = '12px';
395
- echo "\n\t<style type=\"text/css\" media=\"all\">";
396
- echo "\n\t\tul.dropdown {font-family:$font_family; font-size:$font_size; }";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
397
 
398
- if(!$allow_multiline){
399
- echo "\n\t\t.shailan-dropdown-menu ul.dropdown { white-space: nowrap; }";
400
  }
401
-
402
- echo "\n\t</style>";
403
-
404
- echo "\n\t<!--[if lte IE 7]>";
405
- echo "\n\t<style type=\"text/css\" media=\"screen\">";
406
- echo "\n\t\tbody { behavior:url(\"".WP_PLUGIN_URL."/".SHAILAN_DM_FOLDER."/csshover.htc\"); }";
407
- echo "\n\t</style>";
408
- echo "\n\t<![endif]-->";
409
-
410
- echo "\n<!-- End of Wordpress Dropdown Menu Styles -->";
411
- echo "\n ";
412
-
413
  }
414
 
415
  } // class shailan_DropdownWidget
@@ -419,25 +484,21 @@ add_action('widgets_init', create_function('', 'return register_widget("shailan_
419
 
420
  // load translations
421
  $plugin_dir = basename(dirname(__FILE__));
422
- load_plugin_textdomain( 'shailan-dropdown-menu', 'wp-content/plugins/' . $plugin_dir . '/lang');
423
 
424
  // add admin menu
425
  add_action('admin_menu', array('shailan_DropdownWidget', 'adminMenu'));
426
 
 
427
  wp_enqueue_script( 'dropdown-ie-support', WP_PLUGIN_URL . '/' . SHAILAN_DM_FOLDER . '/include.js', array('jquery') );
428
 
429
  /* Includes */
430
-
431
- include_once('simon-exclude-pages.php'); // Exclude page plugin
432
  include('shailan-page-walker.php'); // Load custom page walker
433
  include('shailan-category-walker.php'); // Load custom category walker
434
 
435
- /* Custom widget */
436
-
437
  include('shailan-multi-dropdown.php'); // Load multi-dropdown widget
438
 
439
-
440
-
441
  // template tag support
442
  function shailan_dropdown_menu(){
443
  $type = get_option('shailan_dm_type');
@@ -459,4 +520,13 @@ function shailan_dropdown_menu(){
459
  );
460
 
461
  the_widget('shailan_DropdownWidget', $args);
 
 
 
 
 
 
 
 
 
462
  }
1
  <?php
2
  /*
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 and categories. This widget is best used in <a href="http://shailan.com">Shailan.com</a> themes. You can find more widgets, plugins and themes at <a href="http://shailan.com">shailan.com</a>.
6
+ Version: 1.5.1
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.1');
13
  define('SHAILAN_DM_TITLE', 'Dropdown Menu');
14
  define('SHAILAN_DM_FOLDER', 'dropdown-menu-widget');
15
 
19
  class shailan_DropdownWidget extends WP_Widget {
20
  /** constructor */
21
  function shailan_DropdownWidget() {
22
+ global $pluginname, $shortname, $pluginoptions;
23
+
24
  $widget_ops = array('classname' => 'shailan-dropdown-menu', 'description' => __( 'Dropdown page/category menu', 'shailan-dropdown-menu' ) );
25
  $this->WP_Widget('dropdown-menu', __('Dropdown Menu', 'shailan-dropdown-menu'), $widget_ops);
26
  $this->alt_option_name = 'widget_dropdown_menu';
27
 
28
+ $this->pluginname = "Dropdown Menu";
29
+ $this->shortname = "shailan_dm";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
+ // Hook up styles
32
+ add_action( 'wp_head', array(&$this, 'styles') );
33
+
34
+ // Define themes
35
+ $available_themes = array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  'None'=>'NONE',
37
+ 'Custom CSS' => 'custom',
38
  'Simple White'=>'simple',
39
  'Wordpress Default'=>'wpdefault',
 
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
52
+ $themes = array();
53
+ while(list($Key,$Val) = each($available_themes))
54
+ $themes[$Val] = $Key;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
+ $types = array('pages'=>'Pages', 'categories'=>'Categories');
57
+
58
+ if(function_exists('wp_nav_menu')){
59
+ // Get available menus
60
+ $menus = get_terms( 'nav_menu', array( 'hide_empty' => false ) );
61
+ $navmenus = array();
62
+ if($menus){
63
+ foreach($menus as $menu){
64
+ $navmenus['navmenu_' . $menu->term_id] = $menu->name;
65
+ }
66
+ }
67
 
68
+ // Merge type with menu array
69
+ $types = array_merge($types, $navmenus);
70
+ }
71
+
72
+ $this->menu_types = $types; // Back it up
73
+
74
+ // Option names
75
+ $vertical_tag = 'shailan_dm_vertical';
76
+ $width_tag = 'shailan_dm_width';
77
+ $custom_walkers_tag = 'shailan_dm_customwalkers';
78
+ $allow_multiline_tag = 'shailan_dm_allowmultiline';
79
+
80
+ // Define plugin options
81
+ $this->admin_options = array(
82
 
83
+ array(
84
+ "name" => "Menu options",
85
+ "type" => "section"
86
+ ),
 
 
 
 
 
 
87
 
88
+ array( "name" => "Dropdown Menu Theme",
89
+ "desc" => "Skin for the menu",
90
+ "id" => $this->shortname."_active_theme",
91
+ "std" => "None",
92
+ "options" => $themes,
93
+ "type" => "select"),
94
 
95
+ array( "name" => "Rename Homepage",
96
+ "desc" => "You can change your homepage link here",
97
+ "id" => $this->shortname."_home_tag",
98
+ "std" => __("Home"),
99
+ "type" => "text"),
100
+
101
+ array( "type" => "close" ),
102
+
103
+ array(
104
+ "name" => "Template Tag Options",
105
+ "type" => "section"
106
+ ),
107
+
108
+ array( "name" => "Menu Type",
109
+ "desc" => "Dropdown Menu Type",
110
+ "id" => $this->shortname."_type",
111
+ "std" => "Pages",
112
+ "options" => $types,
113
+ "type" => "select"),
114
+
115
+ array( "name" => "Home link",
116
+ "desc" => "If checked dropdown menu displays home link",
117
+ "id" => $this->shortname."_home",
118
+ "std" => true,
119
+ "type" => "checkbox"),
120
+
121
+ array( "name" => "Login",
122
+ "desc" => "If checked dropdown menu displays login link",
123
+ "id" => $this->shortname."_login",
124
+ "std" => true,
125
+ "type" => "checkbox"),
126
+
127
+ array( "name" => "Register / Site Admin",
128
+ "desc" => "If checked dropdown menu displays register/site admin link.",
129
+ "id" => $this->shortname."_login",
130
+ "std" => true,
131
+ "type" => "checkbox"),
132
+
133
+ array( "name" => "Vertical menu",
134
+ "desc" => "If checked dropdown menu is displayed vertical.",
135
+ "id" => $this->shortname."_vertical",
136
+ "std" => true,
137
+ "type" => "checkbox"),
138
+
139
+ array( "name" => "Exclude Pages",
140
+ "desc" => "Excluded page IDs.",
141
+ "id" => $this->shortname."_exclude",
142
+ "std" => "",
143
+ "type" => "text"),
144
+
145
+ array( "type" => "close" ),
146
+
147
+ array(
148
+ "name" => "Advanced Options",
149
+ "type" => "section"
150
+ ),
151
+
152
+ array( "name" => "Wrap long menu items",
153
+ "desc" => "If checked long menu items will wrap",
154
+ "id" => $this->shortname."_allowmultiline",
155
+ "type" => "checkbox"),
156
+
157
+ array( "name" => "Dropdown Menu Font",
158
+ "desc" => "Font family for the menu<br />Please leave blank to use your wordpress theme font.",
159
+ "id" => $this->shortname."_font",
160
+ "std" => '',
161
+ "type" => "text"),
162
+
163
+ array( "name" => "Dropdown Menu Font Size",
164
+ "desc" => "Font size of the menu items (Eg: 12px OR 1em) <br />Please leave blank to use your wordpress theme font-size.",
165
+ "id" => $this->shortname."_fontsize",
166
+ "std" => '',
167
+ "type" => "text"),
168
+
169
+ array( "name" => "Custom css",
170
+ "desc" => "You can paste your own customization file here.",
171
+ "id" => $this->shortname."_custom_css",
172
+ "std" => '',
173
+ "type" => "textarea"),
174
+
175
+ array( "name" => "Show Empty Categories",
176
+ "desc" => "If checked categories with no posts will be shown.",
177
+ "id" => $this->shortname."_show_empty",
178
+ "std" => false,
179
+ "type" => "checkbox"),
180
+
181
+ /*
182
+ array( "name" => "Use custom walkers",
183
+ "desc" => "Custom walkers add more functionality for styling. <br />Some themes depend on this option.<br />Note: This option hides link titles.",
184
+ "id" => $this->shortname."_customwalkers",
185
+ "std" => false,
186
+ "type" => "checkbox"),
187
+ */
188
+
189
+ array( "type" => "close" ),
190
+
191
+ );
192
+
193
+ $this->defaults = array(
194
+ 'title' => '',
195
+ 'type' => 'pages',
196
+ 'exclude' => '',
197
+ 'home' => false,
198
+ 'login' => false,
199
+ 'admin' => false,
200
+ 'vertical' => false,
201
+ 'align' => 'left'
202
+ );
203
+
204
+ $pluginname = $this->pluginname;
205
+ $shortname = $this->shortname;
206
+ $pluginoptions = $this->admin_options;
207
+
208
+ /** Unused options */
209
+ update_option('shailan_dm_customwalkers', false);
210
+
211
+ }
212
+
213
+ // Add settings page
214
+ function adminMenu(){
215
+ global $pluginname, $shortname, $pluginoptions;
216
+
217
+ wp_register_style('dropdownMenuStyles', WP_PLUGIN_URL . '/dropdown-menu-widget/admin.css');
218
+
219
+ if ( @$_GET['page'] == 'dropdown-menu' ) {
220
+
221
+ if ( @$_REQUEST['action'] && 'save' == $_REQUEST['action'] ) {
222
+
223
+ foreach ($pluginoptions as $value) {
224
+ update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
225
+
226
+ foreach ($pluginoptions as $value) {
227
+ if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } }
228
+
229
+ header("Location: admin.php?page=dropdown-menu&saved=true");
230
+ die;
231
+
232
+ }
233
+
234
+ }
235
+
236
+ if (function_exists('add_options_page')) {
237
+ $page = add_options_page(__('Settings for Dropdown Menu', 'shailan-dropdown-menu') , __('Dropdown Menu', 'shailan-dropdown-menu'), 'edit_themes', 'dropdown-menu', array('shailan_DropdownWidget', 'getOptionsPage'));
238
+ add_action('admin_print_styles-' . $page, array('shailan_DropdownWidget', 'styles'));
239
+ }
240
+ }
241
+
242
+ function getOptionsPage(){
243
+ global $pluginname, $shortname, $pluginoptions;
244
+
245
+ $title = __('Dropdown Menu Options');
246
+
247
+ include_once('options-page.php');
248
 
249
  }
250
 
251
  /** @see WP_Widget::widget */
252
  function widget($args, $instance) {
253
  extract( $args );
254
+ $widget_options = wp_parse_args( $instance, $this->defaults );
255
+ extract( $widget_options, EXTR_SKIP );
 
 
 
 
 
 
 
256
 
257
  $orientation = ($vertical ? 'dropdown-vertical' : 'dropdown-horizontal');
258
+ $custom_walkers = false; //(bool) get_option('shailan_dm_customwalkers');
259
+ $show_empty = (bool) get_option('shailan_dm_show_empty');
260
 
261
  ?>
262
+ <?php echo $args['before_widget']; ?>
263
  <?php /*if ( $title )
264
  echo $before_title . $title . $after_title;*/ // Title is disabled for this widget
265
  ?>
266
+
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')){
277
+
278
+ $home_item = '<li class="page_item cat-item blogtab '. (is_front_page() && !is_paged() ? 'current_page_item current-cat' : '' ) . '">
279
+ <a href="'.get_option('home').'">';
280
 
281
+ $home_tag = get_option('shailan_dm_home_tag');
282
+ if(empty($home_tag)){ $home_tag = __('Home'); }
 
 
 
 
 
 
283
 
284
+ $home_item .= $home_tag;
285
+ $home_item .= '</a></li>';
286
+
287
+ $list_open .= $home_item;
288
+ }
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',
300
+ 'depth'=>'4',
301
+ 'title_li'=>'',
302
+ 'exclude'=>$exclude
303
+ );
304
 
305
+ switch ( $type ) {
306
+
307
+ /* Pages menu */
308
+ case "pages":
309
+
310
+ if($custom_walkers){
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
+
322
+ /** Categories menu */
323
+ case "categories":
324
+
325
+ if($custom_walkers){
326
+ $cat_walker = new shailan_CategoryWalker();
327
+ $menu_defaults = wp_parse_args( array('walker'=>$cat_walker) , $menu_defaults ); }
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
+
339
+ /** WP3 Nav menu */
340
+ default:
341
+ $menu_id = substr($type, 8, 3);
342
 
343
+ $menu_args = array(
344
+ 'menu' => $menu_id,
345
+ 'container' => false,
346
+ 'container_class' => '',
347
+ 'container_id' => '',
348
+ 'menu_class' => 'dropdown '. $orientation . ' dropdown-align-'.$align,
349
+ 'menu_id' => '',
350
+ 'echo' => true,
351
+ 'fallback_cb' => 'wp_page_menu',
352
+ 'before' => '',
353
+ 'after' => '',
354
+ 'link_before' => '',
355
+ 'link_after' => '',
356
+ 'depth' => 0,
357
+ 'walker' => '',
358
+ 'theme_location' => '');
359
+
360
+ if($custom_walkers){
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
+
370
+ ?>
371
 
 
 
 
 
372
  <?php echo $after_widget; ?>
373
  <?php
374
  }
379
  }
380
 
381
  /** @see WP_Widget::form */
382
+ function form($instance) {
383
+ $widget_options = wp_parse_args( $instance, $this->defaults );
384
+ extract( $widget_options, EXTR_SKIP );
385
+
386
+ $home = (bool) $home;
387
+ $login = (bool) $login;
388
+ $admin = (bool) $admin;
389
+ $vertical = (bool) $vertical;
 
 
390
 
391
  ?>
392
  <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title (won\'t be shown):', '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>
393
 
394
+ <p><label for="<?php echo $this->get_field_id('type'); ?>"><?php _e('Menu:'); ?>
395
+ <select name="<?php echo $this->get_field_name('type'); ?>" id="<?php echo $this->get_field_id('type'); ?>">
396
+ <?php foreach ($this->menu_types as $key=>$option) { ?>
397
+ <option <?php if ($type == $key) { echo 'selected="selected"'; } ?> value="<?php echo $key; ?>"><?php echo $option; ?></option><?php } ?>
398
+ </select>
399
+ </label></p>
400
 
401
  <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 />
402
  <small>Page IDs, separated by commas.</small></p>
413
  </p>
414
 
415
  <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>
 
 
 
416
 
417
+ <div class="widget-control-actions alignright">
418
+ <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>
419
+ </div>
420
+ <br class="clear" />
421
 
422
  <?php
423
  }
424
 
425
  function styles($instance){
426
 
427
+ if(!is_admin()){
428
+
429
+ $theme = get_option('shailan_dm_active_theme');
430
+ $allow_multiline = (bool) get_option('shailan_dm_allowmultiline');
431
+
432
+ echo "\n<!-- Start of Dropdown Menu Widget Styles by shailan (http://shailan.com) -->";
433
+
434
+ echo "\n\t<link rel=\"stylesheet\" href=\"".WP_PLUGIN_URL."/".SHAILAN_DM_FOLDER."/shailan-dropdown.css\" type=\"text/css\" />";
435
+
436
+ if($theme!='NONE' || $theme != 'Custom'){
437
+ echo "\n\t<link rel=\"stylesheet\" href=\"".WP_PLUGIN_URL."/".SHAILAN_DM_FOLDER."/themes/".$theme.".css\" type=\"text/css\" />";
438
+ }
439
+
440
+
441
+ echo "\n\t<style type=\"text/css\" media=\"all\">";
442
+
443
+ // Font family and font size
444
+ $font_family = stripslashes(get_option('shailan_dm_font')); //'"Segoe UI",Calibri,"Myriad Pro",Myriad,"Trebuchet MS",Helvetica,Arial,sans-serif';
445
+
446
+ if(!empty($font_family)){ echo "\n\t\tul.dropdown li a { font-family:$font_family; } "; }
447
+
448
+ $font_size = get_option('shailan_dm_fontsize'); //'12px';
449
+
450
+ if(!empty($font_size)){ echo "\n\t\tul.dropdown li a { font-size:$font_size; }"; }
451
+
452
+ if(!$allow_multiline){
453
+ echo "\n\t\tul.dropdown { white-space: nowrap; }\n";
454
+ }
455
+
456
+ // Custom css support
457
+ if($theme == 'custom'){
458
+ $custom_css = stripslashes(get_option('shailan_dm_custom_css'));
459
+
460
+ if(!empty($custom_css)){ echo $custom_css; }
461
+ }
462
+
463
+
464
+ echo "\n\t</style>";
465
+
466
+ echo "\n\t<!--[if lte IE 7]>";
467
+ echo "\n\t<style type=\"text/css\" media=\"screen\">";
468
+ echo "\n\t\tbody { behavior:url(\"".WP_PLUGIN_URL."/".SHAILAN_DM_FOLDER."/csshover.htc\"); }";
469
+ echo "\n\t</style>";
470
+ echo "\n\t<![endif]-->";
471
+
472
+ echo "\n<!-- End of Wordpress Dropdown Menu Styles -->";
473
+ echo "\n ";
474
 
475
+ } else {
476
+ wp_enqueue_style('dropdownMenuStyles');
477
  }
 
 
 
 
 
 
 
 
 
 
 
 
478
  }
479
 
480
  } // class shailan_DropdownWidget
484
 
485
  // load translations
486
  $plugin_dir = basename(dirname(__FILE__));
487
+ load_plugin_textdomain( 'shailan-dropdown-menu', false, $plugin_dir . '/lang');
488
 
489
  // add admin menu
490
  add_action('admin_menu', array('shailan_DropdownWidget', 'adminMenu'));
491
 
492
+ if(is_admin()){ wp_admin_css( 'widgets' ); wp_enqueue_script('admin-widgets'); };
493
  wp_enqueue_script( 'dropdown-ie-support', WP_PLUGIN_URL . '/' . SHAILAN_DM_FOLDER . '/include.js', array('jquery') );
494
 
495
  /* Includes */
 
 
496
  include('shailan-page-walker.php'); // Load custom page walker
497
  include('shailan-category-walker.php'); // Load custom category walker
498
 
499
+ /* Custom widget */
 
500
  include('shailan-multi-dropdown.php'); // Load multi-dropdown widget
501
 
 
 
502
  // template tag support
503
  function shailan_dropdown_menu(){
504
  $type = get_option('shailan_dm_type');
520
  );
521
 
522
  the_widget('shailan_DropdownWidget', $args);
523
+ }
524
+
525
+ function get_latest_tweet($username)
526
+ {
527
+ $url = "http://search.twitter.com/search.atom?q=from:$username&rpp=1";
528
+ $content = file_get_contents($url);
529
+ $content = explode('<content type="html">', $content);
530
+ $content = explode('</content>', $content[1]);
531
+ return html_entity_decode($content[0]);
532
  }
simon-exclude-pages.php DELETED
@@ -1,335 +0,0 @@
1
- <?php
2
- /*
3
- Exclude Pages from Navigation
4
- http://wordpress.org/extend/plugins/exclude-pages/
5
-
6
-
7
- Provides a checkbox on the editing page which you can check to exclude pages from the primary navigation. IMPORTANT NOTE: This will remove the pages from any "consumer" side page listings, which may not be limited to your page navigation listings.
8
-
9
- Version: 1.8
10
-
11
- Simon Wheatley
12
- http://simonwheatley.co.uk/wordpress/
13
-
14
- Copyright 2007 Simon Wheatley
15
-
16
- This script is free software; you can redistribute it and/or modify
17
- it under the terms of the GNU General Public License as published by
18
- the Free Software Foundation; either version 3 of the License, or
19
- (at your option) any later version.
20
-
21
- This script is distributed in the hope that it will be useful,
22
- but WITHOUT ANY WARRANTY; without even the implied warranty of
23
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
- GNU General Public License for more details.
25
-
26
- You should have received a copy of the GNU General Public License
27
- along with this program. If not, see <http://www.gnu.org/licenses/>.
28
-
29
- */
30
-
31
- // Full filesystem path to this dir
32
- define('sdep_PLUGIN_DIR', dirname(__FILE__));
33
-
34
- // Option name for exclusion data
35
- define('sdep_OPTION_NAME', 'ep_exclude_pages');
36
- // Separator for the string of IDs stored in the option value
37
- define('sdep_OPTION_SEP', ',');
38
-
39
- // Take the pages array, and return the pages array without the excluded pages
40
- // Doesn't do this when in the admin area
41
- function sdep_exclude_pages( $pages )
42
- {
43
- // If the URL includes "wp-admin", just return the unaltered list
44
- // This constant, WP_ADMIN, only came into WP on 2007-12-19 17:56:16 rev 6412, i.e. not something we can rely upon unfortunately.
45
- // May as well check it though.
46
- // Also check the URL... let's hope they haven't got a page called wp-admin (probably not)
47
- // SWTODO: Actually, you can create a page with an address of wp-admin (which is then inaccessible), I consider this a bug in WordPress (which I may file a report for, and patch, another time).
48
- $bail_out = ( ( defined( 'WP_ADMIN' ) && WP_ADMIN == true ) || ( strpos( $_SERVER[ 'PHP_SELF' ], 'wp-admin' ) !== false ) );
49
- $bail_out = apply_filters( 'sdep_admin_bail_out', $bail_out );
50
- if ( $bail_out ) return $pages;
51
- $excluded_ids = sdep_get_excluded_ids();
52
- $length = count($pages);
53
- // Ensure we catch all descendant pages, so that if a parent
54
- // is hidden, it's children are too.
55
- for ( $i=0; $i<$length; $i++ ) {
56
- $page = & $pages[$i];
57
- // If one of the ancestor pages is excluded, add it to our exclude array
58
- if ( sdep_ancestor_excluded( $page, $excluded_ids, $pages ) ) {
59
- // Can't actually delete the pages at the moment,
60
- // it'll screw with our recursive search.
61
- // For the moment, just tag the ID onto our excluded IDs
62
- $excluded_ids[] = $page->ID;
63
- }
64
- }
65
-
66
- // Ensure the array only has unique values
67
- $delete_ids = array_unique( $excluded_ids );
68
-
69
- // Loop though the $pages array and actually unset/delete stuff
70
- for ( $i=0; $i<$length; $i++ ) {
71
- $page = & $pages[$i];
72
- // If one of the ancestor pages is excluded, add it to our exclude array
73
- if ( in_array( $page->ID, $delete_ids ) ) {
74
- // Finally, delete something(s)
75
- unset( $pages[$i] );
76
- }
77
- }
78
-
79
- // Reindex the array, for neatness
80
- // SWFIXME: Is reindexing the array going to create a memory optimisation problem for large arrays of WP post/page objects?
81
- if ( ! is_array( $pages ) ) $pages = (array) $pages;
82
- $pages = array_values( $pages );
83
-
84
- return $pages;
85
- }
86
-
87
- // Recurse down an ancestor chain, checking if one is excluded
88
- // Returns the ID of the "nearest" excluded ancestor
89
- function sdep_ancestor_excluded( & $page, & $excluded_ids, & $pages )
90
- {
91
- $parent = & sdep_get_page( $page->post_parent, $pages );
92
- // Is it excluded?
93
- if ( in_array( $parent->ID, $excluded_ids ) ) {
94
- return $parent->ID;
95
- }
96
- // Is it the homepage?
97
- if ( $parent->ID == 0 ) return false;
98
- // Otherwise we have another ancestor to check
99
- return sdep_ancestor_excluded( $parent, $excluded_ids, $pages );
100
- }
101
-
102
- // Return the portion of the $pages array which refers to the ID passed as $page_id
103
- function sdep_get_page( $page_id, & $pages )
104
- {
105
- // PHP 5 would be much nicer here, we could use foreach by reference, ah well.
106
- $length = count($pages);
107
- for ( $i=0; $i<$length; $i++ ) {
108
- $page = & $pages[$i];
109
- if ( $page->ID == $page_id ) return $page;
110
- }
111
- // Unusual.
112
- return false;
113
- }
114
-
115
- // Is this page we're editing (defined by global $post_ID var)
116
- // currently NOT excluded (i.e. included),
117
- // returns true if NOT excluded (i.e. included)
118
- // returns false is it IS excluded.
119
- // (Tricky this upside down flag business.)
120
- function sdep_this_page_included()
121
- {
122
- global $post_ID;
123
- // New post? Must be included then.
124
- if ( ! $post_ID ) return true;
125
- $excluded_ids = sdep_get_excluded_ids();
126
- // If there's no exclusion array, we can return true
127
- if ( empty($excluded_ids) ) return true;
128
- // Check if our page is in the exclusion array
129
- // The bang (!) reverses the polarity [1] of the boolean
130
- return ! in_array( $post_ID, $excluded_ids );
131
- // fn1. (of the neutron flow, ahem)
132
- }
133
-
134
- // Check the ancestors for the page we're editing (defined by
135
- // global $post_ID var), return the ID if the nearest one which
136
- // is excluded (if any);
137
- function sdep_nearest_excluded_ancestor()
138
- {
139
- global $post_ID, $wpdb;
140
- // New post? No problem.
141
- if ( ! $post_ID ) return false;
142
- $excluded_ids = sdep_get_excluded_ids();
143
- // Manually get all the pages, to avoid our own filter.
144
- $sql = "SELECT ID, post_parent FROM $wpdb->posts WHERE post_type = 'page'";
145
- $pages = $wpdb->get_results( $sql );
146
- // Start recursively checking the ancestors
147
- $parent = sdep_get_page( $post_ID, $pages );
148
- return sdep_ancestor_excluded( $parent, $excluded_ids, $pages );
149
- }
150
-
151
- function sdep_get_excluded_ids()
152
- {
153
- $exclude_ids_str = get_option( sdep_OPTION_NAME );
154
- // No excluded IDs? Return an empty array
155
- if ( empty($exclude_ids_str) ) return array();
156
- // Otherwise, explode the separated string into an array, and return that
157
- return explode( sdep_OPTION_SEP, $exclude_ids_str );
158
- }
159
-
160
- // This function gets all the exclusions out of the options
161
- // table, updates them, and resaves them in the options table.
162
- // We're avoiding making this a postmeta (custom field) because we
163
- // don't want to have to retrieve meta for every page in order to
164
- // determine if it's to be excluded. Storing all the exclusions in
165
- // one row seems more sensible.
166
- function sdep_update_exclusions( $post_ID )
167
- {
168
- // Bang (!) to reverse the polarity of the boolean, turning include into exclude
169
- $exclude_this_page = ! (bool) $_POST['sdep_this_page_included'];
170
- // SWTODO: Also check for a hidden var, which confirms that this checkbox was present
171
- // If hidden var not present, then default to including the page in the nav (i.e. bomb out here rather
172
- // than add the page ID to the list of IDs to exclude)
173
- $ctrl_present = (bool) @ $_POST['sdep_ctrl_present'];
174
- if ( ! $ctrl_present ) return;
175
-
176
- $excluded_ids = sdep_get_excluded_ids();
177
- // If we need to EXCLUDE the page from the navigation...
178
- if ( $exclude_this_page ) {
179
- // Add the post ID to the array of excluded IDs
180
- array_push( $excluded_ids, $post_ID );
181
- // De-dupe the array, in case it was there already
182
- $excluded_ids = array_unique( $excluded_ids );
183
- }
184
- // If we need to INCLUDE the page in the navigation...
185
- if ( ! $exclude_this_page ) {
186
- // Find the post ID in the array of excluded IDs
187
- $index = array_search( $post_ID, $excluded_ids );
188
- // Delete any index found
189
- if ( $index !== false ) unset( $excluded_ids[$index] );
190
- }
191
- $excluded_ids_str = implode( sdep_OPTION_SEP, $excluded_ids );
192
- sdep_set_option( sdep_OPTION_NAME, $excluded_ids_str, "Comma separated list of post and page IDs to exclude when returning pages from the get_pages function." );
193
- }
194
-
195
- // Take an option, delete it if it exists, then add it.
196
- function sdep_set_option( $name, $value, $description )
197
- {
198
- // Delete option
199
- delete_option($name);
200
- // Insert option
201
- add_option($name, $value, $description);
202
- }
203
-
204
- // Pre WP2.5
205
- // Add some HTML for the DBX sidebar control into the edit page page
206
- function sdep_admin_sidebar()
207
- {
208
- $nearest_excluded_ancestor = sdep_nearest_excluded_ancestor();
209
- echo ' <fieldset id="excludepagediv" class="dbx-box">';
210
- echo ' <h3 class="dbx-handle">'.__('Navigation').'</h3>';
211
- echo ' <div class="dbx-content">';
212
- echo ' <label for="sdep_this_page_included" class="selectit">';
213
- echo ' <input ';
214
- echo ' type="checkbox" ';
215
- echo ' name="sdep_this_page_included" ';
216
- echo ' id="sdep_this_page_included" ';
217
- if ( sdep_this_page_included() ) echo 'checked="checked"';
218
- echo ' />';
219
- echo ' '.__('Include this page in menus').'</label>';
220
- echo ' <input type="hidden" name="sdep_ctrl_present" value="1" />';
221
- if ( $nearest_excluded_ancestor !== false ) {
222
- echo '<div class="exclude_alert">';
223
- echo __('An ancestor of this page is excluded, so this page is too. ');
224
- echo '<a href="page.php?action=edit&amp;post='.$nearest_excluded_ancestor.'"';
225
- echo ' title="'.__('edit the excluded ancestor').'">'.__('Edit ancestor').'</a>.</div>';
226
- }
227
- echo ' </div></fieldset>';
228
- }
229
-
230
- // Post WP 2.5
231
- // Add some HTML below the submit box
232
- function sdep_admin_sidebar_wp25()
233
- {
234
- $nearest_excluded_ancestor = sdep_nearest_excluded_ancestor();
235
- echo ' <div id="excludepagediv" class="new-admin-wp25">';
236
- echo ' <div class="outer"><div class="inner">';
237
- echo ' <label for="sdep_this_page_included" class="selectit">';
238
- echo ' <input ';
239
- echo ' type="checkbox" ';
240
- echo ' name="sdep_this_page_included" ';
241
- echo ' id="sdep_this_page_included" ';
242
- if ( sdep_this_page_included() ) echo 'checked="checked"';
243
- echo ' />';
244
- echo ' '.__('Include this page in user menus').'</label>';
245
- echo ' <input type="hidden" name="sdep_ctrl_present" value="1" />';
246
- if ( $nearest_excluded_ancestor !== false ) {
247
- echo '<div class="exclude_alert"><em>';
248
- echo __('N.B. An ancestor of this page is excluded, so this page is too. ');
249
- echo '<a href="page.php?action=edit&amp;post='.$nearest_excluded_ancestor.'"';
250
- echo ' title="'.__('edit the excluded ancestor').'">'.__('Edit ancestor').'</a>.</em></div>';
251
- }
252
- echo ' </div><!-- .inner --></div><!-- .outer -->';
253
- echo ' </div><!-- #excludepagediv -->';
254
- }
255
-
256
- // Add some CSS into the HEAD element of the admin area
257
- function sdep_admin_css()
258
- {
259
- echo ' <style type="text/css" media="screen">';
260
- echo ' div.exclude_alert { font-size: 11px; }';
261
- echo ' .new-admin-wp25 { font-size: 11px; background-color: #fff; }';
262
- echo ' .new-admin-wp25 div.inner { padding: 8px 12px; background-color: #EAF3FA; border: 1px solid #EAF3FA; -moz-border-radius: 3px; -khtml-border-bottom-radius: 3px; -webkit-border-bottom-radius: 3px; border-bottom-radius: 3px; }';
263
- echo ' #sdep_admin_meta_box div.inner { padding: inherit; background-color: transparent; border: none; }';
264
- echo ' #sdep_admin_meta_box div.inner label { background-color: none; }';
265
- echo ' .new-admin-wp25 div.exclude_alert { padding-top: 5px; }';
266
- echo ' .new-admin-wp25 div.exclude_alert em { font-style: normal; }';
267
- echo ' </style>';
268
- }
269
-
270
- // Add our ctrl to the list of controls which AREN'T hidden
271
- function sdep_hec_show_dbx( $to_show )
272
- {
273
- array_push( $to_show, 'excludepagediv' );
274
- return $to_show;
275
- }
276
-
277
- // PAUSE & RESUME FUNCTIONS
278
-
279
- function sd_pause_exclude_pages()
280
- {
281
- remove_filter('get_pages','sdep_exclude_pages');
282
- }
283
-
284
- function sd_resume_exclude_pages()
285
- {
286
- add_filter('get_pages','sdep_exclude_pages');
287
- }
288
-
289
- // INIT FUNCTIONS
290
-
291
- function sdep_init()
292
- {
293
- // Call this function on the get_pages filter
294
- // (get_pages filter appears to only be called on the "consumer" side of WP,
295
- // the admin side must use another function to get the pages. So we're safe to
296
- // remove these pages every time.)
297
- add_filter('get_pages','sdep_exclude_pages');
298
- }
299
-
300
- function sdep_admin_init()
301
- {
302
- // Add panels into the editing sidebar(s)
303
- global $wp_version;
304
- if (version_compare( $wp_version, '2.7-beta', '>=' ) ) {
305
- // add_meta_box( $id, $title, $callback, $page, $context, $priority );
306
- add_meta_box('sdep_admin_meta_box', __('Exclude Pages'), 'sdep_admin_sidebar_wp25', 'page', 'side', 'low');
307
- } else {
308
- add_action('dbx_page_sidebar', 'sdep_admin_sidebar'); // Pre WP2.5
309
- add_action('submitpage_box', 'sdep_admin_sidebar_wp25'); // Post WP 2.5, pre WP 2.7
310
- }
311
-
312
- do_meta_boxes('dropdown-menu-widget','advanced',null);
313
-
314
-
315
- // Set the exclusion when the post is saved
316
- add_action('save_post', 'sdep_update_exclusions');
317
-
318
- // Add some CSS to the admin header
319
- add_action('admin_head', 'sdep_admin_css');
320
-
321
- // Call this function on our very own hec_show_dbx filter
322
- // This filter is harmless to add, even if we don't have the
323
- // Hide Editor Clutter plugin installed as it's using a custom filter
324
- // which won't be called except by the HEC plugin.
325
- // Uncomment to show the control by default
326
- // add_filter('hec_show_dbx','sdep_hec_show_dbx');
327
- }
328
-
329
- // HOOK IT UP TO WORDPRESS
330
- if(!function_exists('sdep_exclude_pages')){
331
- add_action( 'init', 'sdep_init' );
332
- add_action( 'admin_init', 'sdep_admin_init' );
333
- };
334
-
335
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
themes/aqua.css CHANGED
@@ -1,89 +1,56 @@
1
- ul.dropdown{
2
- background:transparent url(images/trans-white.png);
3
- border:1px solid #ddd;
4
- }
5
 
6
- ul.dropdown li.hover,
7
- ul.dropdown li:hover {
8
- z-index: 98;
9
- cursor: default;
10
- }
11
 
12
- ul.dropdown ul ul {
13
- top: 1px;
14
- left: 99%;
15
- }
 
 
 
16
 
17
- ul.dropdown li {
18
- padding: 3px 15px;
19
- color: #000;
20
- text-align:center;
21
- }
22
-
23
- ul.dropdown li+li{
24
- border-left:1px solid #ddd;
25
- }
26
-
27
- ul.dropdown-vertical li+li{
28
- border-left:none;
29
- }
30
-
31
- ul.dropdown li.hover,
32
- ul.dropdown li:hover {
33
- background:transparent url(images/trans-white.png);
34
- color: #000;
35
- }
36
- ul.dropdown li a{ padding:3px 15px; }
37
- ul.dropdown a:link,
38
- ul.dropdown a:visited { color: #666; text-decoration: none; display:block; }
39
- ul.dropdown a:hover { color: #000; }
40
- ul.dropdown a:active { color: #fff; }
41
- /* -- level mark -- */
42
- ul.dropdown ul {
43
- margin-top: 0px;
44
- margin-left:-1px;
45
- border-top:1px solid #ddd;
46
- border-bottom:1px solid #ddd;
47
- border-right:1px solid #ddd;
48
- background:transparent url(images/trans-white.png);
49
- }
50
- ul.dropdown ul li {
51
- /*font-weight: normal;*/
52
- text-align: left;
53
- border-left:1px solid #ddd;
54
- }
55
- /*-------------------------------------------------/
56
- * @section Support Class `dir`
57
- * @level sep ul, .class
58
- */
59
- ul.dropdown *.dir {
60
- padding-right: 20px;
61
- background-image: url(images/nav-arrow-down.png);
62
- background-position: 100% 50%;
63
- background-repeat: no-repeat;
64
- }
65
- /* -- Components override -- */
66
- ul.dropdown-horizontal ul *.dir {
67
- padding-right: 15px;
68
- background-image: url(images/nav-arrow-right.png);
69
- background-position: 100% 50%;
70
- background-repeat: no-repeat;
71
- }
72
- ul.dropdown-upward *.dir {
73
- background-image: url(images/nav-arrow-top.png);
74
- }
75
- ul.dropdown-vertical *.dir,
76
- ul.dropdown-upward ul *.dir {
77
- background-image: url(images/nav-arrow-right.png);
78
- }
79
- ul.dropdown-vertical-rtl *.dir {
80
- padding-right: 10px;
81
- padding-left: 15px;
82
- background-image: url(images/nav-arrow-left.png);
83
- background-position: 0 50%;
84
- }
85
- li.current_page_item a { color: #ddd; }
86
- li.current_page_item a:link, li.current_page_item a:visited { color: #000; }
87
- li.current_page_item ul a, li.current_page_item ul a:visited, li.current_page_item ul a:link { color: #000; }
88
  li.current_page_ancestor a,li.current_page_ancestor a:visited, li.current_page_ancestor a:link {text-decoration:underline;}
89
- li.current_page_ancestor ul a, li.current_page_ancestor ul a:visited, li.current_page_ancestor ul a:link {text-decoration:none;}
 
 
 
 
 
 
 
 
 
 
1
+ @charset "UTF-8";
 
 
 
2
 
3
+ /** Container */
4
+ .shailan-dropdown-menu .dropdown-horizontal-container{ /* background:transparent url(images/trans-white.png); */ }
5
+
6
+ ul.dropdown{background:transparent url(images/trans-white.png);
7
+ /* border:1px solid #ddd;*/ margin:7px; padding:5px; border-radius:7px; font-size:1.1em; border:1px solid rgba(255, 255, 255, 0.3); }
8
 
9
+ ul.dropdown li.hover, ul.dropdown li:hover { cursor: default; }
10
+ ul.dropdown ul { border-bottom:1px solid #ddd; }
11
+ ul.dropdown ul ul { top: 1px; left: 99%; }
12
+ ul.dropdown-upward ul ul { /* bottom: 1px; */ }
13
+ ul.dropdown li { color: #000; text-align:center; }
14
+ ul.dropdown li+li{ border-left:1px solid #ccc; }
15
+ ul.dropdown li{ border-color: }
16
 
17
+ /** Right align fix */
18
+ ul.dropdown-align-right li+li{ border-width: 0px 0px 0px 1px; }
19
+
20
+ /** Hover effect */
21
+ ul.dropdown li.hover, ul.dropdown li:hover { z-index: 98; cursor: default; background:transparent url(images/trans-white.png); color: #000; }
22
+
23
+ /** Link colors */
24
+ ul.dropdown a:link,
25
+ ul.dropdown a:visited { color: #333; font-weight:bold; text-decoration: none; display:block; }
26
+ ul.dropdown a:hover { color: #000; font-weight:bold; }
27
+ ul.dropdown a:active { color: #ffffff; font-weight:bold; }
28
+
29
+ /** Sub menus */
30
+ ul.dropdown ul { margin-top: 0px;
31
+ margin-left:-1px;
32
+ border:0px;
33
+ background:transparent url(images/trans-white.png); padding:5px; border-radius:7px; }
34
+ ul.dropdown ul li { text-align: left; border:0px; }
35
+
36
+ /** Current menu item */
37
+ li.current-cat a, li.current_page_item a, li.current-menu-item a,
38
+ li.current-cat a:link, li.current_page_item a:link, li.current-menu-item a:link,
39
+ li.current-cat a:visited, li.current_page_item a:visited, li.current-menu-item a:visited{ color: #ffffff; }
40
+
41
+ /** Not current fix */
42
+ li.current_page_item ul a, li.current_page_item ul a:visited, li.current_page_item ul a:link { color: #333; }
43
+
44
+ /** Ancestor */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  li.current_page_ancestor a,li.current_page_ancestor a:visited, li.current_page_ancestor a:link {text-decoration:underline;}
46
+ li.current-menu-ancestor a,li.current-menu-ancestor a:visited, li.current-menu-ancestor a:link {text-decoration:underline;}
47
+
48
+ /** Not ancestor fix */
49
+ li.current_page_ancestor ul a, li.current_page_ancestor ul a:visited, li.current_page_ancestor ul a:link {text-decoration:none;}
50
+ li.current-menu-ancestor ul a,li.current-menu-ancestor ul a:visited, li.current-menu-ancestor ul a:link {text-decoration:none;}
51
+
52
+ /** Vertical menu support */
53
+ ul.dropdown-vertical{ min-width:160px; }
54
+ ul.dropdown-vertical li { border-bottom:1px solid #ddd;}
55
+ ul.dropdown-vertical ul { border-bottom:0px; }
56
+ ul.dropdown-vertical li+li{ border-left:none; }
themes/grayscale.css CHANGED
@@ -1,54 +1,50 @@
1
  @charset "UTF-8";
2
  /* colors : #a0a0a0; #929292; #838383; */
3
 
4
- ul.dropdown li {
5
- border-top: 1px solid #a0a0a0;
6
- border-right: 1px solid #929292;
7
- border-bottom: 1px solid #838383;
 
8
  color: #333;
9
  text-align:center;
10
  background:#c2c2c2 url('images/default1_g.jpg') repeat-x bottom;
11
  font-family:Arial, Helvetica, sans-serif;
12
  font-size:1.2em;
13
  font-weight:bold;
14
- text-transform:uppercase;
15
- }
16
- ul.dropdown li a{
17
- padding: 7px 20px;
18
- }
19
- ul.dropdown li.hover,
20
- ul.dropdown li:hover {
21
- background:#838383 url('images/default2_g.jpg') repeat-x bottom;
22
- border-bottom:1px solid #999;
23
- border-top: 1px solid #999;
24
- }
25
- ul.dropdown a:link,
26
- ul.dropdown a:visited { color: #333; text-decoration: none; display:block; }
 
27
  ul.dropdown a:hover { color: #fff; }
28
- ul.dropdown a:active { color: #fff; }
29
- /* -- level mark -- */
30
- ul.dropdown ul {
31
- margin-top: 0px;
32
- margin-left:-1px;
33
- /* border-bottom:1px solid #666; */
34
- font-size:0.8em;
35
- }
36
- ul.dropdown ul li {
37
- background:#c2c2c2;
38
- text-align: left;
39
- border-left:1px solid #999;
40
- border-top:1px solid #999;
41
- }
42
-
43
- ul.dropdown li.current_page_item a, ul.dropdown li.current-cat a { color: #efefef; }
44
-
45
- ul.dropdown li.current-cat a, ul.dropdown li.current-cat a:link { color: #efefef; }
46
- ul.dropdown li.current-cat a:hover{ color: #efefef; }
47
- ul.dropdown li.current-cat a:visited{ color: #efefef; }
48
-
49
- ul.dropdown li.current_page_item a:link,ul.dropdown li.current_page_item a:visited { color: #efefef; }
50
- ul.dropdown li.current_page_item ul a,ul.dropdown li.current_page_item ul a:visited, li.current_page_item ul a:link { color: #efefef; }
51
- ul.dropdown li.current_page_ancestor a,ul.dropdown li.current_page_ancestor a:visited,ul.dropdown li.current_page_ancestor a:link { text-decoration:underline; }
52
- ul.dropdown li.current_page_ancestor ul a,ul.dropdown li.current_page_ancestor ul a:visited,ul.dropdown li.current_page_ancestor ul a:link {text-decoration:none;}
53
-
54
- .shailan-dropdown-menu{ background:#a0a0a0 url('images/default1_g.jpg') repeat-x bottom; }
1
  @charset "UTF-8";
2
  /* colors : #a0a0a0; #929292; #838383; */
3
 
4
+ /** Container */
5
+ .shailan-dropdown-menu .dropdown-horizontal-container{ background:#a0a0a0 url('images/default1_g.jpg') repeat-x bottom; }
6
+
7
+ ul.dropdown li {
8
+ border:1px solid #838383;
9
  color: #333;
10
  text-align:center;
11
  background:#c2c2c2 url('images/default1_g.jpg') repeat-x bottom;
12
  font-family:Arial, Helvetica, sans-serif;
13
  font-size:1.2em;
14
  font-weight:bold;
15
+ text-transform:uppercase; }
16
+ ul.dropdown-vertical li{ border-top:1px solid #a0a0a0; }
17
+ ul.dropdown li { border-left:1px solid #838383; }
18
+
19
+ /** Right align fix */
20
+ ul.dropdown-align-right li{ border-width: 1px 0px 1px 1px; }
21
+
22
+ /** Hover effect */
23
+ ul.dropdown li.hover, ul.dropdown li:hover { background:#838383 url('images/default2_g.jpg') repeat-x bottom;
24
+ border-bottom:1px solid #999;
25
+ border-top: 1px solid #999; }
26
+
27
+ /** Link colors */
28
+ ul.dropdown a:link, ul.dropdown a:visited { color: #333; text-decoration: none; display:block; }
29
  ul.dropdown a:hover { color: #fff; }
30
+ ul.dropdown a:active { color: #fff; }
31
+
32
+ /** Sub menus */
33
+ ul.dropdown ul { margin-top: 0px; margin-left:-1px; font-size:0.8em; }
34
+ ul.dropdown ul li { background:#c2c2c2; text-align: left; border-left:1px solid #999; border-top:1px solid #999; }
35
+
36
+ /** Current menu item */
37
+ li.current-cat a, li.current_page_item a, li.current-menu-item a,
38
+ li.current-cat a:link, li.current_page_item a:link, li.current-menu-item a:link,
39
+ li.current-cat a:visited, li.current_page_item a:visited, li.current-menu-item a:visited{ color: #efefef; }
40
+
41
+ /** Not current fix */
42
+ li.current_page_item ul a, li.current_page_item ul a:visited, li.current_page_item ul a:link { color: #333; }
43
+
44
+ /** Ancestor */
45
+ li.current_page_ancestor a,li.current_page_ancestor a:visited, li.current_page_ancestor a:link {text-decoration:underline;}
46
+ li.current-menu-ancestor a,li.current-menu-ancestor a:visited, li.current-menu-ancestor a:link {text-decoration:underline;}
47
+
48
+ /** Not ancestor fix */
49
+ li.current_page_ancestor ul a, li.current_page_ancestor ul a:visited, li.current_page_ancestor ul a:link { text-decoration:none; }
50
+ li.current-menu-ancestor ul a,li.current-menu-ancestor ul a:visited, li.current-menu-ancestor ul a:link {text-decoration:none;}
 
 
 
 
 
 
themes/images/blue-gradient/menu_bg.png ADDED
Binary file
themes/images/{blue_menu_sep.gif → blue-gradient/sep.gif} RENAMED
File without changes
themes/images/blue_menu_bg.gif DELETED
Binary file
themes/images/btn4.jpg DELETED
Binary file
themes/images/shiny-black/button_active.gif ADDED
Binary file
themes/images/shiny-black/button_active2.gif ADDED
Binary file
themes/images/{btn3.jpg → shiny-black/menu_bg.jpg} RENAMED
File without changes
themes/mtv.com/default.css CHANGED
@@ -161,8 +161,6 @@ ul.dropdown ul ul *.dir { border-color: #595959 #333 #333; }
161
  ul.dropdown ul ul ul li a,
162
  ul.dropdown ul ul ul *.dir { border-color: #767676 #404040 #404040; }
163
 
164
-
165
-
166
  /* Custom elements */
167
 
168
  #n-movies { width: 250px; text-align: center; }
@@ -174,4 +172,5 @@ ul.dropdown ul ul ul *.dir { border-color: #767676 #404040 #404040; }
174
  #n-movies ul ul a.dir { width: 111px; }
175
  #n-movies ul ul ul { left: 100%; }
176
 
177
- .shailan-dropdown-menu{background-color: #3a3a3a;}
 
161
  ul.dropdown ul ul ul li a,
162
  ul.dropdown ul ul ul *.dir { border-color: #767676 #404040 #404040; }
163
 
 
 
164
  /* Custom elements */
165
 
166
  #n-movies { width: 250px; text-align: center; }
172
  #n-movies ul ul a.dir { width: 111px; }
173
  #n-movies ul ul ul { left: 100%; }
174
 
175
+ /** Container */
176
+ .shailan-dropdown-menu .dropdown-horizontal-container{ background-color: #3a3a3a; }
themes/mystique.css DELETED
@@ -1,56 +0,0 @@
1
- /* --- Dropdown background --- */
2
- .shailan-dropdown-menu{
3
- background:#006 url(images/blue_menu_bg.gif) repeat-x;
4
- width:1000px; height:47px;
5
- font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
6
- font-size:14px;}
7
- ul.dropdown{padding-left:20px;}
8
- /* --- Dropdown basics ---*/
9
- ul.dropdown a {
10
- display:block;
11
- vertical-align:middle;
12
- text-align:center;
13
- padding:12px 10px 10px 12px;
14
- color: #000;
15
- text-decoration:none;
16
- text-transform:uppercase;}
17
- /*--- Top level ---*/
18
- ul.dropdown li a{
19
- height:100%;
20
- color:#fff;
21
- }
22
- ul.dropdown li+li a{
23
- background:url(images/blue_menu_sep.gif) left center no-repeat;
24
- }
25
- ul.dropdown li a:hover{
26
- text-decoration:underline;
27
- color:#eee;
28
- }
29
- /*--- Sub level ---*/
30
- ul.dropdown ul {
31
- margin:0px;
32
- list-style:none;
33
- padding:0px;
34
- background:#002055;
35
- border:1px solid #000047;
36
- text-align:left;
37
- }
38
-
39
- ul.dropdown ul li a{
40
- color:#fff;
41
- width:auto;
42
- min-width:100px;
43
- padding:2px 5px 3px 5px;
44
- margin:0px;
45
- height:auto;
46
- text-align:left;
47
- background:transparent;
48
- }
49
-
50
- ul.dropdown ul li a:hover{
51
- position:relative;
52
- background-color:#002f6a;
53
- color: #fff;
54
- text-decoration:none;
55
- }
56
- ul.dropdown li.current_page_item>a, ul.dropdown li.current-cat>a { font-weight:bold; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
themes/shiny-black.css CHANGED
@@ -1,121 +1,58 @@
1
- /* --- Dropdown background --- */
2
- .shailan-dropdown-menu{ background:#000 url(images/btn3.jpg) repeat-x; height:31px; }
3
 
4
- /* --- Dropdown basics ---*/
 
5
 
6
- ul.dropdown {
7
- background-color:transparent;
8
  border-width:0px;
9
- padding:0px 0px 0px 0px;
10
- }
11
-
12
- ul.dropdown li{
13
- display:block;
14
- font-size:0px;
15
- margin:0px;
16
- }
17
-
18
- ul.dropdown ul li {
19
- float:none;
20
- }
21
-
22
- ul.dropdown ul a {
23
- text-align:left;
24
- white-space:nowrap;
25
- }
26
-
27
- ul.dropdown li:hover{
28
- position:relative;
29
- }
30
-
31
- ul.dropdown a:active, ul.dropdown a:focus {
32
- outline-style:none;
33
- }
34
-
35
- ul.dropdown a {
36
- display:block;
37
- vertical-align:middle;
38
- background-color:#FFFFFF;
39
- text-align:center;
40
- text-decoration:none;
41
- padding:8px 5px 0px 5px;
42
- font:normal 11px Tahoma;
43
- color: #000;
44
- text-decoration:none;
45
- }
46
-
47
- ul.dropdown li a{
48
- height:100%;
49
- border-width:0px;
50
- font:normal 11px Tahoma;
51
- color:#fff;
52
- }
53
-
54
- /*--- Top level ---*/
55
-
56
- ul.dropdown li a{
57
- width:100px;
58
- height:23px;
59
- color:#fff;
60
- background:transparent;
61
- }
62
-
63
- ul.dropdown li a:hover{
64
- background:url('./images/btn4.jpg') no-repeat;
65
- font:normal 11px Tahoma;
66
- color:#eee;
67
- }
68
-
69
-
70
- /*--- Sub level ---*/
71
-
72
- ul.dropdown ul {
73
- margin:0px;
74
- list-style:none;
75
- padding:0px;
76
- background:#fff;
77
- border:1px solid #808080;
78
- }
79
-
80
- ul.dropdown ul li a{
81
- color:#444;
82
- border:1px solid #fff;
83
- width:auto;
84
- min-width:100px;
85
- padding:2px;
86
- margin:2px;
87
- height:auto;
88
- }
89
-
90
- ul.dropdown ul li a:hover {
91
- background-image:none;
92
- color:#444;
93
- border:1px solid #45ADE4;
94
- background-color:#DBF0F9;
95
- font:normal 11px Tahoma;
96
- }
97
-
98
- ul.dropdown table {border-collapse:collapse}
99
-
100
- ul.dropdown {
101
- display:block;
102
- zoom:1;
103
- height:21px;
104
- float: left;
105
- }
106
-
107
-
108
- ul.dropdown ul li a:hover{
109
- position:relative;
110
- background-color:#DBF0F9;
111
- border-color:#45ADE4;
112
- border-style:solid;
113
- font:normal 11px Tahoma;
114
- color: #444;
115
- text-decoration:none;
116
- }
117
-
118
- ul.dropdown-vertical>li>a{
119
- background:#000 url(images/btn3.jpg) repeat-x; height:22px;
120
- }
121
 
1
+ @charset "UTF-8";
 
2
 
3
+ /** Container */
4
+ .shailan-dropdown-menu .dropdown-horizontal-container{ background:#000 url(images/shiny-black/menu_bg.jpg) repeat-x; height:31px; }
5
 
6
+ ul.dropdown{ background-color:transparent;
 
7
  border-width:0px;
8
+ padding:0px; }
9
+ ul.dropdown li{ display:block; font-size:0px; margin:0px; }
10
+ ul.dropdown li a{ margin-left:25px; display:block; height:23px; font-size:0px; vertical-align:middle; text-align:center; text-decoration:none; padding:8px 25px 0px 0px; font:normal 11px Tahoma; color: #fff; text-decoration:none; }
11
+
12
+ ul.dropdown li.hover, ul.dropdown li:hover { cursor: default; }
13
+
14
+ ul.dropdown ul { border-bottom:1px solid #ddd; }
15
+ ul.dropdown ul ul { top: 1px; left: 99%; }
16
+ ul.dropdown-upward ul ul { /* bottom: 1px; */ }
17
+
18
+ /** Right align fix */
19
+ ul.dropdown-align-right li{ border-width: 0px 0px 0px 1px; }
20
+
21
+ /** Hover effect */
22
+ ul.dropdown li.hover, ul.dropdown li:hover { background: url(images/shiny-black/button_active.gif) top left no-repeat; color: #7dbbc6; }
23
+ ul.dropdown li.hover a, ul.dropdown li:hover a{ background: url(images/shiny-black/button_active2.gif) top right no-repeat; color: #7dbbc6; }
24
+ ul.dropdown li.hover ul li a, ul.dropdown li:hover ul li a{ background: transparent; }
25
+
26
+ /** Link colors */
27
+ ul.dropdown a:link,
28
+ ul.dropdown a:visited { color: #7dbbc6; text-decoration: none; display:block; }
29
+ ul.dropdown a:hover { color: #7dbbc6; }
30
+ ul.dropdown a:active { color: #fff; }
31
+
32
+ /** Sub menus */
33
+ ul.dropdown ul { margin:0px; padding:0px; background:#fff; border:1px solid #808080; }
34
+ ul.dropdown ul li a, ul.dropdown ul li.hover a{ color:#444; border:1px solid #fff; width:auto; min-width:100px; padding:2px; margin:2px; height:auto; }
35
+ ul.dropdown li.hover ul li a:hover, ul.dropdown li:hover ul li a:hover{ background-image:none; color:#444; border:1px solid #45ADE4; background-color:#DBF0F9; font:normal 11px Tahoma; text-decoration:none; }
36
+ ul.dropdown ul li.hover, ul.dropdown ul li:hover { background: transparent; }
37
+
38
+ /** Current menu item */
39
+ li.current-cat a, li.current_page_item a, li.current-menu-item a,
40
+ li.current-cat a:link, li.current_page_item a:link, li.current-menu-item a:link,
41
+ li.current-cat a:visited, li.current_page_item a:visited, li.current-menu-item a:visited{ color: #fff; }
42
+
43
+ /** Not current fix */
44
+ li.current_page_item ul a, li.current_page_item ul a:visited, li.current_page_item ul a:link { color: #7dbbc6; }
45
+
46
+ /** Ancestor */
47
+ li.current_page_ancestor a,li.current_page_ancestor a:visited, li.current_page_ancestor a:link {text-decoration:underline;}
48
+ li.current-menu-ancestor a,li.current-menu-ancestor a:visited, li.current-menu-ancestor a:link {text-decoration:underline;}
49
+
50
+ /** Not ancestor fix */
51
+ li.current_page_ancestor ul a, li.current_page_ancestor ul a:visited, li.current_page_ancestor ul a:link {text-decoration:none;}
52
+ li.current-menu-ancestor ul a,li.current-menu-ancestor ul a:visited, li.current-menu-ancestor ul a:link {text-decoration:none;}
53
+
54
+ /** Vertical menu support */
55
+ ul.dropdown-vertical{ min-width:160px; }
56
+ ul.dropdown-vertical li { background:#000 url(images/shiny-black/menu_bg.jpg) repeat-x; height:30px; }
57
+ ul.dropdown-vertical ul { border-bottom:0px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
themes/simple-blue.css CHANGED
@@ -1,56 +1,58 @@
1
- /* --- Dropdown background --- */
2
- .shailan-dropdown-menu{
3
- background:#006 url(images/blue_menu_bg.gif) repeat-x;
4
- width:1000px; height:47px;
5
- font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
6
- font-size:14px;}
7
- ul.dropdown{padding-left:20px;}
8
- /* --- Dropdown basics ---*/
9
- ul.dropdown a {
10
- display:block;
11
- vertical-align:middle;
12
- text-align:center;
13
- padding:12px 10px 10px 12px;
14
- color: #000;
15
- text-decoration:none;
16
- text-transform:uppercase;}
17
- /*--- Top level ---*/
18
- ul.dropdown li a{
19
- height:100%;
20
- color:#fff;
21
- }
22
- ul.dropdown li+li a{
23
- background:url(images/blue_menu_sep.gif) left center no-repeat;
24
- }
25
- ul.dropdown li a:hover{
26
- text-decoration:underline;
27
- color:#eee;
28
- }
29
- /*--- Sub level ---*/
30
- ul.dropdown ul {
31
- margin:0px;
32
- list-style:none;
33
- padding:0px;
34
- background:#002055;
35
- border:1px solid #000047;
36
- text-align:left;
37
- }
38
-
39
- ul.dropdown ul li a{
40
- color:#fff;
41
- width:auto;
42
- min-width:100px;
43
- padding:2px 5px 3px 5px;
44
- margin:0px;
45
- height:auto;
46
- text-align:left;
47
- background:transparent;
48
- }
49
-
50
- ul.dropdown ul li a:hover{
51
- position:relative;
52
- background-color:#002f6a;
53
- color: #fff;
54
- text-decoration:none;
55
- }
56
- ul.dropdown li.current_page_item>a, ul.dropdown li.current-cat>a { font-weight:bold; }
 
 
1
+ @charset "UTF-8";
2
+
3
+ /** Container */
4
+ .shailan-dropdown-menu { background:url(images/blue-gradient/menu_bg.png) no-repeat; height:40px;
5
+ font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:14px; margin-right:15px; }
6
+ .dropdown-horizontal-container{ background:url(images/blue-gradient/menu_bg.png) top right no-repeat; height:40px; margin-right:-15px; }
7
+
8
+ ul.dropdown{ padding:0px 0px 0px 20px;}
9
+ ul.dropdown-align-right{ padding: 0px 20px 0px 0px; }
10
+
11
+ ul.dropdown li a{ display:block; vertical-align:middle; text-align:center; padding:12px 10px 10px 12px;
12
+ text-decoration:none; text-transform:uppercase; color:#fff; }
13
+
14
+ ul.dropdown-horizontal li+li a{ background:url(images/blue-gradient/sep.gif) left center no-repeat; }
15
+
16
+ ul.dropdown ul { border-bottom:1px solid #ddd; }
17
+ ul.dropdown ul ul { top: 1px; left: 99%; }
18
+ ul.dropdown-upward ul ul { /* bottom: 1px; */ }
19
+ ul.dropdown li { text-align:center; }
20
+
21
+ /** Right align fix */
22
+ ul.dropdown-align-right li{ border-width: 0px 0px 0px 1px; }
23
+
24
+ /** Hover effect */
25
+ ul.dropdown li.hover, ul.dropdown li:hover { }
26
+
27
+ /** Link colors */
28
+ ul.dropdown a:link,
29
+ ul.dropdown a:visited { color: #fff; text-decoration: none; display:block; }
30
+ ul.dropdown a:hover { text-decoration:underline; color:#eee; }
31
+ ul.dropdown a:active { font-weight:bold; }
32
+
33
+ /** Sub menus */
34
+ ul.dropdown ul { margin:0px; list-style:none; padding:0px; background:#002055; border:1px solid #000047; text-align:left; }
35
+ ul.dropdown ul li { text-align: left; }
36
+ ul.dropdown ul li a{ color:#fff; width:auto; min-width:100px; padding:2px 5px 3px 5px; margin:0px; height:auto; text-align:left; background:transparent; }
37
+ ul.dropdown ul li a:hover{ position:relative; background-color:#002f6a; color: #fff; text-decoration:none; }
38
+
39
+ /** Current menu item */
40
+ li.current-cat a, li.current_page_item a, li.current-menu-item a,
41
+ li.current-cat a:link, li.current_page_item a:link, li.current-menu-item a:link,
42
+ li.current-cat a:visited, li.current_page_item a:visited, li.current-menu-item a:visited{ font-weight:bold; }
43
+
44
+ /** Not current fix */
45
+ li.current_page_item ul a, li.current_page_item ul a:visited, li.current_page_item ul a:link { font-weight:normal; }
46
+
47
+ /** Ancestor */
48
+ li.current_page_ancestor a,li.current_page_ancestor a:visited, li.current_page_ancestor a:link {text-decoration:underline;}
49
+ li.current-menu-ancestor a,li.current-menu-ancestor a:visited, li.current-menu-ancestor a:link {text-decoration:underline;}
50
+
51
+ /** Not ancestor fix */
52
+ li.current_page_ancestor ul a, li.current_page_ancestor ul a:visited, li.current_page_ancestor ul a:link {text-decoration:none;}
53
+ li.current-menu-ancestor ul a,li.current-menu-ancestor ul a:visited, li.current-menu-ancestor ul a:link {text-decoration:none;}
54
+
55
+ /** Vertical menu support */
56
+ ul.dropdown-vertical{ min-width:160px; }
57
+ ul.dropdown-vertical li {border-bottom:1px solid #ddd;}
58
+ ul.dropdown-vertical ul { border-bottom:0px; }
themes/simple.css CHANGED
@@ -1,105 +1,47 @@
1
  @charset "UTF-8";
2
- /**
3
- * Horizontal Upward CSS Drop-Down Menu Component
4
- *
5
- * @file dropdown.upward.css
6
- * @package Dropdown
7
- * @version 0.1
8
- * @type Transitional
9
- * @requires dropdown.upward.css
10
- * @browsers Windows: IE5+, Opera7+, Firefox1+
11
- * Mac OS: Safari2+, Firefox2+
12
- *
13
- * @link http://www.lwis.net/
14
- * @copyright 2006-2008 Live Web Institute. All Rights Reserved.
15
- *
16
- */
17
 
18
- ul.dropdown li.hover,
19
- ul.dropdown li:hover {
20
- cursor: default;
21
- }
22
- ul.dropdown ul {
23
- border-bottom:1px solid #ddd;
24
- }
25
 
26
- ul.dropdown ul ul {
27
- top: 1px;
28
- left: 99%;
29
- }
 
30
 
31
- ul.dropdown-upward ul ul {
32
- /* bottom: 1px; */
33
- }
34
 
35
- ul.dropdown {
36
- font-family:"Segoe UI",Calibri,"Myriad Pro",Myriad,"Trebuchet MS",Helvetica,Arial,sans-serif;
37
- font-size:1.1em;
38
- }
39
- ul.dropdown li {
40
- border-style: solid;
41
- border-width: 0px 1px 0px 0px;
42
- border-color: #ddd;
43
- background-color: #f6f6f6;
44
- color: #000;
45
- text-align:center;
46
- }
47
- ul.dropdown li a{ padding: 7px 20px; }
48
- ul.dropdown li.hover,
49
- ul.dropdown li:hover {
50
- background-color: #eee;
51
- color: #000;
52
- }
53
- ul.dropdown a:link,
54
- ul.dropdown a:visited { color: #000; text-decoration: none; display:block; }
55
- ul.dropdown a:hover { color: #000; }
56
- ul.dropdown a:active { color: #ed008c; }
57
- /* -- level mark -- */
58
- ul.dropdown ul {
59
- margin-top: 0px;
60
- margin-left:-1px;
61
- border-top:1px solid #ddd;
62
- border-bottom:1px solid #ddd;
63
- }
64
- ul.dropdown ul li {
65
- /*font-weight: normal;*/
66
- text-align: left;
67
- border-left:1px solid #ddd;
68
- }
69
- /*-------------------------------------------------/
70
- * @section Support Class `dir`
71
- * @level sep ul, .class
72
- */
73
- ul.dropdown *.dir {
74
- padding-right: 20px;
75
- background-image: url(images/nav-arrow-down.png);
76
- background-position: 100% 50%;
77
- background-repeat: no-repeat;
78
- }
79
- /* -- Components override -- */
80
- ul.dropdown-horizontal ul *.dir {
81
- padding-right: 15px;
82
- background-image: url(images/nav-arrow-right.png);
83
- background-position: 100% 50%;
84
- background-repeat: no-repeat;
85
- }
86
- ul.dropdown-upward *.dir {
87
- background-image: url(images/nav-arrow-top.png);
88
- }
89
- ul.dropdown-vertical *.dir,
90
- ul.dropdown-upward ul *.dir {
91
- background-image: url(images/nav-arrow-right.png);
92
- }
93
- ul.dropdown-vertical-rtl *.dir {
94
- padding-right: 10px;
95
- padding-left: 15px;
96
- background-image: url(images/nav-arrow-left.png);
97
- background-position: 0 50%;
98
- }
99
- li.current_page_item a { color: #ed008c; }
100
- li.current_page_item a:link, li.current_page_item a:visited { color: #ed008c; }
101
  li.current_page_item ul a, li.current_page_item ul a:visited, li.current_page_item ul a:link { color: #000; }
 
 
102
  li.current_page_ancestor a,li.current_page_ancestor a:visited, li.current_page_ancestor a:link {text-decoration:underline;}
 
 
 
103
  li.current_page_ancestor ul a, li.current_page_ancestor ul a:visited, li.current_page_ancestor ul a:link {text-decoration:none;}
 
104
 
105
- .shailan-dropdown-menu{background-color:#efefef; border-bottom:1px solid #ddd; border-top:1px solid #ddd;}
 
 
 
1
  @charset "UTF-8";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
+ /** Container */
4
+ .shailan-dropdown-menu .dropdown-horizontal-container{ background-color:#efefef; }
 
 
 
 
 
5
 
6
+ ul.dropdown li.hover, ul.dropdown li:hover { cursor: default; }
7
+ ul.dropdown ul { border-bottom:1px solid #ddd; }
8
+ ul.dropdown ul ul { top: 1px; left: 99%; }
9
+ ul.dropdown-upward ul ul { /* bottom: 1px; */ }
10
+ ul.dropdown li { border-style: solid; border-width: 0px 1px 0px 0px; border-color: #ddd; background-color: #f6f6f6; color: #000; text-align:center; }
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-color: #eaeaea; color: #000; }
17
+
18
+ /** Link colors */
19
+ ul.dropdown a:link,
20
+ ul.dropdown a:visited { color: #000; text-decoration: none; display:block; }
21
+ ul.dropdown a:hover { color: #000; }
22
+ ul.dropdown a:active { color: #ed008c; }
23
+
24
+ /** Sub menus */
25
+ ul.dropdown ul { margin-top: 0px; margin-left:-1px; border-top:1px solid #ddd; border-bottom:1px solid #ddd; }
26
+ ul.dropdown ul li { text-align: left; border-left:1px solid #ddd; }
27
+
28
+ /** Current menu item */
29
+ li.current-cat a, li.current_page_item a, li.current-menu-item a,
30
+ li.current-cat a:link, li.current_page_item a:link, li.current-menu-item a:link,
31
+ li.current-cat a:visited, li.current_page_item a:visited, li.current-menu-item a:visited{ color: #ed008c; }
32
+
33
+ /** Not current fix */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  li.current_page_item ul a, li.current_page_item ul a:visited, li.current_page_item ul a:link { color: #000; }
35
+
36
+ /** Ancestor */
37
  li.current_page_ancestor a,li.current_page_ancestor a:visited, li.current_page_ancestor a:link {text-decoration:underline;}
38
+ li.current-menu-ancestor a,li.current-menu-ancestor a:visited, li.current-menu-ancestor a:link {text-decoration:underline;}
39
+
40
+ /** Not ancestor fix */
41
  li.current_page_ancestor ul a, li.current_page_ancestor ul a:visited, li.current_page_ancestor ul a:link {text-decoration:none;}
42
+ li.current-menu-ancestor ul a,li.current-menu-ancestor ul a:visited, li.current-menu-ancestor ul a:link {text-decoration:none;}
43
 
44
+ /** Vertical menu support */
45
+ ul.dropdown-vertical{ min-width:160px; }
46
+ ul.dropdown-vertical li {border-bottom:1px solid #ddd;}
47
+ ul.dropdown-vertical ul { border-bottom:0px; }
themes/tabs-blue.css DELETED
@@ -1,117 +0,0 @@
1
- #TabMenu1 #active a
2
- {
3
- background-position: 0% -84px;
4
- }
5
- #TabMenu1 #active a span
6
- {
7
- background-position: 100% -84px;
8
- color: #FFFFFF;
9
- font-weight: bold;
10
- text-decoration: none;
11
- }
12
-
13
- ul.dropdown{
14
- background:tranparent url(images/trans-white.png);
15
-
16
- float: left;
17
- width: 100%;
18
- font-family: Arial;
19
- font-size: 13px;
20
- line-height: normal;
21
-
22
- margin: 0;
23
- padding: 10px 10px 0px 10px;
24
- list-style: none;
25
- }
26
-
27
- ul.dropdown li.hover,
28
- ul.dropdown li:hover {
29
- cursor: default;
30
- }
31
-
32
- ul.dropdown ul ul {
33
- top: 1px;
34
- left: 99%;
35
- }
36
-
37
- ul.dropdown li {
38
- text-align:center;
39
- display: inline;
40
- margin: 0;
41
- padding: 0;
42
- }
43
-
44
- ul.dropdown li+li{
45
-
46
- }
47
-
48
- ul.dropdown-vertical li+li{
49
-
50
- }
51
-
52
- ul.dropdown li.hover,
53
- ul.dropdown li:hover {
54
- background:transparent url(images/trans-white.png);
55
- color: #000;
56
- }
57
-
58
- ul.dropdown li a{
59
- padding:3px 15px;
60
-
61
- background: url("images/style03left.gif") no-repeat left top;
62
- margin: 0;
63
- padding: 0 0 0 4px;
64
- text-decoration: none;
65
-
66
- }
67
-
68
- ul.dropdown a:hover
69
- {
70
- background-position: 0% -42px;
71
- }
72
-
73
- ul.dropdown li a span{
74
- float: none;
75
- display: block;
76
- background: url("images/style03right.gif") no-repeat right top;
77
- padding: 5px 15px 4px 6px;
78
- color: #FFFFFF;
79
- font-weight: bold;
80
- text-decoration: none;
81
- }
82
-
83
- ul.dropdown a:hover span
84
- {
85
- background-position: 100% -42px;
86
- color: #FFFFFF;
87
- font-weight: bold;
88
- font-style: normal;
89
- text-decoration: none;
90
- }
91
-
92
- ul.dropdown a:link,
93
- ul.dropdown a:visited { color: #666; text-decoration: none; display:block; }
94
- ul.dropdown a:hover { color: #000; }
95
- ul.dropdown a:active { color: #fff; }
96
-
97
-
98
- /* -- level mark -- */
99
- ul.dropdown ul {
100
- margin-top: 0px;
101
- margin-left:-1px;
102
- display:none;
103
- }
104
- ul.dropdown ul li {
105
-
106
- }
107
-
108
- li.current_page_item a { color: #ddd; }
109
- li.current_page_item a:link, li.current_page_item a:visited { color: #000; }
110
- li.current_page_item ul a, li.current_page_item ul a:visited, li.current_page_item ul a:link { color: #000; }
111
- li.current_page_ancestor a,li.current_page_ancestor a:visited, li.current_page_ancestor a:link {text-decoration:underline;}
112
- li.current_page_ancestor ul a, li.current_page_ancestor ul a:visited, li.current_page_ancestor ul a:link {text-decoration:none;}
113
-
114
- .shailan-dropdown-menu{
115
- background:#eaf3ff url(images/tabs-blue-bg.gif) bottom left repeat-x;
116
- border:1px solid #2a54c2;
117
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
themes/wpdefault.css CHANGED
@@ -1,45 +1,39 @@
1
  @charset "UTF-8";
2
 
3
- ul.dropdown li {
4
-
5
- color: #4283b9;
6
- text-align:center;
7
- background:#60a3da url('images/default1.jpg') repeat-x bottom;
8
- }
9
- ul.dropdown-vertical li{
10
- border-top:1px solid #4283b9;
11
- }
12
-
13
- ul.dropdown li+li {
14
- border-left:1px solid #4283b9;
15
- }
16
- ul.dropdown li a{ padding: 7px 20px; }
17
- ul.dropdown li.hover,
18
- ul.dropdown li:hover {
19
- background:#4283b9 url('images/default2.jpg') repeat-x bottom;
20
- }
21
- ul.dropdown a:link,
22
- ul.dropdown a:visited { color: #c8daeb; text-decoration: none; display:block; }
23
  ul.dropdown a:hover { color: #fff; }
24
  ul.dropdown a:active { color: #fff; }
25
- /* -- level mark -- */
26
- ul.dropdown ul {
27
- margin-top: 0px;
28
- margin-left:-1px;
29
- border-bottom:1px solid #4283b9;
30
- border-right:1px solid #4283b9;
31
- }
32
- ul.dropdown ul li {
33
- background:#60a3da;
34
- text-align: left;
35
- border-left:1px solid #4283b9;
36
- border-top:1px solid #4283b9;
37
- }
38
-
39
- ul.dropdown li.current_page_item a { color: #fff; }
40
- ul.dropdown li.current_page_item a:link,ul.dropdown li.current_page_item a:visited { color: #fff; }
41
- ul.dropdown li.current_page_item ul a,ul.dropdown li.current_page_item ul a:visited, li.current_page_item ul a:link { color: #fff; }
42
- ul.dropdown li.current_page_ancestor a,ul.dropdown li.current_page_ancestor a:visited,ul.dropdown li.current_page_ancestor a:link { text-decoration:underline; /*color:#fff;*/ }
43
- ul.dropdown li.current_page_ancestor ul a,ul.dropdown li.current_page_ancestor ul a:visited,ul.dropdown li.current_page_ancestor ul a:link {text-decoration:none;}
44
-
45
- .shailan-dropdown-menu{ background:#60a3da url('images/default1.jpg') repeat-x bottom; }
1
  @charset "UTF-8";
2
 
3
+ /** Container */
4
+ .shailan-dropdown-menu .dropdown-horizontal-container{ background:#60a3da url('images/default1.jpg') repeat-x bottom; }
5
+
6
+ ul.dropdown li { color: #4283b9; text-align:center; background:#60a3da url('images/default1.jpg') repeat-x bottom; }
7
+ ul.dropdown-vertical li{ border-top:1px solid #4283b9; }
8
+ ul.dropdown li { border-left:1px solid #4283b9; }
9
+
10
+ /** Right align fix */
11
+ ul.dropdown-align-right li{ border-width: 0px 0px 0px 1px; }
12
+
13
+ /** Hover effect */
14
+ ul.dropdown li.hover, ul.dropdown li:hover { background:#4283b9 url('images/default2.jpg') repeat-x bottom; }
15
+
16
+ /** Link colors */
17
+ ul.dropdown a:link, ul.dropdown a:visited { color: #c8daeb; text-decoration: none; display:block; }
 
 
 
 
 
18
  ul.dropdown a:hover { color: #fff; }
19
  ul.dropdown a:active { color: #fff; }
20
+
21
+ /** Sub menus */
22
+ ul.dropdown ul { margin-top: 0px; margin-left: -1px; border-bottom: 1px solid #4283b9; border-right: 1px solid #4283b9; }
23
+ ul.dropdown ul li { background:#60a3da; text-align: left; border-left:1px solid #4283b9; border-top:1px solid #4283b9; }
24
+
25
+ /** Current menu item */
26
+ li.current-cat a, li.current_page_item a, li.current-menu-item a,
27
+ li.current-cat a:link, li.current_page_item a:link, li.current-menu-item a:link,
28
+ li.current-cat a:visited, li.current_page_item a:visited, li.current-menu-item a:visited{ color: #fff; }
29
+
30
+ /** Not current fix */
31
+ li.current_page_item ul a, li.current_page_item ul a:visited, li.current_page_item ul a:link { color: #c8daeb; }
32
+
33
+ /** Ancestor */
34
+ li.current_page_ancestor a,li.current_page_ancestor a:visited, li.current_page_ancestor a:link {text-decoration:underline;}
35
+ li.current-menu-ancestor a,li.current-menu-ancestor a:visited, li.current-menu-ancestor a:link {text-decoration:underline;}
36
+
37
+ /** Not ancestor fix */
38
+ li.current_page_ancestor ul a, li.current_page_ancestor ul a:visited, li.current_page_ancestor ul a:link {text-decoration:none;}
39
+ li.current-menu-ancestor ul a,li.current-menu-ancestor ul a:visited, li.current-menu-ancestor ul a:link {text-decoration:none;}