forked from iGovPhil/gwt-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
64 lines (53 loc) · 1.87 KB
/
archive.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* The template for displaying archive pages
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* If you'd like to further customize these archive views, you may create a
* new template file for each one. For example, tag.php (Tag archives),
* category.php (Category archives), author.php (Author archives), etc.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package GWT
* @since Government Website Template 2.0
*/
get_header();
include_once('inc/banner.php');
?>
<?php govph_displayoptions( 'govph_panel_top' ); ?>
<div id="container-main" class="container-main" role="document">
<div id="main-content" class="row">
<div id="content" class="<?php govph_displayoptions( 'govph_content_position' ); ?>columns" role="main">
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'template-parts/content', get_post_format() );
?>
<?php endwhile; ?>
<?php gwt_wp_content_nav( 'nav-below' ); ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'archive' ); ?>
<?php endif; ?>
</div><!-- #content -->
<?php
if(is_active_sidebar('left-sidebar')){
govph_displayoptions( 'govph_sidebar_left' );
}
?>
<?php
if(is_active_sidebar('right-sidebar')){
govph_displayoptions( 'govph_sidebar_right' );
}
?>
</div><!-- #main -->
</div><!-- #primary -->
<?php govph_displayoptions( 'govph_panel_bottom' ); ?>
<?php get_footer(); ?>