[ Index ]

WordPress Cross Reference

title

Body

[close]

/wp-content/themes/twentyfourteen/ -> content-image.php (source)

   1  <?php
   2  /**
   3   * The template for displaying posts in the Image post format
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Fourteen
   7   * @since Twenty Fourteen 1.0
   8   */
   9  ?>
  10  
  11  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  12      <?php twentyfourteen_post_thumbnail(); ?>
  13  
  14      <header class="entry-header">
  15          <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
  16          <div class="entry-meta">
  17              <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
  18          </div><!-- .entry-meta -->
  19          <?php
  20              endif;
  21  
  22              if ( is_single() ) :
  23                  the_title( '<h1 class="entry-title">', '</h1>' );
  24              else :
  25                  the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
  26              endif;
  27          ?>
  28  
  29          <div class="entry-meta">
  30              <span class="post-format">
  31                  <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'image' ) ); ?>"><?php echo get_post_format_string( 'image' ); ?></a>
  32              </span>
  33  
  34              <?php twentyfourteen_posted_on(); ?>
  35  
  36              <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>
  37              <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
  38              <?php endif; ?>
  39  
  40              <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
  41          </div><!-- .entry-meta -->
  42      </header><!-- .entry-header -->
  43  
  44      <div class="entry-content">
  45          <?php
  46              the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
  47              wp_link_pages( array(
  48                  'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
  49                  'after'       => '</div>',
  50                  'link_before' => '<span>',
  51                  'link_after'  => '</span>',
  52              ) );
  53          ?>
  54      </div><!-- .entry-content -->
  55  
  56      <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
  57  </article><!-- #post-## -->


Generated: Tue Mar 25 01:41:18 2014 WordPress honlapkészítés: online1.hu