FEATURE Improving vite Reference
This commit is contained in:
parent
568f4de9a5
commit
ad86d2b086
|
|
@ -14,6 +14,8 @@ $issueNumber = get_field('issue_number', $currentRevueID);
|
||||||
|
|
||||||
$post_type = get_post_type();
|
$post_type = get_post_type();
|
||||||
$hasThumbnail = has_post_thumbnail();
|
$hasThumbnail = has_post_thumbnail();
|
||||||
|
$citeReference = get_field('cite_reference', $currentRevueID);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<section class="post-header post-header--<?php echo $post_type; ?> ">
|
<section class="post-header post-header--<?php echo $post_type; ?> ">
|
||||||
|
|
@ -42,7 +44,7 @@ $hasThumbnail = has_post_thumbnail();
|
||||||
<?php if ($post_type === 'revues') : ?>
|
<?php if ($post_type === 'revues') : ?>
|
||||||
<h1 class="post-header__title"> <?php echo $revueTitle; ?></h1>
|
<h1 class="post-header__title"> <?php echo $revueTitle; ?></h1>
|
||||||
<?php elseif ($post_type === 'articles') : ?>
|
<?php elseif ($post_type === 'articles') : ?>
|
||||||
<h2 class="post-header__title"> <?php echo $revueTitle; ?></h2>
|
<h2 class="post-header__title"> <?php echo get_the_title(); ?></h2>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="post-details">
|
<div class="post-details">
|
||||||
|
|
@ -62,7 +64,7 @@ $hasThumbnail = has_post_thumbnail();
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="socials-buttons">
|
<div class="socials-buttons">
|
||||||
<button class="socials-buttons__button socials-buttons__button--cite">
|
<button class="socials-buttons__button socials-buttons__button--cite" disabled="<?php echo empty($citeReference) ? 'true' : 'false'; ?>" title="<?php echo empty($citeReference) ? 'Citation non disponible' : 'Copier la citation'; ?>">
|
||||||
<img src="<?php echo get_template_directory_uri(); ?>/resources/img/icons/carhop-citer-article.svg" alt="">
|
<img src="<?php echo get_template_directory_uri(); ?>/resources/img/icons/carhop-citer-article.svg" alt="">
|
||||||
Citer
|
Citer
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user