|
1 <?php get_header(); ?> |
|
2 <?php |
|
3 $options = get_option('inove_options'); |
|
4 if (function_exists('wp_list_comments')) { |
|
5 add_filter('get_comments_number', 'comment_count', 0); |
|
6 } |
|
7 ?> |
|
8 |
|
9 <?php if (is_search()) : ?> |
|
10 <div class="boxcaption"><h3><?php _e('Search Results', 'inove'); ?></h3></div> |
|
11 <div class="box"><?php printf( __('Keyword: ‘%1$s’', 'inove'), wp_specialchars($s, 1) ); ?></div> |
|
12 |
|
13 <?php else : ?> |
|
14 <div class="boxcaption"><h3><?php _e('Archive', 'inove'); ?></h3></div> |
|
15 <div class="box"> |
|
16 <?php |
|
17 // If this is a category archive |
|
18 if (is_category()) { |
|
19 printf( __('Archive for the ‘%1$s’ Category', 'inove'), single_cat_title('', false) ); |
|
20 // If this is a tag archive |
|
21 } elseif (is_tag()) { |
|
22 printf( __('Posts Tagged ‘%1$s’', 'inove'), single_tag_title('', false) ); |
|
23 // If this is a daily archive |
|
24 } elseif (is_day()) { |
|
25 printf( __('Archive for %1$s', 'inove'), get_the_time(__('F jS, Y', 'inove')) ); |
|
26 // If this is a monthly archive |
|
27 } elseif (is_month()) { |
|
28 printf( __('Archive for %1$s', 'inove'), get_the_time(__('F, Y', 'inove')) ); |
|
29 // If this is a yearly archive |
|
30 } elseif (is_year()) { |
|
31 printf( __('Archive for %1$s', 'inove'), get_the_time(__('Y', 'inove')) ); |
|
32 // If this is an author archive |
|
33 } elseif (is_author()) { |
|
34 _e('Author Archive', 'inove'); |
|
35 // If this is a paged archive |
|
36 } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { |
|
37 _e('Blog Archives', 'inove'); |
|
38 } |
|
39 ?> |
|
40 </div> |
|
41 <?php endif; ?> |
|
42 |
|
43 <?php if (have_posts()) : while (have_posts()) : the_post(); update_post_caches($posts); ?> |
|
44 <div class="post" id="post-<?php the_ID(); ?>"> |
|
45 <h2><a class="title" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
|
46 <div class="info"> |
|
47 <span class="date"><?php the_time(__('F jS, Y', 'inove')) ?></span> |
|
48 <?php if ($options['author']) : ?><span class="author"><?php the_author_posts_link(); ?></span><?php endif; ?> |
|
49 <?php edit_post_link(__('Edit', 'inove'), '<span class="editpost">', '</span>'); ?> |
|
50 <span class="comments"><?php comments_popup_link(__('No comments', 'inove'), __('1 comment', 'inove'), __('% comments', 'inove'), '', __('Comments off', 'inove')); ?></span> |
|
51 <div class="fixed"></div> |
|
52 </div> |
|
53 <div class="content"> |
|
54 <?php the_content(__('Read more...', 'inove')); ?> |
|
55 <div class="fixed"></div> |
|
56 </div> |
|
57 <div class="under"> |
|
58 <?php if ($options['categories']) : ?><span class="categories"><?php _e('Categories: ', 'inove'); ?></span><span><?php the_category(', '); ?></span><?php endif; ?> |
|
59 <?php if ($options['tags']) : ?><span class="tags"><?php _e('Tags: ', 'inove'); ?></span><span><?php the_tags('', ', ', ''); ?></span><?php endif; ?> |
|
60 </div> |
|
61 </div> |
|
62 <?php endwhile; else : ?> |
|
63 <div class="errorbox"> |
|
64 <?php _e('Sorry, no posts matched your criteria.', 'inove'); ?> |
|
65 </div> |
|
66 <?php endif; ?> |
|
67 |
|
68 <div id="pagenavi"> |
|
69 <?php if(function_exists('wp_pagenavi')) : ?> |
|
70 <?php wp_pagenavi() ?> |
|
71 <?php else : ?> |
|
72 <span class="newer"><?php previous_posts_link(__('Newer Entries', 'inove')); ?></span> |
|
73 <span class="older"><?php next_posts_link(__('Older Entries', 'inove')); ?></span> |
|
74 <?php endif; ?> |
|
75 <div class="fixed"></div> |
|
76 </div> |
|
77 |
|
78 <?php get_footer(); ?> |