-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
74 lines (49 loc) · 3.46 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php get_header(); ?>
<?php global $woo_options; ?>
<div id="content" class="col-full">
<div id="main" class="col-left">
<?php if ( isset( $woo_options['woo_breadcrumbs_show'] ) && $woo_options['woo_breadcrumbs_show'] == 'true' ) { ?>
<div id="breadcrumb">
<?php woo_breadcrumbs(); ?>
</div><!--/#breadcrumbs -->
<?php } ?>
<?php if (have_posts()) : $count = 0; ?>
<?php if (is_category()) { ?>
<span class="archive_header"><span class="fl cat"><?php _e('Archive', 'woothemes'); ?> | <?php echo single_cat_title(); ?></span> <span class="fr catrss"><?php $cat_obj = $wp_query->get_queried_object(); $cat_id = $cat_obj->cat_ID; echo '<a href="'; get_category_rss_link(true, $cat, ''); echo '">'; _e("RSS feed for this section", "woothemes"); echo '</a>'; ?></span></span>
<?php } elseif (is_day()) { ?>
<span class="archive_header"><?php _e('Archive', 'woothemes'); ?> | <?php the_time( get_option( 'date_format' ) ); ?></span>
<?php } elseif (is_month()) { ?>
<span class="archive_header"><?php _e('Archive', 'woothemes'); ?> | <?php the_time('F, Y'); ?></span>
<?php } elseif (is_year()) { ?>
<span class="archive_header"><?php _e('Archive', 'woothemes'); ?> | <?php the_time('Y'); ?></span>
<?php } elseif (is_author()) { ?>
<span class="archive_header"><?php _e('Archive by Author', 'woothemes'); ?></span>
<?php } elseif (is_tag()) { ?>
<span class="archive_header"><?php _e('Tag Archives:', 'woothemes'); ?> <?php echo single_tag_title('', true); ?></span>
<?php } ?>
<div class="fix"></div>
<?php while (have_posts()) : the_post(); $count++; ?>
<!-- Post Starts -->
<div class="post">
<?php if ( $woo_options['woo_post_content'] != "content" ) woo_image('width='.$woo_options['woo_thumb_w'].'&height='.$woo_options['woo_thumb_h'].'&class=thumbnail '.$woo_options['woo_thumb_align']); ?>
<?php woo_post_meta(); ?>
<h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php if ( $woo_options['woo_post_content'] == "content" ) the_content(__('Read More...', 'woothemes')); else the_excerpt(); ?>
</div><!-- /.entry -->
<div class="post-more">
<?php if ( $woo_options['woo_post_content'] == "excerpt" ) { ?>
<span class="read-more"><a class="button" href="<?php the_permalink() ?>" title="<?php _e('Continue Reading →','woothemes'); ?>"><?php _e('Continue Reading','woothemes'); ?></a></span>
<?php } ?>
</div>
</div><!-- /.post -->
<?php endwhile; else: ?>
<div class="post">
<p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p>
</div><!-- /.post -->
<?php endif; ?>
<?php woo_pagenav(); ?>
</div><!-- /#main -->
<?php get_sidebar(); ?>
</div><!-- /#content -->
<?php get_footer(); ?>