function extra_contact_form_submit_ajax() { $message = extra_contact_form_submit(); exit(json_encode($message)); }
echo esc_attr($contact_page_options['map_lng']); ?> "></div> <?php } ?> <form class="contact-form extra-contact-form" method="post"> <h3><?php echo esc_html($contact_page_options['title']); ?> </h3> <div class="message"><?php $message = extra_contact_form_submit(); if (!empty($message)) { printf(' <p class="%s">%s</p>', esc_attr($message['type']), esc_html($message['message'])); } ?> </div> <div class="field first"> <input id="contact_name" name="contact_name" type="text" placeholder="<?php esc_attr_e('Name', 'extra'); ?> *" data-label="<?php esc_attr_e('Name', 'extra'); ?> " />