{combine_css path="plugins/ContactForm/include/contactform.css"} {combine_script id="ContactForm" load="async" path="plugins/ContactForm/include/contactform.js"} {footer_script}{literal} jQuery().ready(function(){ // Resize possible for textarea jQuery("#cf_message").resizable({ handles: "all", animate: true, animateDuration: "slow", animateEasing: "swing", preventDefault: true, preserveCursor: true, autoHide: true, ghost: true }); }); jQuery().ready(function(){ // Resize possible for textarea jQuery(".cf-input").resizable({ handles: "e", animate: true, animateDuration: "slow", animateEasing: "swing", preventDefault: true, preserveCursor: true, autoHide: true, ghost: true }); }); function cf_validate() { var items = new Array('cf_from_name','cf_from_mail','cf_subject','cf_message'); var is_mail = new Array(false,true,false,false); var is_needed = new Array( {/literal}{if $CF.NEED_NAME}true{else}false{/if}{literal}, {/literal}{if $CF.NEED_MAIL}true{else}false{/if}{literal}, true,true); var messages = new Array( '{/literal}{'cf_from_name_error'|@translate|@escape:javascript}{literal}', '{/literal}{'cf_mail_format_error'|@translate|@escape:javascript}{literal}', '{/literal}{'cf_subject_error'|@translate|@escape:javascript}{literal}', '{/literal}{'cf_message_error'|@translate|@escape:javascript}{literal}'); var i; for (i=0 ; i
{/if}
{'cf_from_name'|@translate} {if $CF.LOGGED} {else} {/if}
{'cf_from_mail'|@translate} {if $CF.LOGGED and ''!=$CF.EMAIL} {else}
{'cf_subject'|@translate}
{'cf_message'|@translate}