<?php
function render_content() {
global $wp_theme_options;
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".front-page-thumbnail img").hover(
function () {
jQuery(this).stop().fadeTo("fast", 0.7);
},
function () {
jQuery(this).stop().fadeTo("fast", 1);
}
);
});
</script>
<?php if ( have_posts() ) : ?>
<div class="loop">
<div class="loop-header clearfix">
<h3 class="loop-title">
<?php
the_post();
if ( is_category() ) { // Category Archive
$title = sprintf( __( 'Archive for %s', 'it-l10n-BuilderChild-Covell' ), single_cat_title( '', false ) );
}
else if ( is_tag() ) { // Tag Archive
$title = sprintf( __( 'Archive for %s', 'it-l10n-BuilderChild-Covell' ), single_tag_title( '', false ) );
}
else if ( is_tax() ) { // Tag Archive
$title = sprintf( __( 'Archive for %s', 'it-l10n-BuilderChild-Covell' ), builder_get_tax_term_title() );
}
else if ( is_day() || is_time() ) { // Day-Specific Archive
$title = sprintf( __( 'Archive for %s', 'it-l10n-BuilderChild-Covell' ), get_the_time() );
}
else if ( is_month() ) { // Month-Specific Archive
$title = sprintf( __( 'Archive for %s', 'it-l10n-BuilderChild-Covell' ), get_the_time( 'F Y' ) );
}
else if ( is_year() ) { // Year-Specific Archive
$title = sprintf( __( 'Archive for %s', 'it-l10n-BuilderChild-Covell' ), get_the_time( 'Y' ) );
}
else if ( is_author() ) { // Author Archive
$title = sprintf( __( 'Author Archive for %s', 'it-l10n-BuilderChild-Covell' ), get_the_author() );
}
else { // Default catchall just in case
$title = __( 'Archive', 'it-l10n-BuilderChild-Covell' );
}
if ( is_paged() )
printf( '%s – Page %d', $title, get_query_var( 'paged' ) );
else
echo $title;
rewind_posts();
?>
</h3>
</div>
<div class="loop-content">
<?php while ( have_posts() ) : // The Loop ?>
<?php the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-header">
<h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<div class="entry-meta">
<?php printf( __( 'By %s', 'it-l10n-BuilderChild-Covell' ), '<span class="author">' . builder_get_author_link() . '</span>' ); ?>
<?php printf( __( ' on %s', 'it-l10n-BuilderChild-Covell' ), '<span class="date">' . get_the_date() . '</span>' ); ?>
<?php edit_post_link( 'Edit', ' <span class="">· ', '</span>' ); ?>
<?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' ) ); ?>
</div>
</div>
<!--post text with the read more link -->
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
<!-- categories, tags and comments -->
<div class="entry-footer clearfix">
<div class="entry-meta">
<div class="categories left"><?php printf( __( 'Categories : %s', 'it-l10n-BuilderChild-Covell' ), get_the_category_list( ', ' ) ); ?></div>
<?php the_tags( '<div class="tags right">' . __( 'Tags : ', 'it-l10n-BuilderChild-Covell' ), ', ', '</div>' ); ?>
</div>
</div>
</div>
<?php endwhile; // end of one post ?>
</div>
<div class="loop-footer">
<!-- Previous/Next page navigation -->
<div class="loop-utility paging clearfix">
<div class="alignleft"><?php previous_posts_link( __( '« Previous Page', 'it-l10n-BuilderChild-Covell' ) ); ?></div>
<div class="alignright"><?php next_posts_link( __( 'Next Page »', 'it-l10n-BuilderChild-Covell' ) ); ?></div>
</div>
</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__ ) );