-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
76 changed files
with
1,697 additions
and
629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?php | ||
/** | ||
* The template for displaying archive pages | ||
* | ||
* @link https://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package uw_wp_theme | ||
*/ | ||
|
||
get_header(); | ||
|
||
$sidebar = get_post_meta( $post->ID, 'sidebar' ); | ||
|
||
// get the image header. | ||
get_template_part( 'template-parts/header', 'image' ); | ||
|
||
?> | ||
<div class="container-fluid "> | ||
<?php echo uw_breadcrumbs(); ?> | ||
|
||
</div> | ||
<div class="container-fluid uw-body"> | ||
<div class="row"> | ||
<main id="primary" class="site-main uw-body-copy col-md-<?php echo ( ( ! isset( $sidebar[0] ) || 'on' !== $sidebar[0] ) ? '8' : '12' ); ?>"> | ||
|
||
<?php | ||
|
||
if ( have_posts() ) { | ||
|
||
/* Display the appropriate header when required. */ | ||
uw_wp_theme_index_header(); | ||
|
||
/* Start the Loop. */ | ||
while ( have_posts() ) { | ||
the_post(); | ||
|
||
/* | ||
* Include the Post-Type-specific template for the content. | ||
* If you want to override this in a child theme, then include a file | ||
* called content-___.php (where ___ is the Post Type name) and that will be used instead. | ||
*/ | ||
get_template_part( 'template-parts/content', get_post_type() ); | ||
|
||
}; | ||
|
||
if ( ! is_singular() ) { | ||
the_posts_pagination( | ||
array( | ||
'mid_size' => 2, | ||
'prev_text' => __( '‹ Previous', 'uw_wp_theme' ), | ||
'next_text' => __( 'Next ›', 'uw_wp_theme' ), | ||
'screen_reader_text' => __( 'Search Results Navigation', 'uw_wp_theme' ), | ||
'aria_label' => __( 'Search Results', 'uw_wp_theme' ), | ||
) | ||
); | ||
} | ||
|
||
} else { | ||
|
||
get_template_part( 'template-parts/content', 'none' ); | ||
} | ||
?> | ||
|
||
</main><!-- #primary --> | ||
|
||
<?php | ||
if ( ! isset( $sidebar[0] ) || 'on' !== $sidebar[0] ) { | ||
get_sidebar(); | ||
} | ||
?> | ||
|
||
</div><!-- .row --> | ||
</div><!-- .container --> | ||
|
||
<?php | ||
get_footer(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.