_s: Move away from using <article> for content that is not syndicated.

This commit is contained in:
kobenland 2013-03-01 17:28:18 -08:00
parent 3f85aae174
commit 5905cc3889
4 changed files with 37 additions and 37 deletions

View file

@ -14,14 +14,14 @@ get_header();
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
<section id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="page-header">
<h1 class="page-title"><?php the_title(); ?></h1>
<div class="entry-meta">
<div class="page-meta">
<?php
$metadata = wp_get_attachment_metadata();
printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>', '_s' ),
printf( __( 'Published <span class="page-date"><time class="page-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>', '_s' ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
wp_get_attachment_url(),
@ -33,17 +33,17 @@ get_header();
);
?>
<?php edit_post_link( __( 'Edit', '_s' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->
</div><!-- .page-meta -->
<nav id="image-navigation" class="navigation-image">
<span class="previous"><?php previous_image_link( false, __( '&larr; Previous', '_s' ) ); ?></span>
<span class="next"><?php next_image_link( false, __( 'Next &rarr;', '_s' ) ); ?></span>
</nav><!-- #image-navigation -->
</header><!-- .entry-header -->
</header><!-- .page-header -->
<div class="entry-content">
<div class="page-content">
<div class="entry-attachment">
<div class="page-attachment">
<div class="attachment">
<?php
/**
@ -84,18 +84,18 @@ get_header();
</div><!-- .attachment -->
<?php if ( ! empty( $post->post_excerpt ) ) : ?>
<div class="entry-caption">
<div class="page-caption">
<?php the_excerpt(); ?>
</div><!-- .entry-caption -->
</div><!-- .page-caption -->
<?php endif; ?>
</div><!-- .entry-attachment -->
</div><!-- .page-attachment -->
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
</div><!-- .page-content -->
<footer class="entry-meta">
<footer class="page-meta">
<?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
<?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', '_s' ), get_trackback_url() ); ?>
<?php elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open ?>
@ -106,8 +106,8 @@ get_header();
<?php _e( 'Both comments and trackbacks are currently closed.', '_s' ); ?>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', '_s' ), ' <span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->
</footer><!-- .page-meta -->
</section><!-- #post-<?php the_ID(); ?> -->
<?php
// If comments are open or we have at least one comment, load up the comment template