[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Template for displaying posts in the Image Post Format
   4   *
   5   * Used on index and archive pages.
   6   *
   7   * @link https://wordpress.org/support/article/post-formats/
   8   *
   9   * @package WordPress
  10   * @subpackage Twenty_Eleven
  11   * @since Twenty Eleven 1.0
  12   */
  13  ?>
  14      <article id="post-<?php the_ID(); ?>" <?php post_class( 'indexed' ); ?>>
  15          <header class="entry-header">
  16              <hgroup>
  17                  <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  18                  <h3 class="entry-format"><?php _e( 'Image', 'twentyeleven' ); ?></h3>
  19              </hgroup>
  20  
  21              <?php if ( comments_open() && ! post_password_required() ) : ?>
  22              <div class="comments-link">
  23                  <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
  24              </div>
  25              <?php endif; ?>
  26          </header><!-- .entry-header -->
  27  
  28          <div class="entry-content">
  29              <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
  30              <?php
  31              wp_link_pages(
  32                  array(
  33                      'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>',
  34                      'after'  => '</div>',
  35                  )
  36              );
  37              ?>
  38          </div><!-- .entry-content -->
  39  
  40          <footer class="entry-meta">
  41              <div class="entry-meta">
  42                  <?php
  43                      printf(
  44                          /* translators: 1: The permalink, 2: Date and time, 3: Date and time, 4: Author link, 5: Author link title, 6: Author display name. */
  45                          __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven' ),
  46                          esc_url( get_permalink() ),
  47                          get_the_date( 'c' ),
  48                          get_the_date(),
  49                          esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
  50                          /* translators: %s: Author display name. */
  51                          esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
  52                          get_the_author()
  53                      );
  54                      ?>
  55              </div><!-- .entry-meta -->
  56              <div class="entry-meta">
  57                  <?php
  58                  /* translators: Used between list items, there is a space after the comma. */
  59                  $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
  60  
  61                  if ( $categories_list ) :
  62                      ?>
  63                  <span class="cat-links">
  64                      <?php
  65                      /* translators: 1: CSS classes, 2: Category list. */
  66                      printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
  67                      ?>
  68                  </span>
  69                  <?php endif; // End if categories. ?>
  70  
  71                  <?php
  72                  /* translators: Used between list items, there is a space after the comma. */
  73                  $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
  74  
  75                  if ( $tags_list && ! is_wp_error( $tags_list ) ) :
  76                      ?>
  77                  <span class="tag-links">
  78                      <?php
  79                      /* translators: 1: CSS classes, 2: Tag list. */
  80                      printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
  81                      ?>
  82                  </span>
  83                  <?php endif; // End if $tags_list. ?>
  84  
  85                  <?php if ( comments_open() ) : ?>
  86                  <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
  87                  <?php endif; // End if comments_open(). ?>
  88              </div><!-- .entry-meta -->
  89  
  90              <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  91          </footer><!-- .entry-meta -->
  92      </article><!-- #post-<?php the_ID(); ?> -->


Generated: Thu Nov 26 01:00:03 2020 Cross-referenced by PHPXref 0.7.1