diff --git a/resources/css/components/article-revues-toolbar.css b/resources/css/components/article-revues-toolbar.css index 7216ab7..c47da8e 100644 --- a/resources/css/components/article-revues-toolbar.css +++ b/resources/css/components/article-revues-toolbar.css @@ -3,7 +3,7 @@ @apply col-span-2 container mx-auto; .tablist { - @apply flex gap-12 border-b border-primary; + @apply flex items-center gap-12 border-b border-primary; button { @apply text-xl mt-8 nunito pb-4 flex items-center gap-4; .icon { @@ -20,5 +20,9 @@ @apply text-black opacity-40; } } + + a.cta--download-pdf { + @apply ml-auto; + } } } diff --git a/template-parts/articles/article-toolbar.php b/template-parts/articles/article-toolbar.php index 34ce96e..0903540 100644 --- a/template-parts/articles/article-toolbar.php +++ b/template-parts/articles/article-toolbar.php @@ -5,7 +5,8 @@ $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; ?> @@ -35,5 +36,12 @@ $hasAuthors = isset($authors) && is_array($authors) && count($authors) > 0; Informations + + + + + PDF + + \ No newline at end of file