Advertisement
Guest User

Revolution theme - remove post date stamp

a guest
Aug 16th, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.12 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Template for displaying all single posts.
  4. *
  5. * @package WordPress
  6. * @subpackage Revolution
  7. * @since Revolution 1.0
  8. */
  9.  
  10. get_header(); ?>
  11.  
  12.  
  13. <?php $sidebarposition = of_get_option('templatesquare_sidebar_position' ,'right'); ?>
  14.  
  15. <!-- MAIN CONTENT -->
  16. <div id="outermain">
  17. <div class="container">
  18. <section id="maincontent" class="twelve columns">
  19.  
  20. <section id="content" class="nine columns <?php if($sidebarposition=="left"){echo "positionright omega";}else{echo "positionleft alpha";}?>">
  21. <div class="main">
  22. <div id="singlepost">
  23.  
  24. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  25. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  26.  
  27. <div class="entry-utility">
  28. <div class="posttime"><span><?php the_time('M d') ?></span><?php the_time('Y') ?></div>
  29. <div class="postcom"><?php comments_popup_link(__('<span>No</span> Comments', 'templatesquare'), __('<span>1</span> Comments', 'templatesquare'), __('<span>%</span> Comments', 'templatesquare'), '' , __('<span class="commoff">Comments<br/>off</span> ', 'templatesquare')); ?></div>
  30. </div>
  31.  
  32.  
  33. <div class="entry-content">
  34.  
  35. <?php
  36. $custom = get_post_custom($post->ID);
  37. $cf_thumb = (isset($custom["thumb"][0]))? $custom["thumb"][0] : "";
  38.  
  39. if($cf_thumb!=""){
  40. $thumb = '<div class="postimg"><img src='. $cf_thumb .' alt="" class="scale-with-grid"/></div>';
  41. }elseif(has_post_thumbnail($post->ID) ){
  42. $thumb = '<div class="postimg">'.get_the_post_thumbnail($post->ID, 'post-blog', array('alt' => '', 'class' => 'scale-with-grid')).'</div>';
  43. }else{
  44. $thumb ="";
  45. }
  46. ?>
  47.  
  48.  
  49. <?php
  50. echo $thumb;
  51. ?>
  52.  
  53. <h2 class="posttitle">
  54. <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'templatesquare' ), the_title_attribute( 'echo=0' ) ); ?>" data-rel="bookmark"><?php the_title(); ?></a>
  55. </h2>
  56. <?php the_content(__('Continue Reading &rarr;', 'templatesquare')); ?>
  57. </div>
  58. <div class="clear"></div>
  59.  
  60. </article>
  61. <?php
  62.  
  63. // If a user has filled out their description, show a bio on their entries.
  64. if ( get_the_author_meta( 'description' ) ) : ?>
  65. <div id="entry-author-info">
  66. <div id="author-avatar">
  67. <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'templatesquare_author_bio_avatar_size', 60 ) ); ?>
  68. </div><!-- author-avatar -->
  69. <div id="author-description">
  70. <h2><span class="author"><?php printf( __( 'About %s', 'templatesquare' ), get_the_author() ); ?></span></h2>
  71. <?php the_author_meta( 'description' ); ?>
  72. </div><!-- author-description -->
  73. </div><!-- entry-author-info -->
  74. <?php endif; ?>
  75.  
  76. <?php comments_template( '', true ); ?>
  77.  
  78. <?php endwhile; ?>
  79.  
  80. </div><!-- singlepost -->
  81. </div><!-- main -->
  82. <div class="clear"></div><!-- clear float -->
  83. </section><!-- content -->
  84.  
  85. <aside id="sidebar" class="three columns <?php if($sidebarposition=="left"){echo "positionleft alpha";}else{echo "positionright omega";}?>">
  86. <?php get_sidebar();?>
  87. </aside><!-- sidebar -->
  88.  
  89. </section><!-- maincontent -->
  90. </div>
  91. </div>
  92. <!-- END MAIN CONTENT -->
  93.  
  94. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement