FEATURE Handling revue download button
This commit is contained in:
parent
c742526b81
commit
b93ec0f0c4
|
|
@ -1,6 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
$id = get_the_ID();
|
||||||
|
$pdf_version = get_field('pdf_version', $id);
|
||||||
|
$pdf_url = isset($pdf_version) && !empty($pdf_version['url']) ? $pdf_version['url'] : null;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
@ -19,5 +20,14 @@
|
||||||
<img class="icon" src="<?php echo get_stylesheet_directory_uri(); ?>/resources/img/icons/carhop-note-biographique.svg" alt="">
|
<img class="icon" src="<?php echo get_stylesheet_directory_uri(); ?>/resources/img/icons/carhop-note-biographique.svg" alt="">
|
||||||
Informations
|
Informations
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<div class="toolbar-actions">
|
||||||
|
<?php if ($pdf_url) : ?>
|
||||||
|
<a href="<?php echo $pdf_url; ?>" target="_blank" class="cta cta--classic cta--has-icon cta--rounded cta--download-pdf ">
|
||||||
|
<img class="icon" src="<?php echo get_template_directory_uri(); ?>/resources/img/icons/carhop-fleche-telecharger.svg" alt="">
|
||||||
|
PDF
|
||||||
|
</a>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
Loading…
Reference in New Issue
Block a user