improvement: amelioration du theme de liste de post
This commit is contained in:
parent
e8fa8693d1
commit
06ef777f34
1 changed files with 11 additions and 18 deletions
|
@ -1,24 +1,17 @@
|
||||||
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
|
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
|
||||||
<article class="list-article" id="post-<?php the_ID(); ?>">
|
<div class="card card-primary" id="post-<?php the_ID(); ?>">
|
||||||
<aside class="list-article-thumbnail">
|
<div class="card-header"><h1><?php the_title(); ?></h1></div>
|
||||||
<?php the_post_thumbnail( ); ?>
|
<div class="article-meta">
|
||||||
</aside>
|
<div class="article-category">
|
||||||
|
|
||||||
<div class="list-article-main">
|
|
||||||
<h2 class="list-article-title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>""><?php the_title(); ?></a></h2>
|
|
||||||
<div class="list-article-metadata">
|
|
||||||
<p class="categories">
|
|
||||||
<?php $category = get_the_category();
|
<?php $category = get_the_category();
|
||||||
echo"<a href= '" . esc_url( get_category_link( $category[0]->term_id ) ) . "' class='badge badge-blue badge-category'>" . $category[0]->cat_name . "</a>"; ?>
|
echo"<a href= '" . esc_url( get_category_link( $category[0]->term_id ) ) . "' class='article-category'>" . $category[0]->cat_name . "</a>"; ?>
|
||||||
</p>
|
|
||||||
<p class="author-time"><?php the_time('j F Y') ?> par <?php the_author() ?></p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="list-article-content"><?php the_excerpt(); ?></div>
|
<time itemprop="datePublished"><em><?php the_time('j F Y') ?></em></time>
|
||||||
|
</div>
|
||||||
|
<?php the_excerpt(); ?>
|
||||||
|
<p class="align-center"> <a href="<?php the_permalink(); ?>" title="<?php the_title();?>" class="btn btn-readmore">Lire l'article</a> </p>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
|
||||||
|
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<div class="navigation">
|
<div class="navigation">
|
||||||
<?php the_posts_pagination(); ?>
|
<?php the_posts_pagination(); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in a new issue