-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemplate-archives.php
More file actions
87 lines (65 loc) · 2.6 KB
/
template-archives.php
File metadata and controls
87 lines (65 loc) · 2.6 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Template Name: Archives Page
*
* The archives page template displays a conprehensive archive of the current
* content of your website on a single page.
*
* @package WooFramework
* @subpackage Template
*/
global $woo_options;
get_header();
?>
<div id="content" class="page">
<div class="col-full">
<?php woo_main_before(); ?>
<section id="main" class="col-left">
<article <?php post_class(); ?>>
<header>
<h1><?php the_title(); ?></h1>
</header>
<section class="entry fix">
<?php woo_loop_before(); ?>
<?php
if ( have_posts() ) { the_post();
the_content();
}
?>
<h3><?php _e( 'The Last 30 Posts', 'woothemes' ); ?></h3>
<ul>
<?php
query_posts( 'showposts=30' );
if ( have_posts() ) {
while ( have_posts() ) { the_post();
?>
<?php $wp_query->is_home = false; ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time( get_option( 'date_format' ) ); ?> - <?php echo $post->comment_count; ?> <?php _e( 'comments', 'woothemes' ); ?></li>
<?php
}
}
wp_reset_query();
?>
</ul>
<?php woo_loop_after(); ?>
<div id="archive-categories" class="fl">
<h3><?php _e( 'Categories', 'woothemes' ); ?></h3>
<ul>
<?php wp_list_categories( 'title_li=&hierarchical=0&show_count=1' ); ?>
</ul>
</div><!--/#archive-categories-->
<div id="archive-dates" class="fr">
<h3><?php _e( 'Monthly Archives', 'woothemes' ); ?></h3>
<ul>
<?php wp_get_archives( 'type=monthly&show_post_count=1' ); ?>
</ul>
</div><!--/#archive-dates-->
</section><!-- /.entry -->
</article><!-- /.post -->
</section><!-- /#main -->
<?php woo_main_after(); ?>
<?php get_sidebar(); ?>
</div><!-- /.col-full -->
</div><!-- /#content -->
<?php get_footer(); ?>