Advertisement
Guest User

mjfilbeck.content.php

a guest
Aug 11th, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. <?php
  2. /**
  3. * The portion of the loop that shows the "standard" post format.
  4. *
  5. * @package WordPress
  6. * @subpackage Matala
  7. */
  8. ?>
  9. <article id="post-<?php the_ID(); ?>" <?php post_class( 'post-wrapper' ); ?>>
  10.  
  11. <?php matala_post_date(); ?>
  12.  
  13. <header class="entry-header">
  14. <?php if ( ! is_single() && get_the_title() != '' ) : ?>
  15. <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'matala' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  16. <?php else: ?>
  17. <h1 class="entry-title"><?php the_title(); ?></h1>
  18. <?php endif; ?>
  19.  
  20. <div class="entry-info">
  21. <?php matala_posted_on(); ?>
  22. </div><!-- .entry-info -->
  23.  
  24. </header><!-- .entry-header -->
  25. <div class="post-format-icon"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'matala' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></div>
  26.  
  27. <div class="entry-content">
  28. <?php if( has_post_thumbnail() ) : ?>
  29. <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permanent Link to %s', 'matala' ), the_title_attribute( 'echo=0' ) ) ); ?>">
  30. <?php the_post_thumbnail( 'thumbnail', array( 'class' => 'post-thumbnail', 'alt' => get_the_title(), 'title' => get_the_title() ) ); ?>
  31. </a>
  32. <?php endif; ?>
  33. <?php the_content( __( 'Read the rest of this entry <span class="meta-nav">&rarr;</span>', 'matala' ) ); ?>
  34. <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'matala' ) . '</span>', 'after' => '</div>' ) ); ?>
  35. </div><!-- .entry-content -->
  36.  
  37. <footer class="entry-footer">
  38.  
  39. <div class="entry-meta">
  40. <?php matala_posted_in(); ?>
  41. <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'matala' ), __( '1 Comment', 'matala' ), __( '% Comments', 'matala' ) ); ?></span>
  42. <?php edit_post_link( __( 'Edit', 'matala' ), '<span class="sep">|</span> <span class="edit-link">', '</span>' ); ?>
  43. </div><!-- .entry-meta -->
  44.  
  45. <?php if ( get_the_author_meta( 'description' ) && is_single() && '' == get_post_format() ) : // If a user has filled out their description, show a bio on their entries ?>
  46. <div id="author-info">
  47. <div id="author-avatar">
  48. <?php echo get_avatar( get_the_author_meta( 'user_email' ), 60 ); ?>
  49. </div><!-- #author-avatar -->
  50. <div id="author-description">
  51. <h2 id="author-info-title"><?php printf( esc_attr__( 'About %s', 'matala' ), get_the_author() ); ?></h2>
  52. <?php the_author_meta( 'description' ); ?>
  53. </div><!-- #author-description -->
  54. <div id="author-link">
  55. <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
  56. <?php printf( __( 'View all posts by %s <span class="meta-nav">&raquo;</span>', 'matala' ), get_the_author() ); ?>
  57. </a>
  58. </div><!-- #author-link -->
  59. </div><!-- # author-info -->
  60. <?php endif; ?>
  61.  
  62. </footer><!-- .entry-footer -->
  63. </article><!-- #post-<?php the_ID(); ?> .post-wrapper -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement