PageRenderTime 47ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/twentytwelve/content-link.php

https://bitbucket.org/julianelve/vendor-wordpress
PHP | 26 lines | 17 code | 2 blank | 7 comment | 1 complexity | f2703ed025d42f4e8bd71e83e4d5cce3 MD5 | raw file
Possible License(s): AGPL-1.0, LGPL-2.1, GPL-2.0
  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. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <header><?php _e( 'Link', 'twentytwelve' ); ?></header>
  12. <div class="entry-content">
  13. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
  14. </div><!-- .entry-content -->
  15. <footer class="entry-meta">
  16. <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
  17. <?php if ( comments_open() ) : ?>
  18. <div class="comments-link">
  19. <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
  20. </div><!-- .comments-link -->
  21. <?php endif; // comments_open() ?>
  22. <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
  23. </footer><!-- .entry-meta -->
  24. </article><!-- #post -->