Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save propertyhive/ba5be78c2f64b15bf807738a59acd86c to your computer and use it in GitHub Desktop.
Save propertyhive/ba5be78c2f64b15bf807738a59acd86c to your computer and use it in GitHub Desktop.
<?php
/**
* Make enquiry action, plus lightbox form
*
* @author PropertyHive
* @package PropertyHive/Templates
* @version 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $post;
?>
<li class="action-make-enquiry">
<a href="#makeEnquiry<?php echo $post->ID; ?>" data-rel="enquiryPrettyPhoto"><?php _e( 'Make Enquiry', 'propertyhive' ); ?></a>
<!-- LIGHTBOX FORM -->
<div id="makeEnquiry<?php echo $post->ID; ?>" style="display:none;">
<div>
<h2><?php _e( 'Make Enquiry', 'propertyhive' ); ?></h2>
<p><?php _e( 'Please complete the form below and a member of staff will be in touch shortly.', 'propertyhive' ); ?></p>
<?php propertyhive_enquiry_form(); ?>
</div>
</div>
<!-- END LIGHTBOX FORM -->
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment