1 | |
---|
2 | {include file='include/autosize.inc.tpl'} |
---|
3 | |
---|
4 | <div class="titrePage"> |
---|
5 | <h2>{'Piwigo configuration'|@translate} {$TABSHEET_TITLE}</h2> |
---|
6 | </div> |
---|
7 | |
---|
8 | {if !isset($default)} |
---|
9 | <form method="post" action="{$F_ACTION}" class="properties"> |
---|
10 | {/if} |
---|
11 | <div id="configContent"> |
---|
12 | {if isset($main)} |
---|
13 | <fieldset id="mainConf"> |
---|
14 | <legend></legend> |
---|
15 | <ul> |
---|
16 | <li> |
---|
17 | <span class="property"> |
---|
18 | <label for="gallery_title">{'Gallery title'|@translate}</label> |
---|
19 | </span> |
---|
20 | <input type="text" maxlength="255" size="50" name="gallery_title" id="gallery_title" value="{$main.CONF_GALLERY_TITLE}"> |
---|
21 | </li> |
---|
22 | |
---|
23 | <li> |
---|
24 | <span class="property"> |
---|
25 | <label for="page_banner">{'Page banner'|@translate}</label> |
---|
26 | </span> |
---|
27 | <textarea rows="5" cols="50" class="description" name="page_banner" id="page_banner">{$main.CONF_PAGE_BANNER}</textarea> |
---|
28 | </li> |
---|
29 | |
---|
30 | <li> |
---|
31 | <span class="property"> |
---|
32 | <label for="gallery_url">{'Gallery URL'|@translate}</label> |
---|
33 | </span> |
---|
34 | <input type="text" maxlength="255" size="50" name="gallery_url" id="gallery_url" value="{$main.CONF_GALLERY_URL}"> |
---|
35 | </li> |
---|
36 | </ul> |
---|
37 | </fieldset> |
---|
38 | |
---|
39 | <fieldset id="mainConfCheck"> |
---|
40 | <legend></legend> |
---|
41 | <ul> |
---|
42 | <li> |
---|
43 | <label> |
---|
44 | <span class="property">{'Lock gallery'|@translate}</span> |
---|
45 | <input type="checkbox" name="gallery_locked" {if ($main.gallery_locked)}checked="checked"{/if}> |
---|
46 | </label> |
---|
47 | </li> |
---|
48 | |
---|
49 | <li> |
---|
50 | <label> |
---|
51 | <span class="property">{'Rating'|@translate}</span> |
---|
52 | <input type="checkbox" name="rate" {if ($main.rate)}checked="checked"{/if}> |
---|
53 | </label> |
---|
54 | </li> |
---|
55 | |
---|
56 | <li> |
---|
57 | <label> |
---|
58 | <span class="property">{'Rating by guests'|@translate}</span> |
---|
59 | <input type="checkbox" name="rate_anonymous" {if ($main.rate_anonymous)}checked="checked"{/if}> |
---|
60 | </label> |
---|
61 | </li> |
---|
62 | |
---|
63 | <li> |
---|
64 | <label> |
---|
65 | <span class="property">{'Allow user registration'|@translate}</span> |
---|
66 | <input type="checkbox" name="allow_user_registration" {if ($main.allow_user_registration)}checked="checked"{/if}> |
---|
67 | </label> |
---|
68 | </li> |
---|
69 | |
---|
70 | <li> |
---|
71 | <label> |
---|
72 | <span class="property">{'Mail address is obligatory for all users'|@translate}</span> |
---|
73 | <input type="checkbox" name="obligatory_user_mail_address" {if ($main.obligatory_user_mail_address)}checked="checked"{/if}> |
---|
74 | </label> |
---|
75 | </li> |
---|
76 | |
---|
77 | <li> |
---|
78 | <label> |
---|
79 | <span class="property">{'Email admins when a new user registers'|@translate}</span> |
---|
80 | <input type="checkbox" name="email_admin_on_new_user" {if ($main.email_admin_on_new_user)}checked="checked"{/if}> |
---|
81 | </label> |
---|
82 | </li> |
---|
83 | </ul> |
---|
84 | </fieldset> |
---|
85 | {/if} |
---|
86 | |
---|
87 | {if isset($history)} |
---|
88 | <fieldset id="historyConf"> |
---|
89 | <legend></legend> |
---|
90 | <ul> |
---|
91 | <li> |
---|
92 | <label><span class="property">{'Save page visits by guests'|@translate}</span><input type="checkbox" name="history_guest" {if ($history.history_guest)}checked="checked"{/if}></label> |
---|
93 | </li> |
---|
94 | |
---|
95 | <li> |
---|
96 | <label><span class="property">{'Save page visits by users'|@translate}</span><input type="checkbox" name="log" {if ($history.log)}checked="checked"{/if}></label> |
---|
97 | </li> |
---|
98 | |
---|
99 | <li> |
---|
100 | <label><span class="property">{'Save page visits by administrators'|@translate}</span><input type="checkbox" name="history_admin" {if ($history.history_admin)}checked="checked"{/if}></label> |
---|
101 | </li> |
---|
102 | </ul> |
---|
103 | </fieldset> |
---|
104 | {/if} |
---|
105 | |
---|
106 | |
---|
107 | {if isset($comments)} |
---|
108 | <fieldset id="commentsConf"> |
---|
109 | <legend></legend> |
---|
110 | <ul> |
---|
111 | <li> |
---|
112 | <label> |
---|
113 | <span class="property">{'Comments for all'|@translate}</span> |
---|
114 | <input type="checkbox" name="comments_forall" {if ($comments.comments_forall)}checked="checked"{/if}> |
---|
115 | </label> |
---|
116 | </li> |
---|
117 | |
---|
118 | <li> |
---|
119 | <span class="property"> |
---|
120 | <label for="nb_comment_page">{'Number of comments per page'|@translate}</label> |
---|
121 | </span> |
---|
122 | <input type="text" size="3" maxlength="4" name="nb_comment_page" id="nb_comment_page" value="{$comments.NB_COMMENTS_PAGE}"> |
---|
123 | </li> |
---|
124 | |
---|
125 | <li> |
---|
126 | <label> |
---|
127 | <span class="property">{'Validation'|@translate}</span> |
---|
128 | <input type="checkbox" name="comments_validation" {if ($comments.comments_validation)}checked="checked"{/if}> |
---|
129 | </label> |
---|
130 | </li> |
---|
131 | |
---|
132 | |
---|
133 | <li> |
---|
134 | <label> |
---|
135 | <span class="property">{'Email admins when a valid comment is entered'|@translate}</span> |
---|
136 | <input type="checkbox" name="email_admin_on_comment" {if ($comments.email_admin_on_comment)}checked="checked"{/if}> |
---|
137 | </label> |
---|
138 | </li> |
---|
139 | |
---|
140 | <li> |
---|
141 | <label> |
---|
142 | <span class="property">{'Email admins when a comment requires validation'|@translate}</span> |
---|
143 | <input type="checkbox" name="email_admin_on_comment_validation" {if ($comments.email_admin_on_comment_validation)}checked="checked"{/if}> |
---|
144 | </label> |
---|
145 | </li> |
---|
146 | |
---|
147 | <li> |
---|
148 | <label> |
---|
149 | <span class="property">{'Allow users to edit theirs owns comments'|@translate}</span> |
---|
150 | <input type="checkbox" name="user_can_edit_comment" {if ($comments.user_can_edit_comment)}checked="checked"{/if}> |
---|
151 | </label> |
---|
152 | </li> |
---|
153 | <li> |
---|
154 | <label> |
---|
155 | <span class="property">{'Allow users to delete theirs owns comments'|@translate}</span> |
---|
156 | <input type="checkbox" name="user_can_delete_comment" {if ($comments.user_can_delete_comment)}checked="checked"{/if}> |
---|
157 | </label> |
---|
158 | </li> |
---|
159 | <li> |
---|
160 | <label> |
---|
161 | <span class="property">{'Email administrators when a comment is modified'|@translate}</span> |
---|
162 | <input type="checkbox" name="email_admin_on_comment_edition" {if ($comments.email_admin_on_comment_edition)}checked="checked"{/if}> |
---|
163 | </label> |
---|
164 | </li> |
---|
165 | <li> |
---|
166 | <label> |
---|
167 | <span class="property">{'Email administrators when a comment is deleted'|@translate}</span> |
---|
168 | <input type="checkbox" name="email_admin_on_comment_deletion" {if ($comments.email_admin_on_comment_deletion)}checked="checked"{/if}> |
---|
169 | </label> |
---|
170 | </li> |
---|
171 | |
---|
172 | </ul> |
---|
173 | </fieldset> |
---|
174 | {/if} |
---|
175 | |
---|
176 | {if isset($upload)} |
---|
177 | <fieldset id="uploadConf"> |
---|
178 | <legend></legend> |
---|
179 | <ul> |
---|
180 | <li> |
---|
181 | <label><span class="property">{'Show upload link every time'|@translate}</span> |
---|
182 | <input type="checkbox" name="upload_link_everytime" {if ($upload.upload_link_everytime)}checked="checked"{/if}></label> |
---|
183 | </li> |
---|
184 | <li> |
---|
185 | <label><span class="property">{'User access level to upload'|@translate}</span> |
---|
186 | {html_options name="upload_user_access" options=$upload.upload_user_access_options selected=$upload.upload_user_access_options_selected} |
---|
187 | </label> |
---|
188 | </li> |
---|
189 | <li> |
---|
190 | <label> |
---|
191 | <span class="property">{'Email admins when a picture is uploaded'|@translate}</span> |
---|
192 | <input type="checkbox" name="email_admin_on_picture_uploaded" {if ($upload.email_admin_on_picture_uploaded)}checked="checked"{/if}> |
---|
193 | </label> |
---|
194 | </li> |
---|
195 | </ul> |
---|
196 | </fieldset> |
---|
197 | {/if} |
---|
198 | |
---|
199 | </div> <!-- configContent --> |
---|
200 | |
---|
201 | {if isset($default)} |
---|
202 | {$PROFILE_CONTENT} |
---|
203 | {/if} |
---|
204 | |
---|
205 | {if isset($display)} |
---|
206 | <fieldset id="indexDisplayConf"> |
---|
207 | <legend>{'Main Page'|@translate}</legend> |
---|
208 | <ul> |
---|
209 | <li> |
---|
210 | <label> |
---|
211 | <span class="property">{'display only recently posted images'|@translate|@ucfirst}</span> |
---|
212 | <input type="checkbox" name="menubar_filter_icon" {if ($display.menubar_filter_icon)}checked="checked"{/if}> |
---|
213 | </label> |
---|
214 | </li> |
---|
215 | |
---|
216 | <li> |
---|
217 | <label> |
---|
218 | <span class="property">{'Sort order'|@translate}</span> |
---|
219 | <input type="checkbox" name="index_sort_order_input" {if ($display.index_sort_order_input)}checked="checked"{/if}> |
---|
220 | </label> |
---|
221 | </li> |
---|
222 | |
---|
223 | <li> |
---|
224 | <label> |
---|
225 | <span class="property">{'display all elements in all sub-categories'|@translate|@ucfirst}</span> |
---|
226 | <input type="checkbox" name="index_flat_icon" {if ($display.index_flat_icon)}checked="checked"{/if}> |
---|
227 | </label> |
---|
228 | </li> |
---|
229 | |
---|
230 | <li> |
---|
231 | <label> |
---|
232 | <span class="property">{'display a calendar by posted date'|@translate|@ucfirst}</span> |
---|
233 | <input type="checkbox" name="index_posted_date_icon" {if ($display.index_posted_date_icon)}checked="checked"{/if}> |
---|
234 | </label> |
---|
235 | </li> |
---|
236 | |
---|
237 | <li> |
---|
238 | <label> |
---|
239 | <span class="property">{'display a calendar by creation date'|@translate|@ucfirst}</span> |
---|
240 | <input type="checkbox" name="index_created_date_icon" {if ($display.index_created_date_icon)}checked="checked"{/if}> |
---|
241 | </label> |
---|
242 | </li> |
---|
243 | |
---|
244 | <li> |
---|
245 | <label> |
---|
246 | <span class="property">{'slideshow'|@translate|@ucfirst}</span> |
---|
247 | <input type="checkbox" name="index_slideshow_icon" {if ($display.index_slideshow_icon)}checked="checked"{/if}> |
---|
248 | </label> |
---|
249 | </li> |
---|
250 | </ul> |
---|
251 | </fieldset> |
---|
252 | |
---|
253 | <fieldset id="pictureDisplayConf"> |
---|
254 | <legend>{'Photo Page'|@translate}</legend> |
---|
255 | <ul> |
---|
256 | <li> |
---|
257 | <label> |
---|
258 | <span class="property">{'Show file metadata'|@translate}</span> |
---|
259 | <input type="checkbox" name="picture_metadata_icon" {if ($display.picture_metadata_icon)}checked="checked"{/if}> |
---|
260 | </label> |
---|
261 | </li> |
---|
262 | |
---|
263 | <li> |
---|
264 | <label> |
---|
265 | <span class="property">{'slideshow'|@translate}</span> |
---|
266 | <input type="checkbox" name="picture_slideshow_icon" {if ($display.picture_slideshow_icon)}checked="checked"{/if}> |
---|
267 | </label> |
---|
268 | </li> |
---|
269 | |
---|
270 | <li> |
---|
271 | <label> |
---|
272 | <span class="property">{'add this image to your favorites'|@translate|@ucfirst}</span> |
---|
273 | <input type="checkbox" name="picture_favorite_icon" {if ($display.picture_favorite_icon)}checked="checked"{/if}> |
---|
274 | </label> |
---|
275 | </li> |
---|
276 | |
---|
277 | <li> |
---|
278 | <label> |
---|
279 | <span class="property">{'Navigation Bar'|@translate|@ucfirst}</span> |
---|
280 | <input type="checkbox" name="picture_navigation_icons" {if ($display.picture_navigation_icons)}checked="checked"{/if}> |
---|
281 | </label> |
---|
282 | </li> |
---|
283 | |
---|
284 | <li> |
---|
285 | <label> |
---|
286 | <span class="property">{'Navigation Thumbnails'|@translate|@ucfirst}</span> |
---|
287 | <input type="checkbox" name="picture_navigation_thumb" {if ($display.picture_navigation_thumb)}checked="checked"{/if}> |
---|
288 | </label> |
---|
289 | </li> |
---|
290 | </ul> |
---|
291 | </fieldset> |
---|
292 | {/if} |
---|
293 | |
---|
294 | {if !isset($default)} |
---|
295 | <p> |
---|
296 | <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}> |
---|
297 | <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}"> |
---|
298 | </p> |
---|
299 | </form> |
---|
300 | {/if} |
---|