WP Social Bookmarking Light - Version 1.6.0

Version Description

  • Added: Hatena Bookmark Button.
  • Updated: admin setting page.
  • Bug fixed: Twitter button did not work on the top page. Thanks to yuya-takeyama++
  • Bug fixed: Mixi button did not work on the top page.
Download this release

Release Info

Developer utahvich
Plugin Icon wp plugin WP Social Bookmarking Light
Version 1.6.0
Comparing to
See all releases

Code changes from version 1.5.2 to 1.6.0

libs/jquery/css/pepper-grinder/images/ui-bg_diagonal-maze_20_6e4f1c_10x10.png ADDED
Binary file
libs/jquery/css/pepper-grinder/images/ui-bg_diagonal-maze_40_000000_10x10.png ADDED
Binary file
libs/jquery/css/pepper-grinder/images/ui-bg_fine-grain_10_eceadf_60x60.png ADDED
Binary file
libs/jquery/css/pepper-grinder/images/ui-bg_fine-grain_10_f8f7f6_60x60.png ADDED
Binary file
libs/jquery/css/pepper-grinder/images/ui-bg_fine-grain_15_eceadf_60x60.png ADDED
Binary file
libs/jquery/css/pepper-grinder/images/ui-bg_fine-grain_15_f7f3de_60x60.png ADDED
Binary file
libs/jquery/css/pepper-grinder/images/ui-bg_fine-grain_15_ffffff_60x60.png ADDED
Binary file
libs/jquery/css/pepper-grinder/images/ui-bg_fine-grain_65_654b24_60x60.png ADDED
Binary file
libs/jquery/css/pepper-grinder/images/ui-bg_fine-grain_68_b83400_60x60.png ADDED
Binary file
libs/jquery/css/pepper-grinder/images/ui-icons_222222_256x240.png ADDED
Binary file
libs/jquery/css/pepper-grinder/images/ui-icons_3572ac_256x240.png ADDED
Binary file
libs/jquery/css/pepper-grinder/images/ui-icons_8c291d_256x240.png ADDED
Binary file
libs/jquery/css/pepper-grinder/images/ui-icons_b83400_256x240.png ADDED
Binary file
libs/jquery/css/pepper-grinder/images/ui-icons_fbdb93_256x240.png ADDED
Binary file
libs/jquery/css/pepper-grinder/images/ui-icons_ffffff_256x240.png ADDED
Binary file
libs/jquery/css/pepper-grinder/jquery-ui-1.8.6.custom.css ADDED
@@ -0,0 +1,312 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery UI CSS Framework 1.8.6
3
+ *
4
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
5
+ * Dual licensed under the MIT or GPL Version 2 licenses.
6
+ * http://jquery.org/license
7
+ *
8
+ * http://docs.jquery.com/UI/Theming/API
9
+ */
10
+
11
+ /* Layout helpers
12
+ ----------------------------------*/
13
+ .ui-helper-hidden { display: none; }
14
+ .ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
15
+ .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
16
+ .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
17
+ .ui-helper-clearfix { display: inline-block; }
18
+ /* required comment for clearfix to work in Opera \*/
19
+ * html .ui-helper-clearfix { height:1%; }
20
+ .ui-helper-clearfix { display:block; }
21
+ /* end clearfix */
22
+ .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
23
+
24
+
25
+ /* Interaction Cues
26
+ ----------------------------------*/
27
+ .ui-state-disabled { cursor: default !important; }
28
+
29
+
30
+ /* Icons
31
+ ----------------------------------*/
32
+
33
+ /* states and images */
34
+ .ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
35
+
36
+
37
+ /* Misc visuals
38
+ ----------------------------------*/
39
+
40
+ /* Overlays */
41
+ .ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
42
+
43
+
44
+ /*
45
+ * jQuery UI CSS Framework 1.8.6
46
+ *
47
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
48
+ * Dual licensed under the MIT or GPL Version 2 licenses.
49
+ * http://jquery.org/license
50
+ *
51
+ * http://docs.jquery.com/UI/Theming/API
52
+ *
53
+ * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=6px&bgColorHeader=ffffff&bgTextureHeader=23_fine_grain.png&bgImgOpacityHeader=15&borderColorHeader=d4d1bf&fcHeader=453821&iconColorHeader=b83400&bgColorContent=eceadf&bgTextureContent=23_fine_grain.png&bgImgOpacityContent=10&borderColorContent=d9d6c4&fcContent=1f1f1f&iconColorContent=222222&bgColorDefault=f8f7f6&bgTextureDefault=23_fine_grain.png&bgImgOpacityDefault=10&borderColorDefault=cbc7bd&fcDefault=654b24&iconColorDefault=b83400&bgColorHover=654b24&bgTextureHover=23_fine_grain.png&bgImgOpacityHover=65&borderColorHover=654b24&fcHover=ffffff&iconColorHover=ffffff&bgColorActive=eceadf&bgTextureActive=23_fine_grain.png&bgImgOpacityActive=15&borderColorActive=d9d6c4&fcActive=140f06&iconColorActive=8c291d&bgColorHighlight=f7f3de&bgTextureHighlight=23_fine_grain.png&bgImgOpacityHighlight=15&borderColorHighlight=b2a266&fcHighlight=3a3427&iconColorHighlight=3572ac&bgColorError=b83400&bgTextureError=23_fine_grain.png&bgImgOpacityError=68&borderColorError=681818&fcError=ffffff&iconColorError=fbdb93&bgColorOverlay=6e4f1c&bgTextureOverlay=16_diagonal_maze.png&bgImgOpacityOverlay=20&opacityOverlay=60&bgColorShadow=000000&bgTextureShadow=16_diagonal_maze.png&bgImgOpacityShadow=40&opacityShadow=60&thicknessShadow=5px&offsetTopShadow=0&offsetLeftShadow=-10px&cornerRadiusShadow=18px
54
+ */
55
+
56
+
57
+ /* Component containers
58
+ ----------------------------------*/
59
+ .ui-widget { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1.1em; }
60
+ .ui-widget .ui-widget { font-size: 1em; }
61
+ .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1em; }
62
+ .ui-widget-content { border: 1px solid #d9d6c4; background: #eceadf url(images/ui-bg_fine-grain_10_eceadf_60x60.png) 50% 50% repeat; color: #1f1f1f; }
63
+ .ui-widget-content a { color: #1f1f1f; }
64
+ .ui-widget-header { border: 1px solid #d4d1bf; background: #ffffff url(images/ui-bg_fine-grain_15_ffffff_60x60.png) 50% 50% repeat; color: #453821; font-weight: bold; }
65
+ .ui-widget-header a { color: #453821; }
66
+
67
+ /* Interaction states
68
+ ----------------------------------*/
69
+ .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cbc7bd; background: #f8f7f6 url(images/ui-bg_fine-grain_10_f8f7f6_60x60.png) 50% 50% repeat; font-weight: bold; color: #654b24; }
70
+ .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #654b24; text-decoration: none; }
71
+ .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #654b24; background: #654b24 url(images/ui-bg_fine-grain_65_654b24_60x60.png) 50% 50% repeat; font-weight: bold; color: #ffffff; }
72
+ .ui-state-hover a, .ui-state-hover a:hover { color: #ffffff; text-decoration: none; }
73
+ .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #d9d6c4; background: #eceadf url(images/ui-bg_fine-grain_15_eceadf_60x60.png) 50% 50% repeat; font-weight: bold; color: #140f06; }
74
+ .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #140f06; text-decoration: none; }
75
+ .ui-widget :active { outline: none; }
76
+
77
+ /* Interaction Cues
78
+ ----------------------------------*/
79
+ .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #b2a266; background: #f7f3de url(images/ui-bg_fine-grain_15_f7f3de_60x60.png) 50% 50% repeat; color: #3a3427; }
80
+ .ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #3a3427; }
81
+ .ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #681818; background: #b83400 url(images/ui-bg_fine-grain_68_b83400_60x60.png) 50% 50% repeat; color: #ffffff; }
82
+ .ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
83
+ .ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
84
+ .ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
85
+ .ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
86
+ .ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
87
+
88
+ /* Icons
89
+ ----------------------------------*/
90
+
91
+ /* states and images */
92
+ .ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
93
+ .ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
94
+ .ui-widget-header .ui-icon {background-image: url(images/ui-icons_b83400_256x240.png); }
95
+ .ui-state-default .ui-icon { background-image: url(images/ui-icons_b83400_256x240.png); }
96
+ .ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
97
+ .ui-state-active .ui-icon {background-image: url(images/ui-icons_8c291d_256x240.png); }
98
+ .ui-state-highlight .ui-icon {background-image: url(images/ui-icons_3572ac_256x240.png); }
99
+ .ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_fbdb93_256x240.png); }
100
+
101
+ /* positioning */
102
+ .ui-icon-carat-1-n { background-position: 0 0; }
103
+ .ui-icon-carat-1-ne { background-position: -16px 0; }
104
+ .ui-icon-carat-1-e { background-position: -32px 0; }
105
+ .ui-icon-carat-1-se { background-position: -48px 0; }
106
+ .ui-icon-carat-1-s { background-position: -64px 0; }
107
+ .ui-icon-carat-1-sw { background-position: -80px 0; }
108
+ .ui-icon-carat-1-w { background-position: -96px 0; }
109
+ .ui-icon-carat-1-nw { background-position: -112px 0; }
110
+ .ui-icon-carat-2-n-s { background-position: -128px 0; }
111
+ .ui-icon-carat-2-e-w { background-position: -144px 0; }
112
+ .ui-icon-triangle-1-n { background-position: 0 -16px; }
113
+ .ui-icon-triangle-1-ne { background-position: -16px -16px; }
114
+ .ui-icon-triangle-1-e { background-position: -32px -16px; }
115
+ .ui-icon-triangle-1-se { background-position: -48px -16px; }
116
+ .ui-icon-triangle-1-s { background-position: -64px -16px; }
117
+ .ui-icon-triangle-1-sw { background-position: -80px -16px; }
118
+ .ui-icon-triangle-1-w { background-position: -96px -16px; }
119
+ .ui-icon-triangle-1-nw { background-position: -112px -16px; }
120
+ .ui-icon-triangle-2-n-s { background-position: -128px -16px; }
121
+ .ui-icon-triangle-2-e-w { background-position: -144px -16px; }
122
+ .ui-icon-arrow-1-n { background-position: 0 -32px; }
123
+ .ui-icon-arrow-1-ne { background-position: -16px -32px; }
124
+ .ui-icon-arrow-1-e { background-position: -32px -32px; }
125
+ .ui-icon-arrow-1-se { background-position: -48px -32px; }
126
+ .ui-icon-arrow-1-s { background-position: -64px -32px; }
127
+ .ui-icon-arrow-1-sw { background-position: -80px -32px; }
128
+ .ui-icon-arrow-1-w { background-position: -96px -32px; }
129
+ .ui-icon-arrow-1-nw { background-position: -112px -32px; }
130
+ .ui-icon-arrow-2-n-s { background-position: -128px -32px; }
131
+ .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
132
+ .ui-icon-arrow-2-e-w { background-position: -160px -32px; }
133
+ .ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
134
+ .ui-icon-arrowstop-1-n { background-position: -192px -32px; }
135
+ .ui-icon-arrowstop-1-e { background-position: -208px -32px; }
136
+ .ui-icon-arrowstop-1-s { background-position: -224px -32px; }
137
+ .ui-icon-arrowstop-1-w { background-position: -240px -32px; }
138
+ .ui-icon-arrowthick-1-n { background-position: 0 -48px; }
139
+ .ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
140
+ .ui-icon-arrowthick-1-e { background-position: -32px -48px; }
141
+ .ui-icon-arrowthick-1-se { background-position: -48px -48px; }
142
+ .ui-icon-arrowthick-1-s { background-position: -64px -48px; }
143
+ .ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
144
+ .ui-icon-arrowthick-1-w { background-position: -96px -48px; }
145
+ .ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
146
+ .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
147
+ .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
148
+ .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
149
+ .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
150
+ .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
151
+ .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
152
+ .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
153
+ .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
154
+ .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
155
+ .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
156
+ .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
157
+ .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
158
+ .ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
159
+ .ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
160
+ .ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
161
+ .ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
162
+ .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
163
+ .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
164
+ .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
165
+ .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
166
+ .ui-icon-arrow-4 { background-position: 0 -80px; }
167
+ .ui-icon-arrow-4-diag { background-position: -16px -80px; }
168
+ .ui-icon-extlink { background-position: -32px -80px; }
169
+ .ui-icon-newwin { background-position: -48px -80px; }
170
+ .ui-icon-refresh { background-position: -64px -80px; }
171
+ .ui-icon-shuffle { background-position: -80px -80px; }
172
+ .ui-icon-transfer-e-w { background-position: -96px -80px; }
173
+ .ui-icon-transferthick-e-w { background-position: -112px -80px; }
174
+ .ui-icon-folder-collapsed { background-position: 0 -96px; }
175
+ .ui-icon-folder-open { background-position: -16px -96px; }
176
+ .ui-icon-document { background-position: -32px -96px; }
177
+ .ui-icon-document-b { background-position: -48px -96px; }
178
+ .ui-icon-note { background-position: -64px -96px; }
179
+ .ui-icon-mail-closed { background-position: -80px -96px; }
180
+ .ui-icon-mail-open { background-position: -96px -96px; }
181
+ .ui-icon-suitcase { background-position: -112px -96px; }
182
+ .ui-icon-comment { background-position: -128px -96px; }
183
+ .ui-icon-person { background-position: -144px -96px; }
184
+ .ui-icon-print { background-position: -160px -96px; }
185
+ .ui-icon-trash { background-position: -176px -96px; }
186
+ .ui-icon-locked { background-position: -192px -96px; }
187
+ .ui-icon-unlocked { background-position: -208px -96px; }
188
+ .ui-icon-bookmark { background-position: -224px -96px; }
189
+ .ui-icon-tag { background-position: -240px -96px; }
190
+ .ui-icon-home { background-position: 0 -112px; }
191
+ .ui-icon-flag { background-position: -16px -112px; }
192
+ .ui-icon-calendar { background-position: -32px -112px; }
193
+ .ui-icon-cart { background-position: -48px -112px; }
194
+ .ui-icon-pencil { background-position: -64px -112px; }
195
+ .ui-icon-clock { background-position: -80px -112px; }
196
+ .ui-icon-disk { background-position: -96px -112px; }
197
+ .ui-icon-calculator { background-position: -112px -112px; }
198
+ .ui-icon-zoomin { background-position: -128px -112px; }
199
+ .ui-icon-zoomout { background-position: -144px -112px; }
200
+ .ui-icon-search { background-position: -160px -112px; }
201
+ .ui-icon-wrench { background-position: -176px -112px; }
202
+ .ui-icon-gear { background-position: -192px -112px; }
203
+ .ui-icon-heart { background-position: -208px -112px; }
204
+ .ui-icon-star { background-position: -224px -112px; }
205
+ .ui-icon-link { background-position: -240px -112px; }
206
+ .ui-icon-cancel { background-position: 0 -128px; }
207
+ .ui-icon-plus { background-position: -16px -128px; }
208
+ .ui-icon-plusthick { background-position: -32px -128px; }
209
+ .ui-icon-minus { background-position: -48px -128px; }
210
+ .ui-icon-minusthick { background-position: -64px -128px; }
211
+ .ui-icon-close { background-position: -80px -128px; }
212
+ .ui-icon-closethick { background-position: -96px -128px; }
213
+ .ui-icon-key { background-position: -112px -128px; }
214
+ .ui-icon-lightbulb { background-position: -128px -128px; }
215
+ .ui-icon-scissors { background-position: -144px -128px; }
216
+ .ui-icon-clipboard { background-position: -160px -128px; }
217
+ .ui-icon-copy { background-position: -176px -128px; }
218
+ .ui-icon-contact { background-position: -192px -128px; }
219
+ .ui-icon-image { background-position: -208px -128px; }
220
+ .ui-icon-video { background-position: -224px -128px; }
221
+ .ui-icon-script { background-position: -240px -128px; }
222
+ .ui-icon-alert { background-position: 0 -144px; }
223
+ .ui-icon-info { background-position: -16px -144px; }
224
+ .ui-icon-notice { background-position: -32px -144px; }
225
+ .ui-icon-help { background-position: -48px -144px; }
226
+ .ui-icon-check { background-position: -64px -144px; }
227
+ .ui-icon-bullet { background-position: -80px -144px; }
228
+ .ui-icon-radio-off { background-position: -96px -144px; }
229
+ .ui-icon-radio-on { background-position: -112px -144px; }
230
+ .ui-icon-pin-w { background-position: -128px -144px; }
231
+ .ui-icon-pin-s { background-position: -144px -144px; }
232
+ .ui-icon-play { background-position: 0 -160px; }
233
+ .ui-icon-pause { background-position: -16px -160px; }
234
+ .ui-icon-seek-next { background-position: -32px -160px; }
235
+ .ui-icon-seek-prev { background-position: -48px -160px; }
236
+ .ui-icon-seek-end { background-position: -64px -160px; }
237
+ .ui-icon-seek-start { background-position: -80px -160px; }
238
+ /* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
239
+ .ui-icon-seek-first { background-position: -80px -160px; }
240
+ .ui-icon-stop { background-position: -96px -160px; }
241
+ .ui-icon-eject { background-position: -112px -160px; }
242
+ .ui-icon-volume-off { background-position: -128px -160px; }
243
+ .ui-icon-volume-on { background-position: -144px -160px; }
244
+ .ui-icon-power { background-position: 0 -176px; }
245
+ .ui-icon-signal-diag { background-position: -16px -176px; }
246
+ .ui-icon-signal { background-position: -32px -176px; }
247
+ .ui-icon-battery-0 { background-position: -48px -176px; }
248
+ .ui-icon-battery-1 { background-position: -64px -176px; }
249
+ .ui-icon-battery-2 { background-position: -80px -176px; }
250
+ .ui-icon-battery-3 { background-position: -96px -176px; }
251
+ .ui-icon-circle-plus { background-position: 0 -192px; }
252
+ .ui-icon-circle-minus { background-position: -16px -192px; }
253
+ .ui-icon-circle-close { background-position: -32px -192px; }
254
+ .ui-icon-circle-triangle-e { background-position: -48px -192px; }
255
+ .ui-icon-circle-triangle-s { background-position: -64px -192px; }
256
+ .ui-icon-circle-triangle-w { background-position: -80px -192px; }
257
+ .ui-icon-circle-triangle-n { background-position: -96px -192px; }
258
+ .ui-icon-circle-arrow-e { background-position: -112px -192px; }
259
+ .ui-icon-circle-arrow-s { background-position: -128px -192px; }
260
+ .ui-icon-circle-arrow-w { background-position: -144px -192px; }
261
+ .ui-icon-circle-arrow-n { background-position: -160px -192px; }
262
+ .ui-icon-circle-zoomin { background-position: -176px -192px; }
263
+ .ui-icon-circle-zoomout { background-position: -192px -192px; }
264
+ .ui-icon-circle-check { background-position: -208px -192px; }
265
+ .ui-icon-circlesmall-plus { background-position: 0 -208px; }
266
+ .ui-icon-circlesmall-minus { background-position: -16px -208px; }
267
+ .ui-icon-circlesmall-close { background-position: -32px -208px; }
268
+ .ui-icon-squaresmall-plus { background-position: -48px -208px; }
269
+ .ui-icon-squaresmall-minus { background-position: -64px -208px; }
270
+ .ui-icon-squaresmall-close { background-position: -80px -208px; }
271
+ .ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
272
+ .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
273
+ .ui-icon-grip-solid-vertical { background-position: -32px -224px; }
274
+ .ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
275
+ .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
276
+ .ui-icon-grip-diagonal-se { background-position: -80px -224px; }
277
+
278
+
279
+ /* Misc visuals
280
+ ----------------------------------*/
281
+
282
+ /* Corner radius */
283
+ .ui-corner-tl { -moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px; border-top-left-radius: 6px; }
284
+ .ui-corner-tr { -moz-border-radius-topright: 6px; -webkit-border-top-right-radius: 6px; border-top-right-radius: 6px; }
285
+ .ui-corner-bl { -moz-border-radius-bottomleft: 6px; -webkit-border-bottom-left-radius: 6px; border-bottom-left-radius: 6px; }
286
+ .ui-corner-br { -moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px; border-bottom-right-radius: 6px; }
287
+ .ui-corner-top { -moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px; border-top-left-radius: 6px; -moz-border-radius-topright: 6px; -webkit-border-top-right-radius: 6px; border-top-right-radius: 6px; }
288
+ .ui-corner-bottom { -moz-border-radius-bottomleft: 6px; -webkit-border-bottom-left-radius: 6px; border-bottom-left-radius: 6px; -moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px; border-bottom-right-radius: 6px; }
289
+ .ui-corner-right { -moz-border-radius-topright: 6px; -webkit-border-top-right-radius: 6px; border-top-right-radius: 6px; -moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px; border-bottom-right-radius: 6px; }
290
+ .ui-corner-left { -moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px; border-top-left-radius: 6px; -moz-border-radius-bottomleft: 6px; -webkit-border-bottom-left-radius: 6px; border-bottom-left-radius: 6px; }
291
+ .ui-corner-all { -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px; }
292
+
293
+ /* Overlays */
294
+ .ui-widget-overlay { background: #6e4f1c url(images/ui-bg_diagonal-maze_20_6e4f1c_10x10.png) 50% 50% repeat; opacity: .60;filter:Alpha(Opacity=60); }
295
+ .ui-widget-shadow { margin: 0 0 0 -10px; padding: 5px; background: #000000 url(images/ui-bg_diagonal-maze_40_000000_10x10.png) 50% 50% repeat; opacity: .60;filter:Alpha(Opacity=60); -moz-border-radius: 18px; -webkit-border-radius: 18px; border-radius: 18px; }/*
296
+ * jQuery UI Tabs 1.8.6
297
+ *
298
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
299
+ * Dual licensed under the MIT or GPL Version 2 licenses.
300
+ * http://jquery.org/license
301
+ *
302
+ * http://docs.jquery.com/UI/Tabs#theming
303
+ */
304
+ .ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
305
+ .ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
306
+ .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
307
+ .ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
308
+ .ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
309
+ .ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
310
+ .ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
311
+ .ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
312
+ .ui-tabs .ui-tabs-hide { display: none !important; }
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WP Social Bookmarking Light ===
2
  Contributors: utahvich
3
- Donate link: http://pledgie.com/campaigns/14019
4
  Tags: links, social, bookmarks, bookmarking, Hatena, Livedoor Clip, BuzzURL, @nifty clip, Twitter, Tumblr, FC2 Bookmark, newsing, Choix, Yahoo!JAPAN Bookmark, Yahoo!Buzz, Google Bookmark, Delicious, Digg, FriendFeed, Google Buzz, Facebook, reddit, LinkedIn, Evernote, Instapaper, StumbleUpon, mixi, gree
5
  Requires at least: 2.9.0
6
  Tested up to: 3.0.1
7
- Stable tag: 1.5.2
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
@@ -54,6 +54,12 @@ This is the list of used social sites:
54
 
55
  == Changelog ==
56
 
 
 
 
 
 
 
57
  = 1.5.2 =
58
  * Added Facebook Like Button.
59
 
1
  === WP Social Bookmarking Light ===
2
  Contributors: utahvich
3
+ Donate link: http://pledgie.com/campaigns/14051
4
  Tags: links, social, bookmarks, bookmarking, Hatena, Livedoor Clip, BuzzURL, @nifty clip, Twitter, Tumblr, FC2 Bookmark, newsing, Choix, Yahoo!JAPAN Bookmark, Yahoo!Buzz, Google Bookmark, Delicious, Digg, FriendFeed, Google Buzz, Facebook, reddit, LinkedIn, Evernote, Instapaper, StumbleUpon, mixi, gree
5
  Requires at least: 2.9.0
6
  Tested up to: 3.0.1
7
+ Stable tag: 1.6.0
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
54
 
55
  == Changelog ==
56
 
57
+ = 1.6.0 =
58
+ * Added: Hatena Bookmark Button.
59
+ * Updated: admin setting page.
60
+ * Bug fixed: Twitter button did not work on the top page. Thanks to [yuya-takeyama](https://gist.github.com/675159)++
61
+ * Bug fixed: Mixi button did not work on the top page.
62
+
63
  = 1.5.2 =
64
  * Added Facebook Like Button.
65
 
screenshot-2.png CHANGED
Binary file
screenshot-3.png CHANGED
Binary file
wp-social-bookmarking-light.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.ninxit.com/blog/2010/06/13/wp-social-bookmarking-light/
5
  Description: This plugin inserts social share links at the top or bottom of each post.
6
  Author: utahta
7
  Author URI: http://www.ninxit.com/blog/
8
- Version: 1.5.2
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
@@ -25,7 +25,8 @@ along with this program; if not, write to the Free Software
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
 
28
- define( "WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL", WP_PLUGIN_URL."/wp-social-bookmarking-light/images" );
 
29
  define( "WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN", "wp-social-bookmarking-light" );
30
 
31
  load_plugin_textdomain( WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN,
@@ -65,7 +66,7 @@ class WpSocialBookmarkingLight
65
  function link( $url, $alt, $icon, $width, $height ){
66
  $width = $width ? "width='$width'" : "";
67
  $height = $height ? "height='$height'" : "";
68
- return $this->link_raw( "<a href='{$url}' title='{$alt}' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank>"
69
  ."<img src='{$icon}' alt='{$alt}' title='{$alt}' $width $height class='wp_social_bookmarking_light_img' />"
70
  ."</a>" );
71
  }
@@ -87,6 +88,21 @@ class WpSocialBookmarkingLight
87
  $icon = "http://b.hatena.ne.jp/entry/image/{$this->url}";
88
  return $this->link( $url, $alt, $icon, null, null );
89
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
 
91
  /**
92
  * @brief twib
@@ -123,8 +139,18 @@ class WpSocialBookmarkingLight
123
  */
124
  function twitter()
125
  {
126
- return $this->link_raw( '<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a>'
127
- .'<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>' );
 
 
 
 
 
 
 
 
 
 
128
  }
129
 
130
  /**
@@ -201,7 +227,7 @@ class WpSocialBookmarkingLight
201
  }
202
  function nifty_users()
203
  {
204
- $url = '#';
205
  $alt = sprintf( __("@nifty clip - %s", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN), $this->title );
206
  $icon = "http://api.clip.nifty.com/api/v1/image/counter/{$this->url}";
207
  return $this->link( $url, $alt, $icon, null, null );
@@ -274,8 +300,8 @@ class WpSocialBookmarkingLight
274
  */
275
  function google_buzz()
276
  {
277
- $url = "http://www.google.com/buzz/post?url={$this->encode_url}&message={$this->encode_title}";
278
- $alt = __( "Post to Google Buzz", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
279
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/google-buzz.png";
280
  return $this->link( $url, $alt, $icon, 16, 16 );
281
  }
@@ -321,7 +347,7 @@ class WpSocialBookmarkingLight
321
  $url = "http://www.facebook.com/share.php?u={$this->encode_url}&t={$this->encode_title}";
322
  $alt = __( "Share on Facebook", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
323
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/facebook.png";
324
- return $this->link( $url, $alt, $icon, 16, 16 );
325
  }
326
 
327
  /**
@@ -329,19 +355,31 @@ class WpSocialBookmarkingLight
329
  */
330
  function facebook_like()
331
  {
332
- return $this->link_raw("<script src='http://connect.facebook.net/en_US/all.js#xfbml=1'></script>"
333
- ."<fb:like href='{$this->encode_url}' layout='button_count' width='90'></fb:like>");
 
 
 
 
 
 
 
 
 
 
 
 
334
  }
335
-
336
- /**
337
- * @brief reddit
338
- */
339
  function reddit()
340
  {
341
  $url = "http://www.reddit.com/submit?url={$this->encode_url}&title={$this->encode_title}";
342
  $alt = __( "Share on reddit", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
343
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/reddit.png";
344
- return $this->link( $url, $alt, $icon, 16, 16 );
345
  }
346
 
347
  /**
@@ -352,7 +390,7 @@ class WpSocialBookmarkingLight
352
  $url = "http://www.linkedin.com/shareArticle?mini=true&url={$this->encode_url}&title={$this->encode_title}";
353
  $alt = __( "Share on LinkedIn", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
354
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/linkedin.png";
355
- return $this->link( $url, $alt, $icon, 16, 16 );
356
  }
357
 
358
  /**
@@ -360,19 +398,19 @@ class WpSocialBookmarkingLight
360
  */
361
  function evernote()
362
  {
363
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/evernote.png";
364
- $script = "(function(){EN_CLIP_HOST='http://www.evernote.com';try{var x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();";
365
- $img = "<img src='${icon}' width='16' height='16' />";
366
- return $this->link_raw( "<a href='#' title='Clip to Evernote' onclick=\"${script} return false;\">${img}</a>" );
367
- }
368
 
369
  /**
370
  * @brief Instapaper
371
  */
372
  function instapaper()
373
  {
374
- $href = "javascript:function iprl5(){var d=document,z=d.createElement(&#039;scr&#039;+&#039;ipt&#039;),b=d.body,l=d.location;try{if(!b)throw(0);d.title=&#039;(Saving...) &#039;+d.title;z.setAttribute(&#039;src&#039;,l.protocol+&#039;//www.instapaper.com/j/GKo8MDzHWjRx?u=&#039;+encodeURIComponent(l.href)+&#039;&amp;t=&#039;+(new Date().getTime()));b.appendChild(z);}catch(e){alert(&#039;Please wait until the page has loaded.&#039;);}}iprl5();void(0)";
375
- return $this->link_raw( '<a href="'.$href.'" class="wp_social_bookmarking_light_instapaper" title="Read Later">Read Later</a>' );
376
  }
377
 
378
  /**
@@ -383,7 +421,7 @@ class WpSocialBookmarkingLight
383
  $url = "http://www.stumbleupon.com/submit?url={$this->encode_url}&title={$this->encode_title}";
384
  $alt = __( "Share on StumbleUpon", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
385
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/stumbleupon.png";
386
- return $this->link( $url, $alt, $icon, 16, 16 );
387
  }
388
 
389
  /**
@@ -391,11 +429,15 @@ class WpSocialBookmarkingLight
391
  */
392
  function mixi()
393
  {
394
- $options = wp_social_bookmarking_light_options();
395
- $data_key = $options['mixi_check_key'];
396
-
397
- return $this->link_raw( '<a href="http://mixi.jp/share.pl" class="mixi-check-button" data-button="button-3" data-key="'.$data_key.'">Check</a>'
398
- .'<script type="text/javascript" src="http://static.mixi.jp/js/share.js"></script>' );
 
 
 
 
399
  }
400
 
401
  /**
@@ -406,7 +448,7 @@ class WpSocialBookmarkingLight
406
  $url = "http://gree.jp/?mode=share&act=write&url={$this->encode_url}&title={$this->encode_title}&site_type=website";
407
  $alt = __( "Share on GREE", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
408
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/gree.png";
409
- return $this->link( $url, $alt, $icon, 16, 16 );
410
  }
411
 
412
  }
@@ -417,34 +459,67 @@ function wp_social_bookmarking_light_default_options()
417
  "position" => "top",
418
  "single_page" => true,
419
  "is_page" => true,
420
- "mixi_check_key" => "",
421
- "mixi_check_robots" => "noimage" );
 
 
 
 
 
 
 
 
 
 
422
  }
423
 
424
  function wp_social_bookmarking_light_options()
425
  {
426
- return array_merge( wp_social_bookmarking_light_default_options(), get_option("wp_social_bookmarking_light_options", array()) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
427
  }
428
 
429
  function wp_social_bookmarking_light_wp_head()
430
  {
431
- // for mixi Check
432
- $options = wp_social_bookmarking_light_options();
433
- foreach( explode(",", $options['services']) as $service ){
434
- $service = trim($service);
435
- if( "mixi" == $service ){
436
  ?>
437
- <meta name="mixi-check-robots" content="<?php echo $options['mixi_check_robots'] ?>" />
438
  <?php
439
- break;
440
- }
441
- }
442
-
443
  ?>
444
  <style type="text/css">
445
  ul.wp_social_bookmarking_light{list-style:none !important;border:0 !important;padding:0;margin:0;}
446
  ul.wp_social_bookmarking_light li{float:left !important;border:0 !important;padding:0 4px 0 0 !important;margin:0 !important;height:20px !important;text-indent:0 !important;}
447
- ul.wp_social_bookmarking_light li:before{content:"" !important;}
448
  ul.wp_social_bookmarking_light img{border:0 !important;padding:0;margin:0;vertical-align:top !important;}
449
  .wp_social_bookmarking_light_clear{clear:both !important;}
450
  a.wp_social_bookmarking_light_instapaper {display: inline-block;font-family: 'Lucida Grande', Verdana, sans-serif;font-weight: bold;font-size: 11px;-webkit-border-radius: 8px;-moz-border-radius: 8px;color: #fff;background-color: #626262;border: 1px solid #626262;padding: 0px 3px 0px;text-shadow: #3b3b3b 1px 1px 0px;min-width: 62px;text-align: center;vertical-align:top;line-height:20px;}
@@ -454,17 +529,6 @@ a.wp_social_bookmarking_light_instapaper, a.wp_social_bookmarking_light_instapap
454
  <?php
455
  }
456
 
457
- function wp_social_bookmarking_light_admin_menu()
458
- {
459
- if( function_exists('add_options_page') ){
460
- add_options_page( 'WP Social Bookmarking Light',
461
- 'WP Social Bookmarking Light',
462
- 'manage_options',
463
- __FILE__,
464
- 'wp_social_bookmarking_light_options_page' );
465
- }
466
- }
467
-
468
  function wp_social_bookmarking_light_output( $services )
469
  {
470
  $wp = new WpSocialBookmarkingLight( get_permalink(), get_the_title(), get_bloginfo('name') );
@@ -480,9 +544,13 @@ function wp_social_bookmarking_light_output( $services )
480
  return "<ul class='wp_social_bookmarking_light'>{$out}</ul><br class='wp_social_bookmarking_light_clear' />";
481
  }
482
 
483
- function wp_social_bookmarking_light_output_e( $services )
484
  {
485
- echo wp_social_bookmarking_light_output( $services );
 
 
 
 
486
  }
487
 
488
  function wp_social_bookmarking_light_the_content( $content )
@@ -496,7 +564,7 @@ function wp_social_bookmarking_light_the_content( $content )
496
  return $content;
497
  }
498
  if( !$options['is_page'] && is_page() ){
499
- return $content;
500
  }
501
 
502
  $out = wp_social_bookmarking_light_output( $options['services'] );
@@ -512,35 +580,21 @@ function wp_social_bookmarking_light_the_content( $content )
512
  return $content;
513
  }
514
 
515
- function wp_social_bookmarking_light_init()
 
516
  {
517
- add_action( 'wp_head', 'wp_social_bookmarking_light_wp_head' );
518
- add_action( 'admin_menu', 'wp_social_bookmarking_light_admin_menu' );
519
- add_filter( 'the_content', 'wp_social_bookmarking_light_the_content' );
520
  }
521
- add_action( 'init', 'wp_social_bookmarking_light_init' );
522
 
523
- // options page
524
- function wp_social_bookmarking_light_options_page()
 
 
 
 
525
  {
526
- if( isset( $_POST['save'] ) ){
527
- $options = array( "services" => $_POST["services"],
528
- "position" => $_POST["position"],
529
- "single_page" => $_POST["single_page"] == 'true',
530
- "is_page" => $_POST["is_page"] == 'true',
531
- "mixi_check_key" => $_POST["mixi_check_key"],
532
- "mixi_check_robots" => $_POST["mixi_check_robots"] );
533
- update_option( 'wp_social_bookmarking_light_options', $options );
534
- echo '<div class="updated"><p><strong>'.__( 'Options saved.', WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN ).'</strong></p></div>';
535
- }
536
- else if( isset( $_POST['reset'] ) ){
537
- $options = wp_social_bookmarking_light_default_options();
538
- update_option( 'wp_social_bookmarking_light_options', $options );
539
- echo '<div class="updated"><p><strong>'.__( 'Reset options.', WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN ).'</strong></p></div>';
540
- }
541
- else{
542
- $options = wp_social_bookmarking_light_options();
543
- }
544
  ?>
545
  <style type="text/css">
546
  .wp_social_bookmarking_light_options{
@@ -556,115 +610,290 @@ function wp_social_bookmarking_light_options_page()
556
  margin: 0px;
557
  padding: 3px;
558
  }
559
- .wp_social_bookmarking_light_options td{
560
  text-align: left;
561
  margin: 0px;
562
  padding: 3px;
563
  }
564
  </style>
565
- <?php
566
- wp_enqueue_script('jquery');
567
- ?>
568
  <script type="text/javascript" charset="utf-8">
569
  //<![CDATA[
570
- // for mixi
571
- function wsbl_options_mixi_toggle( first )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
572
  {
573
- var val = jQuery("#services_id").val();
574
- var vals = val.split(",");
575
- var has_mixi = false;
576
- for( var i = 0; i < vals.length; i++ ){
577
- val = vals[i].replace(/(^\s+)|(\s+$)/g, "");
578
- if( val == "mixi" ){
579
- has_mixi = true;
580
- }
581
- }
582
-
583
- if( first ){
584
- has_mixi ? jQuery("#mixi_settings").show() : jQuery("#mixi_settings").hide();
585
- }
586
- else{
587
- has_mixi ? jQuery("#mixi_settings").slideDown() : jQuery("#mixi_settings").slideUp();
588
- }
589
  }
590
 
591
  // read onece
592
  jQuery(document).ready(function(){
593
- jQuery("#services_id").keyup(function(){
594
- wsbl_options_mixi_toggle();
595
- });
596
- wsbl_options_mixi_toggle( true );
 
 
597
  });
598
  //]]>
599
  </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
600
  <div class="wrap">
601
  <h2>WP Social Bookmarking Light</h2>
602
-
603
  <form method='POST' action="<?php echo $_SERVER['REQUEST_URI'] ?>">
604
- <h3><?php _e("General Settings") ?></h3>
605
- <table class='form-table'>
606
- <tr>
607
- <th scope="row">Position:</th>
608
- <td>
609
- <select name='position'>
610
- <option value='top' <?php if( $options['position'] == 'top' ) echo 'selected'; ?>>Top</option>
611
- <option value='bottom' <?php if( $options['position'] == 'bottom' ) echo 'selected'; ?>>Bottom</option>
612
- <option value='none' <?php if( $options['position'] == 'none' ) echo 'selected'; ?>>None</option>
613
- </select>
614
- </td>
615
- </tr>
616
- <tr>
617
- <th scope="row">Is Singular:</th>
618
- <td>
619
- <select name='single_page'>
620
- <option value='true' <?php if( $options['single_page'] == true ) echo 'selected'; ?>>Enabled</option>
621
- <option value='false' <?php if( $options['single_page'] == false ) echo 'selected'; ?>>Disabled</option>
622
- </select>
623
- </td>
624
- </tr>
625
- <tr>
626
- <th scope="row">Is Page:</th>
627
- <td>
628
- <select name='is_page'>
629
- <option value='true' <?php if( $options['is_page'] == true ) echo 'selected'; ?>>Enabled</option>
630
- <option value='false' <?php if( $options['is_page'] == false ) echo 'selected'; ?>>Disabled</option>
631
- </select>
632
- </td>
633
- </tr>
634
- <tr>
635
- <th scope="row">Services: <br/> <span style="font-size:10px">(comma-separated)</span></th>
636
- <td><input type="text" id='services_id' name='services' value="<?php echo $options['services'] ?>"size=80 /></td>
637
- </tr>
638
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
639
 
640
- <div id='mixi_settings'>
641
- <h3><?php _e("mixi Settings") ?></h3>
642
- <table class='form-table'>
643
- <tr>
644
- <th scope="row">mixi check key:</th>
645
- <td>
646
- <input type="text" name='mixi_check_key' value="<?php echo $options['mixi_check_key'] ?>" size=50 />
647
- </td>
648
- </tr>
649
- <tr>
650
- <th scope="row">mixi check robots:</th>
651
- <td>
652
- <input type="text" name='mixi_check_robots' value="<?php echo $options['mixi_check_robots'] ?>" size=50 />
653
- </td>
654
- </tr>
655
- </table>
656
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
657
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
658
  <p class="submit">
659
  <input class="button-primary" type="submit" name='save' value='<?php _e('Save Changes') ?>' />
660
  <input type="submit" name='reset' value='<?php _e('Reset') ?>' />
661
  </p>
662
  </form>
663
-
664
  <table class='wp_social_bookmarking_light_options'>
665
  <tr><th><?php _e("Service Code") ?></th><th><?php _e("Explain") ?></th></tr>
666
  <tr><td>hatena</td><td>Hatena Bookmark</td></tr>
667
  <tr><td>hatena_users</td><td>Hatena Bookmark Users</td></tr>
 
668
  <tr><td>twib</td><td>Twib - Twitter</td></tr>
669
  <tr><td>twib_users</td><td>Twib Users - Twitter</td></tr>
670
  <tr><td>tweetmeme</td><td>TweetMeme - Twitter</td></tr>
@@ -699,9 +928,8 @@ jQuery(document).ready(function(){
699
  <tr><td>gree</td><td>GREE Social Feedback</td></tr>
700
  </table>
701
  </div>
 
702
  <?php
703
  }
704
 
705
-
706
-
707
- ?>
5
  Description: This plugin inserts social share links at the top or bottom of each post.
6
  Author: utahta
7
  Author URI: http://www.ninxit.com/blog/
8
+ Version: 1.6.0
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
 
28
+ define( "WP_SOCIAL_BOOKMARKING_LIGHT_URL", WP_PLUGIN_URL."/wp-social-bookmarking-light" );
29
+ define( "WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL", WP_SOCIAL_BOOKMARKING_LIGHT_URL."/images" );
30
  define( "WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN", "wp-social-bookmarking-light" );
31
 
32
  load_plugin_textdomain( WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN,
66
  function link( $url, $alt, $icon, $width, $height ){
67
  $width = $width ? "width='$width'" : "";
68
  $height = $height ? "height='$height'" : "";
69
+ return $this->link_raw( "<a href='{$url}' title='{$alt}' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank>"
70
  ."<img src='{$icon}' alt='{$alt}' title='{$alt}' $width $height class='wp_social_bookmarking_light_img' />"
71
  ."</a>" );
72
  }
88
  $icon = "http://b.hatena.ne.jp/entry/image/{$this->url}";
89
  return $this->link( $url, $alt, $icon, null, null );
90
  }
91
+ function hatena_button()
92
+ {
93
+ $options = wp_social_bookmarking_light_options();
94
+ $url = "http://b.hatena.ne.jp/entry/{$this->url}";
95
+ $title = $this->title;
96
+ $alt = __( "Bookmark this on Hatena Bookmark", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
97
+ return $this->link_raw('<a href="'.$url.'"'
98
+ .' class="hatena-bookmark-button"'
99
+ .' data-hatena-bookmark-title="'.$title.'"'
100
+ .' data-hatena-bookmark-layout="'.$options['hatena_button']['layout'].'"'
101
+ .' title="'.$alt.'">'
102
+ .' <img src="http://b.st-hatena.com/images/entry-button/button-only.gif"'
103
+ .' alt="'.$alt.'" width="20" height="20" style="border: none;" /></a>'
104
+ .'<script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>');
105
+ }
106
 
107
  /**
108
  * @brief twib
139
  */
140
  function twitter()
141
  {
142
+ $options = wp_social_bookmarking_light_options();
143
+ $twitter = $options['twitter'];
144
+ return $this->link_raw('<iframe allowtransparency="true" frameborder="0" scrolling="no"'
145
+ .' src="http://platform.twitter.com/widgets/tweet_button.html'
146
+ .'?url='.$this->encode_url
147
+ .'&amp;text='.$this->encode_title
148
+ .'&amp;via='.$twitter['via']
149
+ .'&amp;lang='.$twitter['lang']
150
+ .'&amp;count='.$twitter['count']
151
+ .'"'
152
+ .' style="width:'.$twitter['width'].'px; height:'.$twitter['height'].'px;">'
153
+ .'</iframe>');
154
  }
155
 
156
  /**
227
  }
228
  function nifty_users()
229
  {
230
+ $url = '#';
231
  $alt = sprintf( __("@nifty clip - %s", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN), $this->title );
232
  $icon = "http://api.clip.nifty.com/api/v1/image/counter/{$this->url}";
233
  return $this->link( $url, $alt, $icon, null, null );
300
  */
301
  function google_buzz()
302
  {
303
+ $url = "http://www.google.com/buzz/post?url={$this->encode_url}&message={$this->encode_title}";
304
+ $alt = __( "Post to Google Buzz", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
305
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/google-buzz.png";
306
  return $this->link( $url, $alt, $icon, 16, 16 );
307
  }
347
  $url = "http://www.facebook.com/share.php?u={$this->encode_url}&t={$this->encode_title}";
348
  $alt = __( "Share on Facebook", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
349
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/facebook.png";
350
+ return $this->link( $url, $alt, $icon, 16, 16 );
351
  }
352
 
353
  /**
355
  */
356
  function facebook_like()
357
  {
358
+ $options = wp_social_bookmarking_light_options();
359
+ $action = $options['facebook_like']['action'];
360
+ $colorscheme = $options['facebook_like']['colorscheme'];
361
+
362
+ return $this->link_raw('<iframe src="http://www.facebook.com/plugins/like.php?href='.$this->encode_url
363
+ .'&amp;layout=button_count'
364
+ .'&amp;show_faces=false'
365
+ .'&amp;width=80'
366
+ .'&amp;action='.$action
367
+ .'&amp;colorscheme='.$colorscheme
368
+ .'&amp;height=20"'
369
+ .' scrolling="no" frameborder="0"'
370
+ .' style="border:none; overflow:hidden; width:100px; height:20px;"'
371
+ .' allowTransparency="true"></iframe>');
372
  }
373
+
374
+ /**
375
+ * @brief reddit
376
+ */
377
  function reddit()
378
  {
379
  $url = "http://www.reddit.com/submit?url={$this->encode_url}&title={$this->encode_title}";
380
  $alt = __( "Share on reddit", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
381
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/reddit.png";
382
+ return $this->link( $url, $alt, $icon, 16, 16 );
383
  }
384
 
385
  /**
390
  $url = "http://www.linkedin.com/shareArticle?mini=true&url={$this->encode_url}&title={$this->encode_title}";
391
  $alt = __( "Share on LinkedIn", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
392
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/linkedin.png";
393
+ return $this->link( $url, $alt, $icon, 16, 16 );
394
  }
395
 
396
  /**
398
  */
399
  function evernote()
400
  {
401
+ $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/evernote.png";
402
+ $script = "(function(){EN_CLIP_HOST='http://www.evernote.com';try{var x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();";
403
+ $img = "<img src='${icon}' width='16' height='16' />";
404
+ return $this->link_raw( "<a href='#' title='Clip to Evernote' onclick=\"${script} return false;\">${img}</a>" );
405
+ }
406
 
407
  /**
408
  * @brief Instapaper
409
  */
410
  function instapaper()
411
  {
412
+ $href = "javascript:function iprl5(){var d=document,z=d.createElement(&#039;scr&#039;+&#039;ipt&#039;),b=d.body,l=d.location;try{if(!b)throw(0);d.title=&#039;(Saving...) &#039;+d.title;z.setAttribute(&#039;src&#039;,l.protocol+&#039;//www.instapaper.com/j/GKo8MDzHWjRx?u=&#039;+encodeURIComponent(l.href)+&#039;&amp;t=&#039;+(new Date().getTime()));b.appendChild(z);}catch(e){alert(&#039;Please wait until the page has loaded.&#039;);}}iprl5();void(0)";
413
+ return $this->link_raw( '<a href="'.$href.'" class="wp_social_bookmarking_light_instapaper" style="line-height:17px !important" title="Read Later">Read Later</a>' );
414
  }
415
 
416
  /**
421
  $url = "http://www.stumbleupon.com/submit?url={$this->encode_url}&title={$this->encode_title}";
422
  $alt = __( "Share on StumbleUpon", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
423
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/stumbleupon.png";
424
+ return $this->link( $url, $alt, $icon, 16, 16 );
425
  }
426
 
427
  /**
429
  */
430
  function mixi()
431
  {
432
+ $options = wp_social_bookmarking_light_options();
433
+ $data_button = $options['mixi']['button'];
434
+ $data_key = $options['mixi']['check_key'];
435
+
436
+ return $this->link_raw( '<a href="http://mixi.jp/share.pl" class="mixi-check-button"'
437
+ ." data-url='{$this->url}'"
438
+ ." data-button='{$data_button}'"
439
+ ." data-key='{$data_key}'>Check</a>"
440
+ .'<script type="text/javascript" src="http://static.mixi.jp/js/share.js"></script>' );
441
  }
442
 
443
  /**
448
  $url = "http://gree.jp/?mode=share&act=write&url={$this->encode_url}&title={$this->encode_title}&site_type=website";
449
  $alt = __( "Share on GREE", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
450
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/gree.png";
451
+ return $this->link( $url, $alt, $icon, 16, 16 );
452
  }
453
 
454
  }
459
  "position" => "top",
460
  "single_page" => true,
461
  "is_page" => true,
462
+ "mixi" => array('check_key' => '',
463
+ 'check_robots' => 'noimage',
464
+ 'button' => 'button-3'),
465
+ "twitter" => array('via' => "",
466
+ 'lang' => "en",
467
+ 'count' => 'horizontal',
468
+ 'width' => '130',
469
+ 'height' => '20'),
470
+ "hatena_button" => array('layout' => 'standard'),
471
+ 'facebook_like' => array('action' => 'like',
472
+ 'colorscheme' => 'light'),
473
+ );
474
  }
475
 
476
  function wp_social_bookmarking_light_options()
477
  {
478
+ $options = get_option("wp_social_bookmarking_light_options", array());
479
+
480
+ // Compatibility version 1.5.2 or less
481
+ if(!is_array($options['mixi'])){
482
+ $options['mixi'] = array();
483
+ if(isset($options['mixi_check_key']) || isset($options['mixi_check_robots'])){
484
+ $options['mixi']['check_key'] = $options['mixi_check_key'];
485
+ $options['mixi']['check_robots'] = $options['mixi_check_robots'];
486
+ unset($options['mixi_check_key']);
487
+ unset($options['mixi_check_robots']);
488
+ }
489
+ }
490
+
491
+ // array merge recursive overwrite (1 depth)
492
+ $default_options = wp_social_bookmarking_light_default_options();
493
+ foreach( $default_options as $key => $val ){
494
+ if(is_array($default_options[$key])){
495
+ if(!is_array($options[$key])){
496
+ $options[$key] = array();
497
+ }
498
+ $options[$key] = array_merge($default_options[$key], $options[$key]);
499
+ }
500
+ }
501
+ return array_merge( wp_social_bookmarking_light_default_options(), $options );
502
  }
503
 
504
  function wp_social_bookmarking_light_wp_head()
505
  {
506
+ // for mixi Check
507
+ $options = wp_social_bookmarking_light_options();
508
+ foreach( explode(",", $options['services']) as $service ){
509
+ $service = trim($service);
510
+ if( "mixi" == $service ){
511
  ?>
512
+ <meta name="mixi-check-robots" content="<?php echo $options['mixi']['check_robots'] ?>" />
513
  <?php
514
+ break;
515
+ }
516
+ }
517
+
518
  ?>
519
  <style type="text/css">
520
  ul.wp_social_bookmarking_light{list-style:none !important;border:0 !important;padding:0;margin:0;}
521
  ul.wp_social_bookmarking_light li{float:left !important;border:0 !important;padding:0 4px 0 0 !important;margin:0 !important;height:20px !important;text-indent:0 !important;}
522
+ #ul.wp_social_bookmarking_light li:before{content:"" !important;}
523
  ul.wp_social_bookmarking_light img{border:0 !important;padding:0;margin:0;vertical-align:top !important;}
524
  .wp_social_bookmarking_light_clear{clear:both !important;}
525
  a.wp_social_bookmarking_light_instapaper {display: inline-block;font-family: 'Lucida Grande', Verdana, sans-serif;font-weight: bold;font-size: 11px;-webkit-border-radius: 8px;-moz-border-radius: 8px;color: #fff;background-color: #626262;border: 1px solid #626262;padding: 0px 3px 0px;text-shadow: #3b3b3b 1px 1px 0px;min-width: 62px;text-align: center;vertical-align:top;line-height:20px;}
529
  <?php
530
  }
531
 
 
 
 
 
 
 
 
 
 
 
 
532
  function wp_social_bookmarking_light_output( $services )
533
  {
534
  $wp = new WpSocialBookmarkingLight( get_permalink(), get_the_title(), get_bloginfo('name') );
544
  return "<ul class='wp_social_bookmarking_light'>{$out}</ul><br class='wp_social_bookmarking_light_clear' />";
545
  }
546
 
547
+ function wp_social_bookmarking_light_output_e( $services=null )
548
  {
549
+ if($services == null){
550
+ $options = wp_social_bookmarking_light_options();
551
+ $services = $options['services'];
552
+ }
553
+ echo wp_social_bookmarking_light_output( $services );
554
  }
555
 
556
  function wp_social_bookmarking_light_the_content( $content )
564
  return $content;
565
  }
566
  if( !$options['is_page'] && is_page() ){
567
+ return $content;
568
  }
569
 
570
  $out = wp_social_bookmarking_light_output( $options['services'] );
580
  return $content;
581
  }
582
 
583
+ // admin pages
584
+ function wp_social_bookmarking_light_admin_print_scripts()
585
  {
586
+ wp_enqueue_script('jquery');
587
+ wp_enqueue_script('jquery-ui-core');
588
+ wp_enqueue_script('jquery-ui-tabs');
589
  }
 
590
 
591
+ function wp_social_bookmarking_light_admin_print_styles()
592
+ {
593
+ wp_enqueue_style('jquery-ui-tabs', WP_SOCIAL_BOOKMARKING_LIGHT_URL."/libs/jquery/css/pepper-grinder/jquery-ui-1.8.6.custom.css");
594
+ }
595
+
596
+ function wp_social_bookmarking_light_admin_head()
597
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
598
  ?>
599
  <style type="text/css">
600
  .wp_social_bookmarking_light_options{
610
  margin: 0px;
611
  padding: 3px;
612
  }
613
+ .wp_social_bookmarking_light_options td{en
614
  text-align: left;
615
  margin: 0px;
616
  padding: 3px;
617
  }
618
  </style>
619
+
 
 
620
  <script type="text/javascript" charset="utf-8">
621
  //<![CDATA[
622
+ function wsbl_options_toggle(service_id, is_simply)
623
+ {
624
+ var val = jQuery("#services_id").val();
625
+ var vals = val.split(",");
626
+ var has_option = false;
627
+ for(var i = 0; i < vals.length; i++){
628
+ val = vals[i].replace(/(^\s+)|(\s+$)/g, "");
629
+ if(val == service_id){
630
+ has_option = true;
631
+ }
632
+ }
633
+
634
+ var service_id_settings = "#" + service_id + "_settings";
635
+ if(is_simply){
636
+ has_option ? jQuery(service_id_settings).show() : jQuery(service_id_settings).hide();
637
+ }
638
+ else{
639
+ has_option ? jQuery(service_id_settings).slideDown() : jQuery(service_id_settings).slideUp();
640
+ }
641
+ }
642
+
643
+ function wsbl_options_toggle_all(is_simply)
644
  {
645
+ wsbl_options_toggle("mixi", is_simply);
646
+ wsbl_options_toggle("twitter", is_simply);
647
+ wsbl_options_toggle("hatena_button", is_simply);
648
+ wsbl_options_toggle("facebook_like", is_simply);
 
 
 
 
 
 
 
 
 
 
 
 
649
  }
650
 
651
  // read onece
652
  jQuery(document).ready(function(){
653
+ jQuery("#tabs").tabs();
654
+
655
+ jQuery("#services_id").keyup(function(){
656
+ wsbl_options_toggle_all(false);
657
+ });
658
+ wsbl_options_toggle_all(true);
659
  });
660
  //]]>
661
  </script>
662
+ <?php
663
+ }
664
+
665
+ function wp_social_bookmarking_light_admin_menu()
666
+ {
667
+ if( function_exists('add_options_page') ){
668
+ $page = add_options_page( 'WP Social Bookmarking Light',
669
+ 'WP Social Bookmarking Light',
670
+ 'manage_options',
671
+ __FILE__,
672
+ 'wp_social_bookmarking_light_options_page' );
673
+
674
+ add_action('admin_print_styles-'.$page, 'wp_social_bookmarking_light_admin_print_styles');
675
+ add_action('admin_print_scripts-'.$page, 'wp_social_bookmarking_light_admin_print_scripts');
676
+ add_action('admin_head-'.$page, 'wp_social_bookmarking_light_admin_head');
677
+ }
678
+ }
679
+
680
+ // initialize all
681
+ function wp_social_bookmarking_light_init()
682
+ {
683
+ add_action( 'wp_head', 'wp_social_bookmarking_light_wp_head' );
684
+ add_filter( 'the_content', 'wp_social_bookmarking_light_the_content' );
685
+ add_action( 'admin_menu', 'wp_social_bookmarking_light_admin_menu' );
686
+ }
687
+ add_action( 'init', 'wp_social_bookmarking_light_init' );
688
+
689
+ // options page
690
+ function wp_social_bookmarking_light_options_page()
691
+ {
692
+ if( isset( $_POST['save'] ) ){
693
+ $options = array("services" => $_POST["services"],
694
+ "position" => $_POST["position"],
695
+ "single_page" => $_POST["single_page"] == 'true',
696
+ "is_page" => $_POST["is_page"] == 'true',
697
+ "mixi" => array('check_key' => $_POST["mixi_check_key"],
698
+ 'check_robots' => $_POST["mixi_check_robots"],
699
+ 'button' => $_POST['mixi_button']),
700
+ "twitter" => array('via' => $_POST['twitter_via'],
701
+ 'lang' => $_POST['twitter_lang'],
702
+ 'count' => $_POST['twitter_count'],
703
+ 'width' => $_POST['twitter_width'],
704
+ 'height' => $_POST['twitter_height']),
705
+ 'hatena_button' => array('layout' => $_POST['hatena_button_layout']),
706
+ 'facebook_like' => array('action' => $_POST['facebook_like_action'],
707
+ 'colorscheme' => $_POST['facebook_like_colorscheme']),
708
+ );
709
+ update_option( 'wp_social_bookmarking_light_options', $options );
710
+ echo '<div class="updated"><p><strong>'.__( 'Options saved.', WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN ).'</strong></p></div>';
711
+ }
712
+ else if( isset( $_POST['reset'] ) ){
713
+ $options = wp_social_bookmarking_light_default_options();
714
+ update_option( 'wp_social_bookmarking_light_options', $options );
715
+ echo '<div class="updated"><p><strong>'.__( 'Reset options.', WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN ).'</strong></p></div>';
716
+ }
717
+ else{
718
+ $options = wp_social_bookmarking_light_options();
719
+ }
720
+ ?>
721
+
722
  <div class="wrap">
723
  <h2>WP Social Bookmarking Light</h2>
724
+
725
  <form method='POST' action="<?php echo $_SERVER['REQUEST_URI'] ?>">
726
+ <div id="tabs">
727
+ <ul>
728
+ <li><a href="#tabs-1"><span><?php _e("General Settings") ?></span></a></li>
729
+ <li id='mixi_settings'><a href="#tabs-2"><span><?php _e("mixi") ?></span></a></li>
730
+ <li id='twitter_settings'><a href="#tabs-3"><span><?php _e("twitter") ?></span></a></li>
731
+ <li id='hatena_button_settings'><a href="#tabs-4"><span><?php _e("hatena_button") ?></span></a></li>
732
+ <li id='facebook_like_settings'><a href="#tabs-5"><span><?php _e("facebook_like") ?></span></a></li>
733
+ <li><a href="#tabs-10"><span><?php _e("Donation") ?></span></a></li>
734
+ </ul>
735
+ <div id="tabs-1">
736
+ <table class='form-table'>
737
+ <tr>
738
+ <th scope="row">Position:</th>
739
+ <td>
740
+ <select name='position'>
741
+ <option value='top' <?php if( $options['position'] == 'top' ) echo 'selected'; ?>>Top</option>
742
+ <option value='bottom' <?php if( $options['position'] == 'bottom' ) echo 'selected'; ?>>Bottom</option>
743
+ <option value='none' <?php if( $options['position'] == 'none' ) echo 'selected'; ?>>None</option>
744
+ </select>
745
+ </td>
746
+ </tr>
747
+ <tr>
748
+ <th scope="row">Is Singular:</th>
749
+ <td>
750
+ <select name='single_page'>
751
+ <option value='true' <?php if( $options['single_page'] == true ) echo 'selected'; ?>>Enabled</option>
752
+ <option value='false' <?php if( $options['single_page'] == false ) echo 'selected'; ?>>Disabled</option>
753
+ </select>
754
+ </td>
755
+ </tr>
756
+ <tr>
757
+ <th scope="row">Is Page:</th>
758
+ <td>
759
+ <select name='is_page'>
760
+ <option value='true' <?php if( $options['is_page'] == true ) echo 'selected'; ?>>Enabled</option>
761
+ <option value='false' <?php if( $options['is_page'] == false ) echo 'selected'; ?>>Disabled</option>
762
+ </select>
763
+ </td>
764
+ </tr>
765
+ <tr>
766
+ <th scope="row">Services: <br/> <span style="font-size:10px">(comma-separated)</span></th>
767
+ <td><input type="text" id='services_id' name='services' value="<?php echo $options['services'] ?>"size=120 style="font-size:12px !important" /></td>
768
+ </tr>
769
+ </table>
770
+ </div>
771
+
772
+ <div id="tabs-2">
773
+ <table class='form-table'>
774
+ <tr>
775
+ <th scope="row">Check Key:</th>
776
+ <td>
777
+ <input type="text" name='mixi_check_key' value="<?php echo $options['mixi']["check_key"] ?>" size=50 />
778
+ </td>
779
+ </tr>
780
+ <tr>
781
+ <th scope="row">Check Robots:</th>
782
+ <td>
783
+ <input type="text" name='mixi_check_robots' value="<?php echo $options['mixi']["check_robots"] ?>" size=50 />
784
+ </td>
785
+ </tr>
786
+ <tr>
787
+ <th scope="row">Layout:</th>
788
+ <td>
789
+ <select name='mixi_button'>
790
+ <option value='button-1' <?php if( $options['mixi']['button'] == 'button-1' ) echo 'selected'; ?>>button-1</option>
791
+ <option value='button-2' <?php if( $options['mixi']['button'] == 'button-2' ) echo 'selected'; ?>>button-2</option>
792
+ <option value='button-3' <?php if( $options['mixi']['button'] == 'button-3' ) echo 'selected'; ?>>button-3</option>
793
+ <option value='button-4' <?php if( $options['mixi']['button'] == 'button-4' ) echo 'selected'; ?>>button-4</option>
794
+ </select>
795
+ </td>
796
+ </tr>
797
+ </table>
798
+ </div>
799
 
800
+ <div id="tabs-3">
801
+ <table class='form-table'>
802
+ <tr>
803
+ <th scope="row">Via: <br> <span style="font-size:10px">(your twitter account)</span></th>
804
+ <td>
805
+ <input type="text" name='twitter_via' value="<?php echo $options['twitter']['via'] ?>" size=50 />
806
+ </td>
807
+ </tr>
808
+ <tr>
809
+ <th scope="row">Language:</th>
810
+ <td>
811
+ <select name='twitter_lang'>
812
+ <option value='en' <?php if( $options['twitter']['lang'] == 'en' ) echo 'selected'; ?>>English</option>
813
+ <option value='fr' <?php if( $options['twitter']['lang'] == 'fr' ) echo 'selected'; ?>>French</option>
814
+ <option value='de' <?php if( $options['twitter']['lang'] == 'de' ) echo 'selected'; ?>>German</option>
815
+ <option value='es' <?php if( $options['twitter']['lang'] == 'es' ) echo 'selected'; ?>>Spanish</option>
816
+ <option value='ja' <?php if( $options['twitter']['lang'] == 'ja' ) echo 'selected'; ?>>Japanese</option>
817
+ </select>
818
+ </td>
819
+ </tr>
820
+ <tr>
821
+ <th scope="row">Count:</th>
822
+ <td>
823
+ <select name='twitter_count'>
824
+ <option value='none' <?php if( $options['twitter']['count'] == 'none' ) echo 'selected'; ?>>none</option>
825
+ <option value='horizontal' <?php if( $options['twitter']['count'] == 'horizontal' ) echo 'selected'; ?>>horizontal</option>
826
+ </select>
827
+ </td>
828
+ </tr>
829
+ <tr>
830
+ <th scope="row">Width:</th>
831
+ <td>
832
+ <input type="text" name='twitter_width' value="<?php echo $options['twitter']['width'] ?>" size=20 />
833
+ </td>
834
+ </tr>
835
+ <tr>
836
+ <th scope="row">Height:</th>
837
+ <td>
838
+ <input type="text" name='twitter_height' value="<?php echo $options['twitter']['height'] ?>" size=20 />
839
+ </td>
840
+ </tr>
841
+ </table>
842
+ </div>
843
+
844
+ <div id="tabs-4">
845
+ <table class='form-table'>
846
+ <tr>
847
+ <th scope="row">Layout:</th>
848
+ <td>
849
+ <select name='hatena_button_layout'>
850
+ <option value='standard' <?php if( $options['hatena_button']['layout'] == 'standard' ) echo 'selected'; ?>>standard</option>
851
+ <option value='simple' <?php if( $options['hatena_button']['layout'] == 'simple' ) echo 'selected'; ?>>simple</option>
852
+ </select>
853
+ </td>
854
+ </tr>
855
+ </table>
856
+ </div>
857
 
858
+ <div id="tabs-5">
859
+ <table class='form-table'>
860
+ <tr>
861
+ <th scope="row">Action:</th>
862
+ <td>
863
+ <select name='facebook_like_action'>
864
+ <option value='like' <?php if( $options['facebook_like']['action'] == 'like' ) echo 'selected'; ?>>like</option>
865
+ <option value='recommend' <?php if( $options['facebook_like']['action'] == 'recommend' ) echo 'selected'; ?>>recommend</option>
866
+ </select>
867
+ </td>
868
+ </tr>
869
+ <tr>
870
+ <th scope="row">Color Scheme:</th>
871
+ <td>
872
+ <select name='facebook_like_colorscheme'>
873
+ <option value='light' <?php if( $options['facebook_like']['colorscheme'] == 'light' ) echo 'selected'; ?>>light</option>
874
+ <option value='dark' <?php if( $options['facebook_like']['colorscheme'] == 'dark' ) echo 'selected'; ?>>dark</option>
875
+ </select>
876
+ </td>
877
+ </tr>
878
+ </table>
879
+ </div>
880
+
881
+ <div id="tabs-10">
882
+ <p>A donation would help development of WP Social Bookmarking Light.</p>
883
+ <a href='http://www.pledgie.com/campaigns/14051' target=_blank><img alt='Click here to lend your support to: WP Social Bookmarking Light and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/14051.png?skin_name=chrome' border='0' /></a>
884
+ </div>
885
+ </div>
886
  <p class="submit">
887
  <input class="button-primary" type="submit" name='save' value='<?php _e('Save Changes') ?>' />
888
  <input type="submit" name='reset' value='<?php _e('Reset') ?>' />
889
  </p>
890
  </form>
891
+
892
  <table class='wp_social_bookmarking_light_options'>
893
  <tr><th><?php _e("Service Code") ?></th><th><?php _e("Explain") ?></th></tr>
894
  <tr><td>hatena</td><td>Hatena Bookmark</td></tr>
895
  <tr><td>hatena_users</td><td>Hatena Bookmark Users</td></tr>
896
+ <tr><td>hatena_button</td><td>Hatena Bookmark Button</td></tr>
897
  <tr><td>twib</td><td>Twib - Twitter</td></tr>
898
  <tr><td>twib_users</td><td>Twib Users - Twitter</td></tr>
899
  <tr><td>tweetmeme</td><td>TweetMeme - Twitter</td></tr>
928
  <tr><td>gree</td><td>GREE Social Feedback</td></tr>
929
  </table>
930
  </div>
931
+
932
  <?php
933
  }
934
 
935
+ ?>