-
Notifications
You must be signed in to change notification settings - Fork 8
/
index-ads.php
66 lines (50 loc) · 2.88 KB
/
index-ads.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
<?php get_header(); ?>
<div id="container">
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<?php if ( is_sticky() ) : ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'greenpark'); ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php else : ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'greenpark'); ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php endif; ?>
<small class="meta">
<span class="alignleft">
<?php the_time(__('F jS, Y', 'greenpark')) ?> <?php _e('by', 'greenpark'); ?> <?php the_author() ?>
<?php edit_post_link(__( 'Edit this entry', 'greenpark' ), ' | ', ''); ?>
</span>
<span class="alignright">
<a href="<?php comments_link(); ?>" class="button-style" rel="nofollow">
<?php comments_number( __( 'No comments', 'greenpark' ), __( '1 comment', 'greenpark' ), __( '% comments', 'greenpark' )); ?> »
</a>
</span>
</small>
<div class="entry">
<?php the_content((__( '» Read more: ', 'greenpark')) . the_title('', '', false)); ?>
</div>
<div class="postmetadata clearfix">
<p class="commentslink alignright">
<a href="<?php comments_link(); ?>" rel="nofollow"><?php comments_number( __( 'No comments', 'greenpark' ), __( '1 comment', 'greenpark' ), __( '% comments', 'greenpark' )); ?> »</a>
</p>
<p class="categories">
<?php _e('Posted in ', 'greenpark' ); the_category(', '); ?>
</p>
<?php the_tags('<p class="tags">Tags: ', ' ', '</p>'); ?>
</div>
<?php get_template_part( 'ads', 'middle' ); ?>
<?php // if(get_option('greenpark2_admanager_disableads') != 'yes') get_template_part( 'ads', 'middle' ); ?>
</div>
<?php endwhile; ?>
<div class="pagination clearfix">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
<div class="alignleft"><?php next_posts_link(__('« Older Entries', 'greenpark')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'greenpark')) ?></div>
<?php } ?>
</div>
<?php else : ?>
<?php get_template_part( 'content', 'missing' ); ?>
<?php endif; ?>
</div> <!-- #content -->
</div> <!-- #container -->
<?php if(get_option('greenpark2_sidebar_disablesidebar') != true) get_sidebar(); ?>
<?php get_footer(); ?>