Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function render_content() {
- ?>
- <?php if ( have_posts() ) : ?>
- <div class="loop">
- <div class="loop-content">
- <?php while ( have_posts() ) : // The Loop ?>
- <?php the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <!-- title, meta, and date info -->
- <div class="entry-header clearfix">
- <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
- <div class="entry-meta author">
- <?php printf( __( 'Posted by %s', 'it-l10n-BuilderChild-Drafted' ), '<span class="meta-author">' . builder_get_author_link() . '</span> on' ); ?>
- </div>
- <div class="entry-meta date">
- <span class="month"><?php the_time( 'F' ); ?></span>
- <span class="day"><?php the_time( 'j' ); ?><span class="day-suffix"><?php the_time( 'S' ); ?></span><span class="day-comma">,</span></span>
- <span class="year"><?php the_time( 'Y' ); ?></span>
- </div>
- </div>
- <!-- post content -->
- <div class="entry-content">
- <?php if ( has_post_thumbnail() ) : ?>
- <a href="<?php the_permalink(); ?>">
- <?php the_post_thumbnail( 'single-thumb', array( 'class' => 'alignleft' ) ); ?>
- </a>
- <?php endif; ?>
- <?php the_content(); ?>
- <?php wp_link_pages( array( 'before' => '<p><strong>' . __( 'Pages:', 'it-l10n-BuilderChild-Drafted' ) . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number' ) ); ?>
- <?php edit_post_link( __( 'Edit this entry.', 'it-l10n-BuilderChild-Drafted' ), '<p class="edit-entry-link">', '</p>' ); ?>
- </div>
- <!-- categories and tags -->
- <div class="entry-footer clearfix">
- <div class="entry-meta alignleft">
- <span class="categories"><?php printf( __( 'Categories : %s', 'it-l10n-BuilderChild-Drafted' ), get_the_category_list( ', ' ) ); ?></span><br/>
- <span class="tags"><?php printf( __( 'Tags : %s', 'it-l10n-BuilderChild-Drafted' ), get_the_tag_list( '',', ','' ) ); ?></span>
- </div>
- </div>
- </div>
- <!-- end .post -->
- <?php comments_template(); // include comments template ?>
- <?php endwhile; // end of one post ?>
- </div>
- </div>
- <?php else : // do not delete ?>
- <?php do_action( 'builder_template_show_not_found' ); ?>
- <?php endif; // do not delete ?>
- <?php
- }
- add_action( 'builder_layout_engine_render_content', 'render_content' );
- do_action( 'builder_layout_engine_render', basename( __FILE__ ) );
- ?>
Add Comment
Please, Sign In to add comment