Advertisement
Guest User

Untitled

a guest
May 26th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. function render_content() {
  5.  
  6. ?>
  7. <?php if ( have_posts() ) : ?>
  8. <?php while ( have_posts() ) : // The Loop ?>
  9. <?php the_post(); ?>
  10.  
  11. <div <?php post_class(); ?>>
  12. <!-- title, meta, and date info -->
  13. <div class="title clearfix">
  14. <div class="post-title">
  15. <!-- Use this instead? <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3> -->
  16. <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  17. </div>
  18.  
  19. <div class="post-meta">
  20. <?php printf( __( 'By %s', 'it-l10n-Builder' ), '<span class="meta-author">' . builder_get_author_link() . '</span>' ); ?>
  21. <?php do_action( 'builder_comments_popup_link', '<span class="meta-comments">&middot; ', '</span>', __( 'Comments %s', 'it-l10n-Builder' ), __( '(0)', 'it-l10n-Builder' ), __( '(1)', 'it-l10n-Builder' ), __( '(%)', 'it-l10n-Builder' ) ); ?>
  22. </div>
  23.  
  24. <div class="date">
  25. <span class="weekday"><?php the_time( 'l' ); ?><span class="weekday-comma">,</span></span>
  26. <span class="month"><?php the_time( 'F' ); ?></span>
  27. <span class="day"><?php the_time( 'j' ); ?><span class="day-suffix"><?php the_time( 'S' ); ?></span><span class="day-comma">,</span></span>
  28. <span class="year"><?php the_time( 'Y' ); ?></span>
  29. </div>
  30. </div>
  31.  
  32. <!-- "Read More" link -->
  33. <div class="post-content">
  34. <?php the_content( __( 'Read More&rarr;', 'it-l10n-Builder' ) ); ?>
  35. </div>
  36.  
  37. <!-- categories, tags and comments -->
  38. <div class="meta-bottom clearfix">
  39. <?php do_action( 'builder_comments_popup_link', '<div class="alignright"><span class="comments">', '</span></div>', __( 'Comments %s', 'it-l10n-Builder' ), __( '(0)', 'it-l10n-Builder' ), __( '(1)', 'it-l10n-Builder' ), __( '(%)', 'it-l10n-Builder' ) ); ?>
  40. <div class="meta-bottom-left">
  41. <div class="categories"><?php printf( __( 'Categories : %s', 'it-l10n-Builder' ), get_the_category_list( ', ' ) ); ?></div>
  42. <?php the_tags( '<div class="tags">' . __( 'Tags : ', 'it-l10n-Builder' ), ', ', '</div>' ); ?>
  43. </div>
  44. </div>
  45. </div>
  46. <!-- end .post -->
  47.  
  48. <?php comments_template(); // include comments template ?>
  49. <?php endwhile; // end of one post ?>
  50.  
  51. <!-- Previous/Next page navigation -->
  52. <div class="paging clearfix">
  53. <div class="alignleft"><?php previous_posts_link( __( '&laquo; Previous Page', 'it-l10n-Builder' ) ); ?></div>
  54. <div class="alignright"><?php next_posts_link( __( 'Next Page &raquo;', 'it-l10n-Builder' ) ); ?></div>
  55. </div>
  56. <?php else : // do not delete ?>
  57. <?php do_action( 'builder_template_show_not_found' ); ?>
  58. <?php endif; // do not delete ?>
  59. <?php
  60.  
  61. }
  62.  
  63. add_action( 'builder_layout_engine_render_content', 'render_content' );
  64.  
  65. do_action( 'builder_layout_engine_render', basename( __FILE__ ) );
  66.  
  67.  
  68. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement