Created
July 4, 2014 13:53
-
-
Save samikeijonen/fcc0bb61b2b86908727a to your computer and use it in GitHub Desktop.
Hopeareanus portfolio item example
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
<?php | |
/** | |
* Content Portfolio Item Template | |
* | |
* Template used to show post content when viewing portfolio item. | |
* | |
* @package Hopeareunus | |
* @subpackage Template | |
* @author Sami Keijonen <sami.keijonen@foxnet.fi> | |
* @since 0.1.0 | |
*/ | |
do_atomic( 'before_entry' ); // hopeareunus_before_entry ?> | |
<article <?php hybrid_post_attributes(); ?>> | |
<?php do_atomic( 'open_entry' ); // hopeareunus_open_entry ?> | |
<header class="entry-header"> | |
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title tag="h2"]' ); ?> | |
<?php echo apply_atomic_shortcode( | |
'entry_byline', | |
'<div class="entry-byline">' . | |
hybrid_entry_terms_shortcode( array( 'taxonomy' => 'portfolio', 'before' => __( 'Work:', 'hopeareunus' ) . ' ' ) ) . | |
'</div>' | |
); ?> | |
</header><!-- .entry-header --> | |
<div class="entry-content"> | |
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'hopeareunus' ) ); ?> | |
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'hopeareunus' ), 'after' => '</p>' ) ); ?> | |
<?php echo hopeareunus_get_portfolio_item_link(); // echo portfolio link ?> | |
</div><!-- .entry-content --> | |
<?php do_atomic( 'close_entry' ); // hopeareunus_close_entry ?> | |
</article><!-- .hentry --> | |
<?php do_atomic( 'after_entry' ); // hopeareunus_after_entry ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment