-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
52 lines (48 loc) · 2.01 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
<?php get_header(); ?>
<?php
$options = get_option('linove_options');
if (function_exists('wp_list_comments')) {
add_filter('get_comments_number', 'comment_count', 0);
}
?>
<?php if ($options['notice'] && $options['notice_content']) : ?>
<div class="post" id="notice">
<div class="content">
<?php echo($options['notice_content']); ?>
<div class="fixed"></div>
</div>
</div>
<?php endif; ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); update_post_caches($posts); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a class="title" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="info">
<span class="date"><?php the_time(__('F jS, Y', 'linove')) ?></span>
<?php if ($options['author']) : ?><span class="author"><?php the_author_posts_link(); ?></span><?php endif; ?>
<?php edit_post_link(__('Edit', 'linove'), '<span class="editpost">', '</span>'); ?>
<span class="comments"><?php comments_popup_link(__('No comments', 'linove'), __('1 comment', 'linove'), __('% comments', 'linove'), '', __('Comments off', 'linove')); ?></span>
<div class="fixed"></div>
</div>
<div class="content">
<?php the_content(__('Read more...', 'linove')); ?>
<div class="fixed"></div>
</div>
<div class="under">
<?php if ($options['categories']) : ?><span class="categories"><?php _e('Categories: ', 'linove'); ?></span><span><?php the_category(', '); ?></span><?php endif; ?>
<?php if ($options['tags']) : ?><span class="tags"><?php _e('Tags: ', 'linove'); ?></span><span><?php the_tags('', ', ', ''); ?></span><?php endif; ?>
</div>
</div>
<?php endwhile; else : ?>
<div class="errorbox">
<?php _e('Sorry, no posts matched your criteria.', 'linove'); ?>
</div>
<?php endif; ?>
<div id="pagenavi">
<?php if(function_exists('wp_pagenavi')) : ?>
<?php wp_pagenavi() ?>
<?php else : ?>
<?php pagination($query_string); ?>
<?php endif; ?>
<div class="fixed"></div>
</div>
<?php get_footer(); ?>