{combine_css path=$HEADER_MANAGER_PATH|cat:'admin/template/style.css'}

Header Manager

{if $IN_CROP} {combine_css path="themes/default/js/plugins/jquery.Jcrop.css"} {combine_script id='jquery.jcrop' load='footer' require='jquery' path='themes/default/js/plugins/jquery.Jcrop.min.js'} {footer_script require="jquery"} (function(){ var jcrop_api; jQuery("#jcrop").Jcrop({ boxWidth: {$crop.box_width}, boxHeight: {$crop.box_height}, trueSize: [{$picture.width}, {$picture.height}], aspectRatio: {$crop.real_width}/{$crop.real_height}, setSelect: [{$crop.l}, {$crop.t}, {$crop.r}, {$crop.b}], onChange: function(sel) { jQuery("input[name='x']").val(Math.round(sel.x)); jQuery("input[name='y']").val(Math.round(sel.y)); jQuery("input[name='x2']").val(Math.round(sel.x2)); jQuery("input[name='y2']").val(Math.round(sel.y2)); var final_width = Math.min(Math.round(sel.x2-sel.x), {$crop.desired_width}), final_height = Math.round((sel.y2-sel.y)*final_width/(sel.x2-sel.x)); jQuery("#width").html(final_width); jQuery("#height").html(final_height); }, onRelease: function() { jcrop_api.setSelect([{$crop.l}, {$crop.t}, {$crop.r}, {$crop.b}]); } }, function() { jcrop_api = this; }); jQuery('input[name="keep_ratio"]').on('change', function() { jcrop_api.setOptions({ aspectRatio: jQuery(this).prop('checked') ? {$crop.real_width}/{$crop.real_height} : 0 }); if (!jQuery(this).prop('checked')) { jcrop_api.release(); } }); }()); {/footer_script}
{'Crop banner image'|translate} {'Choose the part of the image you want to use as your header.'|translate}
{else} {footer_script require="jquery"} jQuery(".showInfo").tipTip({ delay: 0, fadeIn: 200, fadeOut: 200, maxWidth: '300px', }); $("input").bind("keydown", function(event) { var keycode = event.keyCode ? event.keyCode : (event.which ? event.which : event.charCode); if (keycode == 13 && $("input[name='picture_id']").val() != '') { $("input[name='upload_gallery_image']").click(); return false; } else { return true; } }); {/footer_script}
{'Default banner size'|translate}



{'For MontBlancXL and BlancMontXL, advised size is 900×190.'|translate}
{'Select an image'|translate} {'You can upload a custom header image or select one from your gallery. On the next screen you will be able to crop the image.'|translate}

{'Choose an image from your computer'|translate}
{'Maximum file size: %sB.'|translate:$upload_max_filesize_shorthand} {'Allowed file types: %s.'|translate:'jpg, png, gif'}
{'or choose a picture from the gallery'|translate}
{'Picture id.'|translate}
{/if}