Files
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

58 lines
2.0 KiB
PHP

<?php dt_storage('have_sidebar', true); ?>
<?php get_header(); ?>
<?php get_template_part('top-bg'); ?>
<div id="wrapper">
<?php get_template_part('nav'); ?>
<div id="content_bg">
<div id="container">
<?php if ( function_exists('yoast_breadcrumb') ) {yoast_breadcrumb('<p id="breadcrumbs">','</p>');} ?>
<h1 class="pc-h1"><?php if( is_category() || is_tax() ):
_e( 'Category archive: ', LANGUAGE_ZONE );
//echo single_cat_title( null, false );
elseif( is_tag() ):
_e( 'Topics: ', LANGUAGE_ZONE );
echo single_tag_title( null, false );
elseif( is_author() ):
$curauth = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
_e( 'Author archive: ', LANGUAGE_ZONE );
echo $curauth->nickname;
elseif( is_date() ):
_e( 'Date archive: ', LANGUAGE_ZONE );
echo single_month_title( ' ', false );
else:
global $post;
_e( 'Archive: ', LANGUAGE_ZONE );
if( $post )
echo get_post_format_string(get_post_format());
else
echo 'Standard';
endif;
?></h1>
<div class="hr hr-wide gap-big"></div>
<!-- archive -->
<?php
do_action('dt_layout_before_loop', 'index');
global $wp_query;
dt_storage( 'post_is_first', 1 );
if ( have_posts() ) {
while( have_posts() ) { the_post();
get_template_part('content', get_post_format() );
}
if( function_exists('wp_pagenavi') ) {
wp_pagenavi();
}
}
?>
</div>
<?php get_sidebar(); ?>
<div class="clrfix">&nbsp;</div>
</div>
</div>
<?php get_footer(); ?>