PageRenderTime 44ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/twentyeleven/content-quote.php

https://github.com/coffeant/wordpress
PHP | 64 lines | 50 code | 7 blank | 7 comment | 8 complexity | 016bb9b4379dc9c3072e016e9bb58610 MD5 | raw file
Possible License(s): AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * The default template for displaying content
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty Eleven
  7. * @since Twenty Eleven 1.0
  8. */
  9. ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <header class="entry-header">
  12. <hgroup>
  13. <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  14. <h2 class="entry-format">Quote</h2>
  15. </hgroup>
  16. <?php if ( 'post' == $post->post_type ) : ?>
  17. <div class="entry-meta">
  18. <?php
  19. printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyeleven' ),
  20. get_permalink(),
  21. get_the_date( 'c' ),
  22. get_the_date(),
  23. get_author_posts_url( get_the_author_meta( 'ID' ) ),
  24. sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
  25. get_the_author()
  26. );
  27. ?>
  28. </div><!-- .entry-meta -->
  29. <?php endif; ?>
  30. <?php if ( comments_open() ) : ?>
  31. <div class="comments-link">
  32. <?php comments_popup_link( __( '<span class="leave-reply">Reply</span>', 'twentyeleven' ), __( '1', 'twentyeleven' ), __( '%', 'twentyeleven' ) ); ?>
  33. </div>
  34. <?php endif; ?>
  35. </header><!-- .entry-header -->
  36. <?php if ( is_search() ) : // Only display Excerpts for Search ?>
  37. <div class="entry-summary">
  38. <?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
  39. </div><!-- .entry-summary -->
  40. <?php else : ?>
  41. <div class="entry-content">
  42. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
  43. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( '<span>Pages:</span>', 'twentyeleven' ), 'after' => '</div>' ) ); ?>
  44. </div><!-- .entry-content -->
  45. <?php endif; ?>
  46. <footer class="entry-meta">
  47. <?php if ( 'post' == $post->post_type ) : // Hide category and tag text for pages on Search ?>
  48. <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links"><?php _e( 'Posted in', 'twentyeleven' ); ?></span> <?php the_category( ', ' ); ?></span>
  49. <?php the_tags( '<span class="sep"> | </span> <span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __( 'Tagged', 'twentyeleven' ) . '</span> ', ', ', '</span>' ); ?>
  50. <?php endif; ?>
  51. <?php if ( comments_open() ) : ?>
  52. <span class="sep"> | </span>
  53. <span class="comments-link"><?php comments_popup_link( __( '<span class="leave-reply">Leave a reply</span>', 'twentyeleven' ), __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
  54. <?php endif; ?>
  55. <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  56. </footer><!-- #entry-meta -->
  57. </article><!-- #post-<?php the_ID(); ?> -->