renaming and deleting borchure publications files
This commit is contained in:
parent
1cec7773ac
commit
4fb1ecf603
|
|
@ -1,26 +0,0 @@
|
||||||
.publications-grid {
|
|
||||||
@apply max-w-screen-xl mx-auto py-12 mb-12;
|
|
||||||
|
|
||||||
&__row {
|
|
||||||
@apply grid grid-cols-11 gap-8;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
&__row + &__row {
|
|
||||||
@apply mt-8 border-t border-gray pt-8;
|
|
||||||
}
|
|
||||||
&__cover {
|
|
||||||
@apply w-20 rounded-lg col-span-1;
|
|
||||||
}
|
|
||||||
&__title {
|
|
||||||
@apply col-span-4 font-bold;
|
|
||||||
}
|
|
||||||
&__thematique {
|
|
||||||
@apply col-span-2 text-center;
|
|
||||||
}
|
|
||||||
&__edition {
|
|
||||||
@apply col-span-2 text-center;
|
|
||||||
}
|
|
||||||
&__button {
|
|
||||||
@apply col-span-2 flex justify-end;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
|
|
||||||
$brochurePdf = get_field('brochure_pdf', $args['ID']);
|
|
||||||
$brochureCover = get_field('brochure_cover_image', $brochurePdf['ID']);
|
|
||||||
$brochureEdition = get_field('brochure_edition', $args['ID']);
|
|
||||||
$thematique = get_the_terms($args['ID'], 'thematiques')[0];
|
|
||||||
$rootThematic = getParentThematique($thematique);
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
|
|
||||||
<li class="publications-grid__row">
|
|
||||||
<?php if ($brochureCover) : ?>
|
|
||||||
<img class="publications-grid__cover" src="<?php echo $brochureCover['sizes']['medium'] ?>" />
|
|
||||||
<?php endif; ?>
|
|
||||||
<h2 class="publications-grid__title"><?php echo $brochurePdf['title'] ?></h2>
|
|
||||||
<p class="publications-grid__thematique"><?php echo $rootThematic->name ?></p>
|
|
||||||
<?php if ($brochureEdition) : ?>
|
|
||||||
<p class="publications-grid__edition"><?php echo $brochureEdition ?></p>
|
|
||||||
<?php endif; ?>
|
|
||||||
<div class="publications-grid__button">
|
|
||||||
<a href="<?php echo $brochurePdf['url'] ?>" class=" cta cta--secondary cta--button" href="#" target="_blank"><?php echo __("Consulter le pdf", "homegrade-theme__texte-fonctionnel__publications-archive") ?></a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
Loading…
Reference in New Issue
Block a user