-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
executable file
·69 lines (56 loc) · 1.86 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
62
63
64
65
66
67
68
69
<?php get_header(); ?>
<section class="content">
<div class="container">
<div class="row">
<div class="col-sm-8 left-content bg-white">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h2 class="text-center">
<?php the_title(); ?>
<br>
<small>Posté le <?php the_date('d/m/Y (h:i a)'); ?> |
Catégorie:
<a href="<?php echo get_category_link(get_the_category()[0]->term_id); ?>">
<?php echo get_the_category()[0]->name ?>
</a>
</small>
</h2>
<div class="row">
<?php
$attr = array(
'class' => 'img-block img-responsive',
'alt' => get_the_title(),
'title' => get_the_title()
);
the_post_thumbnail('ah-banner', $attr ); ?>
</div>
<br>
<?php include 'single-share.php'; ?>
</header><!-- .entry-header -->
<hr>
<div class="entry-content">
<?php the_content(); ?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<hr>
<?php the_tags( '<strong><span class="glyphicon glyphicon-pins"></span>Mots Clés: ', ', ', '</strong>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->
<?php endwhile; // end of the loop. ?>
<div class="row">
<?php dynamic_sidebar('sidebar-below-content'); ?>
</div>
<?php include_once 'related-posts.php'; ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
</section>
<?php get_footer(); ?>