-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__archive.php
85 lines (73 loc) · 2.25 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
75
76
77
78
79
80
81
82
83
84
85
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) :?>
<?php $postCount=0; ?>
<?php while (have_posts()) : the_post(); $loopcounter++;?>
<?php $postCount++;?>
<div class="entry entry-<?php echo $postCount ;?> <?php sandbox_post_class() ?>">
<div class="entrytitle_wrap">
<div class="entrydate">
<div class="dateMonth">
<?php the_time('M'); ?>
</div>
<div class="dateDay">
<?php the_time('j'); ?>
</div>
</div>
<div class="entrytitle">
<?php if ($postCount==1):?>
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title(); ?>">
<?php the_title(); ?>
</a></h1>
<?php else : ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title(); ?>">
<?php the_title(); ?>
</a></h2>
<?php endif; ?>
</div>
<div class="endate">
<?php the_author(); ?>
on
<?php the_time('F jS, Y'); ?>
</div>
</div>
<div class="entrybody">
<?php the_excerpt(); _e('<p><a href="'.get_permalink().'">Continue reading about '); the_title(); _e('</a></p>'); ?>
</div>
<div class="entrymeta">
<div class="postinfo"><span class="filedto">
<?php the_category(', ') ?>
</span>
<?php if(function_exists('wp_print')) { print_link(); } ?>
<span class="commentslink">
<?php comments_popup_link('No comments yet, be the first »', '1 Comment, join up »', '% Comments, read on »');?>
</span>
<?php edit_post_link('Edit', ' | ', ''); ?>
</div>
</div>
<?php if ($loopcounter == 1) { include (TEMPLATEPATH . '/ad_middle.php'); } ?>
</div>
<?php endwhile; ?>
<div id="nav-global" class="navigation">
<div class="nav-previous">
<?php
if(function_exists('wp_page_numbers'))
{
wp_page_numbers();
}
else
{
next_posts_link('« Previous entries');
echo ' ';
previous_posts_link('Next entries »');
}
?>
</div>
</div>
<?php else : ?>
<h2>Not Found</h2>
<div class="entrybody">Sorry, but you are looking for something that isn't here.</div>
<?php endif; ?>
</div>
<!-- /content -->
<?php get_footer(); ?>