Skip to content

Instantly share code, notes, and snippets.

@carolinan
Created February 11, 2016 06:45
Show Gist options
  • Save carolinan/2de5d5629f8de40c811f to your computer and use it in GitHub Desktop.
Save carolinan/2de5d5629f8de40c811f to your computer and use it in GitHub Desktop.
<?php
/**
* @package aaron
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('aaron-border'); ?>>
<header class="entry-header">
<?php
if ( !aaron_get_meta( 'aaron_replace_title' ) ){
the_title( '<h1 class="entry-title">', '</h1>' );
}
?>
<div class="entry-meta">
<?php aaron_posted_on(); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<?php
if( !aaron_get_meta( 'aaron_show_header' ) || !aaron_get_meta( 'aaron_featured_image_header' ) ){
$name = get_post_meta($post->ID, 'ExternalUrl', true);
if( $name ) { ?>
<a href="<?php echo esc_url($name); ?>"><?php the_post_thumbnail(); ?></a>
<?php } else {
the_post_thumbnail();
}
}
the_content();
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'aaron' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<?php aaron_entry_footer(); ?>
</article><!-- #post-## -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment