-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
62 lines (48 loc) · 1.6 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
50
51
52
53
54
55
56
57
58
59
60
61
<?php get_header() ?>
<div id="singlePost">
<div class="se-pre-con"></div>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), array(400,400));
$url = $thumb['0'];
$num_comments = get_comments_number();
?>
<div class="colonnaArticoli">
<figure class="evidenza"><img alt="In evidenza: <?php echo the_title() ?>" src="<?php echo $url ?>"></figure>
<article><div class="data"><?php
foreach((get_the_category()) as $category) {
echo '<span class="' . $category->cat_ID . '">' . $category->cat_name . '</span>';
}
?>
<time datetime="<?php echo get_the_date('Y-m-d'); ?>"><?php echo get_the_date(); ?></time>
</div>
<div class="singleTitle"><h2><span><?php the_title() ?></span></h2></div>
<div class="post">
<?php the_content() ?></div>
</article>
<div class="asideBlocks">
<aside class="tagSide">
<span class="tagSegnaposto">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-tags fa-stack-1x fa-inverse"></i>
</span></span><?php
$t = $post->ID;
tagz($t)
?>
<?php get_template_part('correlati') ?>
</aside>
<aside class="commentSide">
<span class="commentSegnaposto"><span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-comment fa-stack-1x fa-inverse"></i>
</span></span><?php comments_template(); ?>
</aside>
</div>
<div class="sidebar"><?php get_sidebar('right') ?>
</div>
<div class="clearfix"></div>
</div> <!-- colonnaArticoli -->
<?php endwhile; endif; ?>
<?php get_footer() ?>