-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
114 lines (73 loc) · 2.22 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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php get_header(); ?>
<div id="main-col">
<!-- <p id="intro-paragraph">
introes...
</p> -->
<?php $posttestindex = 1; ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="datebox">
<p class="day"><?php the_time('d') ?></p>
<p class="month"><?php the_time('M') ?></p>
<p class="year"><?php the_time('Y') ?></p>
</div>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p>By: <?php the_author_posts_link(); ?>
<?php
if(get_the_category() != null || get_the_tags() != null):
?>
| <?php the_category(', '); ?>
<?php
if(get_the_category() != null && get_the_tags() != null):
?>
, <?php the_tags('', ', ', ''); ?>
<?php
elseif (get_the_tags() != null):
?>
<?php the_tags('',', ', ''); ?>
<?php
endif;
endif;
?>
| <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
<?php edit_post_link('Edit', ' | ', ''); ?>
</p>
<?php the_content('Read the rest of this entry »'); ?>
<?php
if ($posttestindex == 12) {
$posttestindex = 0;
?>
<script type="text/javascript"><!--
google_ad_client = "pub-1633320757911200";
google_ad_slot = "4542973089";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<?php
}
?>
</div>
<?php endwhile; ?>
<?php else : ?>
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
<div class="navigation">
<?php previous_posts_link('« Previous Page') ?>
<?php
if($paged > '0') {
echo " | ";
}
?>
<?php next_posts_link('Next Page »') ?>
</div>
</div>
<?php include (TEMPLATEPATH . '/socialsidebar.php'); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>