1
|
1 |
<?php get_header(); ?> |
|
2 |
<?php get_sidebar(1); ?> |
|
3 |
<?php get_sidebar(2); ?> |
|
4 |
|
|
5 |
<?php if (have_posts()) : ?> |
|
6 |
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> |
|
7 |
<?php /* If this is a category archive */ if (is_category()) { ?> |
|
8 |
<h2 class="pagetitle">Archive for the ‘<?php single_cat_title(); ?>’ Category</h2> |
|
9 |
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> |
|
10 |
<h2 class="pagetitle">Posts Tagged ‘<?php single_tag_title(); ?>’</h2> |
|
11 |
<?php /* If this is a daily archive */ } elseif (is_day()) { ?> |
|
12 |
<h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2> |
|
13 |
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?> |
|
14 |
<h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2> |
|
15 |
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?> |
|
16 |
<h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2> |
|
17 |
<?php /* If this is an author archive */ } elseif (is_author()) { ?> |
|
18 |
<h2 class="pagetitle">Author Archive</h2> |
|
19 |
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> |
|
20 |
<h2 class="pagetitle">Blog Archives</h2> |
|
21 |
<?php } ?> |
|
22 |
|
|
23 |
<div class="navigation" style=" padding-top:0;"> |
|
24 |
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> |
|
25 |
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> |
|
26 |
<div class="clear"></div> |
|
27 |
</div> |
|
28 |
|
|
29 |
<?php while (have_posts()) : the_post(); ?> |
|
30 |
<div <?php post_class() ?> id="post-<?php the_ID(); ?>" style=" float: none;"> |
|
31 |
<div class="bg-top"><div class="bg-bot"><div class="bg-left"><div class="bg-right"> |
|
32 |
<div class="corner-left-top"><div class="corner-right-top"><div class="corner-left-bot"><div class="corner-right-bot"> |
|
33 |
|
|
34 |
<div class="indent"> |
|
35 |
|
|
36 |
|
|
37 |
<div class="title"> |
|
38 |
|
|
39 |
|
|
40 |
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> |
|
41 |
|
|
42 |
<div class="author"> |
|
43 |
posted by <?php the_author_link() ?> |
|
44 |
</div> |
|
45 |
|
|
46 |
<div class="date"> |
|
47 |
<?php the_time('l, F j, Y') ?> |
|
48 |
</div> |
|
49 |
</div> |
|
50 |
|
|
51 |
<div class="text-box"> |
|
52 |
<?php the_content('<div class="more-link"><a href="#">Continue Reading</a></div>'); ?> |
|
53 |
</div> |
|
54 |
<div class="postmetadata"> |
|
55 |
<?php the_tags('Tags: ', ', ', '<br />'); ?> |
|
56 |
</div> |
|
57 |
<div class="link-edit"><?php edit_post_link('Edit', ''); ?></div> |
|
58 |
|
|
59 |
|
|
60 |
</div> |
|
61 |
</div></div></div></div> |
|
62 |
</div></div></div></div> |
|
63 |
</div> |
|
64 |
<?php endwhile; ?> |
|
65 |
|
|
66 |
|
|
67 |
<div class="navigation"> |
|
68 |
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> |
|
69 |
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> |
|
70 |
<div class="clear"></div> |
|
71 |
</div> |
|
72 |
|
|
73 |
<?php else : |
|
74 |
|
|
75 |
if ( is_category() ) { // If this is a category archive |
|
76 |
printf("<h2 class='pagetitle'>Sorry, but there aren't any posts in the %s category yet.</h2>", single_cat_title('',false)); |
|
77 |
} else if ( is_date() ) { // If this is a date archive |
|
78 |
echo("<h2 class='pagetitle'>Sorry, but there aren't any posts with this date.</h2>"); |
|
79 |
} else if ( is_author() ) { // If this is a category archive |
|
80 |
$userdata = get_userdatabylogin(get_query_var('author_name')); |
|
81 |
printf("<h2 class='pagetitle'>Sorry, but there aren't any posts by %s yet.</h2>", $userdata->display_name); |
|
82 |
} else { |
|
83 |
echo("<h2 class='pagetitle'>No posts found.</h2>"); |
|
84 |
} |
|
85 |
get_search_form(); |
|
86 |
|
|
87 |
endif; |
|
88 |
?> |
|
89 |
|
|
90 |
|
|
91 |
<?php get_footer(); ?> |