{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"} var jcrop_api; jQuery("#jcrop").Jcrop({ldelim} boxWidth: {$crop.display_width}, boxHeight: {$crop.display_height}, setSelect: [{$crop.l}, {$crop.t}, {$crop.r}, {$crop.b}], onChange: jOnChange, onRelease: jOnRelease }, function(){ldelim} jcrop_api = this; }); function jOnChange(sel) {ldelim} jQuery("input[name='x']").val(sel.x); jQuery("input[name='y']").val(sel.y); jQuery("input[name='x2']").val(sel.x2); jQuery("input[name='y2']").val(sel.y2); jQuery("#width").html(sel.x2-sel.x); jQuery("#height").html(sel.y2-sel.y); } function jOnRelease() {ldelim} jcrop_api.setSelect([{$crop.l}, {$crop.t}, {$crop.r}, {$crop.b}]); } {/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"}{literal} 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; } }); {/literal}{/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|@sprintf:$upload_max_filesize_shorthand} {'Allowed file types: %s.'|@translate|@sprintf:'jpg, png, gif'}
{'or choose a picture from the gallery'|@translate}
{'Picture id.'|@translate}
{/if}