Advertisement
Guest User

Untitled

a guest
Nov 11th, 2011
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. <?php
  2. /**
  3. * The default template for displaying content
  4. *
  5. * @package WordPress
  6. * @subpackage SimpleBlue
  7. */
  8. ?>
  9. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  10. <header class="entry-header">
  11. <?php if ( is_sticky() ) : ?>
  12.  
  13. <hgroup>
  14. <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'simpleblue' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
  15. <?php the_title(); ?>
  16. </a></h2>
  17. <h3 class="entry-format">
  18. <?php _e( 'Featured', 'simpleblue' ); ?>
  19. </h3>
  20. </hgroup>
  21. <?php else : ?>
  22. <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'simpleblue' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
  23. <?php the_title(); ?>
  24. </a></h1>
  25. <?php endif; ?>
  26. </header>
  27. <!-- .entry-header -->
  28. <div class="entry-content">
  29. <?php if ( is_search() ) : // Only display Excerpts for Search ?>
  30. <?php the_excerpt(); ?>
  31. <?php else : ?>
  32. <?php
  33. if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
  34. the_post_thumbnail('thumbnail', array('class' => 'alignleft'));}
  35. ?>
  36. <?php the_content( __( 'Continue reading &hellip;', 'simpleblue' ) ); ?>
  37. <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'simpleblue' ) . '</span>', 'after' => '</div>' ) ); ?>
  38. <?php endif; ?>
  39. </div>
  40. <!-- .entry-summary -->
  41.  
  42. <footer class="entry-meta">
  43. <?php $show_sep = false; ?>
  44. <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
  45. <?php
  46. /* translators: used between list items, there is a space after the comma */
  47. $categories_list = get_the_category_list( __( ', ', 'simpleblue' ) );
  48. if ( $categories_list ):
  49. ?>
  50. <span class="cat-links"> <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'simpleblue' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
  51. $show_sep = true; ?> </span>
  52. <?php endif; // End if categories ?>
  53. <?php
  54. /* translators: used between list items, there is a space after the comma */
  55. $tags_list = get_the_tag_list( '', __( ', ', 'simpleblue' ) );
  56. if ( $tags_list ):
  57. if ( $show_sep ) : ?>
  58. <span class="sep"> | </span>
  59. <?php endif; // End if $show_sep ?>
  60. <span class="tag-links"> <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'simpleblue' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
  61. $show_sep = true; ?> </span>
  62. <?php endif; // End if $tags_list ?>
  63. <?php endif; // End if 'post' == get_post_type() ?>
  64. <?php if ( comments_open() ) : ?>
  65. <?php if ( $show_sep ) : ?>
  66. <span class="sep"> | </span>
  67. <?php endif; // End if $show_sep ?>
  68. <span class="comments-link">
  69. <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'simpleblue' ) . '</span>', __( '<b>1</b> Reply', 'simpleblue' ), __( '<b>%</b> Replies', 'simpleblue' ) ); ?>
  70. </span>
  71. <?php endif; // End if comments_open() ?>
  72. <span class="sep"> | </span> <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'simpleblue' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
  73. <?php _e( 'Permalink', 'simpleblue' ); ?>
  74. </a>
  75. <?php edit_post_link( __( 'Edit', 'simpleblue' ), '. <span class="edit-link">', '</span>' ); ?>
  76. </footer>
  77. <!-- #entry-meta -->
  78. </article>
  79. <!-- #post-<?php the_ID(); ?> -->
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement