[2614] | 1 | |
---|
[2641] | 2 | {include file='include/autosize.inc.tpl'} |
---|
[2614] | 3 | |
---|
[2531] | 4 | <div class="titrePage"> |
---|
[5021] | 5 | <h2>{'Piwigo configuration'|@translate} {$TABSHEET_TITLE}</h2> |
---|
[2531] | 6 | </div> |
---|
| 7 | |
---|
[3215] | 8 | {if !isset($default)} |
---|
[2531] | 9 | <form method="post" action="{$F_ACTION}" class="properties"> |
---|
[3215] | 10 | {/if} |
---|
[5284] | 11 | <div id="configContent"> |
---|
[2531] | 12 | {if isset($main)} |
---|
| 13 | <fieldset id="mainConf"> |
---|
[3185] | 14 | <legend></legend> |
---|
[2531] | 15 | <ul> |
---|
| 16 | <li> |
---|
| 17 | <span class="property"> |
---|
| 18 | <label for="gallery_title">{'Gallery title'|@translate}</label> |
---|
| 19 | </span> |
---|
[3185] | 20 | <input type="text" maxlength="255" size="50" name="gallery_title" id="gallery_title" value="{$main.CONF_GALLERY_TITLE}"> |
---|
[2531] | 21 | </li> |
---|
| 22 | |
---|
| 23 | <li> |
---|
| 24 | <span class="property"> |
---|
| 25 | <label for="page_banner">{'Page banner'|@translate}</label> |
---|
| 26 | </span> |
---|
[3185] | 27 | <textarea rows="5" cols="50" class="description" name="page_banner" id="page_banner">{$main.CONF_PAGE_BANNER}</textarea> |
---|
[2531] | 28 | </li> |
---|
| 29 | |
---|
| 30 | <li> |
---|
| 31 | <span class="property"> |
---|
| 32 | <label for="gallery_url">{'Gallery URL'|@translate}</label> |
---|
| 33 | </span> |
---|
[3185] | 34 | <input type="text" maxlength="255" size="50" name="gallery_url" id="gallery_url" value="{$main.CONF_GALLERY_URL}"> |
---|
[2531] | 35 | </li> |
---|
| 36 | </ul> |
---|
| 37 | </fieldset> |
---|
| 38 | |
---|
| 39 | <fieldset id="mainConfCheck"> |
---|
[3185] | 40 | <legend></legend> |
---|
[2531] | 41 | <ul> |
---|
| 42 | <li> |
---|
| 43 | <label> |
---|
| 44 | <span class="property">{'Lock gallery'|@translate}</span> |
---|
[3185] | 45 | <input type="checkbox" name="gallery_locked" {if ($main.gallery_locked)}checked="checked"{/if}> |
---|
[2531] | 46 | </label> |
---|
| 47 | </li> |
---|
| 48 | |
---|
| 49 | <li> |
---|
| 50 | <label> |
---|
[5453] | 51 | <span class="property">{'Allow rating'|@translate}</span> |
---|
[3185] | 52 | <input type="checkbox" name="rate" {if ($main.rate)}checked="checked"{/if}> |
---|
[2531] | 53 | </label> |
---|
| 54 | </li> |
---|
| 55 | |
---|
| 56 | <li> |
---|
| 57 | <label> |
---|
| 58 | <span class="property">{'Rating by guests'|@translate}</span> |
---|
[3185] | 59 | <input type="checkbox" name="rate_anonymous" {if ($main.rate_anonymous)}checked="checked"{/if}> |
---|
[2531] | 60 | </label> |
---|
| 61 | </li> |
---|
| 62 | |
---|
| 63 | <li> |
---|
| 64 | <label> |
---|
| 65 | <span class="property">{'Allow user registration'|@translate}</span> |
---|
[3185] | 66 | <input type="checkbox" name="allow_user_registration" {if ($main.allow_user_registration)}checked="checked"{/if}> |
---|
[2531] | 67 | </label> |
---|
| 68 | </li> |
---|
| 69 | |
---|
| 70 | <li> |
---|
| 71 | <label> |
---|
[5328] | 72 | <span class="property">{'Allow user customization'|@translate}</span> |
---|
| 73 | <input type="checkbox" name="allow_user_customization" {if ($main.allow_user_customization)}checked="checked"{/if}> |
---|
| 74 | </label> |
---|
| 75 | </li> |
---|
| 76 | |
---|
| 77 | <li> |
---|
| 78 | <label> |
---|
[5021] | 79 | <span class="property">{'Mail address is obligatory for all users'|@translate}</span> |
---|
[3185] | 80 | <input type="checkbox" name="obligatory_user_mail_address" {if ($main.obligatory_user_mail_address)}checked="checked"{/if}> |
---|
[2531] | 81 | </label> |
---|
| 82 | </li> |
---|
| 83 | |
---|
| 84 | <li> |
---|
| 85 | <label> |
---|
[5021] | 86 | <span class="property">{'Email admins when a new user registers'|@translate}</span> |
---|
[3185] | 87 | <input type="checkbox" name="email_admin_on_new_user" {if ($main.email_admin_on_new_user)}checked="checked"{/if}> |
---|
[2531] | 88 | </label> |
---|
| 89 | </li> |
---|
| 90 | </ul> |
---|
| 91 | </fieldset> |
---|
| 92 | {/if} |
---|
| 93 | |
---|
| 94 | {if isset($history)} |
---|
| 95 | <fieldset id="historyConf"> |
---|
[3215] | 96 | <legend></legend> |
---|
[2531] | 97 | <ul> |
---|
| 98 | <li> |
---|
[5021] | 99 | <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> |
---|
[2531] | 100 | </li> |
---|
| 101 | |
---|
| 102 | <li> |
---|
[5021] | 103 | <label><span class="property">{'Save page visits by users'|@translate}</span><input type="checkbox" name="log" {if ($history.log)}checked="checked"{/if}></label> |
---|
[2531] | 104 | </li> |
---|
| 105 | |
---|
| 106 | <li> |
---|
[5021] | 107 | <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> |
---|
[2531] | 108 | </li> |
---|
| 109 | </ul> |
---|
| 110 | </fieldset> |
---|
| 111 | {/if} |
---|
| 112 | |
---|
| 113 | {if isset($comments)} |
---|
| 114 | <fieldset id="commentsConf"> |
---|
[3215] | 115 | <legend></legend> |
---|
[2531] | 116 | <ul> |
---|
| 117 | <li> |
---|
| 118 | <label> |
---|
| 119 | <span class="property">{'Comments for all'|@translate}</span> |
---|
[3185] | 120 | <input type="checkbox" name="comments_forall" {if ($comments.comments_forall)}checked="checked"{/if}> |
---|
[2531] | 121 | </label> |
---|
| 122 | </li> |
---|
| 123 | |
---|
| 124 | <li> |
---|
| 125 | <span class="property"> |
---|
| 126 | <label for="nb_comment_page">{'Number of comments per page'|@translate}</label> |
---|
| 127 | </span> |
---|
[3185] | 128 | <input type="text" size="3" maxlength="4" name="nb_comment_page" id="nb_comment_page" value="{$comments.NB_COMMENTS_PAGE}"> |
---|
[2531] | 129 | </li> |
---|
| 130 | |
---|
| 131 | <li> |
---|
| 132 | <label> |
---|
| 133 | <span class="property">{'Validation'|@translate}</span> |
---|
[3185] | 134 | <input type="checkbox" name="comments_validation" {if ($comments.comments_validation)}checked="checked"{/if}> |
---|
[2531] | 135 | </label> |
---|
| 136 | </li> |
---|
| 137 | |
---|
| 138 | <li> |
---|
| 139 | <label> |
---|
[5021] | 140 | <span class="property">{'Email admins when a valid comment is entered'|@translate}</span> |
---|
[3185] | 141 | <input type="checkbox" name="email_admin_on_comment" {if ($comments.email_admin_on_comment)}checked="checked"{/if}> |
---|
[2531] | 142 | </label> |
---|
| 143 | </li> |
---|
| 144 | |
---|
| 145 | <li> |
---|
| 146 | <label> |
---|
[5021] | 147 | <span class="property">{'Email admins when a comment requires validation'|@translate}</span> |
---|
[3185] | 148 | <input type="checkbox" name="email_admin_on_comment_validation" {if ($comments.email_admin_on_comment_validation)}checked="checked"{/if}> |
---|
[2531] | 149 | </label> |
---|
| 150 | </li> |
---|
[3445] | 151 | |
---|
| 152 | <li> |
---|
| 153 | <label> |
---|
| 154 | <span class="property">{'Allow users to edit theirs owns comments'|@translate}</span> |
---|
| 155 | <input type="checkbox" name="user_can_edit_comment" {if ($comments.user_can_edit_comment)}checked="checked"{/if}> |
---|
| 156 | </label> |
---|
| 157 | </li> |
---|
| 158 | <li> |
---|
| 159 | <label> |
---|
| 160 | <span class="property">{'Allow users to delete theirs owns comments'|@translate}</span> |
---|
| 161 | <input type="checkbox" name="user_can_delete_comment" {if ($comments.user_can_delete_comment)}checked="checked"{/if}> |
---|
| 162 | </label> |
---|
| 163 | </li> |
---|
| 164 | <li> |
---|
| 165 | <label> |
---|
| 166 | <span class="property">{'Email administrators when a comment is modified'|@translate}</span> |
---|
| 167 | <input type="checkbox" name="email_admin_on_comment_edition" {if ($comments.email_admin_on_comment_edition)}checked="checked"{/if}> |
---|
| 168 | </label> |
---|
| 169 | </li> |
---|
| 170 | <li> |
---|
| 171 | <label> |
---|
| 172 | <span class="property">{'Email administrators when a comment is deleted'|@translate}</span> |
---|
| 173 | <input type="checkbox" name="email_admin_on_comment_deletion" {if ($comments.email_admin_on_comment_deletion)}checked="checked"{/if}> |
---|
| 174 | </label> |
---|
| 175 | </li> |
---|
| 176 | |
---|
[2531] | 177 | </ul> |
---|
| 178 | </fieldset> |
---|
| 179 | {/if} |
---|
| 180 | |
---|
| 181 | {if isset($upload)} |
---|
| 182 | <fieldset id="uploadConf"> |
---|
[3215] | 183 | <legend></legend> |
---|
[2531] | 184 | <ul> |
---|
| 185 | <li> |
---|
| 186 | <label><span class="property">{'Show upload link every time'|@translate}</span> |
---|
[3185] | 187 | <input type="checkbox" name="upload_link_everytime" {if ($upload.upload_link_everytime)}checked="checked"{/if}></label> |
---|
[2531] | 188 | </li> |
---|
| 189 | <li> |
---|
| 190 | <label><span class="property">{'User access level to upload'|@translate}</span> |
---|
| 191 | {html_options name="upload_user_access" options=$upload.upload_user_access_options selected=$upload.upload_user_access_options_selected} |
---|
[3215] | 192 | </label> |
---|
[2531] | 193 | </li> |
---|
| 194 | <li> |
---|
| 195 | <label> |
---|
[5021] | 196 | <span class="property">{'Email admins when a picture is uploaded'|@translate}</span> |
---|
[3185] | 197 | <input type="checkbox" name="email_admin_on_picture_uploaded" {if ($upload.email_admin_on_picture_uploaded)}checked="checked"{/if}> |
---|
[2531] | 198 | </label> |
---|
| 199 | </li> |
---|
| 200 | </ul> |
---|
| 201 | </fieldset> |
---|
| 202 | {/if} |
---|
| 203 | |
---|
[5284] | 204 | </div> <!-- configContent --> |
---|
| 205 | |
---|
[2531] | 206 | {if isset($default)} |
---|
| 207 | {$PROFILE_CONTENT} |
---|
| 208 | {/if} |
---|
| 209 | |
---|
[5293] | 210 | {if isset($display)} |
---|
| 211 | <fieldset id="indexDisplayConf"> |
---|
| 212 | <legend>{'Main Page'|@translate}</legend> |
---|
| 213 | <ul> |
---|
| 214 | <li> |
---|
| 215 | <label> |
---|
[5298] | 216 | <span class="property">{'display only recently posted images'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
[5293] | 217 | <input type="checkbox" name="menubar_filter_icon" {if ($display.menubar_filter_icon)}checked="checked"{/if}> |
---|
| 218 | </label> |
---|
| 219 | </li> |
---|
| 220 | |
---|
| 221 | <li> |
---|
| 222 | <label> |
---|
[5298] | 223 | <span class="property">{'Sort order'|@translate|@string_format:$pwg->l10n('Activate field "%s"')}</span> |
---|
[5293] | 224 | <input type="checkbox" name="index_sort_order_input" {if ($display.index_sort_order_input)}checked="checked"{/if}> |
---|
| 225 | </label> |
---|
| 226 | </li> |
---|
| 227 | |
---|
| 228 | <li> |
---|
| 229 | <label> |
---|
[5298] | 230 | <span class="property">{'display all elements in all sub-categories'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
[5293] | 231 | <input type="checkbox" name="index_flat_icon" {if ($display.index_flat_icon)}checked="checked"{/if}> |
---|
| 232 | </label> |
---|
| 233 | </li> |
---|
| 234 | |
---|
| 235 | <li> |
---|
| 236 | <label> |
---|
[5298] | 237 | <span class="property">{'display a calendar by posted date'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
[5293] | 238 | <input type="checkbox" name="index_posted_date_icon" {if ($display.index_posted_date_icon)}checked="checked"{/if}> |
---|
| 239 | </label> |
---|
| 240 | </li> |
---|
| 241 | |
---|
| 242 | <li> |
---|
| 243 | <label> |
---|
[5298] | 244 | <span class="property">{'display a calendar by creation date'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
[5293] | 245 | <input type="checkbox" name="index_created_date_icon" {if ($display.index_created_date_icon)}checked="checked"{/if}> |
---|
| 246 | </label> |
---|
| 247 | </li> |
---|
| 248 | |
---|
| 249 | <li> |
---|
| 250 | <label> |
---|
[5298] | 251 | <span class="property">{'slideshow'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
[5293] | 252 | <input type="checkbox" name="index_slideshow_icon" {if ($display.index_slideshow_icon)}checked="checked"{/if}> |
---|
| 253 | </label> |
---|
| 254 | </li> |
---|
| 255 | </ul> |
---|
| 256 | </fieldset> |
---|
| 257 | |
---|
| 258 | <fieldset id="pictureDisplayConf"> |
---|
| 259 | <legend>{'Photo Page'|@translate}</legend> |
---|
| 260 | <ul> |
---|
| 261 | <li> |
---|
| 262 | <label> |
---|
[5298] | 263 | <span class="property">{'slideshow'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
| 264 | <input type="checkbox" name="picture_slideshow_icon" {if ($display.picture_slideshow_icon)}checked="checked"{/if}> |
---|
[5293] | 265 | </label> |
---|
| 266 | </li> |
---|
| 267 | |
---|
| 268 | <li> |
---|
| 269 | <label> |
---|
[5298] | 270 | <span class="property">{'Show file metadata'|@translate|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
| 271 | <input type="checkbox" name="picture_metadata_icon" {if ($display.picture_metadata_icon)}checked="checked"{/if}> |
---|
[5293] | 272 | </label> |
---|
| 273 | </li> |
---|
| 274 | |
---|
| 275 | <li> |
---|
| 276 | <label> |
---|
[5618] | 277 | <span class="property">{'download this file'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
| 278 | <input type="checkbox" name="picture_download_icon" {if ($display.picture_download_icon)}checked="checked"{/if}> |
---|
| 279 | </label> |
---|
| 280 | </li> |
---|
| 281 | |
---|
| 282 | <li> |
---|
| 283 | <label> |
---|
[5298] | 284 | <span class="property">{'add this image to your favorites'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
[5293] | 285 | <input type="checkbox" name="picture_favorite_icon" {if ($display.picture_favorite_icon)}checked="checked"{/if}> |
---|
| 286 | </label> |
---|
| 287 | </li> |
---|
| 288 | |
---|
| 289 | <li> |
---|
| 290 | <label> |
---|
[5298] | 291 | <span class="property">{'Activate Navigation Bar'|@translate}</span> |
---|
[5293] | 292 | <input type="checkbox" name="picture_navigation_icons" {if ($display.picture_navigation_icons)}checked="checked"{/if}> |
---|
| 293 | </label> |
---|
| 294 | </li> |
---|
| 295 | |
---|
| 296 | <li> |
---|
| 297 | <label> |
---|
[5298] | 298 | <span class="property">{'Activate Navigation Thumbnails'|@translate}</span> |
---|
[5293] | 299 | <input type="checkbox" name="picture_navigation_thumb" {if ($display.picture_navigation_thumb)}checked="checked"{/if}> |
---|
| 300 | </label> |
---|
| 301 | </li> |
---|
| 302 | </ul> |
---|
| 303 | </fieldset> |
---|
[5304] | 304 | |
---|
| 305 | <fieldset id="pictureInfoConf"> |
---|
| 306 | <legend>{'Photo Properties'|@translate}</legend> |
---|
| 307 | <ul> |
---|
| 308 | <li> |
---|
| 309 | <label> |
---|
| 310 | <span class="property">{'Author'|@translate}</span> |
---|
| 311 | <input type="checkbox" name="picture_informations[author]" {if ($display.picture_informations.author)}checked="checked"{/if}> |
---|
| 312 | </label> |
---|
| 313 | </li> |
---|
| 314 | |
---|
| 315 | <li> |
---|
| 316 | <label> |
---|
| 317 | <span class="property">{'Created on'|@translate}</span> |
---|
| 318 | <input type="checkbox" name="picture_informations[created_on]" {if ($display.picture_informations.created_on)}checked="checked"{/if}> |
---|
| 319 | </label> |
---|
| 320 | </li> |
---|
| 321 | |
---|
| 322 | <li> |
---|
| 323 | <label> |
---|
| 324 | <span class="property">{'Posted on'|@translate}</span> |
---|
| 325 | <input type="checkbox" name="picture_informations[posted_on]" {if ($display.picture_informations.posted_on)}checked="checked"{/if}> |
---|
| 326 | </label> |
---|
| 327 | </li> |
---|
| 328 | |
---|
| 329 | <li> |
---|
| 330 | <label> |
---|
| 331 | <span class="property">{'Dimensions'|@translate}</span> |
---|
| 332 | <input type="checkbox" name="picture_informations[dimensions]" {if ($display.picture_informations.dimensions)}checked="checked"{/if}> |
---|
| 333 | </label> |
---|
| 334 | </li> |
---|
| 335 | |
---|
| 336 | <li> |
---|
| 337 | <label> |
---|
| 338 | <span class="property">{'File'|@translate}</span> |
---|
| 339 | <input type="checkbox" name="picture_informations[file]" {if ($display.picture_informations.file)}checked="checked"{/if}> |
---|
| 340 | </label> |
---|
| 341 | </li> |
---|
| 342 | |
---|
| 343 | <li> |
---|
| 344 | <label> |
---|
| 345 | <span class="property">{'Filesize'|@translate}</span> |
---|
| 346 | <input type="checkbox" name="picture_informations[filesize]" {if ($display.picture_informations.filesize)}checked="checked"{/if}> |
---|
| 347 | </label> |
---|
| 348 | </li> |
---|
| 349 | |
---|
| 350 | <li> |
---|
| 351 | <label> |
---|
| 352 | <span class="property">{'Tags'|@translate}</span> |
---|
| 353 | <input type="checkbox" name="picture_informations[tags]" {if ($display.picture_informations.tags)}checked="checked"{/if}> |
---|
| 354 | </label> |
---|
| 355 | </li> |
---|
| 356 | |
---|
| 357 | <li> |
---|
| 358 | <label> |
---|
| 359 | <span class="property">{'Categories'|@translate}</span> |
---|
| 360 | <input type="checkbox" name="picture_informations[categories]" {if ($display.picture_informations.categories)}checked="checked"{/if}> |
---|
| 361 | </label> |
---|
| 362 | </li> |
---|
| 363 | |
---|
| 364 | <li> |
---|
| 365 | <label> |
---|
| 366 | <span class="property">{'Visits'|@translate}</span> |
---|
| 367 | <input type="checkbox" name="picture_informations[visits]" {if ($display.picture_informations.visits)}checked="checked"{/if}> |
---|
| 368 | </label> |
---|
| 369 | </li> |
---|
| 370 | |
---|
| 371 | <li> |
---|
| 372 | <label> |
---|
| 373 | <span class="property">{'Average rate'|@translate}</span> |
---|
| 374 | <input type="checkbox" name="picture_informations[average_rate]" {if ($display.picture_informations.average_rate)}checked="checked"{/if}> |
---|
| 375 | </label> |
---|
| 376 | </li> |
---|
| 377 | |
---|
| 378 | <li> |
---|
| 379 | <label> |
---|
[6025] | 380 | <span class="property">{'Who can see this photo?'|@translate} ({'available for administrators only'|@translate})</span> |
---|
[5304] | 381 | <input type="checkbox" name="picture_informations[privacy_level]" {if ($display.picture_informations.privacy_level)}checked="checked"{/if}> |
---|
| 382 | </label> |
---|
| 383 | </li> |
---|
| 384 | </ul> |
---|
| 385 | </fieldset> |
---|
[5293] | 386 | {/if} |
---|
| 387 | |
---|
[2531] | 388 | {if !isset($default)} |
---|
| 389 | <p> |
---|
| 390 | <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}> |
---|
| 391 | <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}"> |
---|
| 392 | </p> |
---|
[3215] | 393 | </form> |
---|
[2531] | 394 | {/if} |
---|