-
Notifications
You must be signed in to change notification settings - Fork 14
/
archive-agency.php
46 lines (37 loc) · 1.33 KB
/
archive-agency.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?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() ) : ?>
<header class="page-header">
<?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?>
<?php the_archive_description( '<div class="taxonomy-description">', '</div>' ); ?>
</header><!-- .page-header -->
<?php
/**
* realia_before_agency_archive
*/
do_action( 'realia_before_agency_archive' );
?>
<?php while ( have_posts() ) : the_post(); ?>
<?php echo Realia_Template_Loader::load( 'agencies/row' ); ?>
<?php endwhile; ?>
<?php
/**
* realia_after_agency_archive
*/
do_action( 'realia_after_agency_archive' );
?>
<?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(); ?>