1 | <?php /* Fusion/digitalnature */ ?>
|
---|
2 | <?php get_header(); ?>
|
---|
3 |
|
---|
4 | <!-- mid content -->
|
---|
5 | <div id="mid-content">
|
---|
6 | <?php if (have_posts()) : ?>
|
---|
7 | <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
|
---|
8 | <?php /* If this is a category archive */ if (is_category()) { ?>
|
---|
9 | <h1 class="pagetitle"><?php printf( __('Archive for category %s', 'fusion'), single_cat_title('', false)); ?></h1>
|
---|
10 | <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
|
---|
11 | <h1 class="pagetitle"><?php printf( __('Posts Tagged %s', 'fusion'), single_cat_title('', false) ); ?></h1>
|
---|
12 | <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
|
---|
13 | <h1 class="pagetitle"><?php printf(__('Archive for %s', 'fusion'), get_the_time(__('F jS, Y','fusion'))); ?></h1>
|
---|
14 | <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
|
---|
15 | <h1 class="pagetitle"><?php printf(__('Archive for %s', 'fusion'), get_the_time(__('F, Y','fusion'))); ?></h1>
|
---|
16 | <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
|
---|
17 | <h1 class="pagetitle"><?php printf(__('Archive for %s', 'fusion'), get_the_time(__('Y','fusion'))); ?></h1>
|
---|
18 | <?php /* If this is an author archive */ } elseif (is_author()) { ?>
|
---|
19 | <h1 class="pagetitle"><?php _e('Author Archive','fusion'); ?></h1>
|
---|
20 | <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
|
---|
21 | <h1 class="pagetitle"><?php _e('Blog Archives','fusion'); ?></h1>
|
---|
22 | <?php } ?>
|
---|
23 | <?php while (have_posts()) : the_post(); ?>
|
---|
24 | <!-- post -->
|
---|
25 | <?php if (function_exists("post_class")) { ?>
|
---|
26 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
---|
27 | <?php } else { ?>
|
---|
28 | <div class="post" id="post-<?php the_ID(); ?>">
|
---|
29 | <?php } ?>
|
---|
30 | <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','fusion'); echo ' '; the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
|
---|
31 | <!-- story header -->
|
---|
32 | <div class="postheader">
|
---|
33 | <div class="postinfo">
|
---|
34 | <p>
|
---|
35 | <?php printf(__('Posted by %s in %s on %s','fusion'),'<a href="'. get_author_posts_url(get_the_author_ID()) .'" title="'. sprintf(__("Posts by %s","fusion"), attribute_escape(get_the_author())).' ">'. get_the_author() .'</a>',get_the_category_list(', '), get_the_time(__('F jS, Y','fusion'))); ?> <span class="editlink"><?php edit_post_link(''); ?></span></p>
|
---|
36 | </div>
|
---|
37 | </div>
|
---|
38 | <!-- /story header -->
|
---|
39 | <div class="postbody entry clearfix">
|
---|
40 | <?php the_content(__('Read the rest of this entry »', 'fusion')); ?>
|
---|
41 | </div>
|
---|
42 | <?php
|
---|
43 | $posttags = get_the_tags();
|
---|
44 | if ($posttags) { ?>
|
---|
45 | <p class="tags"><?php the_tags(''); ?></p>
|
---|
46 | <?php } ?>
|
---|
47 | <p class="postcontrols">
|
---|
48 | <?php
|
---|
49 | global $id, $comment;
|
---|
50 | $number = get_comments_number( $id );
|
---|
51 | ?>
|
---|
52 | <a class="<?php if($number<1) { echo 'no '; }?>comments" href="<?php comments_link(); ?>"><?php comments_number(__('No Comments','fusion'), __('1 Comment','fusion'), __('% Comments','fusion')); ?></a>
|
---|
53 | </p>
|
---|
54 | <div class="clear"></div>
|
---|
55 | </div>
|
---|
56 | <!-- /post -->
|
---|
57 | <?php endwhile; ?>
|
---|
58 |
|
---|
59 | <div class="navigation" id="pagenavi">
|
---|
60 | <?php if(function_exists('wp_pagenavi')) : ?>
|
---|
61 | <?php wp_pagenavi() ?>
|
---|
62 | <?php else : ?>
|
---|
63 | <div class="alignleft"><?php next_posts_link(__('« Older Entries','fusion')) ?></div>
|
---|
64 | <div class="alignright"><?php previous_posts_link(__('Newer Entries »','fusion')) ?></div>
|
---|
65 | <div class="clear"></div>
|
---|
66 | <?php endif; ?>
|
---|
67 | </div>
|
---|
68 | <?php else :
|
---|
69 | if ( is_category() ) { // If this is a category archive
|
---|
70 | ?> <h2> <?php printf(__("Sorry, but there aren't any posts in the %s category yet.", "fusion"),single_cat_title('',false)); ?> </h2> <?php
|
---|
71 | } else if ( is_date() ) { // If this is a date archive
|
---|
72 | ?> <h2> <?php _e("Sorry, but there aren't any posts with this date."); ?> </h2> <?php
|
---|
73 | } else if ( is_author() ) { // If this is a category archive
|
---|
74 | $userdata = get_userdatabylogin(get_query_var('author_name'));
|
---|
75 | ?> <h2> <?php printf(__("Sorry, but there aren't any posts by %s yet.", "fusion"),$userdata->display_name); ?> </h2> <?php
|
---|
76 | } else {
|
---|
77 | ?> <h2> <?php _e('No posts found.'); ?> </h2> <?php
|
---|
78 | }
|
---|
79 | get_search_form();
|
---|
80 |
|
---|
81 | endif;
|
---|
82 | ?>
|
---|
83 | </div>
|
---|
84 | <!-- mid content -->
|
---|
85 | </div>
|
---|
86 | <!-- /mid -->
|
---|
87 |
|
---|
88 | <?php get_sidebar(); ?>
|
---|
89 |
|
---|
90 | <?php get_footer(); ?>
|
---|