1 | {combine_css path=$SOCIALBUTT_PATH|@cat:"template/style.css"} |
---|
2 | |
---|
3 | {html_style} |
---|
4 | .socialbutt.disabled thead img { |
---|
5 | -webkit-filter: grayscale(100%); /* Chrome 19+ & Safari 6+ */ |
---|
6 | filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='saturate' values='0'/></filter></svg>#grayscale"); /* Firefox 10+ */ |
---|
7 | filter: gray; /* IE6-9 */ |
---|
8 | } |
---|
9 | {if $light} |
---|
10 | .not-light { display:none; } |
---|
11 | {/if} |
---|
12 | {/html_style} |
---|
13 | |
---|
14 | {footer_script} |
---|
15 | jQuery("input.enable").change(function() { |
---|
16 | $parent = $(this).closest("div.socialbutt"); |
---|
17 | if (!$(this).is(":checked")) { |
---|
18 | $parent.find("thead label").attr("title", "{'Enable'|translate|escape:javascript}"); |
---|
19 | $parent.addClass('disabled'); |
---|
20 | $parent.removeClass('enabled'); |
---|
21 | } |
---|
22 | else { |
---|
23 | $parent.find("thead label").attr("title", "{'Disable'|translate|escape:javascript}"); |
---|
24 | $parent.addClass('enabled'); |
---|
25 | $parent.removeClass('disabled'); |
---|
26 | } |
---|
27 | }); |
---|
28 | |
---|
29 | jQuery("input#light_mode").on('change', function() { |
---|
30 | if ($(this).is(":checked")) { |
---|
31 | $('.not-light').hide(); |
---|
32 | } |
---|
33 | else { |
---|
34 | $('.not-light').show(); |
---|
35 | } |
---|
36 | }); |
---|
37 | |
---|
38 | jQuery(".showInfo").tipTip({ |
---|
39 | delay: 0, |
---|
40 | fadeIn: 200, |
---|
41 | fadeOut: 200, |
---|
42 | maxWidth: '300px', |
---|
43 | defaultPosition: 'bottom' |
---|
44 | }); |
---|
45 | {/footer_script} |
---|
46 | |
---|
47 | |
---|
48 | <div class="titrePage"> |
---|
49 | <h2>Social Buttons</h2> |
---|
50 | </div> |
---|
51 | |
---|
52 | |
---|
53 | <form method="post" action="" class="properties" style="text-align:center;"> |
---|
54 | |
---|
55 | <div class="socialbutt"> |
---|
56 | <table> |
---|
57 | <tr class="property"> |
---|
58 | <td> |
---|
59 | {'Button position on picture page'|translate} |
---|
60 | </td> |
---|
61 | <td> |
---|
62 | <label><input type="radio" name="position" value="top" {if $position=='top'}checked="checked"{/if}/> {'Top'|translate}</label> |
---|
63 | <label><input type="radio" name="position" value="bottom" {if $position=='bottom'}checked="checked"{/if}/> {'Bottom'|translate}</label> |
---|
64 | <label><input type="radio" name="position" value="toolbar" {if $position=='toolbar'}checked="checked"{/if}/> {'Toolbar'|translate}</label> |
---|
65 | </td> |
---|
66 | </tr> |
---|
67 | <tr class="property"> |
---|
68 | <td> |
---|
69 | {'Display buttons'|translate} |
---|
70 | </td> |
---|
71 | <td> |
---|
72 | <label><input type="radio" name="on_index" value="true" {if $on_index}checked="checked"{/if}/> {'on photo and album'|translate}</label><br> |
---|
73 | <label><input type="radio" name="on_index" value="false" {if not $on_index}checked="checked"{/if}/> {'only on photo'|translate}</label> |
---|
74 | </td> |
---|
75 | </tr> |
---|
76 | <tr class="property"> |
---|
77 | <td> |
---|
78 | {'Shared picture size'|translate} |
---|
79 | </td> |
---|
80 | <td> |
---|
81 | {html_options name="img_size" values=$img_sizes output=$img_sizes|translate selected=$img_size} |
---|
82 | </td> |
---|
83 | </tr> |
---|
84 | <tr class="property"> |
---|
85 | <td> |
---|
86 | <label for="light_mode">{'Light mode'|translate}</label> |
---|
87 | </td> |
---|
88 | <td> |
---|
89 | <input type="checkbox" id="light_mode" name="light" {if $light}checked="checked"{/if}/> |
---|
90 | <a class="icon-info-circled-1 showInfo" title="{'When light mode is activated no external script is loaded, it <b>speeds up the load of the page and disables user tracking</b> but also disables annotations and in-page popups.'|translate}"></a> |
---|
91 | </td> |
---|
92 | </tr> |
---|
93 | </table> |
---|
94 | </div> |
---|
95 | |
---|
96 | <br> |
---|
97 | |
---|
98 | |
---|
99 | <div class="socialbutt {if not $twitter.enabled}disabled{else}enabled{/if}"> {* <!-- twitter --> *} |
---|
100 | <table> |
---|
101 | <thead> |
---|
102 | <tr><td colspan="2"> |
---|
103 | <label title="{if $twitter.enabled}{'Disable'|translate}{else}{'Enable'|translate}{/if}"> |
---|
104 | <img src="{$SOCIALBUTT_PATH}template/images/twitter_logo.png"/> |
---|
105 | <input class="enable" style="display:none;" type="checkbox" name="twitter[enabled]" {if $twitter.enabled}checked="checked"{/if}/> |
---|
106 | </label> |
---|
107 | </td></tr> |
---|
108 | </thead> |
---|
109 | <tbody> |
---|
110 | <tr class="property"> |
---|
111 | <td> |
---|
112 | {'Button type'|translate} |
---|
113 | </td> |
---|
114 | <td></td> |
---|
115 | </tr> |
---|
116 | <tr class="button"> |
---|
117 | <td><label> |
---|
118 | <img src="{$SOCIALBUTT_PATH}template/images/twitter_small.png"/> |
---|
119 | <input type="radio" name="twitter[size]" value="small" {if $twitter.size=='small'}checked="checked"{/if}/> |
---|
120 | </label></td> |
---|
121 | <td><label> |
---|
122 | <input type="radio" name="twitter[size]" value="large" {if $twitter.size=='large'}checked="checked"{/if}/> |
---|
123 | <img src="{$SOCIALBUTT_PATH}template/images/twitter_large.png"/> |
---|
124 | </label></td> |
---|
125 | </tr> |
---|
126 | <tr class="property not-light"> |
---|
127 | <td> |
---|
128 | {'Annotation'|translate} |
---|
129 | </td> |
---|
130 | <td> |
---|
131 | <label><input type="radio" name="twitter[count]" value="none" {if $twitter.count=='none'}checked="checked"{/if}/> {'None'|translate}</label><br> |
---|
132 | <label><input type="radio" name="twitter[count]" value="bubble" {if $twitter.count=='bubble'}checked="checked"{/if}/> {'Bubble'|translate}</label><br> |
---|
133 | </td> |
---|
134 | </tr> |
---|
135 | <tr class="property"> |
---|
136 | <td> |
---|
137 | <label for="twitter_via">{'Via'|translate}</label> |
---|
138 | </td> |
---|
139 | <td> |
---|
140 | @ <input type="text" id="twitter_via" name="twitter[via]" value="{$twitter.via}"/> |
---|
141 | </td> |
---|
142 | </tr> |
---|
143 | </tbody> |
---|
144 | </table> |
---|
145 | </div> {* <!-- twitter --> *} |
---|
146 | |
---|
147 | <div class="socialbutt {if not $google.enabled}disabled{else}enabled{/if}"> {* <!-- google --> *} |
---|
148 | <table> |
---|
149 | <thead> |
---|
150 | <tr><td colspan="2"> |
---|
151 | <label title="{if $google.enabled}{'Disable'|translate}{else}{'Enable'|translate}{/if}"> |
---|
152 | <img src="{$SOCIALBUTT_PATH}template/images/google_logo.png"/> |
---|
153 | <input class="enable" style="display:none;" type="checkbox" name="google[enabled]" {if $google.enabled}checked="checked"{/if}/> |
---|
154 | </label> |
---|
155 | </td></tr> |
---|
156 | </thead> |
---|
157 | <tbody> |
---|
158 | <tr class="property"> |
---|
159 | <td> |
---|
160 | {'Button type'|translate} |
---|
161 | </td> |
---|
162 | <td></td> |
---|
163 | </tr> |
---|
164 | <tr class="button"> |
---|
165 | <td><label> |
---|
166 | <img src="{$SOCIALBUTT_PATH}template/images/google_small.png"/> |
---|
167 | <input type="radio" name="google[size]" value="small" {if $google.size=='small'}checked="checked"{/if}/> |
---|
168 | </label></td> |
---|
169 | <td><label> |
---|
170 | <input type="radio" name="google[size]" value="medium" {if $google.size=='medium'}checked="checked"{/if}/> |
---|
171 | <img src="{$SOCIALBUTT_PATH}template/images/google_medium.png"/> |
---|
172 | </label></td> |
---|
173 | </tr> |
---|
174 | <tr class="button"> |
---|
175 | <td><label> |
---|
176 | <img src="{$SOCIALBUTT_PATH}template/images/google_standard.png"/> |
---|
177 | <input type="radio" name="google[size]" value="standard" {if $google.size=='standard'}checked="checked"{/if}/> |
---|
178 | </label></td> |
---|
179 | <td><label> |
---|
180 | <input type="radio" name="google[size]" value="tall" {if $google.size=='tall'}checked="checked"{/if}/> |
---|
181 | <img src="{$SOCIALBUTT_PATH}template/images/google_tall.png"/> |
---|
182 | </label></td> |
---|
183 | </tr> |
---|
184 | <tr class="property not-light"> |
---|
185 | <td> |
---|
186 | {'Annotation'|translate} |
---|
187 | </td> |
---|
188 | <td> |
---|
189 | <label><input type="radio" name="google[annotation]" value="none" {if $google.annotation=='none'}checked="checked"{/if}/> {'None'|translate}</label><br> |
---|
190 | <label><input type="radio" name="google[annotation]" value="bubble" {if $google.annotation=='bubble'}checked="checked"{/if}/> {'Bubble'|translate}</label><br> |
---|
191 | <label><input type="radio" name="google[annotation]" value="inline" {if $google.annotation=='inline'}checked="checked"{/if}/> {'Inline text'|translate}</label> |
---|
192 | </td> |
---|
193 | </tr> |
---|
194 | </tbody> |
---|
195 | </table> |
---|
196 | </div> {* <!-- google --> *} |
---|
197 | |
---|
198 | <br> |
---|
199 | |
---|
200 | <div class="socialbutt {if not $facebook.enabled}disabled{else}enabled{/if}"> {* <!-- facebook --> *} |
---|
201 | <table> |
---|
202 | <thead> |
---|
203 | <tr><td colspan="2"> |
---|
204 | <label title="{if $facebook.enabled}{'Disable'|translate}{else}{'Enable'|translate}{/if}"> |
---|
205 | <img src="{$SOCIALBUTT_PATH}template/images/facebook_logo.png"/> |
---|
206 | <input class="enable" style="display:none;" type="checkbox" name="facebook[enabled]" {if $facebook.enabled}checked="checked"{/if}/> |
---|
207 | </label> |
---|
208 | </td></tr> |
---|
209 | </thead> |
---|
210 | <tbody> |
---|
211 | <tr class="property not-light"> |
---|
212 | <td> |
---|
213 | {'Annotation'|translate} |
---|
214 | </td> |
---|
215 | <td> |
---|
216 | <!-- <label><input type="radio" name="facebook[layout]" value="none" {if $facebook.layout=='none'}checked="checked"{/if}/> {'None'|translate}</label><br> --> |
---|
217 | <label><input type="radio" name="facebook[layout]" value="button_count" {if $facebook.layout=='button_count'}checked="checked"{/if}/> {'Right bubble'|translate}</label><br> |
---|
218 | <label><input type="radio" name="facebook[layout]" value="box_count" {if $facebook.layout=='box_count'}checked="checked"{/if}/> {'Top bubble'|translate}</label><br> |
---|
219 | <label><input type="radio" name="facebook[layout]" value="standard" {if $facebook.layout=='standard'}checked="checked"{/if}/> {'Inline text'|translate}</label> |
---|
220 | </td> |
---|
221 | </tr> |
---|
222 | </tbody> |
---|
223 | </table> |
---|
224 | </div> {* <!-- facebook --> *} |
---|
225 | |
---|
226 | <div class="socialbutt {if not $pinterest.enabled}disabled{else}enabled{/if}"> {* <!-- pinterest --> *} |
---|
227 | <table> |
---|
228 | <thead> |
---|
229 | <tr><td colspan="2"> |
---|
230 | <label title="{if $pinterest.enabled}{'Disable'|translate}{else}{'Enable'|translate}{/if}"> |
---|
231 | <img src="{$SOCIALBUTT_PATH}template/images/pinterest_logo.png"/> |
---|
232 | <input class="enable" style="display:none;" type="checkbox" name="pinterest[enabled]" {if $pinterest.enabled}checked="checked"{/if}/> |
---|
233 | </label> |
---|
234 | </td></tr> |
---|
235 | </thead> |
---|
236 | <tbody> |
---|
237 | <tr class="property not-light"> |
---|
238 | <td> |
---|
239 | {'Annotation'|translate} |
---|
240 | </td> |
---|
241 | <td> |
---|
242 | <label><input type="radio" name="pinterest[layout]" value="none" {if $pinterest.layout=='none'}checked="checked"{/if}/> {'None'|translate}</label><br> |
---|
243 | <label><input type="radio" name="pinterest[layout]" value="horizontal" {if $pinterest.layout=='horizontal'}checked="checked"{/if}/> {'Right bubble'|translate}</label><br> |
---|
244 | <label><input type="radio" name="pinterest[layout]" value="vertical" {if $pinterest.layout=='vertical'}checked="checked"{/if}/> {'Top bubble'|translate}</label> |
---|
245 | </td> |
---|
246 | </tr> |
---|
247 | </tbody> |
---|
248 | </table> |
---|
249 | </div> {* <!-- pinterest --> *} |
---|
250 | |
---|
251 | <br> |
---|
252 | |
---|
253 | <div class="socialbutt {if not $tumblr.enabled}disabled{else}enabled{/if}"> {* <!-- tumblr --> *} |
---|
254 | <table> |
---|
255 | <thead> |
---|
256 | <tr><td colspan="2"> |
---|
257 | <label title="{if $tumblr.enabled}{'Disable'|translate}{else}{'Enable'|translate}{/if}"> |
---|
258 | <img src="{$SOCIALBUTT_PATH}template/images/tumblr_logo.png"/> |
---|
259 | <input class="enable" style="display:none;" type="checkbox" name="tumblr[enabled]" {if $tumblr.enabled}checked="checked"{/if}/> |
---|
260 | </label> |
---|
261 | </td></tr> |
---|
262 | </thead> |
---|
263 | <tbody> |
---|
264 | <tr class="property"> |
---|
265 | <td> |
---|
266 | {'Button type'|translate} |
---|
267 | </td> |
---|
268 | <td></td> |
---|
269 | </tr> |
---|
270 | <tr class="button"> |
---|
271 | <td><label> |
---|
272 | <img src="http://platform.tumblr.com/v1/share_1.png"/> |
---|
273 | <input type="radio" name="tumblr[type]" value="share_1" {if $tumblr.type=='share_1'}checked="checked"{/if}/> |
---|
274 | </label></td> |
---|
275 | <td><label> |
---|
276 | <input type="radio" name="tumblr[type]" value="share_1T" {if $tumblr.type=='share_1T'}checked="checked"{/if}/> |
---|
277 | <img src="http://platform.tumblr.com/v1/share_1T.png"/> |
---|
278 | </label></td> |
---|
279 | </tr> |
---|
280 | <tr class="button"> |
---|
281 | <td><label> |
---|
282 | <img src="http://platform.tumblr.com/v1/share_2.png"/> |
---|
283 | <input type="radio" name="tumblr[type]" value="share_2" {if $tumblr.type=='share_2'}checked="checked"{/if}/> |
---|
284 | </label></td> |
---|
285 | <td><label> |
---|
286 | <input type="radio" name="tumblr[type]" value="share_2T" {if $tumblr.type=='share_2T'}checked="checked"{/if}/> |
---|
287 | <img src="http://platform.tumblr.com/v1/share_2T.png"/> |
---|
288 | </label></td> |
---|
289 | </tr> |
---|
290 | <tr class="button"> |
---|
291 | <td><label> |
---|
292 | <img src="http://platform.tumblr.com/v1/share_3.png"/> |
---|
293 | <input type="radio" name="tumblr[type]" value="share_3" {if $tumblr.type=='share_3'}checked="checked"{/if}/> |
---|
294 | </label></td> |
---|
295 | <td><label> |
---|
296 | <input type="radio" name="tumblr[type]" value="share_3T" {if $tumblr.type=='share_3T'}checked="checked"{/if}/> |
---|
297 | <img src="http://platform.tumblr.com/v1/share_3T.png"/> |
---|
298 | </label></td> |
---|
299 | </tr> |
---|
300 | <tr class="button"> |
---|
301 | <td><label> |
---|
302 | <img src="http://platform.tumblr.com/v1/share_4.png"/> |
---|
303 | <input type="radio" name="tumblr[type]" value="share_4" {if $tumblr.type=='share_4'}checked="checked"{/if}/> |
---|
304 | </label></td> |
---|
305 | <td><label> |
---|
306 | <input type="radio" name="tumblr[type]" value="share_4T" {if $tumblr.type=='share_4T'}checked="checked"{/if}/> |
---|
307 | <img src="http://platform.tumblr.com/v1/share_4T.png"/> |
---|
308 | </label></td> |
---|
309 | </tr> |
---|
310 | </tbody> |
---|
311 | </table> |
---|
312 | </div> {* <!-- tumblr --> *} |
---|
313 | |
---|
314 | <div class="socialbutt {if not $reddit.enabled}disabled{else}enabled{/if}"> {* <!-- reddit --> *} |
---|
315 | <table> |
---|
316 | <thead> |
---|
317 | <tr><td colspan="2"> |
---|
318 | <label title="{if $reddit.enabled}{'Disable'|translate}{else}{'Enable'|translate}{/if}"> |
---|
319 | <img src="{$SOCIALBUTT_PATH}template/images/reddit_logo.png"/> |
---|
320 | <input class="enable" style="display:none;" type="checkbox" name="reddit[enabled]" {if $reddit.enabled}checked="checked"{/if}/> |
---|
321 | </label> |
---|
322 | </td></tr> |
---|
323 | </thead> |
---|
324 | <tbody> |
---|
325 | <tr class="property"> |
---|
326 | <td> |
---|
327 | {'Button type'|translate} |
---|
328 | </td> |
---|
329 | <td></td> |
---|
330 | </tr> |
---|
331 | <tr class="button"> |
---|
332 | <td><label> |
---|
333 | <img src="http://fr.reddit.com/static/spreddit7.gif"/> |
---|
334 | <input type="radio" name="reddit[type]" value="spreddit7" {if $reddit.type=='spreddit7'}checked="checked"{/if}/> |
---|
335 | </label></td> |
---|
336 | <td><label> |
---|
337 | <input type="radio" name="reddit[type]" value="spreddit6" {if $reddit.type=='spreddit6'}checked="checked"{/if}/> |
---|
338 | <img src="http://fr.reddit.com/static/spreddit6.gif"/> |
---|
339 | </label></td> |
---|
340 | </tr> |
---|
341 | <tr class="button"> |
---|
342 | <td><label> |
---|
343 | <img src="http://fr.reddit.com/static/spreddit1.gif"/> |
---|
344 | <input type="radio" name="reddit[type]" value="spreddit1" {if $reddit.type=='spreddit1'}checked="checked"{/if}/> |
---|
345 | </label></td> |
---|
346 | <td><label> |
---|
347 | <input type="radio" name="reddit[type]" value="interactive" {if $reddit.type=='interactive'}checked="checked"{/if}/> |
---|
348 | <img src="{$SOCIALBUTT_PATH}template/images/reddit_interactive.png"/> |
---|
349 | </label></td> |
---|
350 | </tr> |
---|
351 | <tr class="property"> |
---|
352 | <td> |
---|
353 | <label for="reddit_community">{'Community'|translate}</label> |
---|
354 | </td> |
---|
355 | <td> |
---|
356 | <input type="text" id="reddit_community" name="reddit[community]" value="{$reddit.community}"/> |
---|
357 | </td> |
---|
358 | </tr> |
---|
359 | </tbody> |
---|
360 | </table> |
---|
361 | </div> {* <!-- reddit --> *} |
---|
362 | |
---|
363 | <div class="socialbutt {if not $linkedin.enabled}disabled{else}enabled{/if}"> {* <!-- linkedin --> *} |
---|
364 | <table> |
---|
365 | <thead> |
---|
366 | <tr><td colspan="2"> |
---|
367 | <label title="{if $linkedin.enabled}{'Disable'|translate}{else}{'Enable'|translate}{/if}"> |
---|
368 | <img src="{$SOCIALBUTT_PATH}template/images/linkedin_logo.png"/> |
---|
369 | <input class="enable" style="display:none;" type="checkbox" name="linkedin[enabled]" {if $linkedin.enabled}checked="checked"{/if}/> |
---|
370 | </label> |
---|
371 | </td></tr> |
---|
372 | </thead> |
---|
373 | <tbody> |
---|
374 | <tr class="property not-light"> |
---|
375 | <td> |
---|
376 | {'Annotation'|translate} |
---|
377 | </td> |
---|
378 | <td> |
---|
379 | <label><input type="radio" name="linkedin[counter]" value="none" {if $linkedin.counter=='none'}checked="checked"{/if}/> {'None'|translate}</label><br> |
---|
380 | <label><input type="radio" name="linkedin[counter]" value="right" {if $linkedin.counter=='right'}checked="checked"{/if}/> {'Right bubble'|translate}</label><br> |
---|
381 | <label><input type="radio" name="linkedin[counter]" value="top" {if $linkedin.counter=='top'}checked="checked"{/if}/> {'Top bubble'|translate}</label> |
---|
382 | </td> |
---|
383 | </tr> |
---|
384 | </tbody> |
---|
385 | </table> |
---|
386 | </div> {* <!-- linkedin --> *} |
---|
387 | |
---|
388 | <br> |
---|
389 | |
---|
390 | <div class="submit"> |
---|
391 | <input type="submit" value="{'Save Settings'|translate}" name="submit"/> |
---|
392 | </div> |
---|
393 | |
---|
394 | </form> |
---|