forked from jspellman814/wordpress-composer-managed
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from MITLibraries/pw-55
Add tag template to News theme
- Loading branch information
Showing
4 changed files
with
56 additions
and
70 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
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,34 @@ | ||
<?php | ||
/** | ||
* The template for displaying all content with a single tag. | ||
* | ||
* @package MITlib_News | ||
* @since 0.3.0 | ||
*/ | ||
|
||
namespace Mitlib\News; | ||
|
||
get_header(); | ||
?> | ||
|
||
<?php get_template_part( 'inc/sub-header' ); ?> | ||
|
||
<div id="content" role="main"> | ||
<?php if ( have_posts() ) : ?> | ||
<div class="container container-fluid"> | ||
<div class="row"> | ||
<h1 class="lib-header">Tag: <strong><?php echo esc_html( single_tag_title( '', false ) ); ?></strong></h1> | ||
<?php | ||
while ( have_posts() ) : | ||
the_post(); | ||
get_template_part( 'content', 'single' ); | ||
endwhile; | ||
?> | ||
<?php \Mitlib\Parent\content_nav( 'nav-below' ); ?> | ||
</div> | ||
</div> | ||
<?php endif; ?> | ||
</div><!-- #content --> | ||
|
||
<div class="container"> | ||
<?php get_footer(); ?> |
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