1 | {* $Id: theme_creator.tpl 2487 2008-08-26 14:18:42Z 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. |
---|
8 | You 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_sel} |
---|
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.newtheme}" /> |
---|
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:120px;"> |
---|
81 | <label><input class="radio" type="radio" value="off" name="background" |
---|
82 | {if ($main.background == 'off')} checked="checked" {/if}/> |
---|
83 | {'No picture'|@translate}</label> {* No / 24H Random public picture / Fixed URL *} |
---|
84 | </td> |
---|
85 | <td colspan="2"></td> |
---|
86 | </tr> |
---|
87 | |
---|
88 | <tr> |
---|
89 | <td style="padding-right:120px;"> |
---|
90 | <label> <input class="radio" type="radio" value="random" name="background" |
---|
91 | {if ($main.background == 'random')} checked="checked" {/if}/> |
---|
92 | {'Random source'|@translate}</label> |
---|
93 | </td> |
---|
94 | <td colspan="2"> |
---|
95 | {html_options style="margin: 0 0 0 10px;" name=src_category options=$src_category selected=$main.src_category} |
---|
96 | </td> |
---|
97 | </tr> |
---|
98 | |
---|
99 | |
---|
100 | <tr> |
---|
101 | <td style="padding-right:120px;"> |
---|
102 | <label> <input class="radio" type="radio" value="fixed" name="background" |
---|
103 | {if ($main.background == 'fixed')} checked="checked" {/if}/> |
---|
104 | {'Fixed path'|@translate}</label> |
---|
105 | </td> |
---|
106 | <td colspan="2"> |
---|
107 | <input style="margin: 0 0 0 10px;" type="text" maxlength="255" size="70" name="picture_url" id="picture_url" value="{$main.picture_url}" /> |
---|
108 | </td> |
---|
109 | </tr> |
---|
110 | |
---|
111 | <tr> |
---|
112 | <td style="padding-right:20px;"> |
---|
113 | |
---|
114 | </td><td colspan="2" style="padding-left:20px;"> |
---|
115 | <label style="padding-right:50px;"> |
---|
116 | <input type="checkbox" name="colorize" {if ($main.colorize)}checked="checked"{/if} /> |
---|
117 | {'Colorize'|@translate} {* Colorize / Enhance Brightness / Reduce contrast *} |
---|
118 | </label> |
---|
119 | <label style="padding-right:50px;"> |
---|
120 | <input type="checkbox" name="brightness" {if ($main.brightness)}checked="checked"{/if} /> |
---|
121 | {'Enhance brightness'|@translate} |
---|
122 | </label> |
---|
123 | <label> |
---|
124 | <input type="checkbox" name="contrast" {if ($main.contrast)}checked="checked"{/if} /> |
---|
125 | {'Reduce contrast'|@translate} |
---|
126 | </label> |
---|
127 | </td> |
---|
128 | </tr> |
---|
129 | |
---|
130 | <tr> |
---|
131 | <td style="padding-right:5px; text-align: right;"> |
---|
132 | {'Width limit in pixels'|@translate} |
---|
133 | </td><td colspan="2"> |
---|
134 | <input style="margin: 0 10px 0 50px;" type="text" maxlength="5" size="8" name="picture_width" id="picture_width" value="{$main.picture_width}" /> |
---|
135 | x |
---|
136 | <input style="margin: 0 50px 0 10px;" type="text" maxlength="5" size="8" name="picture_height" id="picture_height" value="{$main.picture_height}" /> |
---|
137 | {'(Height limit in pixels)'|@translate} |
---|
138 | </td> |
---|
139 | </tr> |
---|
140 | |
---|
141 | <tr> |
---|
142 | <td style="padding-right:5px; text-align: right;"> |
---|
143 | {'Display mode'|@translate} {* As is / truncated / resized *} |
---|
144 | </td><td colspan="2"> |
---|
145 | {html_radios name='background_mode' class="radio" options=$background_mode_options selected=$main.background_mode} |
---|
146 | </td> |
---|
147 | </tr> |
---|
148 | </table> |
---|
149 | </fieldset> |
---|
150 | |
---|
151 | <p> |
---|
152 | <input name="reset" class="submit" type="submit" value="{'Reset'|@translate}" style="margin-right:250px;" /> |
---|
153 | <input name="submit" class="submit" type="submit" value="{'Generate'|@translate}" style="margin-right:50px;" /> |
---|
154 | <input name="simulate" class="submit" type="submit" value="{'Simulate'|@translate}" /> |
---|
155 | </p> |
---|
156 | </form> |
---|
157 | <fieldset> |
---|
158 | <legend>{'Just a yoga preview... '|@translate}</legend> |
---|
159 | <div style="background-color:{$main.color1}; width: 600px; overflow: hidden; margin: 5px auto 5px auto; |
---|
160 | font-family:Univers,Helvetica,Optima,'Bitstream Vera Sans',sans-serif;"> |
---|
161 | {* Preview header *}<div style="width: 600px; height: 80px; overflow: hidden;"> |
---|
162 | {if ($main.background=='fixed')} |
---|
163 | <img src="{$main.templatedir}/header.jpg"> |
---|
164 | <h2 style="position:relative;color:{$main.color2};top:-75px;left:5px;text-align:left;margin:0 auto 0 auto;">{'"Fixed header" preview'|@translate}</h2> |
---|
165 | {/if} |
---|
166 | {if ($main.background=='random')} |
---|
167 | <img src="{$main.templatedir}/header.jpg"> |
---|
168 | <h2 style="position:relative;color:{$main.color2};top:-75px;left:5px;text-align:left;margin:0 auto 0 auto;">{'"Random header" preview'|@translate}</h2> |
---|
169 | {/if} |
---|
170 | {if ($main.background=='off')} |
---|
171 | <h2 style="position:relative;color:{$main.color2};top:25px;left:5px;text-align:left;margin:0 auto 0 auto;">{'"No header" preview'|@translate}</h2> |
---|
172 | {/if} |
---|
173 | </div> |
---|
174 | {* Preview menubar *}<div style="border:1px solid {$main.color3}; margin:2px 4px 0px 2px; |
---|
175 | text-decoration:none; width: 120px; display:inline; background-color:{$main.color6}; |
---|
176 | float:left; padding:0pt; text-align:left; color:{$main.color2}; font-size:1em;"> |
---|
177 | <dl style="margin: 0;"> |
---|
178 | <dt style="background-image:url({$main.templatedir}/stc.png); text-align: center; height:18px; |
---|
179 | font-weight:bold; font-style:normal; color:{$main.color3}; padding: 6px 0 0 0;">{'Preview'|@translate}</dt> |
---|
180 | <dd> |
---|
181 | <ul style="padding-left: 14px; font-size: 0.9em;"> |
---|
182 | <li><a style="color:{$main.color3}; border:0;">{'Preview'|@translate}</a></li> |
---|
183 | <li>...</li> |
---|
184 | </ul> |
---|
185 | <p style="font-size: 0.9em;">{'Preview'|@translate}</p> |
---|
186 | </dd> |
---|
187 | </dl> |
---|
188 | </div> |
---|
189 | {* Preview content *}<div style="border:1px solid {$main.color3}; padding:0px; |
---|
190 | background-color:{$main.color6}; margin: 2px 2px 0 132px; color:{$main.color2}; font-size:1em; width:462px;"> |
---|
191 | <h2 style="background-image:url({$main.templatedir}/stc.png); display:block; padding: 6px 0 0 20px; |
---|
192 | font-size:1em; height:18px; letter-spacing:-1px; margin:0; position:relative; text-align: left; |
---|
193 | font-style:normal; color:{$main.color2}; width: 442px; font-weight: normal;">{'home'|@translate}</h2> |
---|
194 | <ul style="padding-left:4px; padding-right:130px;"> |
---|
195 | <li style="list-style:none;"> |
---|
196 | <div style="border:1px solid {$main.color3}; margin:3px; padding:2px 0px 0px 2px;"> |
---|
197 | <div style="width:114px; float:left; margin:2px 0pt 0pt 2px; text-align:left; color:{$main.color1};"> |
---|
198 | <a style="border:0;"> |
---|
199 | <img title="{'Preview'|@translate}" alt="{'Preview'|@translate}" src="{$main.templatedir}/header.jpg" style="width: 106px; height: 80px;"/> |
---|
200 | </a> |
---|
201 | </div> |
---|
202 | <div style="height:94px; font-size:90%; overflow:hidden;"> |
---|
203 | <h3 style="background-image:url({$main.templatedir}/stc.png); text-align:center; height: 14px; margin-right: 0px; margin-bottom: 0px; line-height: 7px;"> |
---|
204 | <a style="font-size: 10px; font-style:normal; border:0;">{'Preview'|@translate}</a> |
---|
205 | </h3> |
---|
206 | <p style="">{'Preview'|@translate}</p> |
---|
207 | <p/> |
---|
208 | </div> |
---|
209 | </div> |
---|
210 | </li> |
---|
211 | </ul> |
---|
212 | </div> |
---|
213 | </div> |
---|
214 | <span style='display:block;font-style:italic;color:#777;text-align:right;margin-right:25px;'> |
---|
215 | {'...to get an idea of the expected result. Preview is based on yoga-like template only.'|@translate}</span> |
---|
216 | </fieldset> |
---|