0){ $div=array_pop($divs); // the last div before this routine was included $interfaceBlockId=explode('id="ctf_ib',$div); if(count($interfaceBlockId)==1){// we have a div inside the ctf_ div. Keep going until we find the ctf_div continue; } if(!$class){ $class=explode('class="',$div); $class=array_pop($class); $class=' '.explode('"',$class)[0].' '; // the class name of the last div before this routine was included $classes=explode(' ',$class); $placeholders=in_array('ctf_ph',$classes); } $interfaceBlockId=array_pop($interfaceBlockId); $interfaceBlockId=explode('"',$interfaceBlockId)[0];// this gives us the number on the end of the id, if that number was used to make the form and form field id's unique on the page. e.g. ctf_ib1, ctf_ib2 break; } echo ''; echo ''; echo ''; echo ''; //if(ZDEF_TEST==1){echo '';} // ********** READ SPECS FROM form div ****** $interimHTML=ob_get_contents(); $form=explode('1){ $buttonText=array_pop($buttonText); $buttonText=trim(explode('"',$buttonText)[0]); }else{ $buttonText="Send Message"; } $localForm=ZDEF_PATH_TO_SUBDOMAIN.'source/forms/'.$contactForm.'.inc.php'; if(file_exists($localForm)){ require $localForm; // site specific form }else{ require ZDEF_PATH_TO_LIBRARY.'widgets/contact.forms/'.$contactForm.'.inc.php'; // central (generic) contact form } echo '
'; //on the CDN we can't submit the form, but we must use fetch and messagePop. There is no need for recaptcha. echo '
'; $buttonClass=explode('data-button-class="',$form); if(count($buttonClass)>1){ $buttonClass=array_pop($buttonClass); $buttonClass=trim(explode('"',$buttonClass)[0]); }else{ $buttonClass=''; } echo ''.$buttonText.'';/* button text defined by button def in site style sheet */ ?>