forked from EddieRingle/wicketpixie
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
Latest commit
151 lines (125 loc) · 4.85 KB
/
Copy pathsingle.php
File metadata and controls
151 lines (125 loc) · 4.85 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?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">
<!-- google_ad_section_start -->
<?phpif (have_posts()) : ?>
<?phpwhile (have_posts()) : the_post(); ?>
<?php$postid = $post->ID; ?>
<!-- post -->
<div class="post" style="border-bottom:0;">
<?php
require_once(TEMPLATEPATH .'/app/customcode.php');
$glob = fetchcustomcode('global_announcement.php',true);
if($glob != "" && $glob != fetchcustomcode('idontexist.no')): ?>
<div class="highlight">
<?php
echo$glob;
?>
</div>
<?phpendif; ?>
<h1><a href="<?phpthe_permalink() ?>" rel="bookmark" title="Permanent Link to <?phpthe_title_attribute(); ?>" style="text-decoration:none;"><?phpthe_title(); ?></a></h1>
<div class="post-comments">
<div class="post-comments">
<ul>
<?php
$addlink="#respond";
$countlink="#comments";
?>
<li class="post-comments-count"><a href="<?phpthe_permalink(); echo$countlink; ?>" title="View all <?phpcomments_number('0', '1', '%'); ?> Comments"><?phpcomments_number('0', '1', '%'); ?></a></li>
<li class="post-comments-add"><a href="<?phpthe_permalink(); echo$addlink; ?>" title="Add a Comment"><span> </span>Add a Comment</a></li>
</ul>
</div>
</div>
<div class="post-author">
<?phpif( $wp_auth_credit == 'true' ) { ?>
<?phpechoget_avatar( get_the_author_email(), $size = '36', $default = 'images/avatar.jpg' ); ?>
<p><strong><?phpthe_time('l, F jS, Y') ?></strong><br/>
by <?phpthe_author_posts_link(); ?><?phpedit_post_link('Edit', ' - ', ''); ?></p>
<?php } else { ?>
<p><strong><?phpthe_time('l, F jS, Y') ?></strong><br/>
at <?phpthe_time('g:ia') ?><?phpedit_post_link('Edit', ' - ', ''); ?></p>
<?php } ?>
</div>
<div class="clearer"></div>
<?phpif (get_option('wicketpixie_post_enable_aside') == 'true') { ?>
<!-- post-ad -->
<div id="post-ad">
<?phpif(is_enabled_adsense() == true) { $adsense->wp_adsense('blog_post_side'); } ?>
<div style="margin: 15px 0 0 5px">
<?phpif(get_option('wicketpixie_tweetmeme_enable') == 'true') { ?>
<p style="margin: 0px auto;width: inherit;">
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
</p>
<?php } ?>
<?phpif (get_option('wicketpixie_plugin_related-posts') == 'true'):?>
<?phpwp_related_posts(5); ?>
<?phpendif;?>
</div>
</div>
<!-- /post-ad -->
<?php } ?>
<div class="KonaBody">
<?phpif(is_enabled_adsense() == true) { ?>
<span style="float:left;display:block;clear:none;margin-right:10px;">
<?php$adsense->wp_adsense('blog_post_front'); ?>
</span>
<?php } ?>
<?phpthe_content(); ?>
</div>
</div>
<!-- /post -->
<!-- google_ad_section_end -->
<!-- post-meta -->
<div class="post-meta">
<?phpif(get_option('wicketpixie_plugin_related-posts') == 'true' && function_exists(wp_related_posts)):?>
<!-- related-posts -->
<div id="related-posts">
<h3>You might also be interested in...</h3>
<?phpwp_related_posts(); ?>
</div>
<!-- /related-posts -->
<?phpendif;?>
<!-- post-meta-right -->
<div class="post-meta-right">
<!-- post-meta-tags -->
<div class="post-meta-tags">
<h6>Tags</h6>
<?phpthe_tags('<ul><li>','</li><li>','</li></ul>'); ?>
</div>
<!-- /post-meta-tags -->
<!-- post-meta-categories -->
<div class="post-meta-categories">
<h6>Categories</h6>
<?phpthe_category(); ?>
</div>
<!-- /post-meta-categories -->
<!-- post-bigbox -->
<!-- <div class="post-bigbox">
ad code goes here
</div> -->
<!-- /post-bigbox -->
</div>
<!-- /post-meta-right -->
<div class="clearer"></div>
</div>
<!-- /post-meta -->
<?phpendwhile; ?>
<?phpcomments_template(); ?>
<?phpendif; ?>
</div>
<!-- content -->
<!-- sidebar -->
<?phpget_sidebar(); ?>
<!-- sidebar -->
<?phpget_footer(); ?>