Compare commits
No commits in common. "715b542826512fbeca9a5edcfaf004672fa8448a" and "a5447bd40e93de9fe34e1f1f8e9ea1ce55eddf8b" have entirely different histories.
715b542826
...
a5447bd40e
|
|
@ -10,7 +10,7 @@
|
||||||
<?php wp_head(); ?>
|
<?php wp_head(); ?>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body <?php body_class("front-end"); ?>>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
do_action('tailpress_site_before');
|
do_action('tailpress_site_before');
|
||||||
global $post;
|
global $post;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
@apply col-span-2 container mx-auto;
|
@apply col-span-2 container mx-auto;
|
||||||
|
|
||||||
.tablist {
|
.tablist {
|
||||||
@apply flex items-center gap-12 border-b border-primary;
|
@apply flex gap-12 border-b border-primary;
|
||||||
button {
|
button {
|
||||||
@apply text-xl mt-8 nunito pb-4 flex items-center gap-4;
|
@apply text-xl mt-8 nunito pb-4 flex items-center gap-4;
|
||||||
.icon {
|
.icon {
|
||||||
|
|
@ -20,9 +20,5 @@
|
||||||
@apply text-black opacity-40;
|
@apply text-black opacity-40;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a.cta--download-pdf {
|
|
||||||
@apply ml-auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,7 @@ $hasReferences = isset($reference) && is_array($reference) && count($reference)
|
||||||
$authors = get_field('authors', $id);
|
$authors = get_field('authors', $id);
|
||||||
$hasAuthors = isset($authors) && is_array($authors) && count($authors) > 0;
|
$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="">
|
<img class="icon" src="<?php echo get_stylesheet_directory_uri(); ?>/resources/img/icons/carhop-note-biographique.svg" alt="">
|
||||||
Informations
|
Informations
|
||||||
</button>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
Loading…
Reference in New Issue
Block a user