28 lines
660 B
PHP
28 lines
660 B
PHP
<?php
|
|
$articleID = $args['ID'];
|
|
$articleContent = get_the_content($articleID);
|
|
$articleTitle = get_the_title($articleID);
|
|
$citeReference = get_field('cite_reference', $articleID);
|
|
$tags = get_the_terms($articleID, 'etiquettes');
|
|
|
|
?>
|
|
|
|
<article class="article-content">
|
|
<?php if ($tags) : ?>
|
|
<ul class="article-tags-list">
|
|
<?php foreach ($tags as $tag) : ?>
|
|
<li class="article-tag">
|
|
<?php echo $tag->name; ?>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
<?php endif; ?>
|
|
|
|
<?php the_content(); ?>
|
|
|
|
<?php if ($citeReference) : ?>
|
|
<p id="cite-reference">
|
|
<?php echo $citeReference; ?>
|
|
</p>
|
|
<?php endif; ?>
|
|
</article>
|