source: trunk/plugins/SwiftThemeCreator/theme_creator.tpl @ 2447

Last change on this file since 2447 was 2447, checked in by vdigital, 16 years ago

Swift Theme Creator (minor changes): non functional version yet.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 4.6 KB
Line 
1{* $Id: theme_creator.tpl 2447 2008-07-22 06:17:40Z vdigital $ *}
2<div class="titrePage">
3  <h2>{'Swift Theme Creator'|@translate}</h2>
4</div>
5
6<p>
7{'The Swift Theme Creator is powerful webmaster tool to create a new theme in few seconds.
8You can update later the result as you need.'|@translate}
9</p>
10<form method="post" action="" class="general">
11
12<fieldset>
13        <legend>{'Template selection '|@translate}</legend>
14<table><tr><td style="padding-right:20px;">
15  {'Template'|@translate}
16</td><td>
17  {html_options name=template options=$template_options selected=$main.template_options}
18</td></tr>
19<tr><td style="padding-right:20px;">
20  {'New theme to be created'|@translate}
21</td><td>
22  <input type="text" maxlength="8" size="8" name="new_theme" id="new_theme" value="{$main.new_theme}" />
23</td></tr>
24</table>
25</fieldset>
26
27<script type="text/javascript">
28  $(document).ready(function() {ldelim}
29    $('#demo').hide();
30    var f = $.farbtastic('#picker');
31    var p = $('#picker').css('opacity', 1);
32    var selected;
33    $('.colorwell')
34      .each(function () {ldelim} f.linkTo(this); $(this).css('opacity', 0.50); })
35      .focus(function() {ldelim}
36        if (selected) {ldelim}
37          $(selected).css('opacity', 0.90).removeClass('colorwell-selected');
38        }
39        f.linkTo(this);
40        p.css('opacity', 1);
41        $(selected = this).css('opacity', 1).addClass('colorwell-selected');
42      });
43  });
44</script>
45
46<fieldset>
47        <legend>{'Colours selection '|@translate}</legend>
48<table>
49<tr><td style="padding-right:20px;">
50  {'Main background'|@translate} 
51</td><td>
52  <input type="text" id="color1" name="color1" class="colorwell" value="{$main.color1}" />
53</td><td rowspan="5" style="padding-left:80px;">
54<div id="picker" style="float: right;"></div>
55</td>
56</tr><tr><td style="padding-right:20px;">
57  {'Default text'|@translate}
58</td><td>
59  <input type="text" id="color2" name="color2" class="colorwell" value="{$main.color2}" />
60</td></tr><tr><td style="padding-right:20px;">
61  {'Internal links'|@translate}
62</td><td>
63  <input type="text" id="color3" name="color3" class="colorwell" value="{$main.color3}" />
64</td></tr><tr><td style="padding-right:20px;">
65        {'Hover links'|@translate}
66</td><td>
67  <input type="text" id="color4" name="color4" class="colorwell" value="{$main.color4}" />
68</td></tr><tr><td style="padding-right:20px;">
69  {'External links'|@translate}
70</td><td>
71  <input type="text" id="color5" name="color5" class="colorwell" value="{$main.color5}" />
72</td></tr>
73</table>
74</fieldset>
75
76<fieldset>
77        <legend>{'Header background selection '|@translate}</legend>
78<table>
79  <tr>
80    <td style="padding-right:20px;">
81      {'Use of a picture background'|@translate} {* No / 24H Random public picture / Fixed RRL *}
82    </td>
83   
84    <td colspan="2">
85    <label>
86    <input class="radio" type="radio" value="off" name="background"
87    {if ($main.background == 'off')}
88      checked="checked"
89    {/if}/>
90    {$background_options.off}
91    </label>
92    </td>
93  </tr>
94
95  <tr>
96    <td style="padding-right:20px;">
97      {'Source category'|@translate}
98    </td><td>
99    <label>
100    <input class="radio" type="radio" value="random" name="background"
101    {if ($main.background == 'random')}
102      checked="checked"
103    {/if}/>
104    {$background_options.random}
105    </label>
106    </td><td>
107      {html_options style="margin: 0 0 0 10px;" name=src_category options=$src_category select=$main.src_category}
108    </td>
109  </tr>
110
111  <tr>
112    <td style="padding-right:20px;">
113      {'Picture relative local path'|@translate}
114    </td><td>
115    <label>
116    <input class="radio" type="radio" value="fixed" name="background"
117    {if ($main.background == 'fixed')}
118      checked="checked"
119    {/if}/>
120    {$background_options.fixed}
121    </label>
122    </td><td>
123      <input style="margin: 0 0 0 10px;" type="text" maxlength="255" size="70" name="picture_url" id="picture_url" value="{$main.picture_url}" />
124    </td>
125  </tr>
126
127  <tr>
128    <td style="padding-right:20px;">
129      {'Width limit in pixels'|@translate}
130    </td><td colspan="2">
131      <input style="margin: 0 10px 0 50px;" type="text" maxlength="5" size="8" name="picture_width" id="picture_width" value="{$main.picture_width}" />
132     x
133      <input style="margin: 0 50px 0 10px;" type="text" maxlength="5" size="8" name="picture_height" id="picture_height" value="{$main.picture_height}" />
134      {'(Height limit in pixels)'|@translate}
135    </td>
136  </tr>
137
138  <tr>
139    <td style="padding-right:20px;">
140      {'Display mode'|@translate} {* As is / truncated / resized *}
141    </td><td colspan="2">
142      {html_radios name='background_mode' class="radio" options=$background_mode_options selected=$main.background_mode}
143    </td>
144  </tr>
145</table>
146</fieldset>
147
148<p><input name="submit" class="submit" type="submit" value="{'Submit'|@translate}" /></p>
149</form>
Note: See TracBrowser for help on using the repository browser.