Guest User

Untitled

a guest
Jul 11th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. <?php
  2.  
  3. function render_content() {
  4.  
  5. ?>
  6. <?php if ( have_posts() ) : ?>
  7. <div class="loop">
  8.  
  9. <div class="loop-content">
  10. <?php while ( have_posts() ) : // The Loop ?>
  11. <?php the_post(); ?>
  12.  
  13. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  14. <!-- title, meta, and date info -->
  15. <div class="entry-header clearfix">
  16.  
  17. <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
  18.  
  19.  
  20. <div class="entry-meta author">
  21. <?php printf( __( 'Posted by %s', 'it-l10n-BuilderChild-Drafted' ), '<span class="meta-author">' . builder_get_author_link() . '</span> on' ); ?>
  22. </div>
  23.  
  24. <div class="entry-meta date">
  25. <span class="month"><?php the_time( 'F' ); ?></span>
  26. <span class="day"><?php the_time( 'j' ); ?><span class="day-suffix"><?php the_time( 'S' ); ?></span><span class="day-comma">,</span></span>
  27. <span class="year"><?php the_time( 'Y' ); ?></span>
  28.  
  29. </div>
  30. </div>
  31.  
  32. <!-- post content -->
  33. <div class="entry-content">
  34. <?php if ( has_post_thumbnail() ) : ?>
  35. <a href="<?php the_permalink(); ?>">
  36. <?php the_post_thumbnail( 'single-thumb', array( 'class' => 'alignleft' ) ); ?>
  37. </a>
  38. <?php endif; ?>
  39. <?php the_content(); ?>
  40. <?php wp_link_pages( array( 'before' => '<p><strong>' . __( 'Pages:', 'it-l10n-BuilderChild-Drafted' ) . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number' ) ); ?>
  41. <?php edit_post_link( __( 'Edit this entry.', 'it-l10n-BuilderChild-Drafted' ), '<p class="edit-entry-link">', '</p>' ); ?>
  42. </div>
  43.  
  44. <!-- categories and tags -->
  45. <div class="entry-footer clearfix">
  46. <div class="entry-meta alignleft">
  47. <span class="categories"><?php printf( __( 'Categories : %s', 'it-l10n-BuilderChild-Drafted' ), get_the_category_list( ', ' ) ); ?></span><br/>
  48. <span class="tags"><?php printf( __( 'Tags : %s', 'it-l10n-BuilderChild-Drafted' ), get_the_tag_list( '',', ','' ) ); ?></span>
  49. </div>
  50. </div>
  51. </div>
  52. <!-- end .post -->
  53.  
  54. <?php comments_template(); // include comments template ?>
  55. <?php endwhile; // end of one post ?>
  56. </div>
  57.  
  58.  
  59. </div>
  60.  
  61. <?php else : // do not delete ?>
  62. <?php do_action( 'builder_template_show_not_found' ); ?>
  63. <?php endif; // do not delete ?>
  64. <?php
  65.  
  66. }
  67.  
  68. add_action( 'builder_layout_engine_render_content', 'render_content' );
  69.  
  70. do_action( 'builder_layout_engine_render', basename( __FILE__ ) );
  71.  
  72.  
  73. ?>
Add Comment
Please, Sign In to add comment