| 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
/**
* Property Archive
*/
get_header();
/* Determine the type header to be used for taxonomy */
$theme_listing_module = get_option( 'theme_listing_module' );
switch ( $theme_listing_module ) {
case 'properties-map':
get_template_part( 'banners/map_based_banner' );
break;
default:
get_template_part( 'banners/property_archive_banner' );
break;
}
/* Check View Type */
if ( isset( $_GET[ 'view' ] ) ) {
$view_type = $_GET[ 'view' ];
} else {
/* Theme Options Listing Layout */
$view_type = get_option( 'theme_listing_layout' );
}
?>
<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 if( $view_type == 'grid' ) { echo 'property-grid'; } ?>">
<?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' );
}
$sort_query_args = array();
$sort_query_args = sort_properties($sort_query_args);
global $wp_query;
$args = array_merge( $wp_query->query_vars, $sort_query_args );
query_posts( $args );
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
if( $view_type == 'grid' ){
/* Display Property for Grid */
get_template_part('template-parts/property-for-grid');
}else{
/* Display Property for Listing */
get_template_part('template-parts/property-for-listing');
}
endwhile;
else:
?>
<div class="alert-wrapper">
<h4><?php _e('No Property Found', 'framework') ?></h4>
</div>
<?php
endif;
?>
</div>
<?php theme_pagination( $wp_query->max_num_pages); ?>
</section>
</div><!-- End Main Content -->
</div> <!-- End span9 -->
<?php get_sidebar('property-listing'); ?>
</div><!-- End contents row -->
</div>
<?php get_footer(); ?>