-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
33 lines (26 loc) · 881 Bytes
/
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
<?php get_header(); ?>
<?php while (have_posts()): the_post(); ?>
<section id="page-headings">
<h2><?php the_title(); ?></h2>
<?php
$subtitle = get_post_meta($post->ID, 'subtitle', true);
if ($subtitle): ?><h3><?php echo $subtitle; ?></h3><?php endif; ?>
</section>
</header>
<div id="page-content">
<aside>
<?php zcraft_inject_widgets('sidebar-post', 'complementary'); ?>
</aside>
<section id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php get_template_part('content', get_post_format()); ?>
<footer>
<p>Billet publié le <?=the_date(); ?> par <?=the_author_link(); ?>.</p>
</footer>
<?php
if (comments_open() || get_comments_number())
comments_template();
?>
</section>
</div>
<?php endwhile; ?>
<?php get_footer(); ?>