This repository has been archived by the owner on Sep 4, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Single Publication Template
Include a single publication template that includes a main download link and summary.
- Loading branch information
Showing
4 changed files
with
140 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* The Template for displaying all single publications. | ||
* | ||
* @package WP Publication Archive | ||
* @since 3.0 | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<div id="primary" class="site-content"> | ||
<div id="content" role="main"> | ||
|
||
<?php | ||
while ( have_posts() ) : the_post(); $publication = new WP_Publication_Archive_Item( get_the_ID() ); ?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
<header class="entry-header"> | ||
<h1 class="entry-title"><?php the_title(); ?></h1> | ||
</header><!-- .entry-header --> | ||
|
||
<div class="entry-content"> | ||
<?php $publication->the_thumbnail(); ?> | ||
<?php the_content(); ?> | ||
<section class="publication-downloads"> | ||
<?php $publication->the_uri(); ?> | ||
<?php $publication->list_downloads(); ?> | ||
</section> | ||
</div><!-- .entry-content --> | ||
|
||
<footer class="entry-meta"> | ||
<?php edit_post_link( __( 'Edit Publication', 'wp_pubarch_translate' ), '<span class="edit-link">', '</span>' ); ?> | ||
</footer><!-- .entry-meta --> | ||
</article><!-- #post --> | ||
|
||
<?php endwhile; // end of the loop. ?> | ||
|
||
</div><!-- #content --> | ||
</div><!-- #primary --> | ||
|
||
<?php get_sidebar(); ?> | ||
<?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
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