[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwelve/ -> content-link.php (source)

   1  <?php
   2  /**
   3   * The template for displaying posts in the Link post format
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Twelve
   7   * @since Twenty Twelve 1.0
   8   */
   9  
  10  /* translators: %s: Post title. */
  11  $post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
  12  ?>
  13  
  14      <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  15          <header><?php _e( 'Link', 'twentytwelve' ); ?></header>
  16          <div class="entry-content">
  17              <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
  18          </div><!-- .entry-content -->
  19  
  20          <footer class="entry-meta">
  21              <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
  22              <?php if ( comments_open() ) : ?>
  23              <div class="comments-link">
  24                  <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
  25              </div><!-- .comments-link -->
  26              <?php endif; // comments_open() ?>
  27              <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
  28          </footer><!-- .entry-meta -->
  29      </article><!-- #post -->


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref