1: <?php
2: /**
3: * The Template for displaying all Easy Property Listings archive/loop posts with the iThemes Builder Theme Framework
4: *
5: * @package EPL
6: * @subpackage Templates/Themes/iThemes
7: * @since 1.0
8: */
9:
10: // Exit if accessed directly.
11: if ( ! defined( 'ABSPATH' ) ) {
12: exit;
13: }
14: /**
15: * Render archive content
16: *
17: * @since 1.0 [<description>]
18: */
19: function epl_archive_render_content() {
20: if ( have_posts() ) : ?>
21: <div class="loop">
22: <div class="loop-header">
23: <h4 class="loop-title">
24: <?php do_action( 'epl_the_archive_title' ); ?>
25: </h4>
26: </div>
27:
28: <div class="loop-content <?php echo esc_attr( epl_template_class( 'builder', 'archive' ) ); ?>">
29: <?php do_action( 'epl_property_loop_start' ); ?>
30: <?php
31: while ( have_posts() ) : // The Loop.
32: the_post();
33: do_action( 'epl_property_blog' );
34: endwhile; // end of one post.
35: ?>
36: <?php do_action( 'epl_property_loop_end' ); ?>
37: </div>
38:
39: <div class="loop-footer">
40: <!-- Previous/Next page navigation -->
41: <div class="loop-utility clearfix">
42: <?php do_action( 'epl_pagination' ); ?>
43: </div>
44: </div>
45: </div>
46: <?php
47: else :
48: ?>
49: <div class="hentry">
50: <?php do_action( 'epl_property_search_not_found' ); ?>
51: </div>
52: <?php
53: endif;
54: }
55: add_action( 'builder_layout_engine_render_content', 'epl_archive_render_content' );
56: do_action( 'builder_layout_engine_render', basename( __FILE__ ) );
57: