]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentythirteen/content.php
WordPress 4.2.1
[autoinstalls/wordpress.git] / wp-content / themes / twentythirteen / content.php
index 4f61b220665fd2fde4b1dcf5d9cb1fc29ffac472..98b6c31955f71b158f55fc6d8f8dd92f0b2200a1 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 /**
- * The default template for displaying content. Used for both single and index/archive/search.
+ * The default template for displaying content
+ *
+ * Used for both single and index/archive/search.
  *
  * @package WordPress
  * @subpackage Twenty_Thirteen
@@ -10,7 +12,7 @@
 
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <header class="entry-header">
-               <?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
+               <?php if ( has_post_thumbnail() && ! post_password_required() && ! is_attachment() ) : ?>
                <div class="entry-thumbnail">
                        <?php the_post_thumbnail(); ?>
                </div>
        </div><!-- .entry-summary -->
        <?php else : ?>
        <div class="entry-content">
-               <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
-               <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
+               <?php
+                       /* translators: %s: Name of current post */
+                       the_content( sprintf(
+                               __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
+                               the_title( '<span class="screen-reader-text">', '</span>', false )
+                       ) );
+
+                       wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
+               ?>
        </div><!-- .entry-content -->
        <?php endif; ?>