Advertisement
Guest User

Untitled

a guest
May 28th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.37 KB | None | 0 0
  1. <?php
  2.  
  3. function render_content() {
  4.    
  5. ?>
  6.     <?php if (have_posts()) : while (have_posts()) : the_post(); // the loop ?>
  7.        
  8.     <!--Post Wrapper Class-->
  9.     <div <?php if (function_exists('post_class')) { post_class(); } else { echo 'class="post"'; } ?>>
  10.    
  11.     <?php if ( function_exists('yoast_breadcrumb') ) {
  12.         yoast_breadcrumb('<p id="breadcrumbs">','</p>');
  13. }   ?>
  14.    
  15.     <!--Title/Date/Meta-->
  16.     <div class="title wrap">
  17.         <div class="post-title">
  18.             <h1 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h1>
  19.         </div>
  20.         <div class="post-meta">
  21.             By <span class="meta-author"><?php the_author_posts_link(); ?></span>
  22.         </div>
  23.         <div class="date">
  24.             <span class="weekday"><?php the_time( 'l' ); ?><span class="weekday-comma">,</span></span>
  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.         </div>
  29.     </div>
  30.    
  31.     <!--post text with the read more link-->
  32.     <div class="post-content">
  33.         <!--Post Thumbnail Image-->
  34.         <?php if (has_post_thumbnail()) { ?>
  35.             <div class="single-post-thumbnail">
  36.                 <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('single-post-thumbnail'); ?></a>
  37.             </div>
  38.         <?php } ?>
  39.         <?php the_content('Read More&rarr;'); ?>
  40.         <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
  41.     </div>
  42.     <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  43.     <!--post meta info-->
  44.     <div class="meta-bottom wrap">
  45.         <div class="alignleft"><span class="categories">Categories : <?php the_category(', ') ?></span></div>
  46.     </div>
  47.    
  48.     </div><!--end .post-->
  49.    
  50.     <?php comments_template(); // include comments template ?>
  51.    
  52.     <?php endwhile; // end of one post ?>
  53.     <?php else : // do not delete ?>
  54.  
  55.     <h3><?php _e("Page not Found"); ?></h3>
  56.     <p><?php _e("We're sorry, but the page you're looking for isn't here."); ?></p>
  57.     <p><?php _e("Try searching for the page you are looking for or using the navigation in the header or sidebar"); ?></p>
  58.    
  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