1 | {combine_css path=$SOCIALBUTT_PATH|@cat:"template/style.css"} |
---|
2 | |
---|
3 | {html_style}{literal} |
---|
4 | img.grayscale { |
---|
5 | 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+ */ |
---|
6 | filter: gray; /* IE6-9 */ |
---|
7 | -webkit-filter: grayscale(100%); /* Chrome 19+ & Safari 6+ */ |
---|
8 | } |
---|
9 | {/literal}{/html_style} |
---|
10 | |
---|
11 | {footer_script}{literal} |
---|
12 | jQuery("input.enable").change(function() { |
---|
13 | $parent = $(this).closest("table"); |
---|
14 | if (!$(this).is(":checked")) { |
---|
15 | $parent.find("thead label").attr("title", "{/literal}{'Enable'|@translate|escape:javascript}{literal}"); |
---|
16 | $parent.find("thead img").addClass('grayscale'); |
---|
17 | $parent.find("tbody").hide(); |
---|
18 | } |
---|
19 | else { |
---|
20 | $parent.find("thead label").attr("title", "{/literal}{'Disable'|@translate|escape:javascript}{literal}"); |
---|
21 | $parent.find("thead img").removeClass('grayscale'); |
---|
22 | $parent.find("tbody").show(); |
---|
23 | } |
---|
24 | }); |
---|
25 | {/literal}{/footer_script} |
---|
26 | |
---|
27 | |
---|
28 | <div class="titrePage"> |
---|
29 | <h2>Social Buttons</h2> |
---|
30 | </div> |
---|
31 | |
---|
32 | |
---|
33 | <form method="post" action="" class="properties" style="text-align:center;"> |
---|
34 | |
---|
35 | <div class="socialbutt"> |
---|
36 | <table> |
---|
37 | <tr class="property"> |
---|
38 | <td> |
---|
39 | {'Button position on picture page'|@translate} |
---|
40 | </td> |
---|
41 | <td> |
---|
42 | <label><input type="radio" name="position" value="top" {if $position=='top'}checked="checked"{/if}/> {'Top'|@translate}</label> |
---|
43 | <label><input type="radio" name="position" value="bottom" {if $position=='bottom'}checked="checked"{/if}/> {'Bottom'|@translate}</label> |
---|
44 | <label><input type="radio" name="position" value="toolbar" {if $position=='toolbar'}checked="checked"{/if}/> {'Toolbar'|@translate}</label> |
---|
45 | </td> |
---|
46 | </tr> |
---|
47 | </table> |
---|
48 | </div> |
---|
49 | |
---|
50 | <br> |
---|
51 | |
---|
52 | |
---|
53 | <div class="socialbutt"> {* <!-- twitter --> *} |
---|
54 | <table> |
---|
55 | <thead> |
---|
56 | <tr><td colspan="2"> |
---|
57 | <label title="{if $twitter.enabled}{'Disable'|@translate}{else}{'Enable'|@translate}{/if}"> |
---|
58 | <img {if not $twitter.enabled}class="grayscale"{/if} src="{$SOCIALBUTT_PATH}template/images/twitter_logo.png"/> |
---|
59 | <input class="enable" style="display:none;" type="checkbox" name="twitter[enabled]" {if $twitter.enabled}checked="checked"{/if}/> |
---|
60 | </label> |
---|
61 | </td></tr> |
---|
62 | </thead> |
---|
63 | <tbody {if not $twitter.enabled}style="display:none;"{/if}> |
---|
64 | <tr class="property"> |
---|
65 | <td> |
---|
66 | {'Button type'|@translate} |
---|
67 | </td> |
---|
68 | <td></td> |
---|
69 | </tr> |
---|
70 | <tr class="button"> |
---|
71 | <td><label> |
---|
72 | 20px |
---|
73 | <img src="{$SOCIALBUTT_PATH}template/images/twitter_small.png"/> |
---|
74 | <input type="radio" name="twitter[size]" value="small" {if $twitter.size=='small'}checked="checked"{/if}/> |
---|
75 | </label></td> |
---|
76 | <td><label> |
---|
77 | <input type="radio" name="twitter[size]" value="large" {if $twitter.size=='large'}checked="checked"{/if}/> |
---|
78 | <img src="{$SOCIALBUTT_PATH}template/images/twitter_large.png"/> |
---|
79 | 28px |
---|
80 | </label></td> |
---|
81 | </tr> |
---|
82 | <tr class="property"> |
---|
83 | <td> |
---|
84 | {'Annotation'|@translate} |
---|
85 | </td> |
---|
86 | <td> |
---|
87 | <label><input type="radio" name="twitter[count]" value="none" {if $twitter.count=='none'}checked="checked"{/if}/> {'None'|@translate}</label><br> |
---|
88 | <label><input type="radio" name="twitter[count]" value="bubble" {if $twitter.count=='bubble'}checked="checked"{/if}/> {'Bubble'|@translate}</label><br> |
---|
89 | </td> |
---|
90 | </tr> |
---|
91 | <tr class="property"> |
---|
92 | <td> |
---|
93 | <label for="twitter_via">{'Via'|@translate}</label> |
---|
94 | </td> |
---|
95 | <td> |
---|
96 | @ <input type="text" id="twitter_via" name="twitter[via]" value="{$twitter.via}"/> |
---|
97 | </td> |
---|
98 | </tr> |
---|
99 | </tbody> |
---|
100 | </table> |
---|
101 | </div> {* <!-- twitter --> *} |
---|
102 | |
---|
103 | <div class="socialbutt"> {* <!-- google --> *} |
---|
104 | <table> |
---|
105 | <thead> |
---|
106 | <tr><td colspan="2"> |
---|
107 | <label title="{if $google.enabled}{'Disable'|@translate}{else}{'Enable'|@translate}{/if}"> |
---|
108 | <img {if not $google.enabled}class="grayscale"{/if} src="{$SOCIALBUTT_PATH}template/images/google_logo.png"/> |
---|
109 | <input class="enable" style="display:none;" type="checkbox" name="google[enabled]" {if $google.enabled}checked="checked"{/if}/> |
---|
110 | </label> |
---|
111 | </td></tr> |
---|
112 | </thead> |
---|
113 | <tbody {if not $google.enabled}style="display:none;"{/if}> |
---|
114 | <tr class="property"> |
---|
115 | <td> |
---|
116 | {'Button type'|@translate} |
---|
117 | </td> |
---|
118 | <td></td> |
---|
119 | </tr> |
---|
120 | <tr class="button"> |
---|
121 | <td><label> |
---|
122 | 15px |
---|
123 | <img src="{$SOCIALBUTT_PATH}template/images/google_small.png"/> |
---|
124 | <input type="radio" name="google[size]" value="small" {if $google.size=='small'}checked="checked"{/if}/> |
---|
125 | </label></td> |
---|
126 | <td><label> |
---|
127 | <input type="radio" name="google[size]" value="medium" {if $google.size=='medium'}checked="checked"{/if}/> |
---|
128 | <img src="{$SOCIALBUTT_PATH}template/images/google_medium.png"/> |
---|
129 | 20px |
---|
130 | </label></td> |
---|
131 | </tr> |
---|
132 | <tr class="button"> |
---|
133 | <td><label> |
---|
134 | 24px |
---|
135 | <img src="{$SOCIALBUTT_PATH}template/images/google_standard.png"/> |
---|
136 | <input type="radio" name="google[size]" value="standard" {if $google.size=='standard'}checked="checked"{/if}/> |
---|
137 | </label></td> |
---|
138 | <td><label> |
---|
139 | <input type="radio" name="google[size]" value="tall" {if $google.size=='tall'}checked="checked"{/if}/> |
---|
140 | <img src="{$SOCIALBUTT_PATH}template/images/google_tall.png"/> |
---|
141 | 60px |
---|
142 | </label></td> |
---|
143 | </tr> |
---|
144 | <tr class="property"> |
---|
145 | <td> |
---|
146 | {'Annotation'|@translate} |
---|
147 | </td> |
---|
148 | <td> |
---|
149 | <label><input type="radio" name="google[annotation]" value="none" {if $google.annotation=='none'}checked="checked"{/if}/> {'None'|@translate}</label><br> |
---|
150 | <label><input type="radio" name="google[annotation]" value="bubble" {if $google.annotation=='bubble'}checked="checked"{/if}/> {'Bubble'|@translate}</label><br> |
---|
151 | <label><input type="radio" name="google[annotation]" value="inline" {if $google.annotation=='inline'}checked="checked"{/if}/> {'Inline text'|@translate}</label> |
---|
152 | </td> |
---|
153 | </tr> |
---|
154 | </tbody> |
---|
155 | </table> |
---|
156 | </div> {* <!-- google --> *} |
---|
157 | |
---|
158 | <br> |
---|
159 | |
---|
160 | <div class="socialbutt"> {* <!-- pinterest --> *} |
---|
161 | <table> |
---|
162 | <thead> |
---|
163 | <tr><td colspan="2"> |
---|
164 | <label title="{if $pinterest.enabled}{'Disable'|@translate}{else}{'Enable'|@translate}{/if}"> |
---|
165 | <img {if not $pinterest.enabled}class="grayscale"{/if} src="{$SOCIALBUTT_PATH}template/images/pinterest_logo.png"/> |
---|
166 | <input class="enable" style="display:none;" type="checkbox" name="pinterest[enabled]" {if $pinterest.enabled}checked="checked"{/if}/> |
---|
167 | </label> |
---|
168 | </td></tr> |
---|
169 | </thead> |
---|
170 | <tbody {if not $pinterest.enabled}style="display:none;"{/if}> |
---|
171 | <tr class="property"> |
---|
172 | <td> |
---|
173 | {'Shared picture size'|@translate} |
---|
174 | </td> |
---|
175 | <td> |
---|
176 | {html_options name="pinterest[img_size]" values=$img_sizes output=$img_sizes|translate selected=$pinterest.img_size} |
---|
177 | </td> |
---|
178 | </tr> |
---|
179 | <tr class="property"> |
---|
180 | <td> |
---|
181 | {'Annotation'|@translate} |
---|
182 | </td> |
---|
183 | <td> |
---|
184 | <label><input type="radio" name="pinterest[layout]" value="none" {if $pinterest.layout=='none'}checked="checked"{/if}/> {'None'|@translate}</label><br> |
---|
185 | <label><input type="radio" name="pinterest[layout]" value="horizontal" {if $pinterest.layout=='horizontal'}checked="checked"{/if}/> {'Right bubble'|@translate}</label><br> |
---|
186 | <label><input type="radio" name="pinterest[layout]" value="vertical" {if $pinterest.layout=='vertical'}checked="checked"{/if}/> {'Top bubble'|@translate}</label> |
---|
187 | </td> |
---|
188 | </tr> |
---|
189 | </tbody> |
---|
190 | </table> |
---|
191 | </div> {* <!-- pinterest --> *} |
---|
192 | |
---|
193 | <div class="socialbutt"> {* <!-- facebook --> *} |
---|
194 | <table> |
---|
195 | <thead> |
---|
196 | <tr><td colspan="2"> |
---|
197 | <label title="{if $facebook.enabled}{'Disable'|@translate}{else}{'Enable'|@translate}{/if}"> |
---|
198 | <img {if not $facebook.enabled}class="grayscale"{/if} src="{$SOCIALBUTT_PATH}template/images/facebook_logo.png"/> |
---|
199 | <input class="enable" style="display:none;" type="checkbox" name="facebook[enabled]" {if $facebook.enabled}checked="checked"{/if}/> |
---|
200 | </label> |
---|
201 | </td></tr> |
---|
202 | </thead> |
---|
203 | <tbody {if not $facebook.enabled}style="display:none;"{/if}> |
---|
204 | <tr class="property"> |
---|
205 | <td> |
---|
206 | {'Button type'|@translate} |
---|
207 | </td> |
---|
208 | <td></td> |
---|
209 | </tr> |
---|
210 | <tr class="button"> |
---|
211 | <td><label> |
---|
212 | <img src="{$SOCIALBUTT_PATH}template/images/facebook_light.png"/> |
---|
213 | <input type="radio" name="facebook[color]" value="light" {if $facebook.color=='light'}checked="checked"{/if}/> |
---|
214 | </label></td> |
---|
215 | <td><label> |
---|
216 | <input type="radio" name="facebook[color]" value="dark" {if $facebook.color=='dark'}checked="checked"{/if}/> |
---|
217 | <img src="{$SOCIALBUTT_PATH}template/images/facebook_dark.png"/> |
---|
218 | </label></td> |
---|
219 | </tr> |
---|
220 | <tr class="property"> |
---|
221 | <td> |
---|
222 | {'Annotation'|@translate} |
---|
223 | </td> |
---|
224 | <td> |
---|
225 | <label><input type="radio" name="facebook[layout]" value="none" {if $facebook.layout=='none'}checked="checked"{/if}/> {'None'|@translate}</label><br> |
---|
226 | <label><input type="radio" name="facebook[layout]" value="button_count" {if $facebook.layout=='button_count'}checked="checked"{/if}/> {'Right bubble'|@translate}</label><br> |
---|
227 | <label><input type="radio" name="facebook[layout]" value="box_count" {if $facebook.layout=='box_count'}checked="checked"{/if}/> {'Top bubble'|@translate}</label><br> |
---|
228 | <label><input type="radio" name="facebook[layout]" value="standard" {if $facebook.layout=='standard'}checked="checked"{/if}/> {'Inline text'|@translate}</label> |
---|
229 | </td> |
---|
230 | </tr> |
---|
231 | </tbody> |
---|
232 | </table> |
---|
233 | </div> {* <!-- facebook --> *} |
---|
234 | |
---|
235 | <br> |
---|
236 | |
---|
237 | <div class="socialbutt"> {* <!-- tumblr --> *} |
---|
238 | <table> |
---|
239 | <thead> |
---|
240 | <tr><td colspan="2"> |
---|
241 | <label title="{if $tumblr.enabled}{'Disable'|@translate}{else}{'Enable'|@translate}{/if}"> |
---|
242 | <img {if not $tumblr.enabled}class="grayscale"{/if} src="{$SOCIALBUTT_PATH}template/images/tumblr_logo.png"/> |
---|
243 | <input class="enable" style="display:none;" type="checkbox" name="tumblr[enabled]" {if $tumblr.enabled}checked="checked"{/if}/> |
---|
244 | </label> |
---|
245 | </td></tr> |
---|
246 | </thead> |
---|
247 | <tbody {if not $tumblr.enabled}style="display:none;"{/if}> |
---|
248 | <tr class="property"> |
---|
249 | <td> |
---|
250 | {'Button type'|@translate} |
---|
251 | </td> |
---|
252 | <td></td> |
---|
253 | </tr> |
---|
254 | <tr class="button"> |
---|
255 | <td><label> |
---|
256 | <img src="http://platform.tumblr.com/v1/share_1.png"/> |
---|
257 | <input type="radio" name="tumblr[type]" value="share_1" {if $tumblr.type=='share_1'}checked="checked"{/if}/> |
---|
258 | </label></td> |
---|
259 | <td><label> |
---|
260 | <input type="radio" name="tumblr[type]" value="share_1T" {if $tumblr.type=='share_1T'}checked="checked"{/if}/> |
---|
261 | <img src="http://platform.tumblr.com/v1/share_1T.png"/> |
---|
262 | </label></td> |
---|
263 | </tr> |
---|
264 | <tr class="button"> |
---|
265 | <td><label> |
---|
266 | <img src="http://platform.tumblr.com/v1/share_2.png"/> |
---|
267 | <input type="radio" name="tumblr[type]" value="share_2" {if $tumblr.type=='share_2'}checked="checked"{/if}/> |
---|
268 | </label></td> |
---|
269 | <td><label> |
---|
270 | <input type="radio" name="tumblr[type]" value="share_2T" {if $tumblr.type=='share_2T'}checked="checked"{/if}/> |
---|
271 | <img src="http://platform.tumblr.com/v1/share_2T.png"/> |
---|
272 | </label></td> |
---|
273 | </tr> |
---|
274 | <tr class="button"> |
---|
275 | <td><label> |
---|
276 | <img src="http://platform.tumblr.com/v1/share_3.png"/> |
---|
277 | <input type="radio" name="tumblr[type]" value="share_3" {if $tumblr.type=='share_3'}checked="checked"{/if}/> |
---|
278 | </label></td> |
---|
279 | <td><label> |
---|
280 | <input type="radio" name="tumblr[type]" value="share_3T" {if $tumblr.type=='share_3T'}checked="checked"{/if}/> |
---|
281 | <img src="http://platform.tumblr.com/v1/share_3T.png"/> |
---|
282 | </label></td> |
---|
283 | </tr> |
---|
284 | <tr class="button"> |
---|
285 | <td><label> |
---|
286 | <img src="http://platform.tumblr.com/v1/share_4.png"/> |
---|
287 | <input type="radio" name="tumblr[type]" value="share_4" {if $tumblr.type=='share_4'}checked="checked"{/if}/> |
---|
288 | </label></td> |
---|
289 | <td><label> |
---|
290 | <input type="radio" name="tumblr[type]" value="share_4T" {if $tumblr.type=='share_4T'}checked="checked"{/if}/> |
---|
291 | <img src="http://platform.tumblr.com/v1/share_4T.png"/> |
---|
292 | </label></td> |
---|
293 | </tr> |
---|
294 | <tr class="property"> |
---|
295 | <td> |
---|
296 | {'Shared picture size'|@translate} |
---|
297 | </td> |
---|
298 | <td> |
---|
299 | {html_options name="tumblr[img_size]" values=$img_sizes output=$img_sizes|translate selected=$tumblr.img_size} |
---|
300 | </td> |
---|
301 | </tr> |
---|
302 | </tbody> |
---|
303 | </table> |
---|
304 | </div> {* <!-- tumblr --> *} |
---|
305 | |
---|
306 | <br> |
---|
307 | |
---|
308 | <div class="submit"> |
---|
309 | <input type="submit" value="{'Save Settings'|@translate}" name="submit"/> |
---|
310 | </div> |
---|
311 | |
---|
312 | </form> |
---|