| 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
get_header();
?>
<!-- Page Head -->
<?php get_template_part("banners/default_page_banner"); ?>
<!-- Content -->
<div class="container contents listing-grid-layout">
<div class="row">
<div class="span9 main-wrap">
<!-- Main Content -->
<div class="main">
<section class="listing-layout">
<h3 class="title-heading"><?php the_title(); ?></h3>
<div class="list-container">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<article class="about-agent agent-single clearfix">
<div class="detail">
<div class="row-fluid">
<div class="span3">
<?php
if(has_post_thumbnail()){
?>
<figure class="agent-pic">
<a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('agent-image'); ?>
</a>
</figure>
<?php
}
?>
</div>
<div class="span9">
<div class="agent-content">
<?php the_content(); ?>
</div>
<?php
/* Agent Contact Info */
$agent_mobile = get_post_meta($post->ID, 'REAL_HOMES_mobile_number',true);
$agent_office_phone = get_post_meta($post->ID, 'REAL_HOMES_office_number',true);
$agent_office_fax = get_post_meta($post->ID, 'REAL_HOMES_fax_number',true);
if( !empty( $agent_office_phone ) || !empty( $agent_mobile ) || !empty( $agent_office_fax ) ) {
?>
<hr/>
<h5><?php _e('Contact Details', 'framework'); ?></h5>
<ul class="contacts-list">
<?php
if(!empty($agent_office_phone)){
?><li class="office"><?php include( get_template_directory() . '/images/icon-phone.svg' ); _e('Office', 'framework'); ?> : <?php echo esc_html( $agent_office_phone ); ?></li><?php
}
if(!empty($agent_mobile)){
?><li class="mobile"><?php include( get_template_directory() . '/images/icon-mobile.svg' ); _e('Mobile', 'framework'); ?> : <?php echo esc_html( $agent_mobile ); ?></li><?php
}
if(!empty($agent_office_fax)){
?><li class="fax"><?php include( get_template_directory() . '/images/icon-printer.svg' ); _e('Fax', 'framework'); ?> : <?php echo esc_html( $agent_office_fax ); ?></li><?php
}
?>
</ul>
<?php
}
// Agent contact form
get_template_part( 'template-parts/agent-contact-form' );
?>
</div>
</div><!-- end of .row-fluid -->
</div>
<div class="follow-agent clearfix">
<?php
$facebook_url = get_post_meta($post->ID, 'REAL_HOMES_facebook_url',true);
$twitter_url = get_post_meta($post->ID, 'REAL_HOMES_twitter_url',true);
$google_plus_url = get_post_meta($post->ID, 'REAL_HOMES_google_plus_url',true);
$linked_in_url = get_post_meta($post->ID, 'REAL_HOMES_linked_in_url',true);
$instagram_url = get_post_meta($post->ID, 'inspiry_instagram_url',true);
if(!empty($facebook_url) || !empty($twitter_url) || !empty($google_plus_url) || !empty($linked_in_url) || !empty($instagram_url)){
?>
<!-- Agent's Social Navigation -->
<ul class="social_networks clearfix">
<?php
if ( ! empty( $facebook_url ) ) {
?>
<li class="facebook">
<a target="_blank" href="<?php echo esc_url( $facebook_url ); ?>"><i class="fa fa-facebook fa-lg"></i></a>
</li>
<?php
}
if ( ! empty( $twitter_url ) ) {
?>
<li class="twitter">
<a target="_blank" href="<?php echo esc_url( $twitter_url ); ?>"><i class="fa fa-twitter fa-lg"></i></a>
</li>
<?php
}
if ( ! empty( $linked_in_url ) ) {
?>
<li class="linkedin">
<a target="_blank" href="<?php echo esc_url( $linked_in_url ); ?>"><i class="fa fa-linkedin fa-lg"></i></a>
</li>
<?php
}
if ( ! empty( $google_plus_url ) ) {
?>
<li class="gplus">
<a target="_blank" href="<?php echo esc_url( $google_plus_url ); ?>"><i class="fa fa-google-plus fa-lg"></i></a>
</li>
<?php
}
if ( ! empty( $instagram_url ) ) {
?>
<li class="instagram">
<a target="_blank" href="<?php echo esc_url( $instagram_url ); ?>"><i class="fa fa-instagram fa-lg"></i></a>
</li>
<?php
}
?>
</ul>
<?php
}
?>
</div>
</article>
<?php
endwhile;
endif;
/**
* Agent properties
*/
$number_of_properties = intval(get_option('theme_number_of_properties_agent'));
if(!$number_of_properties){
$number_of_properties = 6;
}
$agent_id = $post->ID;
global $paged;
$agent_properties_args = array(
'post_type' => 'property',
'posts_per_page' => $number_of_properties,
'meta_query' => array(
array(
'key' => 'REAL_HOMES_agents',
'value' => $agent_id,
'compare' => '='
)
),
'paged' => $paged
);
$agent_properties_listing_query = new WP_Query( $agent_properties_args );
if ( $agent_properties_listing_query->have_posts() ) :
while ( $agent_properties_listing_query->have_posts() ) :
$agent_properties_listing_query->the_post();
/* Display Property for Listing */
get_template_part('template-parts/property-for-single-agent');
endwhile;
wp_reset_postdata();
endif;
?>
</div>
<?php theme_pagination( $agent_properties_listing_query->max_num_pages); ?>
</section>
</div><!-- End Main Content -->
</div> <!-- End span9 -->
<?php get_sidebar('agent'); ?>
</div><!-- End contents row -->
</div><!-- End Content -->
<?php get_footer(); ?>