-{if isset($main)}
-
-
-
-
-
-{/if}
-
-{if isset($comments)}
-
-{/if}
-
-{if isset($sizes)}
-
-{footer_script}
-(function(){
- var labelMaxWidth = "{'Maximum width'|@translate}",
- labelWidth = "{'Width'|@translate}",
- labelMaxHeight = "{'Maximum height'|@translate}",
- labelHeight = "{'Height'|@translate}";
-
- function toggleResizeFields(size) {
- var checkbox = jQuery("#original_resize");
- var needToggle = jQuery("#sizeEdit-original");
-
- if (jQuery(checkbox).is(':checked')) {
- needToggle.show();
- }
- else {
- needToggle.hide();
- }
- }
-
- toggleResizeFields("original");
- jQuery("#original_resize").click(function () {
- toggleResizeFields("original");
- });
-
- jQuery("a[id^='sizeEditOpen-']").click(function(){
- var sizeName = jQuery(this).attr("id").split("-")[1];
- jQuery("#sizeEdit-"+sizeName).toggle();
- jQuery(this).hide();
- return false;
- });
-
- jQuery(".cropToggle").click(function() {
- var labelBoxWidth = jQuery(this).parents('table.sizeEditForm').find('td.sizeEditWidth');
- var labelBoxHeight = jQuery(this).parents('table.sizeEditForm').find('td.sizeEditHeight');
-
- if (jQuery(this).is(':checked')) {
- jQuery(labelBoxWidth).html(labelWidth);
- jQuery(labelBoxHeight).html(labelHeight);
- }
- else {
- jQuery(labelBoxWidth).html(labelMaxWidth);
- jQuery(labelBoxHeight).html(labelMaxHeight);
- }
- });
-
- jQuery("#showDetails").click(function() {
- jQuery(".sizeDetails").show();
- jQuery(this).css("visibility", "hidden");
- return false;
- });
-}());
-{/footer_script}
-
-{html_style}{literal}
-.sizeEnable {width:50px;}
-.sizeEditForm {margin:0 0 10px 20px;}
-.sizeEdit {display:none;}
-#sizesConf table {margin:0;}
-.showDetails {padding:0;}
-.sizeDetails {display:none;margin-left:10px;}
-.sizeEditOpen {margin-left:10px;}
-{/literal}{/html_style}
-
-
-
-
-{/if}
-
-{if isset($watermark)}
-
-{footer_script}
-(function(){
- function onWatermarkChange() {
- var val = jQuery("#wSelect").val();
- if (val.length) {
- jQuery("#wImg").attr('src', '{$ROOT_URL}'+val).show();
- }
- else {
- jQuery("#wImg").hide();
- }
- }
-
- onWatermarkChange();
-
- jQuery("#wSelect").bind("change", onWatermarkChange);
-
- if (jQuery("input[name='w[position]']:checked").val() == 'custom') {
- jQuery("#positionCustomDetails").show();
- }
-
- jQuery("input[name='w[position]']").change(function(){
- if (jQuery(this).val() == 'custom') {
- jQuery("#positionCustomDetails").show();
- }
- else {
- jQuery("#positionCustomDetails").hide();
- }
- });
-
- jQuery(".addWatermarkOpen").click(function(){
- jQuery("#addWatermark, #selectWatermark").toggle();
- return false;
- });
-}());
-{/footer_script}
-
-
-
-
-
-
-{/if} {* end of watermark section *}
-
-{if isset($display)}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{/if}
-
-
-
-{if !isset($default)}
-