Remove junk

This commit is contained in:
Mike Francis 2015-04-13 12:07:11 +01:00
parent 1e6090464c
commit b7bc635c42
1 changed files with 12 additions and 31 deletions

View File

@ -1,44 +1,25 @@
<?php get_header(); ?> <?php get_header(); ?>
<div class="content"> <main class="main" role="main">
<div class="container"> <div class="container">
<main class="main" role="main"> <?php while ( have_posts() ) : the_post(); ?>
<?php while ( have_posts() ) : the_post(); ?> <article <?php post_class(); ?>>
<article <?php post_class(); ?>> <header role="heading">
<h3 class="post__title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p class="post__date"><time><?php echo human_time_diff( strtotime( $post->post_date ) ) . ' ' . __( 'ago' ); ?></time></p>
<p class="post__comments"><?php comments_popup_link( __( 'No comments yet' ), __( '1 comment' ), __( '% comments' ) ); ?></p>
</header>
<header role="heading"> <?php the_content( __( 'Read More' ) ); ?>
<h3 class="post__title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p class="post__date"><time><?php echo human_time_diff( strtotime( $post->post_date ) ) . ' ' . __( 'ago' ); ?></time></p>
<p class="post__comments"><?php comments_popup_link( __( 'No comments yet' ), __( '1 comment' ), __( '% comments' ) ); ?></p>
</header>
<?php the_content( __( 'Read More' ) ); ?> </article>
</article> <?php endwhile; ?>
<?php endwhile; ?>
<?php
echo paginate_links(array(
'base' => str_replace( 99999999, '%#%', esc_url( get_pagenum_link( 99999999 ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages
));
?>
</main>
<aside class="sidebar">
<?php get_sidebar(); ?>
</aside>
</div> </div>
</main>
</div>
<?php get_footer(); ?> <?php get_footer(); ?>