source: extensions/SocialButtons/template/admin.tpl @ 20403

Last change on this file since 20403 was 20403, checked in by mistic100, 11 years ago

show that buttons can be disabled

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