Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <main class="clearfix" id="content" role="main" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="http://schema.org/Blog">
- <header class="entry-header" itemscope="itemscope" itemtype="http://schema.org/WPHeader">
- <?php if ( is_day() ) : ?>
- <h1 class="entry-title" itemprop="headline"><?php printf( __( 'Day: %s', 'reply' ), get_the_date() ); ?></h1>
- <?php elseif ( is_month() ) : ?>
- <h1 class="entry-title" itemprop="headline"><?php printf( __( 'Month: %s', 'reply' ), get_the_date( 'F Y' ) ); ?></h1>
- <?php elseif ( is_year() ) : ?>
- <h1 class="entry-title" itemprop="headline"><?php printf( __( 'Year: %s', 'reply' ), get_the_date( 'Y' ) ); ?></h1>
- <?php elseif ( is_category() ) : ?>
- <h1 class="entry-title" itemprop="headline"><?php printf( __( 'Category: %s', 'reply' ), single_cat_title( '', false ) ); ?></h1>
- <div class="entry-excerpt" itemprop="text">
- <?php echo category_description(); ?>
- </div>
- <?php elseif ( is_tag() ) : ?>
- <h1 class="entry-title" itemprop="headline"><?php printf( __( 'Tagged: %s', 'reply' ), single_tag_title( '', false ) ); ?></h1>
- <?php elseif ( is_author( $author ) ) : ?>
- <?php $curauth = get_queried_object(); ?>
- <?php echo get_avatar( get_the_author_meta( 'email' ), '64', get_the_author() ); ?>
- <h1 class="entry-title" itemprop="headline"><?php echo $curauth->display_name; ?></h1>
- <div class="entry-excerpt" itemprop="text">
- <?php echo $curauth->description; ?>
- </div>
- <?php else : ?>
- <h1 class="entry-title" itemprop="headline"><?php single_post_title(); ?></h1>
- <?php endif; ?>
- </header>
- <hr />
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <!-- Article -->
- <article <?php post_class( 'clearfix' ); ?> itemscope="itemscope" itemtype="http://schema.org/BlogPosting" itemprop="blogPost">
- <?php
- $format = get_post_format();
- get_template_part( 'content', $format );
- ?>
- </article>
- <?php endwhile; ?>
- <?php if ( $wp_query->max_num_pages > 1 ) : ?>
- <!--Pagination-->
- <ul class="pagination clearfix">
- <li class="prev"><?php next_posts_link( __( 'Older Posts', 'reply' ) ); ?></li>
- <li class="next"><?php previous_posts_link( __( 'Newer Posts', 'reply' ) ); ?></li>
- </ul>
- <?php endif; ?>
- <?php endif; ?>
- </main>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement