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

/content.php

https://github.com/lecar-red/3ring-wordpress
PHP | 44 lines | 34 code | 6 blank | 4 comment | 6 complexity | b0556673a427830c2bd8db0fff87a4c6 MD5 | raw file
Possible License(s): AGPL-1.0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Yoko
  5. */
  6. ?>
  7. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  8. <div class="entry-details">
  9. <?php if ( has_post_thumbnail() ): ?>
  10. <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a>
  11. <?php endif; ?>
  12. <p><?php echo get_the_date(); ?><br/>
  13. <?php _e( 'by', 'yoko' ); ?> <?php the_author() ?><br/>
  14. <?php comments_popup_link( __( '0 comments', 'yoko' ), __( '1 Comment', 'yoko' ), __( '% Comments', 'yoko' ) ); ?></p>
  15. </div><!-- end entry-details -->
  16. <header class="entry-header">
  17. <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'yoko' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  18. </header><!-- end entry-header -->
  19. <div class="entry-content">
  20. <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
  21. <?php the_excerpt(); ?>
  22. <?php else : ?>
  23. <?php the_content( __( 'Continue Reading &rarr;', 'yoko' ) ); ?>
  24. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'yoko' ), 'after' => '</div>' ) ); ?>
  25. <?php endif; ?>
  26. <footer class="entry-meta">
  27. <p><?php if ( count( get_the_category() ) ) : ?>
  28. <?php printf( __( 'Categories: %2$s', 'yoko' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> |
  29. <?php endif; ?>
  30. <?php $tags_list = get_the_tag_list( '', ', ' );
  31. if ( $tags_list ): ?>
  32. <?php printf( __( 'Tags: %2$s', 'yoko' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> |
  33. <?php endif; ?>
  34. <a href="<?php echo get_permalink(); ?>"><?php _e( 'Permalink ', 'yoko' ); ?></a>
  35. <?php edit_post_link( __( 'Edit &rarr;', 'yoko' ), '| <span class="edit-link">', '</span>' ); ?></p>
  36. </footer><!-- end entry-meta -->
  37. </div><!-- end entry-content -->
  38. </article><!-- end post-<?php the_ID(); ?> -->