Version Description
Download this release
Release Info
Developer | mattsay |
Plugin | Dropdown Menu Widget |
Version | 1.9.5 |
Comparing to | |
See all releases |
Code changes from version 1.9.4 to 1.9.5
- css/dropdown-admin.css +3 -7
- css/shailan-dropdown.min.css +1 -1
- dropdown-menu-widget.pot +163 -163
- readme.txt +10 -13
- scripts/hoverIntent.js +105 -105
- scripts/jquery.bgiframe.min.js +9 -9
- scripts/superfish.js +121 -121
- scripts/supersubs.js +90 -90
- shailan-category-walker.php +4 -4
- shailan-dropdown-menu-options.php +1 -1
- shailan-multi-dropdown.php +14 -5
- shailan-page-walker.php +7 -7
- shailan.DropDownMenu.php +37 -47
- stf-page-options.php +9 -20
- themes/aqua.css +2 -2
- themes/grayscale.css +1 -1
- themes/pills.css +58 -61
- themes/rounded-corners-light.css +44 -47
- themes/rounded-corners.css +44 -47
- themes/simple-blue.css +1 -1
- themes/web20.css +1 -5
css/dropdown-admin.css
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
|
2 |
/** Dropdown Menu Widget Admin Styles */
|
3 |
|
4 |
-
.stf_options_page{ font-family: 'Droid Sans', serif; }
|
5 |
-
|
6 |
#shailancom{ float:right; width:250px; }
|
7 |
-
#shailancom li{ font-
|
8 |
-
#stf_nav{ font-
|
9 |
#stf_nav a{ text-decoration:none }
|
10 |
#donate {
|
11 |
padding: 10px;
|
@@ -131,7 +129,6 @@ input.color-error{border:1px solid #f00;}
|
|
131 |
background: #efefef;
|
132 |
border-top-left-radius: 4px;
|
133 |
border-top-right-radius: 4px;
|
134 |
-
font-family: 'Droid Sans', serif;
|
135 |
}
|
136 |
.stf_options ul.tabs li a {
|
137 |
text-decoration: none;
|
@@ -179,8 +176,7 @@ background-repeat: no-repeat;
|
|
179 |
padding: 12px 30px 12px 40px;
|
180 |
border-radius: 8px;
|
181 |
-webkit-border-radius: 8px;
|
182 |
-
-moz-border-radius: 5px;
|
183 |
-
font-family: 'Droid Sans', serif;
|
184 |
font-size: 16px !important; font-weight:normal; text-shadow: #1A5B77 1px 1px 1px;
|
185 |
line-height: 16px;
|
186 |
height: 40px;
|
1 |
|
2 |
/** Dropdown Menu Widget Admin Styles */
|
3 |
|
|
|
|
|
4 |
#shailancom{ float:right; width:250px; }
|
5 |
+
#shailancom li{ font-size: 115%; line-height:150%; margin-bottom:1em; }
|
6 |
+
#stf_nav{ font-size: 110%; line-height:150%; margin-bottom:1em;color:#ddd; }
|
7 |
#stf_nav a{ text-decoration:none }
|
8 |
#donate {
|
9 |
padding: 10px;
|
129 |
background: #efefef;
|
130 |
border-top-left-radius: 4px;
|
131 |
border-top-right-radius: 4px;
|
|
|
132 |
}
|
133 |
.stf_options ul.tabs li a {
|
134 |
text-decoration: none;
|
176 |
padding: 12px 30px 12px 40px;
|
177 |
border-radius: 8px;
|
178 |
-webkit-border-radius: 8px;
|
179 |
+
-moz-border-radius: 5px;
|
|
|
180 |
font-size: 16px !important; font-weight:normal; text-shadow: #1A5B77 1px 1px 1px;
|
181 |
line-height: 16px;
|
182 |
height: 40px;
|
css/shailan-dropdown.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
div.shailan-dropdown-menu table,div.shailan-dropdown-menu tbody,div.shailan-dropdown-menu tr,div.shailan-dropdown-menu td,div.shailan-dropdown-menu ul,div.shailan-dropdown-menu li,div.dropdown-horizontal-container,ul.dropdown * { margin:0; padding:0; border:0; line-height:1; font-size:100%; }.shailan-dropdown-menu{position:relative;z-index:597}ul.dropdown,ul.dropdown li,ul.dropdown ul{list-style:none;margin:0;padding:0}ul.dropdown li{position:relative;display:inline;vertical-align:middle;zoom:1}ul.dropdown li ul{position:absolute;z-index:598}ul.dropdown li.hover,ul.dropdown li:hover{cursor:default}ul.dropdown > li{float:left}ul.dropdown li a{padding:.3em .8em;cursor:pointer}ul.dropdown ul{position:absolute;top:100%;left:0}ul.dropdown ul li{float:none;display:list-item;list-style:none}ul.dropdown ul ul{top:1px;left:99%}ul.dropdown a:active,ul.dropdown a:focus{outline-style:none}* html ul.dropdown li{height:1px}ul.dropdown ul li,ul.dropdown-vertical{margin-left:0}ul.dropdown ul,ul.dropdown li.hover ul ul,ul.dropdown li.hover ul ul ul,ul.dropdown li.hover ul ul ul ul,ul.dropdown li.hover ul ul ul ul ul,ul.dropdown ul,ul.dropdown li:hover ul ul,ul.dropdown li:hover ul ul ul,ul.dropdown li:hover ul ul ul ul,ul.dropdown li:hover ul ul ul ul ul{display:none}ul.dropdown ul ul ul ul ul ul{display:none!important}.dm-align-right table{float:right}.dm-align-left table{float:left}ul.dropdown-horizontal.dropdown-align-right ul{right:0;left:auto}ul.dropdown-horizontal.dropdown-align-right ul ul{right:99%;left:auto}ul.dropdown-vertical.dropdown-align-left ul{top:1px;left:99%;right:auto}ul.dropdown-vertical.dropdown-align-right ul{top:1px;right:99%;left:auto}ul.dropdown-vertical li{float:none;display:block}.clearfix:after{clear:both;content:".";display:block;height:0;visibility:hidden}* html > body .clearfix{display:block;width:100%}* html .clearfix{height:1%}
|
1 |
+
div.shailan-dropdown-menu table,div.shailan-dropdown-menu tbody,div.shailan-dropdown-menu tr,div.shailan-dropdown-menu td,div.shailan-dropdown-menu ul,div.shailan-dropdown-menu li,div.dropdown-horizontal-container,ul.dropdown * { margin:0; padding:0; border:0; line-height:1; font-size:100%; }.shailan-dropdown-menu{position:relative;z-index:597}ul.dropdown,ul.dropdown li,ul.dropdown ul{list-style:none;margin:0;padding:0}ul.dropdown li{position:relative;display:inline;vertical-align:middle;zoom:1}ul.dropdown li ul{position:absolute;z-index:598}ul.dropdown li.hover,ul.dropdown li:hover{cursor:default}ul.dropdown > li{float:left}ul.dropdown li a{padding:.3em .8em;cursor:pointer}ul.dropdown ul{position:absolute;top:100%;left:0}ul.dropdown ul li{float:none;display:list-item;list-style:none}ul.dropdown ul ul{top:1px;left:99%}ul.dropdown a:active,ul.dropdown a:focus{outline-style:none}* html ul.dropdown li{height:1px}ul.dropdown ul li,ul.dropdown-vertical{margin-left:0}ul.dropdown ul,ul.dropdown li.hover ul ul,ul.dropdown li.hover ul ul ul,ul.dropdown li.hover ul ul ul ul,ul.dropdown li.hover ul ul ul ul ul,ul.dropdown ul,ul.dropdown li:hover ul ul,ul.dropdown li:hover ul ul ul,ul.dropdown li:hover ul ul ul ul,ul.dropdown li:hover ul ul ul ul ul{display:none}ul.dropdown ul ul ul ul ul ul{display:none!important}.dm-align-right table{float:right}.dm-align-left table{float:left}ul.dropdown-horizontal.dropdown-align-right ul{right:0;left:auto}ul.dropdown-horizontal.dropdown-align-right ul ul{right:99%;left:auto}ul.dropdown-vertical.dropdown-align-left ul{top:1px;left:99%;right:auto; padding-left: 0; padding-right: 0;}ul.dropdown-vertical.dropdown-align-right ul{top:1px;right:99%;left:auto}ul.dropdown-vertical li{float:none;display:block}.clearfix:after{clear:both;content:".";display:block;height:0;visibility:hidden}* html > body .clearfix{display:block;width:100%}* html .clearfix{height:1%}
|
dropdown-menu-widget.pot
CHANGED
@@ -1,163 +1,163 @@
|
|
1 |
-
# Translation of the WordPress plugin by .
|
2 |
-
# Copyright (C) 2009
|
3 |
-
# This file is distributed under the same license as the package.
|
4 |
-
# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
|
5 |
-
#
|
6 |
-
#, fuzzy
|
7 |
-
msgid ""
|
8 |
-
msgstr ""
|
9 |
-
"Project-Id-Version: \n"
|
10 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/tag/dropdown-menu-widget\n"
|
11 |
-
"POT-Creation-Date: 2009-12-31 09:25+0000\n"
|
12 |
-
"PO-Revision-Date: 2009-MO-DA HO:MI+ZONE\n"
|
13 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
-
"MIME-Version: 1.0\n"
|
16 |
-
"Content-Type: text/plain; charset=utf-8\n"
|
17 |
-
"Content-Transfer-Encoding: 8bit\n"
|
18 |
-
|
19 |
-
#: shailan-category-walker.php:95
|
20 |
-
#, php-format
|
21 |
-
msgid "Feed for all posts filed under %s"
|
22 |
-
msgstr ""
|
23 |
-
|
24 |
-
#: shailan.DropDownMenu.php:22
|
25 |
-
msgid "Dropdown page/category menu"
|
26 |
-
msgstr ""
|
27 |
-
|
28 |
-
#: shailan.DropDownMenu.php:23 shailan.DropDownMenu.php:33
|
29 |
-
msgid "Dropdown Menu"
|
30 |
-
msgstr ""
|
31 |
-
|
32 |
-
#: shailan.DropDownMenu.php:33
|
33 |
-
msgid "Settings for Dropdown Menu"
|
34 |
-
msgstr ""
|
35 |
-
|
36 |
-
#: shailan.DropDownMenu.php:82
|
37 |
-
msgid "Options saved."
|
38 |
-
msgstr ""
|
39 |
-
|
40 |
-
#: shailan.DropDownMenu.php:116
|
41 |
-
msgid ""
|
42 |
-
"Dropdown menu creates a beautiful CSS only dropdown menu from your wordpress "
|
43 |
-
"pages or categories. You can customize dropdown menu theme and settings here:"
|
44 |
-
msgstr ""
|
45 |
-
|
46 |
-
#: shailan.DropDownMenu.php:124
|
47 |
-
msgid "Dropdown menu theme"
|
48 |
-
msgstr ""
|
49 |
-
|
50 |
-
#: shailan.DropDownMenu.php:132
|
51 |
-
msgid "You can choose a theme for your dropdown menu here."
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: shailan.DropDownMenu.php:137
|
55 |
-
msgid "Template tag options"
|
56 |
-
msgstr ""
|
57 |
-
|
58 |
-
#: shailan.DropDownMenu.php:138
|
59 |
-
msgid ""
|
60 |
-
"You can use following template tag in your themes to display the dropdown "
|
61 |
-
"menu."
|
62 |
-
msgstr ""
|
63 |
-
|
64 |
-
#: shailan.DropDownMenu.php:140
|
65 |
-
msgid "Here you can set template tag options:"
|
66 |
-
msgstr ""
|
67 |
-
|
68 |
-
#: shailan.DropDownMenu.php:143 shailan.DropDownMenu.php:269
|
69 |
-
msgid "Title (won't be shown):"
|
70 |
-
msgstr ""
|
71 |
-
|
72 |
-
#: shailan.DropDownMenu.php:145 shailan.DropDownMenu.php:271
|
73 |
-
msgid "Type:"
|
74 |
-
msgstr ""
|
75 |
-
|
76 |
-
#: shailan.DropDownMenu.php:145 shailan.DropDownMenu.php:271
|
77 |
-
msgid "Pages"
|
78 |
-
msgstr ""
|
79 |
-
|
80 |
-
#: shailan.DropDownMenu.php:145 shailan.DropDownMenu.php:271
|
81 |
-
msgid "Categories"
|
82 |
-
msgstr ""
|
83 |
-
|
84 |
-
#: shailan.DropDownMenu.php:147 shailan.DropDownMenu.php:273
|
85 |
-
msgid "Exclude:"
|
86 |
-
msgstr ""
|
87 |
-
|
88 |
-
#: shailan.DropDownMenu.php:148
|
89 |
-
msgid "Page IDs, separated by commas."
|
90 |
-
msgstr ""
|
91 |
-
|
92 |
-
#: shailan.DropDownMenu.php:152 shailan.DropDownMenu.php:278
|
93 |
-
msgid "Add login/logout"
|
94 |
-
msgstr ""
|
95 |
-
|
96 |
-
#: shailan.DropDownMenu.php:154 shailan.DropDownMenu.php:280
|
97 |
-
msgid "Add Register/Site Admin"
|
98 |
-
msgstr ""
|
99 |
-
|
100 |
-
#: shailan.DropDownMenu.php:156 shailan.DropDownMenu.php:282
|
101 |
-
msgid "Vertical menu"
|
102 |
-
msgstr ""
|
103 |
-
|
104 |
-
#: shailan.DropDownMenu.php:159 shailan.DropDownMenu.php:287
|
105 |
-
msgid "Inline Style:"
|
106 |
-
msgstr ""
|
107 |
-
|
108 |
-
#: shailan.DropDownMenu.php:160
|
109 |
-
msgid "Applied to menu container <div>"
|
110 |
-
msgstr ""
|
111 |
-
|
112 |
-
#: shailan.DropDownMenu.php:162
|
113 |
-
msgid ""
|
114 |
-
"NOTE: Widgets have their own options. Those options won't affect widgets."
|
115 |
-
msgstr ""
|
116 |
-
|
117 |
-
#: shailan.DropDownMenu.php:166
|
118 |
-
msgid ""
|
119 |
-
"NOTE : Onscreen theme edit will be available soon. Be sure to check <a href="
|
120 |
-
"\"http://shailan.com\">shailan.com</a> regularly for updates."
|
121 |
-
msgstr ""
|
122 |
-
|
123 |
-
#: shailan.DropDownMenu.php:169
|
124 |
-
msgid "Save Changes"
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: shailan.DropDownMenu.php:171
|
128 |
-
msgid ""
|
129 |
-
"Visit <a href=\"http://shailan.com\">shailan.com</a> for more wordpress "
|
130 |
-
"themes, plugins and widgets."
|
131 |
-
msgstr ""
|
132 |
-
|
133 |
-
#: shailan.DropDownMenu.php:222
|
134 |
-
msgid "Home"
|
135 |
-
msgstr ""
|
136 |
-
|
137 |
-
#: shailan.DropDownMenu.php:285
|
138 |
-
msgid "Align:"
|
139 |
-
msgstr ""
|
140 |
-
|
141 |
-
#: shailan.DropDownMenu.php:285
|
142 |
-
msgid "Left"
|
143 |
-
msgstr ""
|
144 |
-
|
145 |
-
#: shailan.DropDownMenu.php:285
|
146 |
-
msgid "Center"
|
147 |
-
msgstr ""
|
148 |
-
|
149 |
-
#: shailan.DropDownMenu.php:285
|
150 |
-
msgid "Right"
|
151 |
-
msgstr ""
|
152 |
-
|
153 |
-
#: shailan.DropDownMenu.php:288
|
154 |
-
msgid "Applied to menu container <div>."
|
155 |
-
msgstr ""
|
156 |
-
|
157 |
-
#: shailan.DropDownMenu.php:291
|
158 |
-
msgid "Menu Style"
|
159 |
-
msgstr ""
|
160 |
-
|
161 |
-
#: shailan.DropDownMenu.php:291
|
162 |
-
msgid "Visit plugin site"
|
163 |
-
msgstr ""
|
1 |
+
# Translation of the WordPress plugin by .
|
2 |
+
# Copyright (C) 2009
|
3 |
+
# This file is distributed under the same license as the package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
|
5 |
+
#
|
6 |
+
#, fuzzy
|
7 |
+
msgid ""
|
8 |
+
msgstr ""
|
9 |
+
"Project-Id-Version: \n"
|
10 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/dropdown-menu-widget\n"
|
11 |
+
"POT-Creation-Date: 2009-12-31 09:25+0000\n"
|
12 |
+
"PO-Revision-Date: 2009-MO-DA HO:MI+ZONE\n"
|
13 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
+
"MIME-Version: 1.0\n"
|
16 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
17 |
+
"Content-Transfer-Encoding: 8bit\n"
|
18 |
+
|
19 |
+
#: shailan-category-walker.php:95
|
20 |
+
#, php-format
|
21 |
+
msgid "Feed for all posts filed under %s"
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#: shailan.DropDownMenu.php:22
|
25 |
+
msgid "Dropdown page/category menu"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: shailan.DropDownMenu.php:23 shailan.DropDownMenu.php:33
|
29 |
+
msgid "Dropdown Menu"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: shailan.DropDownMenu.php:33
|
33 |
+
msgid "Settings for Dropdown Menu"
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: shailan.DropDownMenu.php:82
|
37 |
+
msgid "Options saved."
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: shailan.DropDownMenu.php:116
|
41 |
+
msgid ""
|
42 |
+
"Dropdown menu creates a beautiful CSS only dropdown menu from your wordpress "
|
43 |
+
"pages or categories. You can customize dropdown menu theme and settings here:"
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: shailan.DropDownMenu.php:124
|
47 |
+
msgid "Dropdown menu theme"
|
48 |
+
msgstr ""
|
49 |
+
|
50 |
+
#: shailan.DropDownMenu.php:132
|
51 |
+
msgid "You can choose a theme for your dropdown menu here."
|
52 |
+
msgstr ""
|
53 |
+
|
54 |
+
#: shailan.DropDownMenu.php:137
|
55 |
+
msgid "Template tag options"
|
56 |
+
msgstr ""
|
57 |
+
|
58 |
+
#: shailan.DropDownMenu.php:138
|
59 |
+
msgid ""
|
60 |
+
"You can use following template tag in your themes to display the dropdown "
|
61 |
+
"menu."
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
#: shailan.DropDownMenu.php:140
|
65 |
+
msgid "Here you can set template tag options:"
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
#: shailan.DropDownMenu.php:143 shailan.DropDownMenu.php:269
|
69 |
+
msgid "Title (won't be shown):"
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
+
#: shailan.DropDownMenu.php:145 shailan.DropDownMenu.php:271
|
73 |
+
msgid "Type:"
|
74 |
+
msgstr ""
|
75 |
+
|
76 |
+
#: shailan.DropDownMenu.php:145 shailan.DropDownMenu.php:271
|
77 |
+
msgid "Pages"
|
78 |
+
msgstr ""
|
79 |
+
|
80 |
+
#: shailan.DropDownMenu.php:145 shailan.DropDownMenu.php:271
|
81 |
+
msgid "Categories"
|
82 |
+
msgstr ""
|
83 |
+
|
84 |
+
#: shailan.DropDownMenu.php:147 shailan.DropDownMenu.php:273
|
85 |
+
msgid "Exclude:"
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#: shailan.DropDownMenu.php:148
|
89 |
+
msgid "Page IDs, separated by commas."
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#: shailan.DropDownMenu.php:152 shailan.DropDownMenu.php:278
|
93 |
+
msgid "Add login/logout"
|
94 |
+
msgstr ""
|
95 |
+
|
96 |
+
#: shailan.DropDownMenu.php:154 shailan.DropDownMenu.php:280
|
97 |
+
msgid "Add Register/Site Admin"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#: shailan.DropDownMenu.php:156 shailan.DropDownMenu.php:282
|
101 |
+
msgid "Vertical menu"
|
102 |
+
msgstr ""
|
103 |
+
|
104 |
+
#: shailan.DropDownMenu.php:159 shailan.DropDownMenu.php:287
|
105 |
+
msgid "Inline Style:"
|
106 |
+
msgstr ""
|
107 |
+
|
108 |
+
#: shailan.DropDownMenu.php:160
|
109 |
+
msgid "Applied to menu container <div>"
|
110 |
+
msgstr ""
|
111 |
+
|
112 |
+
#: shailan.DropDownMenu.php:162
|
113 |
+
msgid ""
|
114 |
+
"NOTE: Widgets have their own options. Those options won't affect widgets."
|
115 |
+
msgstr ""
|
116 |
+
|
117 |
+
#: shailan.DropDownMenu.php:166
|
118 |
+
msgid ""
|
119 |
+
"NOTE : Onscreen theme edit will be available soon. Be sure to check <a href="
|
120 |
+
"\"http://shailan.com\">shailan.com</a> regularly for updates."
|
121 |
+
msgstr ""
|
122 |
+
|
123 |
+
#: shailan.DropDownMenu.php:169
|
124 |
+
msgid "Save Changes"
|
125 |
+
msgstr ""
|
126 |
+
|
127 |
+
#: shailan.DropDownMenu.php:171
|
128 |
+
msgid ""
|
129 |
+
"Visit <a href=\"http://shailan.com\">shailan.com</a> for more wordpress "
|
130 |
+
"themes, plugins and widgets."
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: shailan.DropDownMenu.php:222
|
134 |
+
msgid "Home"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: shailan.DropDownMenu.php:285
|
138 |
+
msgid "Align:"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: shailan.DropDownMenu.php:285
|
142 |
+
msgid "Left"
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#: shailan.DropDownMenu.php:285
|
146 |
+
msgid "Center"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: shailan.DropDownMenu.php:285
|
150 |
+
msgid "Right"
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: shailan.DropDownMenu.php:288
|
154 |
+
msgid "Applied to menu container <div>."
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: shailan.DropDownMenu.php:291
|
158 |
+
msgid "Menu Style"
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: shailan.DropDownMenu.php:291
|
162 |
+
msgid "Visit plugin site"
|
163 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
=== Dropdown Menu Widget ===
|
2 |
Contributors: mattsay
|
3 |
-
Donate link: http://
|
4 |
Tags: css, dropdown, menu, widget, pages, categories, multi, jquery, navigation, category list, themes, custom-styles, options-page, animations, effects
|
5 |
Requires at least: 2.8
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.9.
|
8 |
|
9 |
Pages/Categories/Custom dropdown navigation menus with nice jQuery effects. Comes with various customizable CSS themes!
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
Dropdown Menu widget adds a beautiful, CSS only dropdown menu, listing pages, categories of your blog. You can also turn your wordpress navigation menu into a beatiful dropdown menu using this plugin.
|
14 |
-
It allows you to chose vertical or horizontal layout. It supports multiple instances. You can select a theme for your widget from the Dropdown Menu Settings page or you can CREATE YOUR OWN THEME WITHIN SAME PLUGIN!! You can also customize your dropdown menu using CSS. If you want a custom dropdown theme you can [request](http://
|
15 |
|
16 |
== Installation ==
|
17 |
|
@@ -21,19 +21,19 @@ It allows you to chose vertical or horizontal layout. It supports multiple insta
|
|
21 |
1. You can also use `<?php shailan_dropdown_menu(); ?>` in your template to display the menu.
|
22 |
1. Don't forget to change menu settings from Settings -> Dropdown Menu panel.
|
23 |
|
24 |
-
More detailed information can be found [here](http://
|
25 |
|
26 |
-
More information about php template tag can be found [here](http://
|
27 |
|
28 |
== Frequently Asked Questions ==
|
29 |
|
30 |
= I don't have sidebar on my header, how can i add one? =
|
31 |
|
32 |
-
Adding a sidebar in wordpress is a quite easy task. You can [read instructions here](http://
|
33 |
|
34 |
= I added this widget to my sidebar but it looks all weird! =
|
35 |
|
36 |
-
This widget is intented for *wide header widget areas*, not regular sidebars. You can add a sidebar to your theme or you can get a
|
37 |
|
38 |
= Can i create my own theme? =
|
39 |
|
@@ -41,11 +41,11 @@ Since this plugin works on CSS, if you are capable of writing CSS, you can custo
|
|
41 |
|
42 |
= I don't know CSS, how can i customize it? =
|
43 |
|
44 |
-
Plugin comes with various themes already installed. If you
|
45 |
|
46 |
= I found a bug! Where do i submit it? =
|
47 |
|
48 |
-
|
49 |
|
50 |
== Screenshots ==
|
51 |
|
@@ -279,6 +279,3 @@ You can submit errors and bugs using the [online form](http://shailan.com/contac
|
|
279 |
= 0.2 =
|
280 |
* First public release.
|
281 |
* Added login and register button options.
|
282 |
-
|
283 |
-
== Upgrade Notice ==
|
284 |
-
If you have
|
1 |
=== Dropdown Menu Widget ===
|
2 |
Contributors: mattsay
|
3 |
+
Donate link: http://metinsaylan.com/donate
|
4 |
Tags: css, dropdown, menu, widget, pages, categories, multi, jquery, navigation, category list, themes, custom-styles, options-page, animations, effects
|
5 |
Requires at least: 2.8
|
6 |
+
Tested up to: 4.7
|
7 |
+
Stable tag: 1.9.5
|
8 |
|
9 |
Pages/Categories/Custom dropdown navigation menus with nice jQuery effects. Comes with various customizable CSS themes!
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
Dropdown Menu widget adds a beautiful, CSS only dropdown menu, listing pages, categories of your blog. You can also turn your wordpress navigation menu into a beatiful dropdown menu using this plugin.
|
14 |
+
It allows you to chose vertical or horizontal layout. It supports multiple instances. You can select a theme for your widget from the Dropdown Menu Settings page or you can CREATE YOUR OWN THEME WITHIN SAME PLUGIN!! You can also customize your dropdown menu using CSS. If you want a custom dropdown theme you can [request](http://metinsaylan.com/contact) one. Please visit [plugin site](http://metinsaylan.com/wordpress/plugins/dropdown-menu) for more information.
|
15 |
|
16 |
== Installation ==
|
17 |
|
21 |
1. You can also use `<?php shailan_dropdown_menu(); ?>` in your template to display the menu.
|
22 |
1. Don't forget to change menu settings from Settings -> Dropdown Menu panel.
|
23 |
|
24 |
+
More detailed information can be found [here](http://metinsaylan.com/wordpress/plugins/dropdown-menu/#installation).
|
25 |
|
26 |
+
More information about php template tag can be found [here](http://metinsaylan.com/2773/dropdown-menu-widget-template-tag-usage-explained/).
|
27 |
|
28 |
== Frequently Asked Questions ==
|
29 |
|
30 |
= I don't have sidebar on my header, how can i add one? =
|
31 |
|
32 |
+
Adding a sidebar in wordpress is a quite easy task. You can [read instructions here](http://metinsaylan.com/727/how-to-widgetize-your-theme-in-3-simple-steps/). If you don't want to add a sidebar consider using PHP template tag instead.
|
33 |
|
34 |
= I added this widget to my sidebar but it looks all weird! =
|
35 |
|
36 |
+
This widget is intented for *wide header widget areas*, not regular sidebars. You can [add a sidebar](http://metinsaylan.com/727/how-to-widgetize-your-theme-in-3-simple-steps/) to your theme or you can [get a theme](http://metinsaylan.com/wordpress/plugins/dropdown-menu/themes) that supports dropdown menu widget. If you don't want to add a sidebar, you can use php template tag instead. Read [php template tag](http://metinsaylan.com/2773/dropdown-menu-widget-template-tag-usage-explained/) instructions [here](http://metinsaylan.com/2773/dropdown-menu-widget-template-tag-usage-explained/).
|
37 |
|
38 |
= Can i create my own theme? =
|
39 |
|
41 |
|
42 |
= I don't know CSS, how can i customize it? =
|
43 |
|
44 |
+
Plugin comes with various themes already installed. If you don't like existing themes put `dropdown.css` in your theme root and it will be selectable on themes list ;)
|
45 |
|
46 |
= I found a bug! Where do i submit it? =
|
47 |
|
48 |
+
Please submit errors, bugs or requests on [Dropdown Menu Widget Github](https://github.com/shailancom/dropdown-menu-widget/issues) page.
|
49 |
|
50 |
== Screenshots ==
|
51 |
|
279 |
= 0.2 =
|
280 |
* First public release.
|
281 |
* Added login and register button options.
|
|
|
|
|
|
scripts/hoverIntent.js
CHANGED
@@ -1,106 +1,106 @@
|
|
1 |
-
/**
|
2 |
-
* hoverIntent is similar to jQuery's built-in "hover" function except that
|
3 |
-
* instead of firing the onMouseOver event immediately, hoverIntent checks
|
4 |
-
* to see if the user's mouse has slowed down (beneath the sensitivity
|
5 |
-
* threshold) before firing the onMouseOver event.
|
6 |
-
*
|
7 |
-
* hoverIntent r6 // 2011.02.26 // jQuery 1.5.1+
|
8 |
-
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
|
9 |
-
*
|
10 |
-
* hoverIntent is currently available for use in all personal or commercial
|
11 |
-
* projects under both MIT and GPL licenses. This means that you can choose
|
12 |
-
* the license that best suits your project, and use it accordingly.
|
13 |
-
*
|
14 |
-
* // basic usage (just like .hover) receives onMouseOver and onMouseOut functions
|
15 |
-
* $("ul li").hoverIntent( showNav , hideNav );
|
16 |
-
*
|
17 |
-
* // advanced usage receives configuration object only
|
18 |
-
* $("ul li").hoverIntent({
|
19 |
-
* sensitivity: 7, // number = sensitivity threshold (must be 1 or higher)
|
20 |
-
* interval: 100, // number = milliseconds of polling interval
|
21 |
-
* over: showNav, // function = onMouseOver callback (required)
|
22 |
-
* timeout: 0, // number = milliseconds delay before onMouseOut function call
|
23 |
-
* out: hideNav // function = onMouseOut callback (required)
|
24 |
-
* });
|
25 |
-
*
|
26 |
-
* @param f onMouseOver function || An object with configuration options
|
27 |
-
* @param g onMouseOut function || Nothing (use configuration options object)
|
28 |
-
* @author Brian Cherne brian(at)cherne(dot)net
|
29 |
-
*/
|
30 |
-
(function($) {
|
31 |
-
$.fn.hoverIntent = function(f,g) {
|
32 |
-
// default configuration options
|
33 |
-
var cfg = {
|
34 |
-
sensitivity: 7,
|
35 |
-
interval: 100,
|
36 |
-
timeout: 200
|
37 |
-
};
|
38 |
-
// override configuration options with user supplied object
|
39 |
-
cfg = $.extend(cfg, g ? { over: f, out: g } : f );
|
40 |
-
|
41 |
-
// instantiate variables
|
42 |
-
// cX, cY = current X and Y position of mouse, updated by mousemove event
|
43 |
-
// pX, pY = previous X and Y position of mouse, set by mouseover and polling interval
|
44 |
-
var cX, cY, pX, pY;
|
45 |
-
|
46 |
-
// A private function for getting mouse position
|
47 |
-
var track = function(ev) {
|
48 |
-
cX = ev.pageX;
|
49 |
-
cY = ev.pageY;
|
50 |
-
};
|
51 |
-
|
52 |
-
// A private function for comparing current and previous mouse position
|
53 |
-
var compare = function(ev,ob) {
|
54 |
-
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
|
55 |
-
// compare mouse positions to see if they've crossed the threshold
|
56 |
-
if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
|
57 |
-
$(ob).unbind("mousemove",track);
|
58 |
-
// set hoverIntent state to true (so mouseOut can be called)
|
59 |
-
ob.hoverIntent_s = 1;
|
60 |
-
return cfg.over.apply(ob,[ev]);
|
61 |
-
} else {
|
62 |
-
// set previous coordinates for next time
|
63 |
-
pX = cX; pY = cY;
|
64 |
-
// use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
|
65 |
-
ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
|
66 |
-
}
|
67 |
-
};
|
68 |
-
|
69 |
-
// A private function for delaying the mouseOut function
|
70 |
-
var delay = function(ev,ob) {
|
71 |
-
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
|
72 |
-
ob.hoverIntent_s = 0;
|
73 |
-
return cfg.out.apply(ob,[ev]);
|
74 |
-
};
|
75 |
-
|
76 |
-
// A private function for handling mouse 'hovering'
|
77 |
-
var handleHover = function(e) {
|
78 |
-
// copy objects to be passed into t (required for event object to be passed in IE)
|
79 |
-
var ev = jQuery.extend({},e);
|
80 |
-
var ob = this;
|
81 |
-
|
82 |
-
// cancel hoverIntent timer if it exists
|
83 |
-
if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }
|
84 |
-
|
85 |
-
// if e.type == "mouseenter"
|
86 |
-
if (e.type == "mouseenter") {
|
87 |
-
// set "previous" X and Y position based on initial entry point
|
88 |
-
pX = ev.pageX; pY = ev.pageY;
|
89 |
-
// update "current" X and Y position based on mousemove
|
90 |
-
$(ob).bind("mousemove",track);
|
91 |
-
// start polling interval (self-calling timeout) to compare mouse coordinates over time
|
92 |
-
if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}
|
93 |
-
|
94 |
-
// else e.type == "mouseleave"
|
95 |
-
} else {
|
96 |
-
// unbind expensive mousemove event
|
97 |
-
$(ob).unbind("mousemove",track);
|
98 |
-
// if hoverIntent state is true, then call the mouseOut function after the specified delay
|
99 |
-
if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
|
100 |
-
}
|
101 |
-
};
|
102 |
-
|
103 |
-
// bind the function to the two event listeners
|
104 |
-
return this.bind('mouseenter',handleHover).bind('mouseleave',handleHover);
|
105 |
-
};
|
106 |
})(jQuery);
|
1 |
+
/**
|
2 |
+
* hoverIntent is similar to jQuery's built-in "hover" function except that
|
3 |
+
* instead of firing the onMouseOver event immediately, hoverIntent checks
|
4 |
+
* to see if the user's mouse has slowed down (beneath the sensitivity
|
5 |
+
* threshold) before firing the onMouseOver event.
|
6 |
+
*
|
7 |
+
* hoverIntent r6 // 2011.02.26 // jQuery 1.5.1+
|
8 |
+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
|
9 |
+
*
|
10 |
+
* hoverIntent is currently available for use in all personal or commercial
|
11 |
+
* projects under both MIT and GPL licenses. This means that you can choose
|
12 |
+
* the license that best suits your project, and use it accordingly.
|
13 |
+
*
|
14 |
+
* // basic usage (just like .hover) receives onMouseOver and onMouseOut functions
|
15 |
+
* $("ul li").hoverIntent( showNav , hideNav );
|
16 |
+
*
|
17 |
+
* // advanced usage receives configuration object only
|
18 |
+
* $("ul li").hoverIntent({
|
19 |
+
* sensitivity: 7, // number = sensitivity threshold (must be 1 or higher)
|
20 |
+
* interval: 100, // number = milliseconds of polling interval
|
21 |
+
* over: showNav, // function = onMouseOver callback (required)
|
22 |
+
* timeout: 0, // number = milliseconds delay before onMouseOut function call
|
23 |
+
* out: hideNav // function = onMouseOut callback (required)
|
24 |
+
* });
|
25 |
+
*
|
26 |
+
* @param f onMouseOver function || An object with configuration options
|
27 |
+
* @param g onMouseOut function || Nothing (use configuration options object)
|
28 |
+
* @author Brian Cherne brian(at)cherne(dot)net
|
29 |
+
*/
|
30 |
+
(function($) {
|
31 |
+
$.fn.hoverIntent = function(f,g) {
|
32 |
+
// default configuration options
|
33 |
+
var cfg = {
|
34 |
+
sensitivity: 7,
|
35 |
+
interval: 100,
|
36 |
+
timeout: 200
|
37 |
+
};
|
38 |
+
// override configuration options with user supplied object
|
39 |
+
cfg = $.extend(cfg, g ? { over: f, out: g } : f );
|
40 |
+
|
41 |
+
// instantiate variables
|
42 |
+
// cX, cY = current X and Y position of mouse, updated by mousemove event
|
43 |
+
// pX, pY = previous X and Y position of mouse, set by mouseover and polling interval
|
44 |
+
var cX, cY, pX, pY;
|
45 |
+
|
46 |
+
// A private function for getting mouse position
|
47 |
+
var track = function(ev) {
|
48 |
+
cX = ev.pageX;
|
49 |
+
cY = ev.pageY;
|
50 |
+
};
|
51 |
+
|
52 |
+
// A private function for comparing current and previous mouse position
|
53 |
+
var compare = function(ev,ob) {
|
54 |
+
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
|
55 |
+
// compare mouse positions to see if they've crossed the threshold
|
56 |
+
if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
|
57 |
+
$(ob).unbind("mousemove",track);
|
58 |
+
// set hoverIntent state to true (so mouseOut can be called)
|
59 |
+
ob.hoverIntent_s = 1;
|
60 |
+
return cfg.over.apply(ob,[ev]);
|
61 |
+
} else {
|
62 |
+
// set previous coordinates for next time
|
63 |
+
pX = cX; pY = cY;
|
64 |
+
// use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
|
65 |
+
ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
|
66 |
+
}
|
67 |
+
};
|
68 |
+
|
69 |
+
// A private function for delaying the mouseOut function
|
70 |
+
var delay = function(ev,ob) {
|
71 |
+
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
|
72 |
+
ob.hoverIntent_s = 0;
|
73 |
+
return cfg.out.apply(ob,[ev]);
|
74 |
+
};
|
75 |
+
|
76 |
+
// A private function for handling mouse 'hovering'
|
77 |
+
var handleHover = function(e) {
|
78 |
+
// copy objects to be passed into t (required for event object to be passed in IE)
|
79 |
+
var ev = jQuery.extend({},e);
|
80 |
+
var ob = this;
|
81 |
+
|
82 |
+
// cancel hoverIntent timer if it exists
|
83 |
+
if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }
|
84 |
+
|
85 |
+
// if e.type == "mouseenter"
|
86 |
+
if (e.type == "mouseenter") {
|
87 |
+
// set "previous" X and Y position based on initial entry point
|
88 |
+
pX = ev.pageX; pY = ev.pageY;
|
89 |
+
// update "current" X and Y position based on mousemove
|
90 |
+
$(ob).bind("mousemove",track);
|
91 |
+
// start polling interval (self-calling timeout) to compare mouse coordinates over time
|
92 |
+
if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}
|
93 |
+
|
94 |
+
// else e.type == "mouseleave"
|
95 |
+
} else {
|
96 |
+
// unbind expensive mousemove event
|
97 |
+
$(ob).unbind("mousemove",track);
|
98 |
+
// if hoverIntent state is true, then call the mouseOut function after the specified delay
|
99 |
+
if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
|
100 |
+
}
|
101 |
+
};
|
102 |
+
|
103 |
+
// bind the function to the two event listeners
|
104 |
+
return this.bind('mouseenter',handleHover).bind('mouseleave',handleHover);
|
105 |
+
};
|
106 |
})(jQuery);
|
scripts/jquery.bgiframe.min.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
|
2 |
-
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
3 |
-
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
4 |
-
*
|
5 |
-
* $LastChangedDate: 2007-06-19 20:25:28 -0500 (Tue, 19 Jun 2007) $
|
6 |
-
* $Rev: 2111 $
|
7 |
-
*
|
8 |
-
* Version 2.1
|
9 |
-
*/
|
10 |
(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&parseInt($.browser.version)<=6){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};if(!$.browser.version)$.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1];})(jQuery);
|
1 |
+
/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
|
2 |
+
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
3 |
+
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
4 |
+
*
|
5 |
+
* $LastChangedDate: 2007-06-19 20:25:28 -0500 (Tue, 19 Jun 2007) $
|
6 |
+
* $Rev: 2111 $
|
7 |
+
*
|
8 |
+
* Version 2.1
|
9 |
+
*/
|
10 |
(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&parseInt($.browser.version)<=6){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};if(!$.browser.version)$.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1];})(jQuery);
|
scripts/superfish.js
CHANGED
@@ -1,121 +1,121 @@
|
|
1 |
-
|
2 |
-
/*
|
3 |
-
* Superfish v1.4.8 - jQuery menu widget
|
4 |
-
* Copyright (c) 2008 Joel Birch
|
5 |
-
*
|
6 |
-
* Dual licensed under the MIT and GPL licenses:
|
7 |
-
* http://www.opensource.org/licenses/mit-license.php
|
8 |
-
* http://www.gnu.org/licenses/gpl.html
|
9 |
-
*
|
10 |
-
* CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
|
11 |
-
*/
|
12 |
-
|
13 |
-
;(function($){
|
14 |
-
$.fn.superfish = function(op){
|
15 |
-
|
16 |
-
var sf = $.fn.superfish,
|
17 |
-
c = sf.c,
|
18 |
-
$arrow = $(['<span class="',c.arrowClass,'"> »</span>'].join('')),
|
19 |
-
over = function(){
|
20 |
-
var $$ = $(this), menu = getMenu($$);
|
21 |
-
clearTimeout(menu.sfTimer);
|
22 |
-
$$.showSuperfishUl().siblings().hideSuperfishUl();
|
23 |
-
},
|
24 |
-
out = function(){
|
25 |
-
var $$ = $(this), menu = getMenu($$), o = sf.op;
|
26 |
-
clearTimeout(menu.sfTimer);
|
27 |
-
menu.sfTimer=setTimeout(function(){
|
28 |
-
o.retainPath=($.inArray($$[0],o.$path)>-1);
|
29 |
-
$$.hideSuperfishUl();
|
30 |
-
if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
|
31 |
-
},o.delay);
|
32 |
-
},
|
33 |
-
getMenu = function($menu){
|
34 |
-
var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
|
35 |
-
sf.op = sf.o[menu.serial];
|
36 |
-
return menu;
|
37 |
-
},
|
38 |
-
addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
|
39 |
-
|
40 |
-
return this.each(function() {
|
41 |
-
var s = this.serial = sf.o.length;
|
42 |
-
var o = $.extend({},sf.defaults,op);
|
43 |
-
o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
|
44 |
-
$(this).addClass([o.hoverClass,c.bcClass].join(' '))
|
45 |
-
.filter('li:has(ul)').removeClass(o.pathClass);
|
46 |
-
});
|
47 |
-
sf.o[s] = sf.op = o;
|
48 |
-
|
49 |
-
$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
|
50 |
-
if (o.autoArrows) addArrow( $('>a:first-child',this) );
|
51 |
-
})
|
52 |
-
.not('.'+c.bcClass)
|
53 |
-
.hideSuperfishUl();
|
54 |
-
|
55 |
-
var $a = $('a',this);
|
56 |
-
$a.each(function(i){
|
57 |
-
var $li = $a.eq(i).parents('li');
|
58 |
-
$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
|
59 |
-
});
|
60 |
-
o.onInit.call(this);
|
61 |
-
|
62 |
-
}).each(function() {
|
63 |
-
menuClasses = [c.menuClass];
|
64 |
-
if (sf.op.dropShadows && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
|
65 |
-
$(this).addClass(menuClasses.join(' '));
|
66 |
-
});
|
67 |
-
};
|
68 |
-
|
69 |
-
var sf = $.fn.superfish;
|
70 |
-
sf.o = [];
|
71 |
-
sf.op = {};
|
72 |
-
sf.IE7fix = function(){
|
73 |
-
var o = sf.op;
|
74 |
-
if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
|
75 |
-
this.toggleClass(sf.c.shadowClass+'-off');
|
76 |
-
};
|
77 |
-
sf.c = {
|
78 |
-
bcClass : 'sf-breadcrumb',
|
79 |
-
menuClass : 'sf-js-enabled',
|
80 |
-
anchorClass : 'sf-with-ul',
|
81 |
-
arrowClass : 'sf-sub-indicator',
|
82 |
-
shadowClass : 'sf-shadow'
|
83 |
-
};
|
84 |
-
sf.defaults = {
|
85 |
-
hoverClass : 'sfHover',
|
86 |
-
pathClass : 'overideThisToUse',
|
87 |
-
pathLevels : 1,
|
88 |
-
delay : 800,
|
89 |
-
animation : {opacity:'show'},
|
90 |
-
speed : 'normal',
|
91 |
-
autoArrows : true,
|
92 |
-
dropShadows : true,
|
93 |
-
disableHI : false, // true disables hoverIntent detection
|
94 |
-
onInit : function(){}, // callback functions
|
95 |
-
onBeforeShow: function(){},
|
96 |
-
onShow : function(){},
|
97 |
-
onHide : function(){}
|
98 |
-
};
|
99 |
-
$.fn.extend({
|
100 |
-
hideSuperfishUl : function(){
|
101 |
-
var o = sf.op,
|
102 |
-
not = (o.retainPath===true) ? o.$path : '';
|
103 |
-
o.retainPath = false;
|
104 |
-
var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
|
105 |
-
.find('>ul').hide().css('visibility','hidden');
|
106 |
-
o.onHide.call($ul);
|
107 |
-
return this;
|
108 |
-
},
|
109 |
-
showSuperfishUl : function(){
|
110 |
-
var o = sf.op,
|
111 |
-
sh = sf.c.shadowClass+'-off',
|
112 |
-
$ul = this.addClass(o.hoverClass)
|
113 |
-
.find('>ul:hidden').css('visibility','visible');
|
114 |
-
sf.IE7fix.call($ul);
|
115 |
-
o.onBeforeShow.call($ul);
|
116 |
-
$ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
|
117 |
-
return this;
|
118 |
-
}
|
119 |
-
});
|
120 |
-
|
121 |
-
})(jQuery);
|
1 |
+
|
2 |
+
/*
|
3 |
+
* Superfish v1.4.8 - jQuery menu widget
|
4 |
+
* Copyright (c) 2008 Joel Birch
|
5 |
+
*
|
6 |
+
* Dual licensed under the MIT and GPL licenses:
|
7 |
+
* http://www.opensource.org/licenses/mit-license.php
|
8 |
+
* http://www.gnu.org/licenses/gpl.html
|
9 |
+
*
|
10 |
+
* CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
|
11 |
+
*/
|
12 |
+
|
13 |
+
;(function($){
|
14 |
+
$.fn.superfish = function(op){
|
15 |
+
|
16 |
+
var sf = $.fn.superfish,
|
17 |
+
c = sf.c,
|
18 |
+
$arrow = $(['<span class="',c.arrowClass,'"> »</span>'].join('')),
|
19 |
+
over = function(){
|
20 |
+
var $$ = $(this), menu = getMenu($$);
|
21 |
+
clearTimeout(menu.sfTimer);
|
22 |
+
$$.showSuperfishUl().siblings().hideSuperfishUl();
|
23 |
+
},
|
24 |
+
out = function(){
|
25 |
+
var $$ = $(this), menu = getMenu($$), o = sf.op;
|
26 |
+
clearTimeout(menu.sfTimer);
|
27 |
+
menu.sfTimer=setTimeout(function(){
|
28 |
+
o.retainPath=($.inArray($$[0],o.$path)>-1);
|
29 |
+
$$.hideSuperfishUl();
|
30 |
+
if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
|
31 |
+
},o.delay);
|
32 |
+
},
|
33 |
+
getMenu = function($menu){
|
34 |
+
var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
|
35 |
+
sf.op = sf.o[menu.serial];
|
36 |
+
return menu;
|
37 |
+
},
|
38 |
+
addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
|
39 |
+
|
40 |
+
return this.each(function() {
|
41 |
+
var s = this.serial = sf.o.length;
|
42 |
+
var o = $.extend({},sf.defaults,op);
|
43 |
+
o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
|
44 |
+
$(this).addClass([o.hoverClass,c.bcClass].join(' '))
|
45 |
+
.filter('li:has(ul)').removeClass(o.pathClass);
|
46 |
+
});
|
47 |
+
sf.o[s] = sf.op = o;
|
48 |
+
|
49 |
+
$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
|
50 |
+
if (o.autoArrows) addArrow( $('>a:first-child',this) );
|
51 |
+
})
|
52 |
+
.not('.'+c.bcClass)
|
53 |
+
.hideSuperfishUl();
|
54 |
+
|
55 |
+
var $a = $('a',this);
|
56 |
+
$a.each(function(i){
|
57 |
+
var $li = $a.eq(i).parents('li');
|
58 |
+
$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
|
59 |
+
});
|
60 |
+
o.onInit.call(this);
|
61 |
+
|
62 |
+
}).each(function() {
|
63 |
+
menuClasses = [c.menuClass];
|
64 |
+
if (sf.op.dropShadows && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
|
65 |
+
$(this).addClass(menuClasses.join(' '));
|
66 |
+
});
|
67 |
+
};
|
68 |
+
|
69 |
+
var sf = $.fn.superfish;
|
70 |
+
sf.o = [];
|
71 |
+
sf.op = {};
|
72 |
+
sf.IE7fix = function(){
|
73 |
+
var o = sf.op;
|
74 |
+
if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
|
75 |
+
this.toggleClass(sf.c.shadowClass+'-off');
|
76 |
+
};
|
77 |
+
sf.c = {
|
78 |
+
bcClass : 'sf-breadcrumb',
|
79 |
+
menuClass : 'sf-js-enabled',
|
80 |
+
anchorClass : 'sf-with-ul',
|
81 |
+
arrowClass : 'sf-sub-indicator',
|
82 |
+
shadowClass : 'sf-shadow'
|
83 |
+
};
|
84 |
+
sf.defaults = {
|
85 |
+
hoverClass : 'sfHover',
|
86 |
+
pathClass : 'overideThisToUse',
|
87 |
+
pathLevels : 1,
|
88 |
+
delay : 800,
|
89 |
+
animation : {opacity:'show'},
|
90 |
+
speed : 'normal',
|
91 |
+
autoArrows : true,
|
92 |
+
dropShadows : true,
|
93 |
+
disableHI : false, // true disables hoverIntent detection
|
94 |
+
onInit : function(){}, // callback functions
|
95 |
+
onBeforeShow: function(){},
|
96 |
+
onShow : function(){},
|
97 |
+
onHide : function(){}
|
98 |
+
};
|
99 |
+
$.fn.extend({
|
100 |
+
hideSuperfishUl : function(){
|
101 |
+
var o = sf.op,
|
102 |
+
not = (o.retainPath===true) ? o.$path : '';
|
103 |
+
o.retainPath = false;
|
104 |
+
var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
|
105 |
+
.find('>ul').hide().css('visibility','hidden');
|
106 |
+
o.onHide.call($ul);
|
107 |
+
return this;
|
108 |
+
},
|
109 |
+
showSuperfishUl : function(){
|
110 |
+
var o = sf.op,
|
111 |
+
sh = sf.c.shadowClass+'-off',
|
112 |
+
$ul = this.addClass(o.hoverClass)
|
113 |
+
.find('>ul:hidden').css('visibility','visible');
|
114 |
+
sf.IE7fix.call($ul);
|
115 |
+
o.onBeforeShow.call($ul);
|
116 |
+
$ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
|
117 |
+
return this;
|
118 |
+
}
|
119 |
+
});
|
120 |
+
|
121 |
+
})(jQuery);
|
scripts/supersubs.js
CHANGED
@@ -1,90 +1,90 @@
|
|
1 |
-
|
2 |
-
/*
|
3 |
-
* Supersubs v0.2b - jQuery plugin
|
4 |
-
* Copyright (c) 2008 Joel Birch
|
5 |
-
*
|
6 |
-
* Dual licensed under the MIT and GPL licenses:
|
7 |
-
* http://www.opensource.org/licenses/mit-license.php
|
8 |
-
* http://www.gnu.org/licenses/gpl.html
|
9 |
-
*
|
10 |
-
*
|
11 |
-
* This plugin automatically adjusts submenu widths of suckerfish-style menus to that of
|
12 |
-
* their longest list item children. If you use this, please expect bugs and report them
|
13 |
-
* to the jQuery Google Group with the word 'Superfish' in the subject line.
|
14 |
-
*
|
15 |
-
*/
|
16 |
-
|
17 |
-
;(function($){ // $ will refer to jQuery within this closure
|
18 |
-
|
19 |
-
$.fn.supersubs = function(options){
|
20 |
-
var opts = $.extend({}, $.fn.supersubs.defaults, options);
|
21 |
-
// return original object to support chaining
|
22 |
-
return this.each(function() {
|
23 |
-
// cache selections
|
24 |
-
var $$ = $(this);
|
25 |
-
// support metadata
|
26 |
-
var o = $.meta ? $.extend({}, opts, $$.data()) : opts;
|
27 |
-
// get the font size of menu.
|
28 |
-
// .css('fontSize') returns various results cross-browser, so measure an em dash instead
|
29 |
-
var fontsize = $('<li id="menu-fontsize">—</li>').css({
|
30 |
-
'padding' : 0,
|
31 |
-
'position' : 'absolute',
|
32 |
-
'top' : '-999em',
|
33 |
-
'width' : 'auto'
|
34 |
-
}).appendTo($$).width(); //clientWidth is faster, but was incorrect here
|
35 |
-
// remove em dash
|
36 |
-
$('#menu-fontsize').remove();
|
37 |
-
// cache all ul elements
|
38 |
-
$ULs = $$.find('ul');
|
39 |
-
// loop through each ul in menu
|
40 |
-
$ULs.each(function(i) {
|
41 |
-
// cache this ul
|
42 |
-
var $ul = $ULs.eq(i);
|
43 |
-
// get all (li) children of this ul
|
44 |
-
var $LIs = $ul.children();
|
45 |
-
// get all anchor grand-children
|
46 |
-
var $As = $LIs.children('a');
|
47 |
-
// force content to one line and save current float property
|
48 |
-
var liFloat = $LIs.css('white-space','nowrap').css('float');
|
49 |
-
// remove width restrictions and floats so elements remain vertically stacked
|
50 |
-
var emWidth = $ul.add($LIs).add($As).css({
|
51 |
-
'float' : 'none',
|
52 |
-
'width' : 'auto'
|
53 |
-
})
|
54 |
-
// this ul will now be shrink-wrapped to longest li due to position:absolute
|
55 |
-
// so save its width as ems. Clientwidth is 2 times faster than .width() - thanks Dan Switzer
|
56 |
-
.end().end()[0].clientWidth / fontsize;
|
57 |
-
// add more width to ensure lines don't turn over at certain sizes in various browsers
|
58 |
-
emWidth += o.extraWidth;
|
59 |
-
// restrict to at least minWidth and at most maxWidth
|
60 |
-
if (emWidth > o.maxWidth) { emWidth = o.maxWidth; }
|
61 |
-
else if (emWidth < o.minWidth) { emWidth = o.minWidth; }
|
62 |
-
emWidth += 'em';
|
63 |
-
// set ul to width in ems
|
64 |
-
$ul.css('width',emWidth);
|
65 |
-
// restore li floats to avoid IE bugs
|
66 |
-
// set li width to full width of this ul
|
67 |
-
// revert white-space to normal
|
68 |
-
$LIs.css({
|
69 |
-
'float' : liFloat,
|
70 |
-
'width' : '100%',
|
71 |
-
'white-space' : 'normal'
|
72 |
-
})
|
73 |
-
// update offset position of descendant ul to reflect new width of parent
|
74 |
-
.each(function(){
|
75 |
-
var $childUl = $('>ul',this);
|
76 |
-
var offsetDirection = $childUl.css('left')!==undefined ? 'left' : 'right';
|
77 |
-
$childUl.css(offsetDirection,emWidth);
|
78 |
-
});
|
79 |
-
});
|
80 |
-
|
81 |
-
});
|
82 |
-
};
|
83 |
-
// expose defaults
|
84 |
-
$.fn.supersubs.defaults = {
|
85 |
-
minWidth : 9, // requires em unit.
|
86 |
-
maxWidth : 25, // requires em unit.
|
87 |
-
extraWidth : 0 // extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values
|
88 |
-
};
|
89 |
-
|
90 |
-
})(jQuery); // plugin code ends
|
1 |
+
|
2 |
+
/*
|
3 |
+
* Supersubs v0.2b - jQuery plugin
|
4 |
+
* Copyright (c) 2008 Joel Birch
|
5 |
+
*
|
6 |
+
* Dual licensed under the MIT and GPL licenses:
|
7 |
+
* http://www.opensource.org/licenses/mit-license.php
|
8 |
+
* http://www.gnu.org/licenses/gpl.html
|
9 |
+
*
|
10 |
+
*
|
11 |
+
* This plugin automatically adjusts submenu widths of suckerfish-style menus to that of
|
12 |
+
* their longest list item children. If you use this, please expect bugs and report them
|
13 |
+
* to the jQuery Google Group with the word 'Superfish' in the subject line.
|
14 |
+
*
|
15 |
+
*/
|
16 |
+
|
17 |
+
;(function($){ // $ will refer to jQuery within this closure
|
18 |
+
|
19 |
+
$.fn.supersubs = function(options){
|
20 |
+
var opts = $.extend({}, $.fn.supersubs.defaults, options);
|
21 |
+
// return original object to support chaining
|
22 |
+
return this.each(function() {
|
23 |
+
// cache selections
|
24 |
+
var $$ = $(this);
|
25 |
+
// support metadata
|
26 |
+
var o = $.meta ? $.extend({}, opts, $$.data()) : opts;
|
27 |
+
// get the font size of menu.
|
28 |
+
// .css('fontSize') returns various results cross-browser, so measure an em dash instead
|
29 |
+
var fontsize = $('<li id="menu-fontsize">—</li>').css({
|
30 |
+
'padding' : 0,
|
31 |
+
'position' : 'absolute',
|
32 |
+
'top' : '-999em',
|
33 |
+
'width' : 'auto'
|
34 |
+
}).appendTo($$).width(); //clientWidth is faster, but was incorrect here
|
35 |
+
// remove em dash
|
36 |
+
$('#menu-fontsize').remove();
|
37 |
+
// cache all ul elements
|
38 |
+
$ULs = $$.find('ul');
|
39 |
+
// loop through each ul in menu
|
40 |
+
$ULs.each(function(i) {
|
41 |
+
// cache this ul
|
42 |
+
var $ul = $ULs.eq(i);
|
43 |
+
// get all (li) children of this ul
|
44 |
+
var $LIs = $ul.children();
|
45 |
+
// get all anchor grand-children
|
46 |
+
var $As = $LIs.children('a');
|
47 |
+
// force content to one line and save current float property
|
48 |
+
var liFloat = $LIs.css('white-space','nowrap').css('float');
|
49 |
+
// remove width restrictions and floats so elements remain vertically stacked
|
50 |
+
var emWidth = $ul.add($LIs).add($As).css({
|
51 |
+
'float' : 'none',
|
52 |
+
'width' : 'auto'
|
53 |
+
})
|
54 |
+
// this ul will now be shrink-wrapped to longest li due to position:absolute
|
55 |
+
// so save its width as ems. Clientwidth is 2 times faster than .width() - thanks Dan Switzer
|
56 |
+
.end().end()[0].clientWidth / fontsize;
|
57 |
+
// add more width to ensure lines don't turn over at certain sizes in various browsers
|
58 |
+
emWidth += o.extraWidth;
|
59 |
+
// restrict to at least minWidth and at most maxWidth
|
60 |
+
if (emWidth > o.maxWidth) { emWidth = o.maxWidth; }
|
61 |
+
else if (emWidth < o.minWidth) { emWidth = o.minWidth; }
|
62 |
+
emWidth += 'em';
|
63 |
+
// set ul to width in ems
|
64 |
+
$ul.css('width',emWidth);
|
65 |
+
// restore li floats to avoid IE bugs
|
66 |
+
// set li width to full width of this ul
|
67 |
+
// revert white-space to normal
|
68 |
+
$LIs.css({
|
69 |
+
'float' : liFloat,
|
70 |
+
'width' : '100%',
|
71 |
+
'white-space' : 'normal'
|
72 |
+
})
|
73 |
+
// update offset position of descendant ul to reflect new width of parent
|
74 |
+
.each(function(){
|
75 |
+
var $childUl = $('>ul',this);
|
76 |
+
var offsetDirection = $childUl.css('left')!==undefined ? 'left' : 'right';
|
77 |
+
$childUl.css(offsetDirection,emWidth);
|
78 |
+
});
|
79 |
+
});
|
80 |
+
|
81 |
+
});
|
82 |
+
};
|
83 |
+
// expose defaults
|
84 |
+
$.fn.supersubs.defaults = {
|
85 |
+
minWidth : 9, // requires em unit.
|
86 |
+
maxWidth : 25, // requires em unit.
|
87 |
+
extraWidth : 0 // extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values
|
88 |
+
};
|
89 |
+
|
90 |
+
})(jQuery); // plugin code ends
|
shailan-category-walker.php
CHANGED
@@ -31,7 +31,7 @@ class shailan_CategoryWalker extends Walker {
|
|
31 |
* @param int $depth Depth of category. Used for tab indentation.
|
32 |
* @param array $args Will only append content if style argument value is 'list'.
|
33 |
*/
|
34 |
-
function start_lvl(&$output, $depth, $args) {
|
35 |
if ( 'list' != $args['style'] )
|
36 |
return;
|
37 |
|
@@ -47,7 +47,7 @@ class shailan_CategoryWalker extends Walker {
|
|
47 |
* @param int $depth Depth of category. Used for tab indentation.
|
48 |
* @param array $args Will only append content if style argument value is 'list'.
|
49 |
*/
|
50 |
-
function end_lvl(&$output, $depth, $args) {
|
51 |
if ( 'list' != $args['style'] )
|
52 |
return;
|
53 |
|
@@ -64,7 +64,7 @@ class shailan_CategoryWalker extends Walker {
|
|
64 |
* @param int $depth Depth of category in reference to parents.
|
65 |
* @param array $args
|
66 |
*/
|
67 |
-
function start_el(&$output, $
|
68 |
extract($args);
|
69 |
|
70 |
$cat_name = esc_attr( $category->name);
|
@@ -144,7 +144,7 @@ class shailan_CategoryWalker extends Walker {
|
|
144 |
* @param int $depth Depth of category. Not used.
|
145 |
* @param array $args Only uses 'list' for whether should append to output.
|
146 |
*/
|
147 |
-
function end_el(&$output, $
|
148 |
if ( 'list' != $args['style'] )
|
149 |
return;
|
150 |
|
31 |
* @param int $depth Depth of category. Used for tab indentation.
|
32 |
* @param array $args Will only append content if style argument value is 'list'.
|
33 |
*/
|
34 |
+
function start_lvl( &$output, $depth = 0, $args = array() ) {
|
35 |
if ( 'list' != $args['style'] )
|
36 |
return;
|
37 |
|
47 |
* @param int $depth Depth of category. Used for tab indentation.
|
48 |
* @param array $args Will only append content if style argument value is 'list'.
|
49 |
*/
|
50 |
+
function end_lvl( &$output, $depth = 0, $args = array() ) {
|
51 |
if ( 'list' != $args['style'] )
|
52 |
return;
|
53 |
|
64 |
* @param int $depth Depth of category in reference to parents.
|
65 |
* @param array $args
|
66 |
*/
|
67 |
+
function start_el( &$output, $object, $depth = 0, $args = Array(), $current_object_id = 0 ) {
|
68 |
extract($args);
|
69 |
|
70 |
$cat_name = esc_attr( $category->name);
|
144 |
* @param int $depth Depth of category. Not used.
|
145 |
* @param array $args Only uses 'list' for whether should append to output.
|
146 |
*/
|
147 |
+
function end_el( &$output, $object, $depth = 0, $args = Array() ) {
|
148 |
if ( 'list' != $args['style'] )
|
149 |
return;
|
150 |
|
shailan-dropdown-menu-options.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
function help_icon($hash){
|
4 |
-
return " <a href=\"http://
|
5 |
}
|
6 |
|
7 |
// Define themes
|
1 |
<?php
|
2 |
|
3 |
function help_icon($hash){
|
4 |
+
return " <a href=\"http://metinsaylan.com/wordpress/plugins/dropdown-menu/help//#".$hash."\" class=\"help-icon\">(?)</a>";
|
5 |
}
|
6 |
|
7 |
// Define themes
|
shailan-multi-dropdown.php
CHANGED
@@ -2,9 +2,17 @@
|
|
2 |
|
3 |
class shailan_MultiDropDown extends WP_Widget {
|
4 |
/** constructor */
|
5 |
-
function shailan_MultiDropDown() {
|
|
|
6 |
$widget_ops = array('classname' => 'shailan-dropdown-menu shailan-multi-dropdown', 'description' => __( 'Dropdown page & category menu', 'shailan-dropdown-menu' ) );
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
$this->alt_option_name = 'widget_multi_dropdown';
|
9 |
|
10 |
$this->defaults = array(
|
@@ -175,9 +183,10 @@ class shailan_MultiDropDown extends WP_Widget {
|
|
175 |
|
176 |
<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>
|
177 |
|
178 |
-
<div class="widget-control-actions
|
179 |
-
<p><small
|
180 |
-
</div>
|
|
|
181 |
|
182 |
<?php
|
183 |
}
|
2 |
|
3 |
class shailan_MultiDropDown extends WP_Widget {
|
4 |
/** constructor */
|
5 |
+
//function shailan_MultiDropDown() {
|
6 |
+
public function __construct() {
|
7 |
$widget_ops = array('classname' => 'shailan-dropdown-menu shailan-multi-dropdown', 'description' => __( 'Dropdown page & category menu', 'shailan-dropdown-menu' ) );
|
8 |
+
|
9 |
+
parent::__construct(
|
10 |
+
'multi-dropdown-menu',
|
11 |
+
__('Dropdown Multi', 'shailan-multi-dropdown'),
|
12 |
+
$widget_ops
|
13 |
+
);
|
14 |
+
|
15 |
+
|
16 |
$this->alt_option_name = 'widget_multi_dropdown';
|
17 |
|
18 |
$this->defaults = array(
|
183 |
|
184 |
<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>
|
185 |
|
186 |
+
<div class="widget-control-actions">
|
187 |
+
<p><small>Powered by <a href="http://metinsaylan.com/wordpress/plugins/dropdown-menu/" title="Wordpress Tips and tricks, Freelancing, Web Design">MetinSaylan.com</a> | <a href="http://metinsaylan.com/wordpress/" title="Get more wordpress widgets and themes" target="_blank" >Get more..</a></small></p>
|
188 |
+
</div>
|
189 |
+
<br class="clear" />
|
190 |
|
191 |
<?php
|
192 |
}
|
shailan-page-walker.php
CHANGED
@@ -30,7 +30,7 @@ class shailan_PageWalker extends Walker {
|
|
30 |
* @param string $output Passed by reference. Used to append additional content.
|
31 |
* @param int $depth Depth of page. Used for padding.
|
32 |
*/
|
33 |
-
function start_lvl(&$output, $depth) {
|
34 |
$indent = str_repeat("\t", $depth);
|
35 |
$output .= "\n$indent<ul>\n";
|
36 |
}
|
@@ -42,7 +42,7 @@ class shailan_PageWalker extends Walker {
|
|
42 |
* @param string $output Passed by reference. Used to append additional content.
|
43 |
* @param int $depth Depth of page. Used for padding.
|
44 |
*/
|
45 |
-
function end_lvl(&$output, $depth) {
|
46 |
$indent = str_repeat("\t", $depth);
|
47 |
$output .= "$indent</ul>\n";
|
48 |
}
|
@@ -56,7 +56,7 @@ 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, $
|
60 |
if ( $depth )
|
61 |
$indent = str_repeat("\t", $depth);
|
62 |
else
|
@@ -71,11 +71,11 @@ class shailan_PageWalker extends Walker {
|
|
71 |
extract($args, EXTR_SKIP);
|
72 |
|
73 |
$css_class = array('page_item', 'page-item-'.$page->ID);
|
74 |
-
if ( !empty($
|
75 |
-
$_current_page = get_page( $
|
76 |
if ( isset($_current_page->ancestors) && in_array($page->ID, (array) $_current_page->ancestors) )
|
77 |
$css_class[] = 'current_page_ancestor';
|
78 |
-
if ( $page->ID == $
|
79 |
$css_class[] = 'current_page_item';
|
80 |
elseif ( $_current_page && $page->ID == $_current_page->post_parent )
|
81 |
$css_class[] = 'current_page_parent';
|
@@ -105,7 +105,7 @@ class shailan_PageWalker extends Walker {
|
|
105 |
* @param object $page Page data object. Not used.
|
106 |
* @param int $depth Depth of page. Not Used.
|
107 |
*/
|
108 |
-
function end_el(&$output, $
|
109 |
$output .= "</li>\n";
|
110 |
}
|
111 |
}
|
30 |
* @param string $output Passed by reference. Used to append additional content.
|
31 |
* @param int $depth Depth of page. Used for padding.
|
32 |
*/
|
33 |
+
function start_lvl( &$output, $depth = 0, $args = Array() ) {
|
34 |
$indent = str_repeat("\t", $depth);
|
35 |
$output .= "\n$indent<ul>\n";
|
36 |
}
|
42 |
* @param string $output Passed by reference. Used to append additional content.
|
43 |
* @param int $depth Depth of page. Used for padding.
|
44 |
*/
|
45 |
+
function end_lvl( &$output, $depth = 0, $args = Array() ) {
|
46 |
$indent = str_repeat("\t", $depth);
|
47 |
$output .= "$indent</ul>\n";
|
48 |
}
|
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, $object, $depth = 0, $args = Array(), $current_object_id = 0 ) {
|
60 |
if ( $depth )
|
61 |
$indent = str_repeat("\t", $depth);
|
62 |
else
|
71 |
extract($args, EXTR_SKIP);
|
72 |
|
73 |
$css_class = array('page_item', 'page-item-'.$page->ID);
|
74 |
+
if ( !empty($current_object_id) ) {
|
75 |
+
$_current_page = get_page( $current_object_id );
|
76 |
if ( isset($_current_page->ancestors) && in_array($page->ID, (array) $_current_page->ancestors) )
|
77 |
$css_class[] = 'current_page_ancestor';
|
78 |
+
if ( $page->ID == $current_object_id )
|
79 |
$css_class[] = 'current_page_item';
|
80 |
elseif ( $_current_page && $page->ID == $_current_page->post_parent )
|
81 |
$css_class[] = 'current_page_parent';
|
105 |
* @param object $page Page data object. Not used.
|
106 |
* @param int $depth Depth of page. Not Used.
|
107 |
*/
|
108 |
+
function end_el( &$output, $object, $depth = 0, $args = Array() ) {
|
109 |
$output .= "</li>\n";
|
110 |
}
|
111 |
}
|
shailan.DropDownMenu.php
CHANGED
@@ -1,47 +1,49 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Dropdown Menu Widget
|
4 |
-
Plugin URI: http://
|
5 |
-
Description: A multi widget to generate drop-down menus from your pages, categories & navigation menus. You can find more widgets, plugins and themes at <a href="http://
|
6 |
Tags: dropdown, menu, css, css-dropdown, navigation, widget, dropdown-menu, customization, theme, jquery, template, multi-color, theme
|
7 |
-
Version: 1.9.
|
8 |
-
Author:
|
9 |
-
Author URI: http://
|
10 |
Text Domain: shailan-dropdown-menu
|
11 |
*/
|
12 |
|
13 |
-
define('VERSION', '1.9.
|
14 |
|
15 |
class shailan_DropdownWidget extends WP_Widget {
|
16 |
|
17 |
-
function
|
18 |
$widget_ops = array(
|
19 |
'classname' => 'shailan-dropdown-menu-widget',
|
20 |
'description' => __( 'Dropdown page/category/custom menu', 'shailan-dropdown-menu' )
|
21 |
);
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
24 |
$this->alt_option_name = 'widget_dropdown_menu';
|
25 |
|
26 |
$this->pluginname = "Dropdown Menu";
|
27 |
$this->shortname = "shailan_dm";
|
28 |
|
29 |
-
$this->help_url = "http://
|
30 |
|
31 |
$this->version = VERSION;
|
32 |
$this->settings_key = "shailan_dropdown_menu";
|
33 |
$this->options_page = "dropdown-menu";
|
34 |
|
35 |
// Hook up styles
|
36 |
-
add_action( 'wp_head', array(&$this, 'header') );
|
37 |
-
// add_action( 'wp_footer', array(&$this, 'footer'), 10, 1 );
|
38 |
|
39 |
// Hook up scripts
|
40 |
-
/*if(!is_admin()){ */
|
41 |
wp_enqueue_script( 'jquery' );
|
42 |
wp_enqueue_script( 'hoverIntent', plugins_url( '/scripts/hoverIntent.js' , __FILE__ ) , array('jquery') );
|
43 |
wp_enqueue_script( 'dropdown-ie-support', plugins_url( '/scripts/include.js' , __FILE__ ) , array('jquery') );
|
44 |
-
/*}*/
|
45 |
|
46 |
// Include options array
|
47 |
require_once("shailan-dropdown-menu-options.php");
|
@@ -71,7 +73,6 @@ function admin_header(){
|
|
71 |
|
72 |
// Options page styles
|
73 |
wp_enqueue_style( 'farbtastic' );
|
74 |
-
wp_enqueue_style( "google-droid-sans", "http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold&v1", false, "1.0", "all");
|
75 |
wp_enqueue_style( "dropdown-admin", plugins_url( '/css/dropdown-admin.css' , __FILE__ ) , false, "1.0", "all");
|
76 |
|
77 |
// Options page scripts
|
@@ -85,11 +86,13 @@ function admin_header(){
|
|
85 |
$settings = $this->get_settings();
|
86 |
|
87 |
// Set updated values
|
88 |
-
foreach($this->options as $option){
|
89 |
-
if(
|
90 |
-
$
|
91 |
-
|
92 |
-
|
|
|
|
|
93 |
}
|
94 |
}
|
95 |
|
@@ -196,28 +199,13 @@ function options_page(){
|
|
196 |
$current = $this->get_plugin_settings();
|
197 |
|
198 |
$messages = array(
|
199 |
-
"1" => __("Dropdown Menu Widget settings saved.", "shailan-dropdown-menu"),
|
200 |
-
"2" => __("Dropdown Menu Widget settings reset.", "shailan-dropdown-menu")
|
201 |
);
|
202 |
|
203 |
-
$navigation = '<div id="stf_nav"><a href="http://
|
204 |
|
205 |
-
<
|
206 |
-
<div class="share-label">
|
207 |
-
Like this plugin?
|
208 |
-
</div>
|
209 |
-
<div class="share-button tweet">
|
210 |
-
<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://shailan.com/wordpress/plugins/dropdown-menu/" data-text="I am using #dropdownmenu #widget by shailan on my #wordpress blog, Check this out!" data-count="horizontal" data-via="shailancom">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
|
211 |
-
</div>
|
212 |
-
<div class="share-button facebook">
|
213 |
-
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
|
214 |
-
<fb:like href="http://shailan.com/wordpress/plugins/dropdown-menu/" ref="plugin_options" show_faces="false" width="300" font="segoe ui"></fb:like>
|
215 |
-
</div>
|
216 |
-
</div>
|
217 |
-
|
218 |
-
';
|
219 |
-
|
220 |
-
$footer_text = '<em><a href="http://shailan.com/wordpress/plugins/dropdown-menu/">Dropdown Menu Widget</a> by <a href="http://shailan.com/">SHAILAN</a></em>';
|
221 |
|
222 |
include_once( "stf-page-options.php" );
|
223 |
|
@@ -258,7 +246,7 @@ function options_page(){
|
|
258 |
|
259 |
$nl = "\n"; $indent = "\n\t"; $indent2 = "\n\t\t";
|
260 |
|
261 |
-
echo $nl . "<!-- Dropdown Menu Widget by
|
262 |
echo $nl . "<!-- Menu Type : " . $type . " -->";
|
263 |
echo $nl . "<div class=\"shailan-dropdown-menu\" >";
|
264 |
|
@@ -411,6 +399,7 @@ function options_page(){
|
|
411 |
* WIDGET FORM
|
412 |
******************************************************************************/
|
413 |
function form($instance) {
|
|
|
414 |
$widget_options = wp_parse_args( $instance, $this->widget_defaults );
|
415 |
extract( $widget_options, EXTR_SKIP );
|
416 |
|
@@ -465,7 +454,7 @@ function options_page(){
|
|
465 |
'From URL' => '*url*',
|
466 |
'Custom CSS' => '*custom*',
|
467 |
'Color Scheme' => 'color-scheme',
|
468 |
-
'Web 2.0 by
|
469 |
'Simple White' => plugins_url('/themes/simple.css', __FILE__),
|
470 |
'Wordpress Default' => plugins_url('/themes/wpdefault.css', __FILE__),
|
471 |
'Grayscale' => plugins_url('/themes/grayscale.css', __FILE__),
|
@@ -477,9 +466,9 @@ function options_page(){
|
|
477 |
'Adobe theme' => plugins_url('/themes/adobe.com/default.advanced.css', __FILE__),
|
478 |
'MTV theme' => plugins_url('/themes/mtv.com/default.ultimate.css', __FILE__),
|
479 |
'Hulu theme' => plugins_url('/themes/hulu/hulu.css', __FILE__),
|
480 |
-
'Rounded Corners by
|
481 |
-
'Rounded Corners Light by
|
482 |
-
'Pills by
|
483 |
);
|
484 |
|
485 |
$theme_names = array_flip($available_themes);
|
@@ -490,7 +479,7 @@ function options_page(){
|
|
490 |
</p>
|
491 |
|
492 |
<div class="widget-control-actions">
|
493 |
-
<p><small>Powered by <a href="http://
|
494 |
</div>
|
495 |
<br class="clear" />
|
496 |
|
@@ -520,7 +509,7 @@ function options_page(){
|
|
520 |
$shailan_dm_color_hoverlink = $this->get_plugin_setting('shailan_dm_color_hoverlink');
|
521 |
$is_fx_active = (bool) ( 'on' == $this->get_plugin_setting('shailan_dm_effects') );
|
522 |
|
523 |
-
echo "\n\n<!-- Dropdown Menu Widget Styles by shailan (http://
|
524 |
echo "\n<link rel=\"stylesheet\" href=\"". plugins_url( '/css/shailan-dropdown.min.css' , __FILE__ ) . "\" type=\"text/css\" />";
|
525 |
|
526 |
if( $theme!='*none*' && $theme != '*custom*' ){
|
@@ -670,7 +659,7 @@ ul.dropdown li li.parent:hover>a:after{
|
|
670 |
|
671 |
if( $is_fx_active || $remove_title_attributes || $remove_top_level_links ){
|
672 |
|
673 |
-
echo "\n\n<!-- Dropdown Menu Widget Effects by shailan (http://
|
674 |
echo "\n<script type=\"text/javascript\">/* <![CDATA[ */";
|
675 |
echo "\njQuery(document).ready(function($) { \n";
|
676 |
|
@@ -741,7 +730,7 @@ ul.dropdown li li.parent:hover>a:after{
|
|
741 |
function get_dropdown_setting( $key, $default = '' ) {
|
742 |
$settings = get_option('shailan_dropdown_menu');
|
743 |
|
744 |
-
if( array_key_exists($key, $settings) ){
|
745 |
return $settings[ $key ];
|
746 |
} else {
|
747 |
return $default;
|
@@ -835,6 +824,7 @@ function shailan_nav_menu_args_filter( $args ){
|
|
835 |
|
836 |
if( 'on' == $replace_enabled ){
|
837 |
$theme_location = get_dropdown_setting( 'shailan_dm_location' );
|
|
|
838 |
if( $args['theme_location'] == $theme_location ){
|
839 |
$args['fallback_cb'] = 'shailan_dropdown_menu';
|
840 |
}
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Dropdown Menu Widget
|
4 |
+
Plugin URI: http://metinsaylan.com/wordpress/plugins/dropdown-menu
|
5 |
+
Description: A multi widget to generate drop-down menus from your pages, categories & navigation menus. You can find more widgets, plugins and themes at <a href="http://metinsaylan.com">metinsaylan.com</a>.
|
6 |
Tags: dropdown, menu, css, css-dropdown, navigation, widget, dropdown-menu, customization, theme, jquery, template, multi-color, theme
|
7 |
+
Version: 1.9.5
|
8 |
+
Author: Metin Saylan
|
9 |
+
Author URI: http://metinsaylan.com/
|
10 |
Text Domain: shailan-dropdown-menu
|
11 |
*/
|
12 |
|
13 |
+
define('VERSION', '1.9.5');
|
14 |
|
15 |
class shailan_DropdownWidget extends WP_Widget {
|
16 |
|
17 |
+
public function __construct() {
|
18 |
$widget_ops = array(
|
19 |
'classname' => 'shailan-dropdown-menu-widget',
|
20 |
'description' => __( 'Dropdown page/category/custom menu', 'shailan-dropdown-menu' )
|
21 |
);
|
22 |
|
23 |
+
parent::__construct(
|
24 |
+
'dropdown-menu',
|
25 |
+
__('Dropdown Menu', 'shailan-dropdown-menu'),
|
26 |
+
$widget_ops
|
27 |
+
);
|
28 |
+
|
29 |
$this->alt_option_name = 'widget_dropdown_menu';
|
30 |
|
31 |
$this->pluginname = "Dropdown Menu";
|
32 |
$this->shortname = "shailan_dm";
|
33 |
|
34 |
+
$this->help_url = "http://metinsaylan.com/wordpress/plugins/dropdown-menu/help/";
|
35 |
|
36 |
$this->version = VERSION;
|
37 |
$this->settings_key = "shailan_dropdown_menu";
|
38 |
$this->options_page = "dropdown-menu";
|
39 |
|
40 |
// Hook up styles
|
41 |
+
add_action( 'wp_head', array(&$this, 'header') );
|
|
|
42 |
|
43 |
// Hook up scripts
|
|
|
44 |
wp_enqueue_script( 'jquery' );
|
45 |
wp_enqueue_script( 'hoverIntent', plugins_url( '/scripts/hoverIntent.js' , __FILE__ ) , array('jquery') );
|
46 |
wp_enqueue_script( 'dropdown-ie-support', plugins_url( '/scripts/include.js' , __FILE__ ) , array('jquery') );
|
|
|
47 |
|
48 |
// Include options array
|
49 |
require_once("shailan-dropdown-menu-options.php");
|
73 |
|
74 |
// Options page styles
|
75 |
wp_enqueue_style( 'farbtastic' );
|
|
|
76 |
wp_enqueue_style( "dropdown-admin", plugins_url( '/css/dropdown-admin.css' , __FILE__ ) , false, "1.0", "all");
|
77 |
|
78 |
// Options page scripts
|
86 |
$settings = $this->get_settings();
|
87 |
|
88 |
// Set updated values
|
89 |
+
foreach($this->options as $option){
|
90 |
+
if( array_key_exists( 'id', $option ) ){
|
91 |
+
if( $option['type'] == 'checkbox' && empty( $_REQUEST[ $option['id'] ] ) ) {
|
92 |
+
$settings[ $option['id'] ] = 'off';
|
93 |
+
} else {
|
94 |
+
$settings[ $option['id'] ] = $_REQUEST[ $option['id'] ];
|
95 |
+
}
|
96 |
}
|
97 |
}
|
98 |
|
199 |
$current = $this->get_plugin_settings();
|
200 |
|
201 |
$messages = array(
|
202 |
+
"1" => __("Dropdown Menu Widget settings are saved.", "shailan-dropdown-menu"),
|
203 |
+
"2" => __("Dropdown Menu Widget settings are reset.", "shailan-dropdown-menu")
|
204 |
);
|
205 |
|
206 |
+
$navigation = '<div id="stf_nav"><a href="http://metinsaylan.com/wordpress/plugins/dropdown-menu/">Plugin page</a> | <a href="http://metinsaylan.com/wordpress/plugins/dropdown-menu/help/">Usage</a> | <a href="http://metinsaylan.com/donate/">Donate</a> | <a href="http://metinsaylan.com/wordpress/plugins/">Get more plugins..</a></div>';
|
207 |
|
208 |
+
$footer_text = '<em><a href="http://metinsaylan.com/wordpress/plugins/dropdown-menu/">Dropdown Menu Widget</a> by <a href="http://metinsaylan.com/">SHAILAN</a></em>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
|
210 |
include_once( "stf-page-options.php" );
|
211 |
|
246 |
|
247 |
$nl = "\n"; $indent = "\n\t"; $indent2 = "\n\t\t";
|
248 |
|
249 |
+
echo $nl . "<!-- Dropdown Menu Widget by metinsaylan.com (http://metinsaylan.com) v". VERSION ." on wp".get_bloginfo( 'version' )." -->";
|
250 |
echo $nl . "<!-- Menu Type : " . $type . " -->";
|
251 |
echo $nl . "<div class=\"shailan-dropdown-menu\" >";
|
252 |
|
399 |
* WIDGET FORM
|
400 |
******************************************************************************/
|
401 |
function form($instance) {
|
402 |
+
|
403 |
$widget_options = wp_parse_args( $instance, $this->widget_defaults );
|
404 |
extract( $widget_options, EXTR_SKIP );
|
405 |
|
454 |
'From URL' => '*url*',
|
455 |
'Custom CSS' => '*custom*',
|
456 |
'Color Scheme' => 'color-scheme',
|
457 |
+
'Web 2.0 by MetinSaylan' => plugins_url('/themes/web20.css', __FILE__),
|
458 |
'Simple White' => plugins_url('/themes/simple.css', __FILE__),
|
459 |
'Wordpress Default' => plugins_url('/themes/wpdefault.css', __FILE__),
|
460 |
'Grayscale' => plugins_url('/themes/grayscale.css', __FILE__),
|
466 |
'Adobe theme' => plugins_url('/themes/adobe.com/default.advanced.css', __FILE__),
|
467 |
'MTV theme' => plugins_url('/themes/mtv.com/default.ultimate.css', __FILE__),
|
468 |
'Hulu theme' => plugins_url('/themes/hulu/hulu.css', __FILE__),
|
469 |
+
'Rounded Corners by MetinSaylan' => plugins_url('/themes/rounded-corners.css', __FILE__),
|
470 |
+
'Rounded Corners Light by MetinSaylan' => plugins_url('/themes/rounded-corners-light.css', __FILE__),
|
471 |
+
'Pills by MetinSaylan' => plugins_url('/themes/pills.css', __FILE__)
|
472 |
);
|
473 |
|
474 |
$theme_names = array_flip($available_themes);
|
479 |
</p>
|
480 |
|
481 |
<div class="widget-control-actions">
|
482 |
+
<p><small>Powered by <a href="http://metinsaylan.com/wordpress/plugins/dropdown-menu/" title="Wordpress Tips and tricks, Freelancing, Web Design">MetinSaylan.com</a> | <a href="http://metinsaylan.com/wordpress/" title="Get more wordpress widgets and themes" target="_blank" >Get more..</a></small></p>
|
483 |
</div>
|
484 |
<br class="clear" />
|
485 |
|
509 |
$shailan_dm_color_hoverlink = $this->get_plugin_setting('shailan_dm_color_hoverlink');
|
510 |
$is_fx_active = (bool) ( 'on' == $this->get_plugin_setting('shailan_dm_effects') );
|
511 |
|
512 |
+
echo "\n\n<!-- Dropdown Menu Widget Styles by shailan (http://metinsaylan.com) v" . VERSION . " on wp" . get_bloginfo( 'version' ) . " -->"; // For debug
|
513 |
echo "\n<link rel=\"stylesheet\" href=\"". plugins_url( '/css/shailan-dropdown.min.css' , __FILE__ ) . "\" type=\"text/css\" />";
|
514 |
|
515 |
if( $theme!='*none*' && $theme != '*custom*' ){
|
659 |
|
660 |
if( $is_fx_active || $remove_title_attributes || $remove_top_level_links ){
|
661 |
|
662 |
+
echo "\n\n<!-- Dropdown Menu Widget Effects by shailan (http://metinsaylan.com) v". VERSION ." on wp".get_bloginfo( 'version' )." -->"; // For debug
|
663 |
echo "\n<script type=\"text/javascript\">/* <![CDATA[ */";
|
664 |
echo "\njQuery(document).ready(function($) { \n";
|
665 |
|
730 |
function get_dropdown_setting( $key, $default = '' ) {
|
731 |
$settings = get_option('shailan_dropdown_menu');
|
732 |
|
733 |
+
if( array_key_exists( $key, $settings ) ){
|
734 |
return $settings[ $key ];
|
735 |
} else {
|
736 |
return $default;
|
824 |
|
825 |
if( 'on' == $replace_enabled ){
|
826 |
$theme_location = get_dropdown_setting( 'shailan_dm_location' );
|
827 |
+
|
828 |
if( $args['theme_location'] == $theme_location ){
|
829 |
$args['fallback_cb'] = 'shailan_dropdown_menu';
|
830 |
}
|
stf-page-options.php
CHANGED
@@ -13,30 +13,19 @@
|
|
13 |
|
14 |
|
15 |
<div id="shailancom">
|
16 |
-
|
17 |
-
<div id="donate">
|
18 |
-
This plugin is FREE, </br> If you like it, please support it. <br />
|
19 |
-
<div class="center">
|
20 |
-
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
21 |
-
<input type="hidden" name="cmd" value="_s-xclick" />
|
22 |
-
<input type="hidden" name="hosted_button_id" value="2UF8Y5ZSHAGZL" />
|
23 |
-
<input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110306-1/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" />
|
24 |
-
<img alt="" src="https://www.paypalobjects.com/WEBSCR-640-20110306-1/en_US/i/scr/pixel.gif" width="1" height="1" />
|
25 |
-
</form>
|
26 |
-
</div>
|
27 |
-
</div>
|
28 |
-
|
29 |
-
<div id="stf_tweet_wrap">
|
30 |
-
<a href="http://twitter.com/shailancom" class="follow-link">Follow Shailan.com on twitter!</a>
|
31 |
-
</div>
|
32 |
-
|
33 |
<div id="headlines">
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
<?php
|
36 |
//echo get_latest_tweet('mattsay');
|
37 |
|
38 |
$rss_options = array(
|
39 |
-
'link' => 'http://
|
40 |
'url' => 'http://feeds.feedburner.com/shailan',
|
41 |
'title' => 'Shailan.com',
|
42 |
'items' => 5,
|
@@ -59,7 +48,7 @@
|
|
59 |
|
60 |
|
61 |
<div id="demo"><h3>Menu Demo:</h3><?php shailan_dropdown_menu(); ?><br />
|
62 |
-
<em>Please note, demo uses <a href="http://
|
63 |
|
64 |
|
65 |
<form method="post">
|
13 |
|
14 |
|
15 |
<div id="shailancom">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
<div id="headlines">
|
17 |
+
|
18 |
+
<h3>User Survey</h3>
|
19 |
+
<p>
|
20 |
+
Please <a href="https://docs.google.com/forms/u/0/d/e/1FAIpQLSe0kpN2Ak2pmRwkWlDf8_pMoHPokjGPrFYi1yd6v0TmnahGug/viewform?usp=sf_link" rel="_blank">take our little survey</a> to help us improve this plugin. <p>
|
21 |
+
|
22 |
+
<h3>Metin Saylan's Blog</h3>
|
23 |
+
<em>Latest Headlines</em>
|
24 |
<?php
|
25 |
//echo get_latest_tweet('mattsay');
|
26 |
|
27 |
$rss_options = array(
|
28 |
+
'link' => 'http://metinsaylan.com',
|
29 |
'url' => 'http://feeds.feedburner.com/shailan',
|
30 |
'title' => 'Shailan.com',
|
31 |
'items' => 5,
|
48 |
|
49 |
|
50 |
<div id="demo"><h3>Menu Demo:</h3><?php shailan_dropdown_menu(); ?><br />
|
51 |
+
<em>Please note, demo uses <a href="http://metinsaylan.com/2773/dropdown-menu-widget-template-tag-usage-explained/" target="_blank">php template tag</a>.</em></div>
|
52 |
|
53 |
|
54 |
<form method="post">
|
themes/aqua.css
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
@charset "UTF-8";
|
2 |
|
3 |
/** Container */
|
4 |
-
.shailan-dropdown-menu .dropdown-horizontal-container{ background:transparent url(images/trans-white.png); margin:7px; padding:5px;
|
5 |
border-radius:7px; -moz-border-radius:7px; -webkit-border-radius:7px;
|
6 |
filter: alpha(opacity=60); -moz-opacity: .8; KhtmlOpacity: .8; opacity: .8;}
|
7 |
|
8 |
-
.shailan-dropdown-menu .dropdown-vertical-container{ background:transparent url(images/trans-white.png); margin:7px; padding:5px;
|
9 |
border-radius:7px; -moz-border-radius:7px; -webkit-border-radius:7px;
|
10 |
filter: alpha(opacity=60); -moz-opacity: .8; KhtmlOpacity: .8; opacity: .8;}
|
11 |
|
1 |
@charset "UTF-8";
|
2 |
|
3 |
/** Container */
|
4 |
+
.shailan-dropdown-menu .dropdown-horizontal-container{ background:transparent url(images/trans-white.png); margin:7px; padding:5px; border:1px solid rgba(255, 255, 255, 0.3);
|
5 |
border-radius:7px; -moz-border-radius:7px; -webkit-border-radius:7px;
|
6 |
filter: alpha(opacity=60); -moz-opacity: .8; KhtmlOpacity: .8; opacity: .8;}
|
7 |
|
8 |
+
.shailan-dropdown-menu .dropdown-vertical-container{ background:transparent url(images/trans-white.png); margin:7px; padding:5px; border:1px solid rgba(255, 255, 255, 0.3);
|
9 |
border-radius:7px; -moz-border-radius:7px; -webkit-border-radius:7px;
|
10 |
filter: alpha(opacity=60); -moz-opacity: .8; KhtmlOpacity: .8; opacity: .8;}
|
11 |
|
themes/grayscale.css
CHANGED
@@ -29,7 +29,7 @@ ul.dropdown a:hover { color: #fff; }
|
|
29 |
ul.dropdown a:active { color: #fff; }
|
30 |
|
31 |
/** Sub menus */
|
32 |
-
ul.dropdown ul { margin-top: 0px; margin-left:-1px;
|
33 |
ul.dropdown ul li { background:#c2c2c2; text-align: left; border-left:1px solid #999; border-top:1px solid #999; }
|
34 |
|
35 |
/** Current menu item */
|
29 |
ul.dropdown a:active { color: #fff; }
|
30 |
|
31 |
/** Sub menus */
|
32 |
+
ul.dropdown ul { margin-top: 0px; margin-left:-1px; }
|
33 |
ul.dropdown ul li { background:#c2c2c2; text-align: left; border-left:1px solid #999; border-top:1px solid #999; }
|
34 |
|
35 |
/** Current menu item */
|
themes/pills.css
CHANGED
@@ -1,61 +1,58 @@
|
|
1 |
-
@charset "UTF-8";
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
}
|
16 |
-
|
17 |
-
ul.dropdown-align-
|
18 |
-
ul.dropdown-align-
|
19 |
-
|
20 |
-
ul.dropdown-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
}
|
26 |
-
|
27 |
-
ul.dropdown
|
28 |
-
ul.dropdown-
|
29 |
-
ul.dropdown-horizontal.dropdown-align-
|
30 |
-
ul.dropdown-horizontal.dropdown-align-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
ul.dropdown
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
}
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
ul.dropdown
|
46 |
-
|
47 |
-
|
48 |
-
ul.dropdown ul { background:
|
49 |
-
ul.dropdown
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
li.
|
58 |
-
|
59 |
-
/** Ancestor */
|
60 |
-
li.current_page_ancestor>a,li.current_page_ancestor>a:visited, li.current_page_ancestor>a:link { color: #444; }
|
61 |
-
li.current-menu-ancestor>a,li.current-menu-ancestor>a:visited, li.current-menu-ancestor>a:link { color: #444; }
|
1 |
+
@charset "UTF-8";
|
2 |
+
|
3 |
+
/** Container */
|
4 |
+
.shailan-dropdown-menu .dropdown-horizontal-container{
|
5 |
+
background: transparent;
|
6 |
+
font-weight:bold;
|
7 |
+
margin: 10px 0 15px;
|
8 |
+
}
|
9 |
+
|
10 |
+
ul.dropdown li {
|
11 |
+
border-radius: 16px;
|
12 |
+
background:rgba(0,0,0,0.4);
|
13 |
+
}
|
14 |
+
|
15 |
+
ul.dropdown-align-left li, ul.dropdown-align-center li { margin: 2px 10px 0 0; }
|
16 |
+
ul.dropdown-align-left ul li, ul.dropdown-align-center ul li { margin: 0; }
|
17 |
+
ul.dropdown-align-right li { margin: 2px 0px 0 10px; }
|
18 |
+
ul.dropdown-align-right ul li { margin: 0; }
|
19 |
+
|
20 |
+
ul.dropdown-horizontal li.parent:hover, ul.dropdown-horizontal li.parent.hover{
|
21 |
+
border-bottom-left-radius: 0;
|
22 |
+
border-bottom-right-radius: 0;
|
23 |
+
}
|
24 |
+
|
25 |
+
ul.dropdown ul li { }
|
26 |
+
ul.dropdown-vertical>li{ }
|
27 |
+
ul.dropdown-horizontal.dropdown-align-left>li { }
|
28 |
+
ul.dropdown-horizontal.dropdown-align-left>li:last-child { }
|
29 |
+
ul.dropdown-horizontal.dropdown-align-right>li { }
|
30 |
+
ul.dropdown-horizontal.dropdown-align-right>li:first-child { }
|
31 |
+
|
32 |
+
/** Right align fix */
|
33 |
+
ul.dropdown-align-right li{ }
|
34 |
+
|
35 |
+
ul.dropdown li a {
|
36 |
+
padding: 5px 15px;
|
37 |
+
line-height: 22px;
|
38 |
+
}
|
39 |
+
|
40 |
+
/** Link colors */
|
41 |
+
ul.dropdown a, ul.dropdown a:link, ul.dropdown a:visited { color: #EEE; text-decoration: none; display:block; }
|
42 |
+
ul.dropdown a:hover { color: #FFF; text-shadow: #222 1px 1px 1px; }
|
43 |
+
|
44 |
+
/** Sub menus */
|
45 |
+
ul.dropdown ul { background:rgba(0,0,0,0.4); border-radius: 8px; padding: 7px 0; }
|
46 |
+
ul.dropdown-align-left ul, ul.dropdown-align-center ul { border-top-left-radius: 0; }
|
47 |
+
ul.dropdown-align-right ul { border-top-right-radius: 0; }
|
48 |
+
ul.dropdown ul li { background: transparent; }
|
49 |
+
ul.dropdown ul li a{ padding:2px 15px; }
|
50 |
+
|
51 |
+
/** Current menu item */
|
52 |
+
li.current-cat>a, li.current_page_item>a, li.current-menu-item>a,
|
53 |
+
li.current-cat>a:link, li.current_page_item>a:link, li.current-menu-item>a:link,
|
54 |
+
li.current-cat>a:visited, li.current_page_item>a:visited, li.current-menu-item>a:visited{ color: #444; }
|
55 |
+
|
56 |
+
/** Ancestor */
|
57 |
+
li.current_page_ancestor>a,li.current_page_ancestor>a:visited, li.current_page_ancestor>a:link { color: #444; }
|
58 |
+
li.current-menu-ancestor>a,li.current-menu-ancestor>a:visited, li.current-menu-ancestor>a:link { color: #444; }
|
|
|
|
|
|
themes/rounded-corners-light.css
CHANGED
@@ -1,47 +1,44 @@
|
|
1 |
-
@charset "UTF-8";
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
}
|
11 |
-
|
12 |
-
ul.dropdown
|
13 |
-
ul.dropdown
|
14 |
-
ul.dropdown-
|
15 |
-
ul.dropdown-horizontal.dropdown-align-
|
16 |
-
ul.dropdown-horizontal.dropdown-align-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
ul.dropdown
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
}
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
ul.dropdown
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
li.
|
44 |
-
|
45 |
-
/** Ancestor */
|
46 |
-
li.current_page_ancestor>a,li.current_page_ancestor>a:visited, li.current_page_ancestor>a:link { color: #444; }
|
47 |
-
li.current-menu-ancestor>a,li.current-menu-ancestor>a:visited, li.current-menu-ancestor>a:link { color: #444; }
|
1 |
+
@charset "UTF-8";
|
2 |
+
|
3 |
+
/** Container */
|
4 |
+
.shailan-dropdown-menu .dropdown-horizontal-container{
|
5 |
+
background: transparent;
|
6 |
+
font-weight:bold;
|
7 |
+
margin: 10px 0 15px;
|
8 |
+
}
|
9 |
+
|
10 |
+
ul.dropdown li { }
|
11 |
+
ul.dropdown ul li { }
|
12 |
+
ul.dropdown-vertical>li{ }
|
13 |
+
ul.dropdown-horizontal.dropdown-align-left>li { }
|
14 |
+
ul.dropdown-horizontal.dropdown-align-left>li:last-child { }
|
15 |
+
ul.dropdown-horizontal.dropdown-align-right>li { }
|
16 |
+
ul.dropdown-horizontal.dropdown-align-right>li:first-child { }
|
17 |
+
|
18 |
+
/** Right align fix */
|
19 |
+
ul.dropdown-align-right li{ }
|
20 |
+
|
21 |
+
ul.dropdown li a {
|
22 |
+
padding: 5px 15px;
|
23 |
+
line-height: 22px;
|
24 |
+
border-radius: 4px;
|
25 |
+
background:rgba(200,200,200,0.4);
|
26 |
+
}
|
27 |
+
|
28 |
+
/** Link colors */
|
29 |
+
ul.dropdown a, ul.dropdown a:link, ul.dropdown a:visited { color: #222; text-decoration: none; display:block; margin: 2px 6px 0 0; }
|
30 |
+
ul.dropdown a:hover { color: #444; }
|
31 |
+
|
32 |
+
/** Sub menus */
|
33 |
+
ul.dropdown ul { }
|
34 |
+
ul.dropdown ul li { }
|
35 |
+
ul.dropdown ul li a{ }
|
36 |
+
|
37 |
+
/** Current menu item */
|
38 |
+
li.current-cat>a, li.current_page_item>a, li.current-menu-item>a,
|
39 |
+
li.current-cat>a:link, li.current_page_item>a:link, li.current-menu-item>a:link,
|
40 |
+
li.current-cat>a:visited, li.current_page_item>a:visited, li.current-menu-item>a:visited{ color: #444; }
|
41 |
+
|
42 |
+
/** Ancestor */
|
43 |
+
li.current_page_ancestor>a,li.current_page_ancestor>a:visited, li.current_page_ancestor>a:link { color: #444; }
|
44 |
+
li.current-menu-ancestor>a,li.current-menu-ancestor>a:visited, li.current-menu-ancestor>a:link { color: #444; }
|
|
|
|
|
|
themes/rounded-corners.css
CHANGED
@@ -1,47 +1,44 @@
|
|
1 |
-
@charset "UTF-8";
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
}
|
11 |
-
|
12 |
-
ul.dropdown
|
13 |
-
ul.dropdown
|
14 |
-
ul.dropdown-
|
15 |
-
ul.dropdown-horizontal.dropdown-align-
|
16 |
-
ul.dropdown-horizontal.dropdown-align-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
ul.dropdown
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
}
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
ul.dropdown
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
li.
|
44 |
-
|
45 |
-
/** Ancestor */
|
46 |
-
li.current_page_ancestor>a,li.current_page_ancestor>a:visited, li.current_page_ancestor>a:link { color: #444; }
|
47 |
-
li.current-menu-ancestor>a,li.current-menu-ancestor>a:visited, li.current-menu-ancestor>a:link { color: #444; }
|
1 |
+
@charset "UTF-8";
|
2 |
+
|
3 |
+
/** Container */
|
4 |
+
.shailan-dropdown-menu .dropdown-horizontal-container{
|
5 |
+
background: transparent;
|
6 |
+
font-weight:bold;
|
7 |
+
margin: 10px 0 15px;
|
8 |
+
}
|
9 |
+
|
10 |
+
ul.dropdown li { }
|
11 |
+
ul.dropdown ul li { }
|
12 |
+
ul.dropdown-vertical>li{ }
|
13 |
+
ul.dropdown-horizontal.dropdown-align-left>li { }
|
14 |
+
ul.dropdown-horizontal.dropdown-align-left>li:last-child { }
|
15 |
+
ul.dropdown-horizontal.dropdown-align-right>li { }
|
16 |
+
ul.dropdown-horizontal.dropdown-align-right>li:first-child { }
|
17 |
+
|
18 |
+
/** Right align fix */
|
19 |
+
ul.dropdown-align-right li{ }
|
20 |
+
|
21 |
+
ul.dropdown li a {
|
22 |
+
padding: 5px 15px;
|
23 |
+
line-height: 22px;
|
24 |
+
border-radius: 4px;
|
25 |
+
background:rgba(0,0,0,0.4);
|
26 |
+
}
|
27 |
+
|
28 |
+
/** Link colors */
|
29 |
+
ul.dropdown a, ul.dropdown a:link, ul.dropdown a:visited { color: #fff; text-decoration: none; display:block; margin: 2px 6px 0 0; }
|
30 |
+
ul.dropdown a:hover { color: #444; }
|
31 |
+
|
32 |
+
/** Sub menus */
|
33 |
+
ul.dropdown ul { }
|
34 |
+
ul.dropdown ul li { }
|
35 |
+
ul.dropdown ul li a{ }
|
36 |
+
|
37 |
+
/** Current menu item */
|
38 |
+
li.current-cat>a, li.current_page_item>a, li.current-menu-item>a,
|
39 |
+
li.current-cat>a:link, li.current_page_item>a:link, li.current-menu-item>a:link,
|
40 |
+
li.current-cat>a:visited, li.current_page_item>a:visited, li.current-menu-item>a:visited{ color: #444; }
|
41 |
+
|
42 |
+
/** Ancestor */
|
43 |
+
li.current_page_ancestor>a,li.current_page_ancestor>a:visited, li.current_page_ancestor>a:link { color: #444; }
|
44 |
+
li.current-menu-ancestor>a,li.current-menu-ancestor>a:visited, li.current-menu-ancestor>a:link { color: #444; }
|
|
|
|
|
|
themes/simple-blue.css
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
/** Container */
|
4 |
.shailan-dropdown-menu .dropdown-horizontal-container, .shailan-dropdown-menu ul.dropdown-vertical>li { background: url(images/blue-gradient/menu_bg.png) -6px 0px no-repeat; height:40px;
|
5 |
-
font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
|
6 |
/* .dropdown-horizontal-container{ background:url(images/blue-gradient/menu_bg.png) top right no-repeat; height:40px; margin-left:15px; margin-right:-15px; } */
|
7 |
|
8 |
ul.dropdown{ padding:0px 0px 0px 20px;}
|
2 |
|
3 |
/** Container */
|
4 |
.shailan-dropdown-menu .dropdown-horizontal-container, .shailan-dropdown-menu ul.dropdown-vertical>li { background: url(images/blue-gradient/menu_bg.png) -6px 0px no-repeat; height:40px;
|
5 |
+
font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; }
|
6 |
/* .dropdown-horizontal-container{ background:url(images/blue-gradient/menu_bg.png) top right no-repeat; height:40px; margin-left:15px; margin-right:-15px; } */
|
7 |
|
8 |
ul.dropdown{ padding:0px 0px 0px 20px;}
|
themes/web20.css
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
@charset "UTF-8";
|
2 |
-
@import url('http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold&v1');
|
3 |
|
4 |
/** Container */
|
5 |
.shailan-dropdown-menu .dropdown-horizontal-container{
|
@@ -24,14 +23,11 @@
|
|
24 |
border: 1px solid #ccc;
|
25 |
padding: 4px;
|
26 |
position: relative;
|
27 |
-
|
28 |
-
font-family:'Droid Sans', Arial, sans-serif;
|
29 |
-
font-size: 12px;
|
30 |
}
|
31 |
|
32 |
ul.dropdown li { color: #555; text-align:center; }
|
33 |
ul.dropdown ul li { text-align: left; }
|
34 |
-
ul.dropdown-vertical>li{ border-
|
35 |
ul.dropdown-horizontal.dropdown-align-left>li { border-right:1px solid #ccc; }
|
36 |
ul.dropdown-horizontal.dropdown-align-left>li:last-child { border-right:0; }
|
37 |
ul.dropdown-horizontal.dropdown-align-right>li { border-left:1px solid #ccc; }
|
1 |
@charset "UTF-8";
|
|
|
2 |
|
3 |
/** Container */
|
4 |
.shailan-dropdown-menu .dropdown-horizontal-container{
|
23 |
border: 1px solid #ccc;
|
24 |
padding: 4px;
|
25 |
position: relative;
|
|
|
|
|
|
|
26 |
}
|
27 |
|
28 |
ul.dropdown li { color: #555; text-align:center; }
|
29 |
ul.dropdown ul li { text-align: left; }
|
30 |
+
ul.dropdown-vertical>li{ border-bottom:1px solid #ddd; }
|
31 |
ul.dropdown-horizontal.dropdown-align-left>li { border-right:1px solid #ccc; }
|
32 |
ul.dropdown-horizontal.dropdown-align-left>li:last-child { border-right:0; }
|
33 |
ul.dropdown-horizontal.dropdown-align-right>li { border-left:1px solid #ccc; }
|