Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 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. <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  16. </div>
  17.  
  18. <div class="author-meta">
  19. <?php printf( __( 'by %s', 'it-l10n-BuilderChild-Blueprint' ), '<span class="meta-author">' . builder_get_author_link() . '</span>' ); ?>
  20. </div>
  21.  
  22. <div class="post-meta">
  23. <span class="month"><?php the_time( 'F' ); ?></span>
  24. <span class="day"><?php the_time( 'j' ); ?><span class="day-suffix"><?php the_time( 'S' ); ?></span><span class="day-comma">,</span></span>
  25. <span class="year"><?php the_time( 'Y' ); ?></span><br />
  26. </div>
  27. </div>
  28.  
  29. <!-- "Read More" link -->
  30. <?php if (has_post_thumbnail()) { ?>
  31. <div class="front-page-thumbnail">
  32. <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'front-page-thumbnail' ); ?></a>
  33. </div>
  34. <?php } ?>
  35.  
  36. <div class="post-content">
  37. <?php the_excerpt(); ?>
  38. </div>
  39.  
  40. <!-- categories, tags and comments -->
  41. <div class="meta-bottom clearfix">
  42. <div class="alignleft"><span class="categories"><?php printf( __( 'Categories %s', 'it-l10n-BuilderChild-Blueprint' ), get_the_category_list( ', ' ) ); ?></span><br />
  43. <?php do_action( 'builder_comments_popup_link', '<span class="comments">', '</span>', __( 'Comments %s', 'it-l10n-BuilderChild-Blueprint' ), __( '(0)', 'it-l10n-BuilderChild-Blueprint' ), __( '(1)', 'it-l10n-BuilderChild-Blueprint' ), __( '(%)', 'it-l10n-BuilderChild-Blueprint' ) ); ?>
  44. </div>
  45. </div>
  46. </div>
  47. <!-- end .post -->
  48.  
  49. <?php comments_template(); // include comments template ?>
  50. <?php endwhile; // end of one post ?>
  51.  
  52. <!-- Previous/Next page navigation -->
  53. <div class="paging clearfix">
  54. <div class="alignleft"><?php previous_posts_link( __( '&laquo; Previous Page', 'it-l10n-BuilderChild-Blueprint' ) ); ?></div>
  55. <div class="alignright"><?php next_posts_link( __( 'Next Page &raquo;', 'it-l10n-BuilderChild-Blueprint' ) ); ?></div>
  56. </div>
  57. <?php else : // do not delete ?>
  58. <?php do_action( 'builder_template_show_not_found' ); ?>
  59. <?php endif; // do not delete ?>
  60. <?php
  61.  
  62. }
  63.  
  64. add_action( 'builder_layout_engine_render_content', 'render_content' );
  65.  
  66. do_action( 'builder_layout_engine_render', basename( __FILE__ ) );
  67.  
  68.  
  69. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement