-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
36 lines (31 loc) · 1.21 KB
/
archive.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php get_header(); ?>
<?php $blog_full_width = of_get_option('ttrust_post_full_width'); ?>
<?php $bw = ($blog_full_width) ? "full" : "twoThirds"; ?>
<div id="pageHead">
<?php global $post; if(is_archive() && have_posts()) :
if (is_category()) : ?>
<h1><?php single_cat_title(); ?></h1>
<?php if(strlen(category_description()) > 0) echo category_description(); ?>
<?php elseif( is_tag() ) : ?>
<h1><?php single_tag_title(); ?></h1>
<?php elseif (is_day()) : ?>
<h1>Archive <?php the_time('M j, Y'); ?></h1>
<?php elseif (is_month()) : ?>
<h1>Archive <?php the_time('F Y'); ?></h1>
<?php elseif (is_year()) : ?>
<h1>Archive <?php the_time('Y'); ?></h1>
<?php elseif (isset($_GET['paged']) && !empty($_GET['paged'])) : ?>
<h1>Archive</h1>
<?php endif; ?>
<?php endif; ?>
</div>
<div id="content" class="<?php echo $bw; ?>">
<div class="posts clearfix">
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part( 'part-post'); ?>
<?php endwhile; ?>
<?php get_template_part( 'part-pagination'); ?>
</div>
</div>
<?php if($bw == "twoThirds") get_sidebar(); ?>
<?php get_footer(); ?>