[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentythirteen/ -> content-gallery.php (source)

   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
  25              the_content(
  26                  sprintf(
  27                      /* translators: %s: Post title. Only visible to screen readers. */
  28                      __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
  29                      the_title( '<span class="screen-reader-text">', '</span>', false )
  30                  )
  31              );
  32  
  33              wp_link_pages(
  34                  array(
  35                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>',
  36                      'after'       => '</div>',
  37                      'link_before' => '<span>',
  38                      'link_after'  => '</span>',
  39                  )
  40              );
  41              ?>
  42          <?php else : ?>
  43              <?php echo get_post_gallery(); ?>
  44          <?php endif; // is_single() ?>
  45      </div><!-- .entry-content -->
  46  
  47      <footer class="entry-meta">
  48          <?php twentythirteen_entry_meta(); ?>
  49  
  50          <?php if ( comments_open() && ! is_single() ) : ?>
  51          <span class="comments-link">
  52              <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?>
  53          </span><!-- .comments-link -->
  54          <?php endif; // comments_open() ?>
  55          <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
  56  
  57          <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?>
  58              <?php get_template_part( 'author-bio' ); ?>
  59          <?php endif; ?>
  60      </footer><!-- .entry-meta -->
  61  </article><!-- #post -->


Generated: Sat Nov 23 01:00:02 2024 Cross-referenced by PHPXref 0.7.1