FEATURE Introducing component
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e98f1b71ef
commit
d292fdd51b
19
template-parts/components/posts/post-informations.php
Normal file
19
template-parts/components/posts/post-informations.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
$post_ID = $args['ID'] ?? get_the_ID();
|
||||
$post_parution_date = get_the_date('F Y', $post_ID);
|
||||
$post_updated_date = get_post_meta(get_the_ID(), 'article_modification_date', true);
|
||||
?>
|
||||
|
||||
|
||||
<div class="post-informations">
|
||||
<h3 class="content-tab__title">Informations</h3>
|
||||
|
||||
<div class="issue-informations">
|
||||
<?php if ($post_parution_date) : ?>
|
||||
<div class="issue-parution-date">
|
||||
<h5 class="issue-parution-date__label title-small">Parution</h5>
|
||||
<time class="issue-parution-date__value" datetime="<?php echo $post_parution_date; ?>"><?php echo $post_parution_date ?></time>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user