-
Notifications
You must be signed in to change notification settings - Fork 14
/
single-agent.php
27 lines (21 loc) · 919 Bytes
/
single-agent.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php get_header(); ?>
<div class="row">
<div class="content <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-sm-8 col-md-9<?php else : ?>col-sm-12<?php endif; ?>">
<?php dynamic_sidebar( 'sidebar-content-top' ); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php echo Realia_Template_Loader::load( 'content-agent' ); ?>
<?php endwhile; ?>
<?php the_posts_pagination( array(
'prev_text' => __( 'Previous page', 'realia' ),
'next_text' => __( 'Next page', 'realia' ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'realia' ) . ' </span>',
) ); ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
<?php dynamic_sidebar( 'sidebar-content-bottom' ); ?>
</div><!-- /.content -->
<?php get_sidebar(); ?>
</div><!-- /.row -->
<?php get_footer(); ?>