Compare commits

..

No commits in common. "715b542826512fbeca9a5edcfaf004672fa8448a" and "a5447bd40e93de9fe34e1f1f8e9ea1ce55eddf8b" have entirely different histories.

3 changed files with 3 additions and 15 deletions

View File

@ -10,7 +10,7 @@
<?php wp_head(); ?>
</head>
<body <?php body_class("front-end"); ?>>
<body>
<?php
do_action('tailpress_site_before');
global $post;

View File

@ -3,7 +3,7 @@
@apply col-span-2 container mx-auto;
.tablist {
@apply flex items-center gap-12 border-b border-primary;
@apply flex gap-12 border-b border-primary;
button {
@apply text-xl mt-8 nunito pb-4 flex items-center gap-4;
.icon {
@ -20,9 +20,5 @@
@apply text-black opacity-40;
}
}
a.cta--download-pdf {
@apply ml-auto;
}
}
}

View File

@ -5,8 +5,7 @@ $hasReferences = isset($reference) && is_array($reference) && count($reference)
$authors = get_field('authors', $id);
$hasAuthors = isset($authors) && is_array($authors) && count($authors) > 0;
$pdf_version = get_field('pdf_version', $id);
$pdf_url = isset($pdf_version) ? $pdf_version['url'] : null;
?>
@ -36,12 +35,5 @@ $pdf_url = isset($pdf_version) ? $pdf_version['url'] : null;
<img class="icon" src="<?php echo get_stylesheet_directory_uri(); ?>/resources/img/icons/carhop-note-biographique.svg" alt="">
Informations
</button>
<?php if ($pdf_url) : ?>
<a id="tab-6" 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>