PageRenderTime 45ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-content/themes/beach/content.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 44 lines | 36 code | 4 blank | 4 comment | 2 complexity | 20cdf61015abe698085b92d63678b2cb MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Beach
  5. */
  6. ?>
  7. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  8. <header class="entry-header">
  9. <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'beach' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  10. <div class="entry-meta">
  11. <?php
  12. 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>', 'beach' ),
  13. get_permalink(),
  14. get_the_date( 'c' ),
  15. get_the_date(),
  16. get_author_posts_url( get_the_author_meta( 'ID' ) ),
  17. sprintf( esc_attr__( 'View all posts by %s', 'beach' ), get_the_author() ),
  18. get_the_author()
  19. );
  20. ?>
  21. </div><!-- .entry-meta -->
  22. </header><!-- .entry-header -->
  23. <?php if ( is_search() ) : // Only display Excerpts search ?>
  24. <div class="entry-summary">
  25. <?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'beach' ) ); ?>
  26. </div><!-- .entry-summary -->
  27. <?php else : ?>
  28. <div class="entry-content">
  29. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'beach' ) ); ?>
  30. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'beach' ), 'after' => '</div>' ) ); ?>
  31. </div><!-- .entry-content -->
  32. <?php endif; ?>
  33. <footer class="entry-meta">
  34. <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links"><?php _e( 'Posted in ', 'beach' ); ?></span><?php the_category( ', ' ); ?></span>
  35. <span class="sep"> | </span>
  36. <?php the_tags( '<span class="tag-links">' . __( 'Tagged ', 'beach' ) . '</span>', ', ', '<span class="sep"> | </span>' ); ?>
  37. <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'beach' ), __( '1 Comment', 'beach' ), __( '% Comments', 'beach' ) ); ?></span>
  38. <?php edit_post_link( __( 'Edit', 'beach' ), '<span class="sep">|</span> <span class="edit-link">', '</span>' ); ?>
  39. </footer><!-- #entry-meta -->
  40. </article><!-- #post-<?php the_ID(); ?> -->