-
Notifications
You must be signed in to change notification settings - Fork 1
/
single.php
49 lines (38 loc) · 1.58 KB
/
single.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
<?php
/**
* @package WordPress
* @subpackage Greyomatic
*/
?>
<?php
get_header();
$comments_nr = fb_get_comment_type_count('comment');
$trackbacks_nr = fb_get_comment_type_count('pings');
$post_tags = get_the_tags($post->ID);
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class('article single'); ?> id="post-<?php the_ID(); ?>">
<div class="date"><div class="postdate"><span class="day"><?php the_time('d'); ?></span><span class="month"><?php the_time('M'); ?></span></div></div>
<div class="comments-box"><?php echo $comments_nr; ?></div>
<h2 class="permalink"><a title="<?php the_title(); ?>" href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<?php the_content(__('Continue reading »','greyomatic')); ?>
<div class="clear"></div>
<div class="post-info"><?php _e('Posted on','greyomatic'); ?> <u><?php the_time('d/m/Y'); ?></u> by <u><?php the_author(); ?></u> in <?php the_category(', '); ?></div>
<?php if($post_tags): ?><div class="post-info"><?php the_tags(); ?></div><?php endif; ?>
</div>
<?php endwhile; else: ?>
<div class="article">
<h2><?php _e('Not Found','greyomatic'); ?></h2>
<p><?php _e('Sorry, but you are looking for something that isn\'t here.','greyomatic'); ?></p>
</div>
<?php endif; ?>
<?php comments_template(); ?>
</div>
<?php get_sidebar(); ?>
<div class="clear"></div>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
</div><!-- /.round -->
<?php get_footer(); ?>