tag for the post items list with all necessary
* attributes in the $blogcentral_header variable.
*/
include( locate_template( '/templates/layout-wrapper-begin.php', false, false ) );
// Dynamic style for main area.
$main_style = '';
$main_class = '';
if ( empty( $blogcentral_opts['show_sidebar'] ) ) {
$main_style = ' style="width:100%;" ';
$main_class = ' class="no-sidebar"';
} else {
$main_class = ' class="show-sidebar"';
}
// Display the dynamic color chooser. Can safely be deleted.
blogcentral_output_color_chooser();
$page_header_title = sprintf( __( 'Tag Archives: %s', BLOGCENTRAL_TXT_DOMAIN ), single_tag_title( '', false ) );
// Output precontent area.
blogcentral_output_precontent_frag( $blogcentral_opts, $page_header_title );
?>
>
id="main-area">
and beginning
tags, with necessary attributes.
echo $blogcentral_wrapper[0];
echo $blogcentral_header;
while ( have_posts() ) {
// Reset variables
$blogcentral_img_wrap_class = '';
$blogcentral_media_wrap_style = "style='";
$blogcentral_meta_wrap_class = '';
$blogcentral_meta_wrap_style = "style='";
$blogcentral_extra_li_class = '';
$extra_li_attrs = '';
$blogcentral_media = '';
the_post();
// Get post meta
$post_id = $wp_query->post->ID;
$blogcentral_post_meta = get_post_meta( $post_id, 'blogcentral_options', true );
$blogcentral_post_opts = array_merge( $blogcentral_layout_opts, (array)$blogcentral_post_meta );
// Add class for sticky post
if ( is_sticky() && isset( $posts_general['sticky_display'] ) ) {
$blogcentral_post_opts['blogcentral_extra_li_class'] .= ' blogcentral-sticky';
}
$format = '';
if ( $format = get_post_format() ) {
$format = '-' . $format;
}
// Html fragments for classes and styles to be added to each post item
$blogcentral_post_opts = blogcentral_construct_inner_classes_styles( $blogcentral_post_opts );
// Get the thumbnail if has one.
$blogcentral_thumb = '';
if ( has_post_thumbnail() ) :
$blogcentral_thumb = get_the_post_thumbnail( $post_id, 'full' );
endif;
/**
* Template for post format content.
*/
include( locate_template( 'content' . $format . '.php', false, false ) );
}// End while
// Matching ending tags for the wrapper and
tags
echo $blogcentral_ender . $blogcentral_wrapper[1];
// Output page navigation
if ( 1 < $wp_query->max_num_pages ) {
blogcentral_traditional_posts_nav();
}
?>