[13024] | 1 | {footer_script}{literal} |
---|
| 2 | jQuery(document).ready(function(){ |
---|
| 3 | jQuery("#activate_comments").change(function(){ |
---|
| 4 | if ($(this).is(':checked')) { |
---|
| 5 | jQuery("#comments_param_warp").show(); |
---|
| 6 | } else { |
---|
| 7 | jQuery("#comments_param_warp").hide(); |
---|
| 8 | } |
---|
| 9 | }); |
---|
[2614] | 10 | |
---|
[13024] | 11 | var targets = { |
---|
| 12 | 'input[name="rate"]' : '#rate_anonymous', |
---|
| 13 | 'input[name="allow_user_registration"]' : '#email_admin_on_new_user', |
---|
| 14 | 'input[name="comments_validation"]' : '#email_admin_on_comment_validation', |
---|
| 15 | 'input[name="user_can_edit_comment"]' : '#email_admin_on_comment_edition', |
---|
| 16 | 'input[name="user_can_delete_comment"]' : '#email_admin_on_comment_deletion', |
---|
| 17 | }; |
---|
[2614] | 18 | |
---|
[13024] | 19 | for (selector in targets) { |
---|
| 20 | var target = targets[selector]; |
---|
| 21 | |
---|
| 22 | jQuery(target).toggle(jQuery(selector).is(':checked')); |
---|
| 23 | |
---|
| 24 | (function(target){ |
---|
| 25 | jQuery(selector).bind('change', function() { |
---|
| 26 | jQuery(target).toggle($(this).is(':checked')); |
---|
| 27 | }); |
---|
| 28 | })(target); |
---|
| 29 | }; |
---|
| 30 | }); |
---|
| 31 | {/literal}{/footer_script} |
---|
| 32 | |
---|
[14228] | 33 | <h2>{'Piwigo configuration'|@translate} {$TABSHEET_TITLE}</h2> |
---|
[2531] | 34 | |
---|
[3215] | 35 | {if !isset($default)} |
---|
[2531] | 36 | <form method="post" action="{$F_ACTION}" class="properties"> |
---|
[3215] | 37 | {/if} |
---|
[5284] | 38 | <div id="configContent"> |
---|
[2531] | 39 | {if isset($main)} |
---|
| 40 | <fieldset id="mainConf"> |
---|
[3185] | 41 | <legend></legend> |
---|
[2531] | 42 | <ul> |
---|
| 43 | <li> |
---|
[13004] | 44 | |
---|
[2531] | 45 | <label for="gallery_title">{'Gallery title'|@translate}</label> |
---|
[13004] | 46 | <br> |
---|
[3185] | 47 | <input type="text" maxlength="255" size="50" name="gallery_title" id="gallery_title" value="{$main.CONF_GALLERY_TITLE}"> |
---|
[2531] | 48 | </li> |
---|
| 49 | |
---|
| 50 | <li> |
---|
[13004] | 51 | |
---|
[2531] | 52 | <label for="page_banner">{'Page banner'|@translate}</label> |
---|
[13004] | 53 | <br> |
---|
[3185] | 54 | <textarea rows="5" cols="50" class="description" name="page_banner" id="page_banner">{$main.CONF_PAGE_BANNER}</textarea> |
---|
[2531] | 55 | </li> |
---|
| 56 | |
---|
| 57 | <li> |
---|
| 58 | <label> |
---|
[3185] | 59 | <input type="checkbox" name="rate" {if ($main.rate)}checked="checked"{/if}> |
---|
[13004] | 60 | {'Allow rating'|@translate} |
---|
[2531] | 61 | </label> |
---|
| 62 | </li> |
---|
| 63 | |
---|
[13004] | 64 | <li id="rate_anonymous"> |
---|
[2531] | 65 | <label> |
---|
[3185] | 66 | <input type="checkbox" name="rate_anonymous" {if ($main.rate_anonymous)}checked="checked"{/if}> |
---|
[13004] | 67 | {'Rating by guests'|@translate} |
---|
[2531] | 68 | </label> |
---|
| 69 | </li> |
---|
| 70 | |
---|
| 71 | <li> |
---|
| 72 | <label> |
---|
[3185] | 73 | <input type="checkbox" name="allow_user_registration" {if ($main.allow_user_registration)}checked="checked"{/if}> |
---|
[13004] | 74 | {'Allow user registration'|@translate} |
---|
[2531] | 75 | </label> |
---|
| 76 | </li> |
---|
| 77 | |
---|
[13004] | 78 | <li id="email_admin_on_new_user"> |
---|
[2531] | 79 | <label> |
---|
[13004] | 80 | <input type="checkbox" name="email_admin_on_new_user" {if ($main.email_admin_on_new_user)}checked="checked"{/if}> |
---|
| 81 | {'Email admins when a new user registers'|@translate} |
---|
[5328] | 82 | </label> |
---|
| 83 | </li> |
---|
| 84 | |
---|
| 85 | <li> |
---|
| 86 | <label> |
---|
[13004] | 87 | <input type="checkbox" name="allow_user_customization" {if ($main.allow_user_customization)}checked="checked"{/if}> |
---|
| 88 | {'Allow user customization'|@translate} |
---|
[2531] | 89 | </label> |
---|
| 90 | </li> |
---|
| 91 | |
---|
| 92 | <li> |
---|
| 93 | <label> |
---|
[13004] | 94 | <input type="checkbox" name="obligatory_user_mail_address" {if ($main.obligatory_user_mail_address)}checked="checked"{/if}> |
---|
| 95 | {'Mail address is obligatory for all users'|@translate} |
---|
[2531] | 96 | </label> |
---|
| 97 | </li> |
---|
[8626] | 98 | |
---|
| 99 | <li> |
---|
[13004] | 100 | <label>{'Week starts on'|@translate} |
---|
| 101 | {html_options name="week_starts_on" options=$main.week_starts_on_options selected=$main.week_starts_on_options_selected}</label> |
---|
[8626] | 102 | </li> |
---|
[11279] | 103 | |
---|
[11589] | 104 | <li> |
---|
[13004] | 105 | <label>{'Default photos order'|@translate}</label> |
---|
[11587] | 106 | |
---|
| 107 | {foreach from=$main.order_by item=order} |
---|
[11588] | 108 | <span class="filter {if $ORDER_BY_IS_CUSTOM}transparent{/if}"> |
---|
[13087] | 109 | <select name="order_by[]" {if $ORDER_BY_IS_CUSTOM}disabled{/if}> |
---|
| 110 | {html_options options=$main.order_by_options selected=$order} |
---|
[11587] | 111 | </select> |
---|
[11588] | 112 | <a class="removeFilter">{'delete'|@translate}</a> |
---|
[11587] | 113 | </span> |
---|
| 114 | {/foreach} |
---|
| 115 | |
---|
| 116 | {if !$ORDER_BY_IS_CUSTOM} |
---|
[11588] | 117 | <a class="addFilter">{'Add a criteria'|@translate}</a> |
---|
[11587] | 118 | {else} |
---|
| 119 | <span class="order_by_is_custom">{'You can\'t define a default photo order because you have a custom setting in your local configuration.'|@translate}</span> |
---|
| 120 | {/if} |
---|
[11279] | 121 | </li> |
---|
| 122 | |
---|
[11587] | 123 | {if !$ORDER_BY_IS_CUSTOM} |
---|
[12872] | 124 | {footer_script require='jquery'} |
---|
| 125 | // counters for displaying of addFilter link |
---|
[13087] | 126 | fields = {$main.order_by|@count}; max_fields = Math.ceil({$main.order_by_options|@count}/2); |
---|
[12872] | 127 | |
---|
| 128 | {literal} |
---|
| 129 | function updateAddFilterLink() { |
---|
| 130 | if (fields >= max_fields) { |
---|
| 131 | $('.addFilter').css('display', 'none'); |
---|
| 132 | } else { |
---|
| 133 | $('.addFilter').css('display', ''); |
---|
| 134 | } |
---|
| 135 | } |
---|
| 136 | |
---|
| 137 | function updateRemoveFilterTrigger() { |
---|
| 138 | $(".removeFilter").click(function () { |
---|
| 139 | $(this).parent('span.filter').remove(); |
---|
| 140 | fields--; |
---|
| 141 | updateAddFilterLink(); |
---|
| 142 | }); |
---|
[13838] | 143 | |
---|
| 144 | $(".removeFilter").css('display', ''); |
---|
| 145 | $(".filter:first .removeFilter").css('display', 'none'); |
---|
[12872] | 146 | } |
---|
| 147 | |
---|
[11279] | 148 | jQuery(document).ready(function () { |
---|
[11587] | 149 | $('.addFilter').click(function() { |
---|
| 150 | $(this).prev('span.filter').clone().insertBefore($(this)); |
---|
[13087] | 151 | $(this).prev('span.filter').children('select[name="order_by[]"]').val(''); |
---|
[12872] | 152 | |
---|
| 153 | fields++; |
---|
| 154 | updateRemoveFilterTrigger(); |
---|
[13838] | 155 | updateAddFilterLink(); |
---|
[11279] | 156 | }); |
---|
[11587] | 157 | |
---|
[12872] | 158 | updateRemoveFilterTrigger(); |
---|
| 159 | updateAddFilterLink(); |
---|
[11279] | 160 | }); |
---|
[12872] | 161 | {/literal} |
---|
| 162 | {/footer_script} |
---|
[11587] | 163 | {/if} |
---|
[2531] | 164 | |
---|
[13004] | 165 | <li> |
---|
| 166 | <strong>{'Save visits in history for'|@translate}</strong> |
---|
[2531] | 167 | |
---|
[13004] | 168 | <label> |
---|
| 169 | <input type="checkbox" name="history_guest" {if ($main.history_guest)}checked="checked"{/if}> |
---|
| 170 | {'simple visitors'|@translate} |
---|
| 171 | </label> |
---|
[2531] | 172 | |
---|
[13004] | 173 | <label> |
---|
| 174 | <input type="checkbox" name="log" {if ($main.log)}checked="checked"{/if}> |
---|
| 175 | {'registered users'|@translate} |
---|
| 176 | </label> |
---|
| 177 | |
---|
| 178 | <label> |
---|
| 179 | <input type="checkbox" name="history_admin" {if ($main.history_admin)}checked="checked"{/if}> |
---|
| 180 | {'administrators'|@translate} |
---|
| 181 | </label> |
---|
| 182 | |
---|
| 183 | </li> |
---|
[2531] | 184 | </ul> |
---|
| 185 | </fieldset> |
---|
| 186 | {/if} |
---|
| 187 | |
---|
| 188 | {if isset($comments)} |
---|
| 189 | <fieldset id="commentsConf"> |
---|
[3215] | 190 | <legend></legend> |
---|
[2531] | 191 | <ul> |
---|
| 192 | <li> |
---|
| 193 | <label> |
---|
[12887] | 194 | <input type="checkbox" name="activate_comments" id="activate_comments"{if ($comments.activate_comments)}checked="checked"{/if}> |
---|
[13004] | 195 | {'Activate comments'|@translate} |
---|
[12887] | 196 | </label> |
---|
| 197 | </li> |
---|
| 198 | </ul> |
---|
| 199 | |
---|
| 200 | <ul id="comments_param_warp"{if not ($comments.activate_comments)} style="display:none;"{/if}> |
---|
| 201 | <li> |
---|
| 202 | <label> |
---|
[3185] | 203 | <input type="checkbox" name="comments_forall" {if ($comments.comments_forall)}checked="checked"{/if}> |
---|
[13004] | 204 | {'Comments for all'|@translate} |
---|
[2531] | 205 | </label> |
---|
| 206 | </li> |
---|
| 207 | |
---|
| 208 | <li> |
---|
| 209 | <label> |
---|
[13004] | 210 | {'Number of comments per page'|@translate} |
---|
| 211 | <input type="text" size="3" maxlength="4" name="nb_comment_page" id="nb_comment_page" value="{$comments.NB_COMMENTS_PAGE}"> |
---|
[2531] | 212 | </label> |
---|
| 213 | </li> |
---|
[13004] | 214 | |
---|
[2531] | 215 | <li> |
---|
| 216 | <label> |
---|
[13004] | 217 | {'Default comments order'|@translate} |
---|
| 218 | <select name="comments_order"> |
---|
| 219 | {html_options options=$comments.comments_order_options selected=$comments.comments_order} |
---|
| 220 | </select> |
---|
[2531] | 221 | </label> |
---|
| 222 | </li> |
---|
| 223 | |
---|
| 224 | <li> |
---|
| 225 | <label> |
---|
[13004] | 226 | <input type="checkbox" name="comments_validation" {if ($comments.comments_validation)}checked="checked"{/if}> |
---|
| 227 | {'Validation'|@translate} |
---|
[2531] | 228 | </label> |
---|
| 229 | </li> |
---|
[3445] | 230 | |
---|
| 231 | <li> |
---|
| 232 | <label> |
---|
| 233 | <input type="checkbox" name="user_can_edit_comment" {if ($comments.user_can_edit_comment)}checked="checked"{/if}> |
---|
[13004] | 234 | {'Allow users to edit their own comments'|@translate} |
---|
[3445] | 235 | </label> |
---|
| 236 | </li> |
---|
| 237 | <li> |
---|
| 238 | <label> |
---|
| 239 | <input type="checkbox" name="user_can_delete_comment" {if ($comments.user_can_delete_comment)}checked="checked"{/if}> |
---|
[13004] | 240 | {'Allow users to delete their own comments'|@translate} |
---|
[3445] | 241 | </label> |
---|
| 242 | </li> |
---|
[13004] | 243 | |
---|
[13024] | 244 | <li id="notifyAdmin"> |
---|
[13004] | 245 | <strong>{'Notify administrators when a comment is'|@translate}</strong> |
---|
| 246 | |
---|
| 247 | <label id="email_admin_on_comment_validation"> |
---|
| 248 | <input type="checkbox" name="email_admin_on_comment_validation" {if ($comments.email_admin_on_comment_validation)}checked="checked"{/if}> {'pending validation'|@translate} |
---|
[3445] | 249 | </label> |
---|
[13004] | 250 | |
---|
[3445] | 251 | <label> |
---|
[13004] | 252 | <input type="checkbox" name="email_admin_on_comment" {if ($comments.email_admin_on_comment)}checked="checked"{/if}> {'added'|@translate} |
---|
[3445] | 253 | </label> |
---|
[13004] | 254 | |
---|
| 255 | <label id="email_admin_on_comment_edition"> |
---|
| 256 | <input type="checkbox" name="email_admin_on_comment_edition" {if ($comments.email_admin_on_comment_edition)}checked="checked"{/if}> {'modified'|@translate} |
---|
| 257 | </label> |
---|
| 258 | |
---|
| 259 | <label id="email_admin_on_comment_deletion"> |
---|
| 260 | <input type="checkbox" name="email_admin_on_comment_deletion" {if ($comments.email_admin_on_comment_deletion)}checked="checked"{/if}> {'deleted'|@translate} |
---|
| 261 | </label> |
---|
[3445] | 262 | </li> |
---|
[2531] | 263 | </ul> |
---|
| 264 | </fieldset> |
---|
| 265 | {/if} |
---|
| 266 | |
---|
[12879] | 267 | {if isset($sizes)} |
---|
| 268 | |
---|
[13883] | 269 | {footer_script} |
---|
| 270 | var labelMaxWidth = "{'Maximum Width'|@translate}"; |
---|
| 271 | var labelWidth = "{'Width'|@translate}"; |
---|
| 272 | |
---|
| 273 | var labelMaxHeight = "{'Maximum Height'|@translate}"; |
---|
| 274 | var labelHeight = "{'Height'|@translate}"; |
---|
| 275 | {literal} |
---|
[12879] | 276 | jQuery(document).ready(function(){ |
---|
[13883] | 277 | function toggleResizeFields(size) { |
---|
| 278 | var checkbox = jQuery("#original_resize"); |
---|
| 279 | var needToggle = jQuery("#sizeEdit-original"); |
---|
[12879] | 280 | |
---|
| 281 | if (jQuery(checkbox).is(':checked')) { |
---|
| 282 | needToggle.show(); |
---|
| 283 | } |
---|
| 284 | else { |
---|
| 285 | needToggle.hide(); |
---|
| 286 | } |
---|
| 287 | } |
---|
| 288 | |
---|
| 289 | toggleResizeFields("original"); |
---|
| 290 | jQuery("#original_resize").click(function () {toggleResizeFields("original")}); |
---|
[13883] | 291 | |
---|
| 292 | jQuery("a[id^='sizeEditOpen-']").click(function(){ |
---|
| 293 | var sizeName = jQuery(this).attr("id").split("-")[1]; |
---|
| 294 | jQuery("#sizeEdit-"+sizeName).toggle(); |
---|
| 295 | jQuery(this).hide(); |
---|
| 296 | }); |
---|
| 297 | |
---|
| 298 | jQuery(".cropToggle").click(function() { |
---|
| 299 | var labelBoxWidth = jQuery(this).parents('table.sizeEditForm').find('td.sizeEditWidth'); |
---|
| 300 | var labelBoxHeight = jQuery(this).parents('table.sizeEditForm').find('td.sizeEditHeight'); |
---|
| 301 | |
---|
| 302 | if (jQuery(this).is(':checked')) { |
---|
| 303 | jQuery(labelBoxWidth).html(labelWidth); |
---|
| 304 | jQuery(labelBoxHeight).html(labelHeight); |
---|
| 305 | } |
---|
| 306 | else { |
---|
| 307 | jQuery(labelBoxWidth).html(labelMaxWidth); |
---|
| 308 | jQuery(labelBoxHeight).html(labelMaxHeight); |
---|
| 309 | } |
---|
| 310 | }); |
---|
| 311 | |
---|
| 312 | jQuery("#showDetails").click(function() { |
---|
| 313 | jQuery(".sizeDetails").show(); |
---|
| 314 | jQuery(this).css("visibility", "hidden"); |
---|
[14228] | 315 | return false; |
---|
[13883] | 316 | }); |
---|
| 317 | |
---|
[12879] | 318 | }); |
---|
| 319 | {/literal}{/footer_script} |
---|
| 320 | |
---|
[14228] | 321 | {html_style}{literal} |
---|
[13883] | 322 | .sizeEnable {width:50px;} |
---|
| 323 | .sizeEditForm {margin:0 0 10px 20px;} |
---|
| 324 | .sizeEdit {display:none;} |
---|
| 325 | #sizesConf table {margin:0;} |
---|
| 326 | .showDetails {padding:0;} |
---|
| 327 | .sizeDetails {display:none;margin-left:10px;} |
---|
| 328 | .sizeEditOpen {margin-left:10px;} |
---|
[14228] | 329 | {/literal}{/html_style} |
---|
[13883] | 330 | |
---|
[12879] | 331 | <fieldset id="sizesConf"> |
---|
| 332 | <legend>{'Original Size'|@translate}</legend> |
---|
| 333 | |
---|
[13883] | 334 | <div> |
---|
| 335 | <label for="original_resize"> |
---|
| 336 | <input type="checkbox" name="original_resize" id="original_resize" {if ($sizes.original_resize)}checked="checked"{/if}> |
---|
| 337 | {'Resize after upload'|@translate} |
---|
| 338 | </label> |
---|
| 339 | </div> |
---|
| 340 | |
---|
| 341 | <table id="sizeEdit-original"> |
---|
[12879] | 342 | <tr> |
---|
| 343 | <th>{'Maximum Width'|@translate}</th> |
---|
[14221] | 344 | <td> |
---|
| 345 | <input type="text" name="original_resize_maxwidth" value="{$sizes.original_resize_maxwidth}" size="4" maxlength="4"{if isset($ferrors.original_resize_maxwidth)} class="dError"{/if}> {'pixels'|@translate} |
---|
| 346 | {if isset($ferrors.original_resize_maxwidth)}<span class="dErrorDesc" title="{$ferrors.original_resize_maxwidth}">!</span>{/if} |
---|
| 347 | </td> |
---|
[12879] | 348 | </tr> |
---|
| 349 | <tr> |
---|
| 350 | <th>{'Maximum Height'|@translate}</th> |
---|
[14221] | 351 | <td> |
---|
| 352 | <input type="text" name="original_resize_maxheight" value="{$sizes.original_resize_maxheight}" size="4" maxlength="4"{if isset($ferrors.original_resize_maxheight)} class="dError"{/if}> {'pixels'|@translate} |
---|
| 353 | {if isset($ferrors.original_resize_maxheight)}<span class="dErrorDesc" title="{$ferrors.original_resize_maxheight}">!</span>{/if} |
---|
| 354 | </td> |
---|
[12879] | 355 | </tr> |
---|
| 356 | <tr> |
---|
| 357 | <th>{'Image Quality'|@translate}</th> |
---|
[14221] | 358 | <td> |
---|
| 359 | <input type="text" name="original_resize_quality" value="{$sizes.original_resize_quality}" size="3" maxlength="3"{if isset($ferrors.original_resize_quality)} class="dError"{/if}> % |
---|
| 360 | {if isset($ferrors.original_resize_quality)}<span class="dErrorDesc" title="{$ferrors.original_resize_quality}">!</span>{/if} |
---|
| 361 | </td> |
---|
[12879] | 362 | </tr> |
---|
| 363 | </table> |
---|
| 364 | |
---|
| 365 | </fieldset> |
---|
[13883] | 366 | |
---|
| 367 | <fieldset id="multiSizesConf"> |
---|
| 368 | <legend>{'Multiple Size'|@translate}</legend> |
---|
| 369 | |
---|
| 370 | <div class="showDetails"> |
---|
[14221] | 371 | <a href="#" id="showDetails"{if $show_details or isset($ferrors)} style="display:none"{/if}>{'show details'|@translate}</a> |
---|
[13883] | 372 | </div> |
---|
| 373 | |
---|
| 374 | <table style="margin:0"> |
---|
| 375 | {foreach from=$derivatives item=d key=type} |
---|
| 376 | <tr> |
---|
| 377 | <td> |
---|
| 378 | <label> |
---|
| 379 | <span class="sizeEnable"> |
---|
| 380 | {if $d.must_enable} |
---|
| 381 | ✔ |
---|
| 382 | {else} |
---|
| 383 | <input type="checkbox" name="d[{$type}][enabled]" {if $d.enabled}checked="checked"{/if}> |
---|
| 384 | {/if} |
---|
| 385 | </span> |
---|
| 386 | {$type|@translate} |
---|
| 387 | </label> |
---|
| 388 | </td> |
---|
| 389 | |
---|
| 390 | <td> |
---|
[14221] | 391 | <span class="sizeDetails"{if isset($ferrors)} style="display:inline"{/if}>{$d.w} x {$d.h} {'pixels'|@translate}{if $d.crop}, {'Crop'|@translate|lower}{/if}</span> |
---|
[13883] | 392 | </td> |
---|
| 393 | |
---|
| 394 | <td> |
---|
[14221] | 395 | <span class="sizeDetails"{if isset($ferrors) and !isset($ferrors.$type)} style="display:inline"{/if}> |
---|
[13883] | 396 | <a href="#" id="sizeEditOpen-{$type}" class="sizeEditOpen">{'edit'|@translate}</a> |
---|
| 397 | </span> |
---|
| 398 | </td> |
---|
| 399 | </tr> |
---|
| 400 | |
---|
[14221] | 401 | <tr id="sizeEdit-{$type}" class="sizeEdit" {if isset($ferrors.$type)} style="display:block"{/if}> |
---|
[13883] | 402 | <td colspan="3"> |
---|
| 403 | <table class="sizeEditForm"> |
---|
| 404 | {if !$d.must_square} |
---|
| 405 | <tr> |
---|
| 406 | <td colspan="2"> |
---|
| 407 | <label> |
---|
| 408 | <input type="checkbox" class="cropToggle" name="d[{$type}][crop]" {if $d.crop}checked="checked"{/if}> |
---|
| 409 | {'Crop'|@translate} |
---|
| 410 | </label> |
---|
| 411 | </td> |
---|
| 412 | </tr> |
---|
| 413 | {/if} |
---|
| 414 | |
---|
| 415 | <tr> |
---|
| 416 | <td class="sizeEditWidth">{if $d.must_square or $d.crop}{'Width'|@translate}{else}{'Maximum Width'|@translate}{/if}</td> |
---|
| 417 | <td> |
---|
[14221] | 418 | <input type="text" name="d[{$type}][w]" maxlength="4" size="4" value="{$d.w}"{if isset($ferrors.$type.w)} class="dError"{/if}> |
---|
[13883] | 419 | {'pixels'|@translate} |
---|
| 420 | {if isset($ferrors.$type.w)}<span class="dErrorDesc" title="{$ferrors.$type.w}">!</span>{/if} |
---|
| 421 | </td> |
---|
| 422 | </tr> |
---|
| 423 | |
---|
| 424 | {if !$d.must_square} |
---|
| 425 | <tr> |
---|
| 426 | <td class="sizeEditHeight">{if $d.crop}{'Height'|@translate}{else}{'Maximum Height'|@translate}{/if}</td> |
---|
| 427 | <td> |
---|
[14221] | 428 | <input type="text" name="d[{$type}][h]" maxlength="4" size="4" value="{$d.h}"{if isset($ferrors.$type.h)} class="dError"{/if}> |
---|
[13883] | 429 | {'pixels'|@translate} |
---|
| 430 | {if isset($ferrors.$type.h)}<span class="dErrorDesc" title="{$ferrors.$type.h}">!</span>{/if} |
---|
| 431 | </td> |
---|
| 432 | </tr> |
---|
| 433 | {/if} |
---|
| 434 | </table> {* #sizeEdit *} |
---|
| 435 | </td> |
---|
| 436 | </tr> |
---|
| 437 | {/foreach} |
---|
| 438 | </table> |
---|
| 439 | |
---|
[14251] | 440 | <p style="margin:10px 0 0 0;{if isset($ferrors)} display:block;{/if}" class="sizeDetails"> |
---|
[13883] | 441 | {'Image Quality'|@translate} |
---|
[14221] | 442 | <input type="text" name="resize_quality" value="{$resize_quality}" size="3" maxlength="3"{if isset($ferrors.resize_quality)} class="dError"{/if}> % |
---|
| 443 | {if isset($ferrors.resize_quality)}<span class="dErrorDesc" title="{$ferrors.resize_quality}">!</span>{/if} |
---|
[13883] | 444 | </p> |
---|
[14251] | 445 | <p style="margin:10px 0 0 0;{if isset($ferrors)} display:block;{/if}" class="sizeDetails"> |
---|
| 446 | <a href="{$F_ACTION}&action=restore_settings" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'Reset to default values'|@translate}</a> |
---|
| 447 | </p> |
---|
[13883] | 448 | </fieldset> |
---|
[12879] | 449 | {/if} |
---|
| 450 | |
---|
[14512] | 451 | {if isset($watermark)} |
---|
| 452 | |
---|
| 453 | {footer_script}{literal} |
---|
| 454 | jQuery(document).ready(function() { |
---|
| 455 | |
---|
| 456 | if (jQuery("input[name='w[position]']:checked").val() == 'custom') { |
---|
| 457 | jQuery("#positionCustomDetails").show(); |
---|
| 458 | } |
---|
| 459 | |
---|
| 460 | jQuery("input[name='w[position]']").change(function(){ |
---|
| 461 | if (jQuery(this).val() == 'custom') { |
---|
| 462 | jQuery("#positionCustomDetails").show(); |
---|
| 463 | } |
---|
| 464 | else { |
---|
| 465 | jQuery("#positionCustomDetails").hide(); |
---|
| 466 | } |
---|
| 467 | }); |
---|
| 468 | }); |
---|
| 469 | {/literal}{/footer_script} |
---|
| 470 | |
---|
| 471 | |
---|
| 472 | <fieldset id="watermarkConf"> |
---|
| 473 | <legend></legend> |
---|
| 474 | <ul> |
---|
| 475 | <li> |
---|
| 476 | <label>{'Select a file'|@translate}</label> |
---|
| 477 | <select name="w[file]" id="wSelect"> |
---|
| 478 | {html_options options=$watermark_files selected=$watermark.file} |
---|
| 479 | </select> |
---|
| 480 | <br>{'... or '|@translate}<a href="#" class="addWatermarkOpen" title="{'add a new watermark'|@translate}">{'add a new watermark'|@translate}</a> |
---|
| 481 | </li> |
---|
| 482 | |
---|
| 483 | {* |
---|
| 484 | <p><img id="wImg"></img></p> |
---|
| 485 | *} |
---|
| 486 | |
---|
| 487 | <li> |
---|
| 488 | <label> |
---|
| 489 | {'Apply watermark if width is bigger than'|@translate} |
---|
[14513] | 490 | <input size="4" maxlength="4" type="text" name="w[minw]" value="{$watermark.minw}"{if isset($ferrors.watermark.minw)} class="dError"{/if}> |
---|
[14512] | 491 | </label> |
---|
| 492 | {'pixels'|@translate} |
---|
| 493 | </li> |
---|
| 494 | |
---|
| 495 | <li> |
---|
| 496 | <label> |
---|
| 497 | {'Apply watermark if height is bigger than'|@translate} |
---|
[14513] | 498 | <input size="4" maxlength="4" type="text" name="w[minh]" value="{$watermark.minh}"{if isset($ferrors.watermark.minh)} class="dError"{/if}> |
---|
[14512] | 499 | </label> |
---|
| 500 | {'pixels'|@translate} |
---|
| 501 | </li> |
---|
| 502 | |
---|
| 503 | <li> |
---|
| 504 | <label>{'Position'|@translate}</label> |
---|
| 505 | <br> |
---|
| 506 | <div id="watermarkPositionBox"> |
---|
| 507 | <label class="right">{'top right corner'|@translate} <input name="w[position]" type="radio" value="topright"{if $watermark.position eq 'topright'} checked="checked"{/if}></label> |
---|
| 508 | <label><input name="w[position]" type="radio" value="topleft"{if $watermark.position eq 'topleft'} checked="checked"{/if}> {'top left corner'|@translate}</label> |
---|
| 509 | <label class="middle"><input name="w[position]" type="radio" value="middle"{if $watermark.position eq 'middle'} checked="checked"{/if}> {'middle'|@translate}</label> |
---|
| 510 | <label class="right">{'bottom right corner'|@translate} <input name="w[position]" type="radio" value="bottomright"{if $watermark.position eq 'bottomright'} checked="checked"{/if}></label> |
---|
| 511 | <label><input name="w[position]" type="radio" value="bottomleft"{if $watermark.position eq 'bottomleft'} checked="checked"{/if}> {'bottom left corner'|@translate}</label> |
---|
| 512 | </div> |
---|
| 513 | <label style="display:block;margin-top:10px;font-weight:normal;"><input name="w[position]" type="radio" value="custom"{if $watermark.position eq 'custom'} checked="checked"{/if}> {'custom'|@translate}</label> |
---|
| 514 | <div id="positionCustomDetails"> |
---|
| 515 | <label>{'X Position'|@translate} |
---|
[14513] | 516 | <input size="3" maxlength="3" type="text" name="w[xpos]" value="{$watermark.xpos}"{if isset($ferrors.watermark.xpos)} class="dError"{/if}>% |
---|
| 517 | {if isset($ferrors.watermark.xpos)}<span class="dErrorDesc" title="{$ferrors.watermark.xpos}">!</span>{/if} |
---|
[14512] | 518 | </label> |
---|
| 519 | |
---|
| 520 | <br> |
---|
| 521 | <label>{'Y Position'|@translate} |
---|
[14513] | 522 | <input size="3" maxlength="3" type="text" name="w[ypos]" value="{$watermark.ypos}"{if isset($ferrors.watermark.ypos)} class="dError"{/if}>% |
---|
| 523 | {if isset($ferrors.watermark.ypos)}<span class="dErrorDesc" title="{$ferrors.watermark.ypos}">!</span>{/if} |
---|
[14512] | 524 | </label> |
---|
| 525 | |
---|
| 526 | <br> |
---|
| 527 | <label>{'X Repeat'|@translate} |
---|
[14513] | 528 | <input size="3" maxlength="3" type="text" name="w[xrepeat]" value="{$watermark.xrepeat}"{if isset($ferrors.watermark.xrepeat)} class="dError"{/if}> |
---|
| 529 | {if isset($ferrors.watermark.xrepeat)}<span class="dErrorDesc" title="{$ferrors.watermark.xrepeat}">!</span>{/if} |
---|
[14512] | 530 | </label> |
---|
| 531 | </div> |
---|
| 532 | </li> |
---|
| 533 | |
---|
| 534 | <li> |
---|
| 535 | <label>{'Opacity'|@translate}</label> |
---|
[14513] | 536 | <input size="3" maxlength="3" type="text" name="w[opacity]" value="{$watermark.opacity}"{if isset($ferrors.watermark.opacity)} class="dError"{/if}> % |
---|
| 537 | {if isset($ferrors.watermark.opacity)}<span class="dErrorDesc" title="{$ferrors.watermark.opacity}">!</span>{/if} |
---|
[14512] | 538 | </li> |
---|
| 539 | </ul> |
---|
| 540 | </fieldset> |
---|
| 541 | |
---|
| 542 | {/if} {* end of watermark section *} |
---|
| 543 | |
---|
[5293] | 544 | {if isset($display)} |
---|
| 545 | <fieldset id="indexDisplayConf"> |
---|
| 546 | <legend>{'Main Page'|@translate}</legend> |
---|
| 547 | <ul> |
---|
| 548 | <li> |
---|
| 549 | <label> |
---|
| 550 | <input type="checkbox" name="menubar_filter_icon" {if ($display.menubar_filter_icon)}checked="checked"{/if}> |
---|
[13004] | 551 | {'display only recently posted photos'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')} |
---|
[5293] | 552 | </label> |
---|
[11285] | 553 | </li> |
---|
| 554 | |
---|
| 555 | <li> |
---|
| 556 | <label> |
---|
| 557 | <input type="checkbox" name="index_new_icon" {if ($display.index_new_icon)}checked="checked"{/if}> |
---|
[13004] | 558 | {'Activate icon "new" next to albums and pictures'|@translate} |
---|
[11285] | 559 | </label> |
---|
[5293] | 560 | </li> |
---|
| 561 | |
---|
| 562 | <li> |
---|
| 563 | <label> |
---|
| 564 | <input type="checkbox" name="index_sort_order_input" {if ($display.index_sort_order_input)}checked="checked"{/if}> |
---|
[13004] | 565 | {'Sort order'|@translate|@string_format:$pwg->l10n('Activate icon "%s"')} |
---|
[5293] | 566 | </label> |
---|
| 567 | </li> |
---|
| 568 | |
---|
| 569 | <li> |
---|
| 570 | <label> |
---|
| 571 | <input type="checkbox" name="index_flat_icon" {if ($display.index_flat_icon)}checked="checked"{/if}> |
---|
[13004] | 572 | {'display all photos in all sub-albums'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')} |
---|
[5293] | 573 | </label> |
---|
| 574 | </li> |
---|
| 575 | |
---|
| 576 | <li> |
---|
| 577 | <label> |
---|
| 578 | <input type="checkbox" name="index_posted_date_icon" {if ($display.index_posted_date_icon)}checked="checked"{/if}> |
---|
[13004] | 579 | {'display a calendar by posted date'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')} |
---|
[5293] | 580 | </label> |
---|
| 581 | </li> |
---|
| 582 | |
---|
| 583 | <li> |
---|
| 584 | <label> |
---|
| 585 | <input type="checkbox" name="index_created_date_icon" {if ($display.index_created_date_icon)}checked="checked"{/if}> |
---|
[13004] | 586 | {'display a calendar by creation date'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')} |
---|
[5293] | 587 | </label> |
---|
| 588 | </li> |
---|
| 589 | |
---|
| 590 | <li> |
---|
| 591 | <label> |
---|
| 592 | <input type="checkbox" name="index_slideshow_icon" {if ($display.index_slideshow_icon)}checked="checked"{/if}> |
---|
[13004] | 593 | {'slideshow'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')} |
---|
[5293] | 594 | </label> |
---|
| 595 | </li> |
---|
| 596 | </ul> |
---|
| 597 | </fieldset> |
---|
| 598 | |
---|
| 599 | <fieldset id="pictureDisplayConf"> |
---|
| 600 | <legend>{'Photo Page'|@translate}</legend> |
---|
| 601 | <ul> |
---|
| 602 | <li> |
---|
| 603 | <label> |
---|
[5298] | 604 | <input type="checkbox" name="picture_slideshow_icon" {if ($display.picture_slideshow_icon)}checked="checked"{/if}> |
---|
[13004] | 605 | {'slideshow'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')} |
---|
[5293] | 606 | </label> |
---|
| 607 | </li> |
---|
| 608 | |
---|
| 609 | <li> |
---|
| 610 | <label> |
---|
[5298] | 611 | <input type="checkbox" name="picture_metadata_icon" {if ($display.picture_metadata_icon)}checked="checked"{/if}> |
---|
[13004] | 612 | {'Show file metadata'|@translate|@string_format:$pwg->l10n('Activate icon "%s"')} |
---|
[5293] | 613 | </label> |
---|
| 614 | </li> |
---|
| 615 | |
---|
| 616 | <li> |
---|
| 617 | <label> |
---|
[5618] | 618 | <input type="checkbox" name="picture_download_icon" {if ($display.picture_download_icon)}checked="checked"{/if}> |
---|
[13004] | 619 | {'Download this file'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')} |
---|
[5618] | 620 | </label> |
---|
| 621 | </li> |
---|
| 622 | |
---|
| 623 | <li> |
---|
| 624 | <label> |
---|
[5293] | 625 | <input type="checkbox" name="picture_favorite_icon" {if ($display.picture_favorite_icon)}checked="checked"{/if}> |
---|
[13004] | 626 | {'add this photo to your favorites'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')} |
---|
[5293] | 627 | </label> |
---|
| 628 | </li> |
---|
| 629 | |
---|
| 630 | <li> |
---|
| 631 | <label> |
---|
| 632 | <input type="checkbox" name="picture_navigation_icons" {if ($display.picture_navigation_icons)}checked="checked"{/if}> |
---|
[13004] | 633 | {'Activate Navigation Bar'|@translate} |
---|
[5293] | 634 | </label> |
---|
| 635 | </li> |
---|
| 636 | |
---|
| 637 | <li> |
---|
| 638 | <label> |
---|
| 639 | <input type="checkbox" name="picture_navigation_thumb" {if ($display.picture_navigation_thumb)}checked="checked"{/if}> |
---|
[13004] | 640 | {'Activate Navigation Thumbnails'|@translate} |
---|
[5293] | 641 | </label> |
---|
| 642 | </li> |
---|
[10812] | 643 | |
---|
| 644 | <li> |
---|
| 645 | <label> |
---|
| 646 | <input type="checkbox" name="picture_menu" {if ($display.picture_menu)}checked="checked"{/if}> |
---|
[13004] | 647 | {'Show menubar'|@translate} |
---|
[10812] | 648 | </label> |
---|
| 649 | </li> |
---|
[5293] | 650 | </ul> |
---|
| 651 | </fieldset> |
---|
[5304] | 652 | |
---|
| 653 | <fieldset id="pictureInfoConf"> |
---|
| 654 | <legend>{'Photo Properties'|@translate}</legend> |
---|
| 655 | <ul> |
---|
| 656 | <li> |
---|
| 657 | <label> |
---|
| 658 | <input type="checkbox" name="picture_informations[author]" {if ($display.picture_informations.author)}checked="checked"{/if}> |
---|
[13004] | 659 | {'Author'|@translate} |
---|
[5304] | 660 | </label> |
---|
| 661 | </li> |
---|
| 662 | |
---|
| 663 | <li> |
---|
| 664 | <label> |
---|
| 665 | <input type="checkbox" name="picture_informations[created_on]" {if ($display.picture_informations.created_on)}checked="checked"{/if}> |
---|
[13004] | 666 | {'Created on'|@translate} |
---|
[5304] | 667 | </label> |
---|
| 668 | </li> |
---|
| 669 | |
---|
| 670 | <li> |
---|
| 671 | <label> |
---|
| 672 | <input type="checkbox" name="picture_informations[posted_on]" {if ($display.picture_informations.posted_on)}checked="checked"{/if}> |
---|
[13004] | 673 | {'Posted on'|@translate} |
---|
[5304] | 674 | </label> |
---|
| 675 | </li> |
---|
| 676 | |
---|
| 677 | <li> |
---|
| 678 | <label> |
---|
| 679 | <input type="checkbox" name="picture_informations[dimensions]" {if ($display.picture_informations.dimensions)}checked="checked"{/if}> |
---|
[13004] | 680 | {'Dimensions'|@translate} |
---|
[5304] | 681 | </label> |
---|
| 682 | </li> |
---|
| 683 | |
---|
| 684 | <li> |
---|
| 685 | <label> |
---|
| 686 | <input type="checkbox" name="picture_informations[file]" {if ($display.picture_informations.file)}checked="checked"{/if}> |
---|
[13004] | 687 | {'File'|@translate} |
---|
[5304] | 688 | </label> |
---|
| 689 | </li> |
---|
| 690 | |
---|
| 691 | <li> |
---|
| 692 | <label> |
---|
| 693 | <input type="checkbox" name="picture_informations[filesize]" {if ($display.picture_informations.filesize)}checked="checked"{/if}> |
---|
[13004] | 694 | {'Filesize'|@translate} |
---|
[5304] | 695 | </label> |
---|
| 696 | </li> |
---|
| 697 | |
---|
| 698 | <li> |
---|
| 699 | <label> |
---|
| 700 | <input type="checkbox" name="picture_informations[tags]" {if ($display.picture_informations.tags)}checked="checked"{/if}> |
---|
[13004] | 701 | {'Tags'|@translate} |
---|
[5304] | 702 | </label> |
---|
| 703 | </li> |
---|
| 704 | |
---|
| 705 | <li> |
---|
| 706 | <label> |
---|
| 707 | <input type="checkbox" name="picture_informations[categories]" {if ($display.picture_informations.categories)}checked="checked"{/if}> |
---|
[13004] | 708 | {'Albums'|@translate} |
---|
[5304] | 709 | </label> |
---|
| 710 | </li> |
---|
| 711 | |
---|
| 712 | <li> |
---|
| 713 | <label> |
---|
| 714 | <input type="checkbox" name="picture_informations[visits]" {if ($display.picture_informations.visits)}checked="checked"{/if}> |
---|
[13004] | 715 | {'Visits'|@translate} |
---|
[5304] | 716 | </label> |
---|
| 717 | </li> |
---|
| 718 | |
---|
| 719 | <li> |
---|
| 720 | <label> |
---|
[11893] | 721 | <input type="checkbox" name="picture_informations[rating_score]" {if ($display.picture_informations.rating_score)}checked="checked"{/if}> |
---|
[13004] | 722 | {'Rating score'|@translate} |
---|
[5304] | 723 | </label> |
---|
| 724 | </li> |
---|
| 725 | |
---|
| 726 | <li> |
---|
| 727 | <label> |
---|
| 728 | <input type="checkbox" name="picture_informations[privacy_level]" {if ($display.picture_informations.privacy_level)}checked="checked"{/if}> |
---|
[13004] | 729 | {'Who can see this photo?'|@translate} ({'available for administrators only'|@translate}) |
---|
[5304] | 730 | </label> |
---|
| 731 | </li> |
---|
| 732 | </ul> |
---|
| 733 | </fieldset> |
---|
[5293] | 734 | {/if} |
---|
| 735 | |
---|
[2531] | 736 | {if !isset($default)} |
---|
[14228] | 737 | <p class="formButtons"> |
---|
| 738 | <input type="submit" name="submit" value="{'Save Settings'|@translate}"> |
---|
| 739 | </p> |
---|
[3215] | 740 | </form> |
---|
[2531] | 741 | {/if} |
---|
[13004] | 742 | |
---|
| 743 | </div> <!-- configContent --> |
---|
| 744 | |
---|
| 745 | {if isset($default)} |
---|
| 746 | {$PROFILE_CONTENT} |
---|
| 747 | {/if} |
---|