forked from EddieRingle/wicketpixie
/
index.php
81 lines (67 loc) · 2.88 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
<?php get_header(); ?>
<?php $wp_auth_credit= wp_get_option( 'auth_credit' ); ?>
<!-- google_ad_section_start -->
<!-- content -->
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<!-- 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>
<?php endif; ?>
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>" style="text-decoration:none;"><?php the_title(); ?></a></h1>
<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="clearer"></div>
<div class="KonaBody">
<?php the_content('Continue reading »'); ?>
</div>
<?php wp_after_posts_code(); ?>
</div>
<!-- /post -->
<!-- google_ad_section_end -->
<?php endwhile; ?>
<!-- Page Navigation -->
<?php if (wp_get_option('plug_pagenavi')):?>
<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; /* End of PageNavi */ ?>
<?php endif; ?>
</div>
<!-- content -->
<!-- sidebar -->
<?php get_sidebar(); ?>
<!-- sidebar -->
<?php get_footer(); ?>