| Server IP : 198.244.165.102 / Your IP : 216.73.216.218 [ Web Server : nginx/1.24.0 System : Linux modovh-ub-01 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : colleary ( 1011) PHP Version : 8.3.23 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/colleary/public_html/wp-content/themes/realhomes/ |
Upload File : |
<?php
/*
* Template Name: Contact Template
*/
get_header();
?>
<!-- Page Head -->
<?php get_template_part("banners/default_page_banner"); ?>
<!-- Content -->
<div class="container contents contact-page">
<div class="row">
<div class="span9 main-wrap">
<!-- Main Content -->
<div class="main">
<div class="inner-wrapper">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class("clearfix"); ?>>
<?php the_content(); ?>
</article>
<?php
endwhile;
endif;
$show_contact_map = get_option('theme_show_contact_map');
if($show_contact_map == 'true'){
?>
<div class="map-container clearfix">
<?php get_template_part('template-parts/contact-map'); ?>
</div>
<?php
}
$show_details = get_option('theme_show_details');
if($show_details == 'true'){
$contact_details_title = get_option('theme_contact_details_title');
$contact_address = stripslashes(get_option('theme_contact_address'));
$contact_cell = get_option('theme_contact_cell');
$contact_phone = get_option('theme_contact_phone');
$contact_fax = get_option('theme_contact_fax');
$contact_display_email = get_option('theme_contact_display_email');
?>
<section class="contact-details clearfix">
<?php
if ( ! empty( $contact_details_title ) ) {
?><h3><?php echo esc_html( $contact_details_title ); ?></h3><?php
}
?>
<ul class="contacts-list">
<?php
if(!empty($contact_phone)){
$desktop_version = '<span class="desktop-version">' . $contact_phone . '</span>';
$mobile_version = '<a class="mobile-version" href="tel://'.$contact_phone.'" title="Make a Call">' .$contact_phone. '</a>';
?><li class="phone"><?php include( get_template_directory() . '/images/icon-phone.svg' ); _e('Phone', 'framework'); ?> : <?php echo $desktop_version . $mobile_version; ?></li><?php
}
if(!empty($contact_cell)){
$desktop_version = '<span class="desktop-version">' . $contact_cell . '</span>';
$mobile_version = '<a class="mobile-version" href="tel://'.$contact_cell.'" title="Make a Call">' .$contact_cell. '</a>';
?><li class="mobile"><?php include( get_template_directory() . '/images/icon-mobile.svg' ); _e('Mobile', 'framework'); ?> : <?php echo $desktop_version . $mobile_version; ?></li><?php
}
if(!empty($contact_fax)){
?><li class="fax"><?php include( get_template_directory() . '/images/icon-printer.svg' ); _e('Fax', 'framework'); ?> : <?php echo esc_html( $contact_fax ); ?></li><?php
}
if(!empty($contact_display_email)){
?><li class="email"><?php include( get_template_directory() . '/images/icon-mail.svg' ); _e('Email', 'framework'); ?> : <a href="mailto:<?php echo antispambot($contact_display_email); ?>"><?php echo antispambot($contact_display_email); ?></a></li><?php
}
if(!empty($contact_address)){
?><li class="address"><?php include( get_template_directory() . '/images/icon-map.svg' ); _e('Address', 'framework'); ?> : <?php echo esc_html( $contact_address ); ?></li><?php
}
?>
</ul>
</section>
<?php
}
/**
* Contact Form
*/
$inspiry_contact_form_shortcode = get_option('inspiry_contact_form_shortcode');
if ( !empty( $inspiry_contact_form_shortcode ) ) {
/* Contact Form Shortcode */
echo do_shortcode( $inspiry_contact_form_shortcode );
} else {
/*
* Default Contact Form
*/
$theme_contact_email = get_option('theme_contact_email');
$contact_form_heading = get_option('theme_contact_form_heading');
if ( ! empty( $theme_contact_email ) ) {
?>
<section id="contact-form">
<?php
if ( ! empty( $contact_form_heading ) ) {
?><h3 class="form-heading"><?php echo esc_html( $contact_form_heading ); ?></h3><?php
}
?>
<form class="contact-form" method="post" action="<?php echo admin_url('admin-ajax.php'); ?>">
<p>
<label for="name"><?php _e('Name', 'framework'); ?></label>
<input type="text" name="name" id="name" class="required" title="<?php _e( '* Please provide your name', 'framework'); ?>">
</p>
<p>
<label for="email"><?php _e('Email', 'framework'); ?></label>
<input type="text" name="email" id="email" class="email required" title="<?php _e( '* Please provide a valid email address', 'framework'); ?>">
</p>
<p>
<label for="number"><?php _e('Phone Number', 'framework'); ?></label>
<input type="text" name="number" id="number">
</p>
<p>
<label for="comment"><?php _e('Message', 'framework'); ?></label>
<textarea name="message" id="comment" class="required" title="<?php _e( '* Please provide your message', 'framework'); ?>"></textarea>
</p>
<p>
<?php
/* Display recaptcha if enabled and configured from theme options */
get_template_part('recaptcha/custom-recaptcha');
?>
</p>
<p>
<input type="submit" id="submit-button" value="<?php _e('Send Message', 'framework'); ?>" id="submit" class="real-btn" name="submit">
<img src="<?php echo get_template_directory_uri(); ?>/images/ajax-loader.gif" id="ajax-loader" alt="Loading...">
<input type="hidden" name="action" value="send_message" />
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce('send_message_nonce'); ?>"/>
</p>
<div id="error-container"></div>
<div id="message-container"> </div>
</form>
</section>
<?php
}
}
?>
</div>
</div><!-- End Main Content -->
</div><!-- End span9 -->
<?php get_sidebar('contact'); ?>
</div><!-- End contents row -->
</div><!-- End Content -->
<?php get_footer(); ?>