| 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/template-parts/ |
Upload File : |
<div class="container contents listing-grid-layout">
<div class="row">
<div class="span9 main-wrap">
<!-- Main Content -->
<div class="main">
<section class="listing-layout">
<?php
$title_display = get_post_meta( $post->ID, 'REAL_HOMES_page_title_display', true );
if( $title_display != 'hide' ){
?>
<h3 class="title-heading"><?php the_title(); ?></h3>
<?php
}
// listing view type
get_template_part( 'template-parts/listing-view-type' );
?>
<div class="list-container clearfix">
<?php
get_template_part('template-parts/sort-controls');
$compare_properties_module = get_option( 'theme_compare_properties_module' );
$inspiry_compare_page = get_option( 'inspiry_compare_page' );
if ( ( 'enable' == $compare_properties_module ) && ( $inspiry_compare_page ) ) {
get_template_part( 'template-parts/compare-properties' );
}
$number_of_properties = intval(get_option('theme_number_of_properties'));
if(!$number_of_properties){
$number_of_properties = 6;
}
global $paged;
if ( is_front_page() ) {
$paged = (get_query_var('page')) ? get_query_var('page') : 1;
}
$property_listing_args = array(
'post_type' => 'property',
'posts_per_page' => $number_of_properties,
'paged' => $paged
);
// Apply properties filter
$property_listing_args = apply_filters( 'inspiry_properties_filter', $property_listing_args );
$property_listing_args = sort_properties( $property_listing_args );
$property_listing_query = new WP_Query( $property_listing_args );
if ( $property_listing_query->have_posts() ) :
while ( $property_listing_query->have_posts() ) :
$property_listing_query->the_post();
// display property in list layout
get_template_part('template-parts/property-for-listing');
endwhile;
wp_reset_query();
else:
?>
<div class="alert-wrapper">
<h4><?php _e('Sorry No Results Found', 'framework') ?></h4>
</div>
<?php
endif;
?>
</div>
<?php theme_pagination( $property_listing_query->max_num_pages); ?>
</section>
</div><!-- End Main Content -->
</div> <!-- End span9 -->
<?php get_sidebar('property-listing'); ?>
</div><!-- End contents row -->
</div>