forked from EddieRingle/wicketpixie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
107 lines (87 loc) · 3.53 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
/**
* WicketPixie v2.0
* (c) 2006-2009 Eddie Ringle,
* Chris J. Davis,
* Dave Bates
* Provided by Chris Pirillo
*
* Licensed under the New BSD License.
*/
get_header();
$wp_auth_credit= get_option('wicketpixie_show_post_author'); ?>
<!-- content -->
<div id="content">
<?php
require_once(TEMPLATEPATH .'/app/customcode.php');
$glob = fetchcustomcode('global_announcement.php',true);
if($glob != "" && $glob != fetchcustomcode('idontexist.no')): ?>
<div class="highlight" style="margin-left: 20px;margin-right: 20px">
<?php
echo $glob;
?>
</div>
<?php endif; ?>
<div class="page">
<h1 style="border-bottom:1px solid #ddd; padding-bottom:5px;"><?php wp_title('',true,''); ?></h1>
</div>
<?php if (have_posts()) : ?>
<?php $adsense_counter = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<!-- post -->
<div class="post">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="post-comments">
<div class="post-comments">
<ul>
<?php
$addlink="#respond";
$countlink="#comments";
?>
<li class="post-comments-count"><a href="<?php the_permalink(); echo $countlink; ?>" title="View all <?php comments_number('0', '1', '%'); ?> Comments"><?php comments_number('0', '1', '%'); ?></a></li>
<li class="post-comments-add"><a href="<?php the_permalink(); echo $addlink; ?>" title="Add a Comment"><span> </span>Add a Comment</a></li>
</ul>
</div>
</div>
<div class="post-author">
<?php if( $wp_auth_credit == 1 ) { ?>
<?php echo get_avatar( get_the_author_email(), $size = '36', $default = 'images/avatar.jpg' ); ?>
<p><strong><?php the_time('l, F jS, Y') ?></strong><br/>
by <?php the_author_posts_link(); ?><?php edit_post_link('Edit', ' - ', ''); ?></p>
<?php } else { ?>
<p><strong><?php the_time('l, F jS, Y') ?></strong><br/>
at <?php the_time('g:ia') ?><?php edit_post_link('Edit', ' - ', ''); ?></p>
<?php } ?>
</div>
<!--<div class="post-comments">
<ul>
<li class="post-comments-count"><?php comments_popup_link('0', '1', '%'); ?></li>
<li class="post-comments-add"><a href="<?php the_permalink() ?>#respond" title="Add a Comment"><span> </span>Add a Comment</a></li>
</ul>
</div>-->
<div class="clearer"></div>
<div class=KonaBody><?php the_excerpt(); ?></div>
</div>
<?php if ($adsense_counter == 0) { ?>
<div align="center" style="margin: 15px 0 30px 0">
<?php $adsense->wp_adsense('blog_post_bottom'); ?>
</div>
<?php } ?>
<?php $adsense_counter++; ?>
<?php endwhile; ?>
<!-- Page Navigation -->
<?php if (get_option($optpre.'plug_pagenavi') == 'true'):?>
<div id="paginator" style='text-align: center'><?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); }?></div>
<?php else: ?>
<div class="navigation">
<div class="left"><?php next_posts_link('<span> </span>Older Posts'); ?> </div>
<div class="right"><?php previous_posts_link('<span> </span>Newer Posts') ?></div>
</div>
<?php endif;?>
<?php endif; ?>
</div>
<!-- content -->
<!-- sidebar -->
<?php get_sidebar(); ?>
<!-- sidebar -->
<?php get_footer(); ?>