forked from mirror/_s
_s: Move away from using <article> for content that is not syndicated.
This commit is contained in:
parent
3f85aae174
commit
5905cc3889
14
404.php
14
404.php
|
@ -11,12 +11,12 @@ get_header(); ?>
|
||||||
<div id="primary" class="content-area">
|
<div id="primary" class="content-area">
|
||||||
<div id="content" class="site-content" role="main">
|
<div id="content" class="site-content" role="main">
|
||||||
|
|
||||||
<article id="post-0" class="post error404 not-found">
|
<section class="error-404 not-found">
|
||||||
<header class="entry-header">
|
<header class="page-header">
|
||||||
<h1 class="entry-title"><?php _e( 'Oops! That page can’t be found.', '_s' ); ?></h1>
|
<h1 class="page-title"><?php _e( 'Oops! That page can’t be found.', '_s' ); ?></h1>
|
||||||
</header><!-- .entry-header -->
|
</header><!-- .page-header -->
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="page-content">
|
||||||
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', '_s' ); ?></p>
|
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', '_s' ); ?></p>
|
||||||
|
|
||||||
<?php get_search_form(); ?>
|
<?php get_search_form(); ?>
|
||||||
|
@ -38,8 +38,8 @@ get_header(); ?>
|
||||||
|
|
||||||
<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
|
<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
|
||||||
|
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .page-content -->
|
||||||
</article><!-- #post-0 .post .error404 .not-found -->
|
</section><!-- .error404 .not-found -->
|
||||||
|
|
||||||
</div><!-- #content .site-content -->
|
</div><!-- #content .site-content -->
|
||||||
</div><!-- #primary .content-area -->
|
</div><!-- #primary .content-area -->
|
||||||
|
|
|
@ -7,14 +7,14 @@
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<section id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<header class="entry-header">
|
<header class="page-header">
|
||||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
<h1 class="page-title"><?php the_title(); ?></h1>
|
||||||
</header><!-- .entry-header -->
|
</header><!-- .page-header -->
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="page-content">
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
|
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .page-content -->
|
||||||
<?php edit_post_link( __( 'Edit', '_s' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
|
<?php edit_post_link( __( 'Edit', '_s' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
|
||||||
</article><!-- #post-<?php the_ID(); ?> -->
|
</section><!-- #post-<?php the_ID(); ?> -->
|
||||||
|
|
32
image.php
32
image.php
|
@ -14,14 +14,14 @@ get_header();
|
||||||
|
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<section id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<header class="entry-header">
|
<header class="page-header">
|
||||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
<h1 class="page-title"><?php the_title(); ?></h1>
|
||||||
|
|
||||||
<div class="entry-meta">
|
<div class="page-meta">
|
||||||
<?php
|
<?php
|
||||||
$metadata = wp_get_attachment_metadata();
|
$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 × %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 × %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_attr( get_the_date( 'c' ) ),
|
||||||
esc_html( get_the_date() ),
|
esc_html( get_the_date() ),
|
||||||
wp_get_attachment_url(),
|
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>' ); ?>
|
<?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">
|
<nav id="image-navigation" class="navigation-image">
|
||||||
<span class="previous"><?php previous_image_link( false, __( '← Previous', '_s' ) ); ?></span>
|
<span class="previous"><?php previous_image_link( false, __( '← Previous', '_s' ) ); ?></span>
|
||||||
<span class="next"><?php next_image_link( false, __( 'Next →', '_s' ) ); ?></span>
|
<span class="next"><?php next_image_link( false, __( 'Next →', '_s' ) ); ?></span>
|
||||||
</nav><!-- #image-navigation -->
|
</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">
|
<div class="attachment">
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
|
@ -84,18 +84,18 @@ get_header();
|
||||||
</div><!-- .attachment -->
|
</div><!-- .attachment -->
|
||||||
|
|
||||||
<?php if ( ! empty( $post->post_excerpt ) ) : ?>
|
<?php if ( ! empty( $post->post_excerpt ) ) : ?>
|
||||||
<div class="entry-caption">
|
<div class="page-caption">
|
||||||
<?php the_excerpt(); ?>
|
<?php the_excerpt(); ?>
|
||||||
</div><!-- .entry-caption -->
|
</div><!-- .page-caption -->
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div><!-- .entry-attachment -->
|
</div><!-- .page-attachment -->
|
||||||
|
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
|
<?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 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 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 ?>
|
<?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 _e( 'Both comments and trackbacks are currently closed.', '_s' ); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php edit_post_link( __( 'Edit', '_s' ), ' <span class="edit-link">', '</span>' ); ?>
|
<?php edit_post_link( __( 'Edit', '_s' ), ' <span class="edit-link">', '</span>' ); ?>
|
||||||
</footer><!-- .entry-meta -->
|
</footer><!-- .page-meta -->
|
||||||
</article><!-- #post-<?php the_ID(); ?> -->
|
</section><!-- #post-<?php the_ID(); ?> -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// If comments are open or we have at least one comment, load up the comment template
|
// If comments are open or we have at least one comment, load up the comment template
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article id="post-0" class="post no-results not-found">
|
<section class="no-results not-found">
|
||||||
<header class="entry-header">
|
<header class="page-header">
|
||||||
<h1 class="entry-title"><?php _e( 'Nothing Found', '_s' ); ?></h1>
|
<h1 class="page-title"><?php _e( 'Nothing Found', '_s' ); ?></h1>
|
||||||
</header><!-- .entry-header -->
|
</header><!-- .page-header -->
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="page-content">
|
||||||
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
||||||
|
|
||||||
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', '_s' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
|
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', '_s' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
|
||||||
|
@ -30,5 +30,5 @@
|
||||||
<?php get_search_form(); ?>
|
<?php get_search_form(); ?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .page-content -->
|
||||||
</article><!-- #post-0 .post .no-results .not-found -->
|
</section><!-- .no-results .not-found -->
|
||||||
|
|
Reference in New Issue