| Current Path : /home/ereika83/public_html/wp-content/themes/Builder-Expansion-Red/ |
| Current File : /home/ereika83/public_html/wp-content/themes/Builder-Expansion-Red/archive.php |
<?php
function render_content() {
?>
<?php if ( have_posts() ) : ?>
<div class="loop">
<div class="loop-header">
<h4 class="loop-title">
<?php
the_post();
if ( is_category() ) { // Category Archive
$title = sprintf( __( 'Archive for %s', 'it-l10n-Builder-Expansion-Red' ), single_cat_title( '', false ) );
}
else if ( is_tag() ) { // Tag Archive
$title = sprintf( __( 'Archive for %s', 'it-l10n-Builder-Expansion-Red' ), single_tag_title( '', false ) );
}
else if ( is_tax() ) { // Tag Archive
$title = sprintf( __( 'Archive for %s', 'it-l10n-Builder-Expansion-Red' ), builder_get_tax_term_title() );
}
else if ( is_day() || is_time() ) { // Day-Specific Archive
$title = sprintf( __( 'Archive for %s', 'it-l10n-Builder-Expansion-Red' ), get_the_time() );
}
else if ( is_month() ) { // Month-Specific Archive
$title = sprintf( __( 'Archive for %s', 'it-l10n-Builder-Expansion-Red' ), get_the_time( 'F Y' ) );
}
else if ( is_year() ) { // Year-Specific Archive
$title = sprintf( __( 'Archive for %s', 'it-l10n-Builder-Expansion-Red' ), get_the_time( 'Y' ) );
}
else if ( is_author() ) { // Author Archive
$title = sprintf( __( 'Author Archive for %s', 'it-l10n-Builder-Expansion-Red' ), get_the_author() );
}
else { // Default catchall just in case
$title = __( 'Archive', 'it-l10n-Builder-Expansion-Red' );
}
if ( is_paged() )
printf( '%s – Page %d', $title, get_query_var( 'paged' ) );
else
echo $title;
rewind_posts();
?>
</h4>
</div>
<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">
<h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<div class="entry-meta author comments">
<?php printf( __( 'by %s', 'it-l10n-Builder-Expansion-Red' ), '<span class="author">' . builder_get_author_link() . '</span>' ); ?>
<?php do_action( 'builder_comments_popup_link', '<span class="comments">· ', '</span>', __( 'Comments %s', 'it-l10n-Builder-Expansion-Red' ), __( '(0)', 'it-l10n-Builder-Expansion-Red' ), __( '(1)', 'it-l10n-Builder-Expansion-Red' ), __( '(%)', 'it-l10n-Builder-Expansion-Red' ) ); ?>
</div>
<div class="entry-meta date">
<span class="day"><?php the_time( 'd' ); ?></span>
<span class="month"><?php the_time( 'M' ); ?></span>
</div>
</div>
<!-- post content -->
<div class="entry-content clearfix">
<?php the_content( __( 'Read More→', 'it-l10n-Builder-Expansion-Red' ) ); ?>
</div>
<!-- categories, tags and comments -->
<div class="entry-footer clearfix">
<?php do_action( 'builder_comments_popup_link', '<div class="entry-meta alignright"><span class="comments">', '</span></div>', __( 'Comments %s', 'it-l10n-Builder-Expansion-Red' ), __( '(0)', 'it-l10n-Builder-Expansion-Red' ), __( '(1)', 'it-l10n-Builder-Expansion-Red' ), __( '(%)', 'it-l10n-Builder-Expansion-Red' ) ); ?>
<div class="entry-meta alignleft">
<div class="categories"><?php printf( __( 'Categories : %s', 'it-l10n-Builder-Expansion-Red' ), get_the_category_list( ', ' ) ); ?></div>
<?php the_tags( '<div class="tags">' . __( 'Tags : ', 'it-l10n-Builder-Expansion-Red' ), ', ', '</div>' ); ?>
</div>
</div>
</div>
<!-- end .post -->
<?php comments_template(); // include comments template ?>
<?php endwhile; // end of one post ?>
</div>
<div class="loop-footer">
<!-- Previous/Next page navigation -->
<div class="loop-utility clearfix">
<div class="alignleft"><?php previous_posts_link( __( '« Previous Page', 'it-l10n-Builder-Expansion-Red' ) ); ?></div>
<div class="alignright"><?php next_posts_link( __( 'Next Page »', 'it-l10n-Builder-Expansion-Red' ) ); ?></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__ ) );