} while (have_posts()) { the_post(); if ($archive_layout == 'grid') { // display property in grid layout get_template_part('partials/property/templates/property-for-grid'); } else { // display property in list layout get_template_part('partials/property/templates/property-for-list'); } $property_list_counter++; } if ($archive_layout == 'grid') { echo '</div>'; } inspiry_pagination($wp_query); } ?> </main> <!-- .site-main --> </div> <!-- .site-main-content --> </div> <!-- .row --> </div> <!-- .container -->
?> "><i class="fa fa-eye"></i></a><?php } } ?> </div> <!-- .action-buttons --> </div> <!-- .content-wrapper --> </article><!-- .user-submit-property --> <?php } inspiry_pagination($my_properties_query); wp_reset_postdata(); } else { inspiry_message(__('Oops', 'inspiry'), __('It appears that you have not submitted any property yet!', 'inspiry')); } } else { inspiry_message(__('Login Required', 'inspiry'), __('You need to login to view your properties!', 'inspiry')); } ?> </main> <!-- .site-main --> </div> <!-- .site-main-content -->
} while ($properties_search_query->have_posts()) { $properties_search_query->the_post(); if ($search_layout == 'grid') { // display property in grid layout get_template_part('partials/property/templates/property-for-grid'); } else { // display property in list layout get_template_part('partials/property/templates/property-for-list'); } $property_list_counter++; } if ($search_layout == 'grid') { echo '</div>'; } inspiry_pagination($properties_search_query); wp_reset_postdata(); } ?> </main> <!-- .site-main --> </div> <!-- .site-main-content --> </div> <!-- .row --> </div> <!-- .container -->
global $found_properties; $found_properties = $properties_list_query->found_posts; get_template_part('partials/property/templates/listing-control'); /* * Properties List */ if ($properties_list_query->have_posts()) { global $property_list_counter; $property_list_counter = 1; while ($properties_list_query->have_posts()) { $properties_list_query->the_post(); // display property in list layout get_template_part('partials/property/templates/property-for-list'); $property_list_counter++; } inspiry_pagination($properties_list_query); wp_reset_postdata(); } ?> </main> <!-- .site-main --> </div> <!-- .site-main-content --> </div> <!-- .row --> </div> <!-- .container -->
get_template_part('partials/property/templates/listing-control'); /* * Properties List */ if ($favorites_query->have_posts()) { global $property_grid_counter; $property_grid_counter = 1; echo '<div class="row">'; while ($favorites_query->have_posts()) { $favorites_query->the_post(); // display property in grid layout get_template_part('partials/property/templates/property-for-grid'); $property_grid_counter++; } echo '</div>'; inspiry_pagination($favorites_query); wp_reset_postdata(); } } else { inspiry_message(__('Oops', 'inspiry'), __('You have not added any property to your favorites!', 'inspiry')); } } else { inspiry_message(__('Login Required', 'inspiry'), __('You need to login to view your properties!', 'inspiry')); } ?> </main> <!-- .site-main --> </div> <!-- .site-main-content -->
wp_reset_postdata(); } else { ?> <h4><?php _e('No agent found!', 'inspiry'); ?> </h4><?php } ?> </div> <!-- .row--> </div> <?php inspiry_pagination($agents_list_query); ?> </main> <!-- .site-main --> </div> <!-- .site-main-content --> </div> <!-- .row --> </div> <!-- .container --> </div>
get_template_part('partials/property/templates/listing-control'); /* * Properties List */ if ($properties_grid_query->have_posts()) { global $property_grid_counter; $property_grid_counter = 1; echo '<div class="row">'; while ($properties_grid_query->have_posts()) { $properties_grid_query->the_post(); // display property in grid layout get_template_part('partials/property/templates/property-for-grid'); $property_grid_counter++; } echo '</div>'; inspiry_pagination($properties_grid_query); wp_reset_postdata(); } ?> </main> <!-- .site-main --> </div> <!-- .site-main-content --> </div> <!-- .row --> </div> <!-- .container -->