PageRenderTime 49ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 46 lines | 38 code | 4 blank | 4 comment | 4 complexity | 82ab2eede40b3c62e7df854213207b11 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 Duster
  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', 'duster' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  10. <?php if ( 'post' == $post->post_type ) : ?>
  11. <div class="entry-meta">
  12. <?php
  13. 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>', 'duster' ),
  14. get_permalink(),
  15. get_the_date( 'c' ),
  16. get_the_date(),
  17. get_author_posts_url( get_the_author_meta( 'ID' ) ),
  18. sprintf( esc_attr__( 'View all posts by %s', 'duster' ), get_the_author() ),
  19. get_the_author()
  20. );
  21. ?>
  22. </div><!-- .entry-meta -->
  23. <?php endif; ?>
  24. </header><!-- .entry-header -->
  25. <?php if ( is_search() ) : // Only display Excerpts for Search ?>
  26. <div class="entry-summary">
  27. <?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'duster' ) ); ?>
  28. </div><!-- .entry-summary -->
  29. <?php else : ?>
  30. <div class="entry-content">
  31. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'duster' ) ); ?>
  32. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'duster' ), 'after' => '</div>' ) ); ?>
  33. </div><!-- .entry-content -->
  34. <?php endif; ?>
  35. <footer class="entry-meta">
  36. <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links"><?php _e( 'Posted in ', 'duster' ); ?></span><?php the_category( ', ' ); ?></span>
  37. <span class="sep"> | </span>
  38. <?php the_tags( '<span class="tag-links">' . __( 'Tagged ', 'duster' ) . '</span>', ', ', '<span class="sep"> | </span>' ); ?>
  39. <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'duster' ), __( '1 Comment', 'duster' ), __( '% Comments', 'duster' ) ); ?></span>
  40. <?php edit_post_link( __( 'Edit', 'duster' ), '<span class="sep">|</span> <span class="edit-link">', '</span>' ); ?>
  41. </footer><!-- #entry-meta -->
  42. </article><!-- #post-<?php the_ID(); ?> -->