PluginProbe
Property Hive / 1.4.53
Property Hive v1.4.53
2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 1.4.62 All 260 releases
propertyhive / templates / archive-property.php

archive-property.php in Property Hive 1.4.53, at templates/archive-property.php

85 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The Template for displaying property archives, also referred to as 'Search Results'
4 *
5 * Override this template by copying it to yourtheme/propertyhive/archive-property.php
6 *
7 * @author PropertyHive
8 * @package PropertyHive/Templates
9 * @version 1.0.0
10 */
11
12 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
13
14 get_header( 'propertyhive' ); global $wpdb; ?>
15
16 <?php
17 /**
18 * propertyhive_before_main_content hook
19 *
20 * @hooked propertyhive_output_content_wrapper - 10 (outputs opening divs for the content)
21 */
22 do_action( 'propertyhive_before_main_content' );
23 ?>
24
25 <?php if ( apply_filters( 'propertyhive_show_page_title', true ) ) : ?>
26
27 <h1 class="page-title"><?php propertyhive_page_title(); ?></h1>
28
29 <?php endif; ?>
30
31 <?php
32 /**
33 * propertyhive_before_search_results_loop hook
34 * @hooked propertyhive_search_form - 10
35 * @hooked propertyhive_result_count - 20
36 * @hooked propertyhive_catalog_ordering - 30
37 */
38 do_action( 'propertyhive_before_search_results_loop' );
39 ?>
40
41 <?php
42 // Output results. Filter allows us to not display the results whilst maintaining the main query. True by default
43 // Used primarily by the Map Search add on - https://wp-property-hive.com/addons/map-search/
44 if ( apply_filters( 'propertyhive_show_results', true ) ) :
45 ?>
46
47 <?php if ( have_posts() ) : ?>
48
49 <?php propertyhive_property_loop_start(); ?>
50
51 <?php while ( have_posts() ) : the_post(); ?>
52
53 <?php ph_get_template_part( 'content', 'property' ); ?>
54
55 <?php endwhile; // end of the loop. ?>
56
57 <?php propertyhive_property_loop_end(); ?>
58
59 <?php else: ?>
60
61 <?php ph_get_template( 'search/no-properties-found.php' ); ?>
62
63 <?php endif; ?>
64
65 <?php endif; ?>
66
67 <?php
68 /**
69 * propertyhive_after_search_results_loop hook
70 *
71 * @hooked propertyhive_pagination - 10
72 */
73 do_action( 'propertyhive_after_search_results_loop' );
74 ?>
75
76 <?php
77 /**
78 * propertyhive_after_main_content hook
79 *
80 * @hooked propertyhive_output_content_wrapper_end - 10 (outputs closing divs for the content)
81 */
82 do_action( 'propertyhive_after_main_content' );
83 ?>
84
85 <?php get_footer( 'propertyhive' ); ?>