wp/wp-content/themes/twentythirteen/content-gallery.php
changeset 0 d970ebf37754
child 5 5e2f62d02dcd
equal deleted inserted replaced
-1:000000000000 0:d970ebf37754
       
     1 <?php
       
     2 /**
       
     3  * The template for displaying posts in the Gallery post format
       
     4  *
       
     5  * @package WordPress
       
     6  * @subpackage Twenty_Thirteen
       
     7  * @since Twenty Thirteen 1.0
       
     8  */
       
     9 ?>
       
    10 
       
    11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
       
    12 	<header class="entry-header">
       
    13 		<?php if ( is_single() ) : ?>
       
    14 		<h1 class="entry-title"><?php the_title(); ?></h1>
       
    15 		<?php else : ?>
       
    16 		<h1 class="entry-title">
       
    17 			<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
       
    18 		</h1>
       
    19 		<?php endif; // is_single() ?>
       
    20 	</header><!-- .entry-header -->
       
    21 
       
    22 	<div class="entry-content">
       
    23 		<?php if ( is_single() || ! get_post_gallery() ) : ?>
       
    24 			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
       
    25 			<?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>' ) ); ?>
       
    26 		<?php else : ?>
       
    27 			<?php echo get_post_gallery(); ?>
       
    28 		<?php endif; // is_single() ?>
       
    29 	</div><!-- .entry-content -->
       
    30 
       
    31 	<footer class="entry-meta">
       
    32 		<?php twentythirteen_entry_meta(); ?>
       
    33 
       
    34 		<?php if ( comments_open() && ! is_single() ) : ?>
       
    35 		<span class="comments-link">
       
    36 			<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?>
       
    37 		</span><!-- .comments-link -->
       
    38 		<?php endif; // comments_open() ?>
       
    39 		<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
       
    40 
       
    41 		<?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?>
       
    42 			<?php get_template_part( 'author-bio' ); ?>
       
    43 		<?php endif; ?>
       
    44 	</footer><!-- .entry-meta -->
       
    45 </article><!-- #post -->