~canonical-sysadmins/wordpress/wp-theme-resource-centre

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
<?php

// Exit if accessed directly
if ( !defined('ABSPATH')) exit;

/**
 * Archives page Template
 *
 *
 * @file           archives.php
 * @package        Ubuntu blog theme
 * @author         Canonical Web Team
 * @copyright      2012 Canonical Ltd
 * @license
 * @version        Release: 2.0
 * @filesource     wp-content/themes/insights-theme/archives.php
 * @link           http://codex.wordpress.org/Theme_Development#Archive_.28archive.php.29
 * @since          available since Release 2.0
 */

get_header();
	$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; // Needed for pagination
?>

<div class="row no-border">
  <div class="inner-wrapper">

<?php $postCount = 0; ?>
	<?php if(++$postCount == 1): ?>
	<h1>Archives</h1>
		<div class="eight-col">
			<ul class="article-list no-bullets">
	<?php endif; ?>
            <?php $recent = new WP_Query("showposts=10"); while($recent->have_posts()) : $recent->the_post();?>
			<?php get_template_part("/includes/_result_list_item"); ?>
            <?php endwhile;?>
			</ul>
	</div><!-- end .entry-content -->

  <div class="four-col last-col">
    <?php get_template_part("/includes/_nav_archive"); ?>
  </div><!-- /.four-col -->

</div><!-- /.inner-wrapper -->
</div><!-- #content -->

<?php get_footer(); ?>