-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
executable file
·60 lines (53 loc) · 1.79 KB
/
index.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
<?php include_header(); ?>
<div class="wrapper">
<?php include_sidebar('home'); ?>
<div id="right-content">
<div id="posts">
<?php $x=0; ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="shallow-post<?php if ($x % 2) : ?> alt<?php endif; ?>">
<?php if (has_post_thumbnail()): ?>
<div class="shallow-image">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<span class="shallow-overlay"></span>
<?php the_post_thumbnail(); ?>
</a>
</div>
<?php endif ?>
<h3><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<span class="date"><?php the_time('l, F jS, Y'); ?><?php edit_post_link('edit',' • ',''); ?></span>
<?php the_excerpt(); ?>
<span class="perma"><a href="<?php the_permalink(); ?>">Keep Reading »</a></span>
<span class="comment"><?php comments_popup_link('0', '1', '%'); ?></span>
<div class="clear"></div>
</div>
<?php $x++;?>
<?php endwhile;?>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
<div class="clear"></div>
</div>
<?php
$next = get_next_posts_link('Next »');
$previous = get_previous_posts_link('« Previous');
?>
<?php if ($next != '' || $previous != ''): ?>
<div class="whitey-pagination">
<div id="pagination">
<div class="left">
<?php previous_posts_link('« Previous'); ?>
</div>
<div class="right">
<?php next_posts_link('Next »'); ?>
</div>
<div class="clear"></div>
</div>
</div>
<?php endif ?>
</div>
<div class="clear"></div>
</div>
<?php get_footer(); ?>