-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
42 lines (34 loc) · 1.21 KB
/
page.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
<?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">
<?php if (!empty($url)) : ?>
<figure class="evidenza"><img alt="In evidenza: <?php echo the_title() ?>" src="<?php echo $url ?>"></figure>
<?php endif; ?>
<article><div><div class="data">
<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="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() ?>