1. <?php
  2.  
  3. function render_content() {
  4.     global $wp_theme_options;
  5.  
  6. ?>
  7.     <script type="text/javascript">
  8.         jQuery(document).ready(function() {
  9.             jQuery(".front-page-thumbnail img").hover(
  10.                 function () {
  11.                     jQuery(this).stop().fadeTo("fast", 0.7);
  12.                 },
  13.                 function () {
  14.                     jQuery(this).stop().fadeTo("fast", 1);
  15.                 }
  16.             );
  17.         });
  18.     </script>
  19.  
  20.     <?php if ( have_posts() ) : ?>
  21.         <div class="loop">
  22.             <div class="loop-content">
  23.                 <?php while ( have_posts() ) : // The Loop ?>
  24.                     <?php the_post(); ?>
  25.  
  26.                     <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  27.                         <div class="entry-header">
  28.                             <h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
  29.  
  30.                             <div class="entry-meta">
  31.                                 <?php printf( __( 'By %s', 'it-l10n-BuilderChild-Covell' ), '<span class="author">' . builder_get_author_link() . '</span>' ); ?>
  32.                                 <?php printf( __( ' on %s', 'it-l10n-BuilderChild-Covell' ), '<span class="date">' . get_the_date() . '</span>' ); ?>
  33.                                 <?php edit_post_link( 'Edit', ' <span class="">&middot; ', '</span>' ); ?>
  34.                                 <?php do_action( 'builder_comments_popup_link', '<span class="comments right">', '</span>', __( '%s Comments', 'it-l10n-BuilderChild-Covell' ), __( 'No', 'it-l10n-BuilderChild-Covell' ), __( '1', 'it-l10n-BuilderChild-Covell' ), __( '%', 'it-l10n-BuilderChild-Covell' ) ); ?>
  35.                             </div>
  36.                         </div>
  37.  
  38.                         <!--post text with the read more link -->
  39.                         <div class="entry-content">
  40.                             <?php the_excerpt(); ?>
  41.                         </div>
  42.  
  43.                         <!-- categories, tags and comments -->
  44.                         <div class="entry-footer clearfix">
  45.                             <div class="entry-meta">
  46.                                 <div class="categories left"><?php printf( __( 'Categories : %s', 'it-l10n-BuilderChild-Covell' ), get_the_category_list( ', ' ) ); ?></div>
  47.                                 <?php the_tags( '<div class="tags right">' . __( 'Tags : ', 'it-l10n-BuilderChild-Covell' ), ', ', '</div>' ); ?>
  48.                             </div>
  49.                         </div>
  50.                     </div>
  51.                 <?php endwhile; // end of one post ?>
  52.             </div>
  53.  
  54.             <div class="loop-footer">
  55.                 <!-- Previous/Next page navigation -->
  56.                 <div class="loop-utility paging clearfix">
  57.                     <div class="alignleft"><?php previous_posts_link( __( 'Previous', 'it-l10n-BuilderChild-Covell' ) ); ?></div>
  58.                     <div class="alignright"><?php next_posts_link( __( 'Next', 'it-l10n-BuilderChild-Covell' ) ); ?></div>
  59.                 </div>
  60.             </div>
  61.         </div>
  62.     <?php else : // do not delete ?>
  63.         <?php do_action( 'builder_template_show_not_found' ); ?>
  64.     <?php endif; // do not delete ?>
  65. <?php
  66.  
  67. }
  68.  
  69. add_action( 'builder_layout_engine_render_content', 'render_content' );
  70.  
  71. do_action( 'builder_layout_engine_render', basename( __FILE__ ) );