1
|
1 |
<?php get_header(); ?> |
|
2 |
<?php $options = get_option('inove_options'); ?> |
|
3 |
|
|
4 |
<?php if (have_posts()) : the_post(); update_post_caches($posts); ?> |
|
5 |
|
|
6 |
<div id="postpath"> |
|
7 |
<a title="<?php _e('Go to homepage', 'inove'); ?>" href="<?php echo get_settings('home'); ?>/"><?php _e('Home', 'inove'); ?></a> |
|
8 |
> <?php the_category(', '); ?> |
|
9 |
> <?php the_title(); ?> |
|
10 |
</div> |
|
11 |
|
|
12 |
<div class="post" id="post-<?php the_ID(); ?>"> |
|
13 |
<h2><?php the_title(); ?></h2> |
|
14 |
<div class="info"> |
|
15 |
<span class="date"><?php the_time(__('F jS, Y', 'inove')) ?></span> |
|
16 |
<?php if ($options['author']) : ?><span class="author"><?php the_author_posts_link(); ?></span><?php endif; ?> |
|
17 |
<?php edit_post_link(__('Edit', 'inove'), '<span class="editpost">', '</span>'); ?> |
|
18 |
<?php if ($comments || comments_open()) : ?> |
|
19 |
<span class="addcomment"><a href="#respond"><?php _e('Leave a comment', 'inove'); ?></a></span> |
|
20 |
<span class="comments"><a href="#comments"><?php _e('Go to comments', 'inove'); ?></a></span> |
|
21 |
<?php endif; ?> |
|
22 |
<div class="fixed"></div> |
|
23 |
</div> |
|
24 |
<div class="content"> |
|
25 |
<?php the_content(); ?> |
|
26 |
<div class="fixed"></div> |
|
27 |
</div> |
|
28 |
<div class="under"> |
|
29 |
<?php if ($options['categories']) : ?><span class="categories"><?php _e('Categories: ', 'inove'); ?></span><span><?php the_category(', '); ?></span><?php endif; ?> |
|
30 |
<?php if ($options['tags']) : ?><span class="tags"><?php _e('Tags: ', 'inove'); ?></span><span><?php the_tags('', ', ', ''); ?></span><?php endif; ?> |
|
31 |
</div> |
|
32 |
</div> |
|
33 |
|
|
34 |
<!-- related posts START --> |
|
35 |
<?php |
|
36 |
// when related posts with title |
|
37 |
if(function_exists('wp23_related_posts')) { |
|
38 |
echo '<div id="related_posts">'; |
|
39 |
wp23_related_posts(); |
|
40 |
echo '</div>'; |
|
41 |
echo '<div class="fixed"></div>'; |
|
42 |
} |
|
43 |
/* |
|
44 |
// when related posts without title |
|
45 |
if(function_exists('wp23_related_posts')) { |
|
46 |
echo '<div class="boxcaption">'; |
|
47 |
echo '<h3>Related Posts</h3>'; |
|
48 |
echo '</div>'; |
|
49 |
echo '<div id="related_posts" class="box">'; |
|
50 |
wp23_related_posts(); |
|
51 |
echo '</div>'; |
|
52 |
echo '<div class="fixed"></div>'; |
|
53 |
} |
|
54 |
*/ |
|
55 |
?> |
|
56 |
<!-- related posts END --> |
|
57 |
|
|
58 |
<?php include('templates/comments.php'); ?> |
|
59 |
|
|
60 |
<div id="postnavi"> |
|
61 |
<span class="prev"><?php next_post_link('%link') ?></span> |
|
62 |
<span class="next"><?php previous_post_link('%link') ?></span> |
|
63 |
<div class="fixed"></div> |
|
64 |
</div> |
|
65 |
|
|
66 |
<?php else : ?> |
|
67 |
<div class="errorbox"> |
|
68 |
<?php _e('Sorry, no posts matched your criteria.', 'inove'); ?> |
|
69 |
</div> |
|
70 |
<?php endif; ?> |
|
71 |
|
|
72 |
<?php get_footer(); ?> |