2020-12-30 19:04:58 +01:00
|
|
|
<?php get_header(); ?> <!-- ouvrir header,php -->
|
|
|
|
<main class="col-md-8">
|
|
|
|
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
|
2020-12-30 22:42:54 +01:00
|
|
|
|
|
|
|
<article class="article" id="post-<?php the_ID(); ?>">
|
|
|
|
<h1 class="page-title"><?php the_title(); ?></h1>
|
|
|
|
|
|
|
|
<div class="article-entry">
|
2020-12-30 19:04:58 +01:00
|
|
|
<?php the_content(); ?>
|
|
|
|
</div>
|
2020-12-30 22:42:54 +01:00
|
|
|
|
|
|
|
<section class="card card-noheader">
|
|
|
|
<div class="author-area">
|
|
|
|
<? echo get_avatar( get_the_author_meta('user_email'), $size = '120'); ?>
|
|
|
|
<div class="author-metadata">
|
|
|
|
<div class="author-pseudo">Écrit par <a href="https://kazhnuz.space"><?php the_author() ?></a></div>
|
|
|
|
<small class="author-date">Le <?php the_time('l j F Y à H:i') ?></small>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-31 11:36:38 +01:00
|
|
|
<?php
|
|
|
|
$custom_fields = get_post_custom();
|
|
|
|
$my_custom_field = $custom_fields['description'];
|
|
|
|
if ($my_custom_field != null) {
|
|
|
|
foreach ( $my_custom_field as $key => $value ) {
|
|
|
|
echo " <div class='card-body'> " . $value . "</div>";
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2020-12-31 08:45:00 +01:00
|
|
|
<div class="article-category">
|
2020-12-30 22:42:54 +01:00
|
|
|
<?php $categories = get_the_category();
|
2020-12-31 08:45:00 +01:00
|
|
|
foreach( $categories as $category ) {
|
|
|
|
echo "<a href= '" . esc_url( get_category_link( $category->term_id ) ) . "' class='btn-small btn-info'><i class='fa fa-folder'></i> " . $category->cat_name . "</a>";
|
|
|
|
} ?>
|
|
|
|
<?php $tags = get_the_tags();
|
|
|
|
if ($tags) {
|
|
|
|
foreach( $tags as $tag ) {
|
|
|
|
echo "<a href= '" . esc_url( get_tag_link( $tag->term_id ) ) . "' class='btn-small btn-primary'><i class='fa fa-tag'></i> " . $tag->name . "</a>";
|
|
|
|
}
|
|
|
|
} ?>
|
|
|
|
|
|
|
|
</div>
|
2020-12-30 22:42:54 +01:00
|
|
|
</section>
|
|
|
|
|
2020-12-30 19:04:58 +01:00
|
|
|
</article>
|
2020-12-30 22:42:54 +01:00
|
|
|
|
2020-12-30 19:04:58 +01:00
|
|
|
<?php comments_template(); ?>
|
2020-12-30 22:42:54 +01:00
|
|
|
|
2020-12-30 19:04:58 +01:00
|
|
|
<?php endwhile; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</main>
|
|
|
|
<?php get_sidebar(); ?>
|
|
|
|
<?php get_footer(); ?>
|