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

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

create plugin SocialButtons

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