diff --git a/resources/css/components/publications-grid-array.css b/resources/css/components/publications-grid-array.css index c9ad14a..ed70f19 100644 --- a/resources/css/components/publications-grid-array.css +++ b/resources/css/components/publications-grid-array.css @@ -20,6 +20,9 @@ &__thematique { @apply col-span-5 md:col-span-2 text-center w-fit md:place-self-center; } + &__thematiques-tags { + @apply col-span-5 md:col-span-2 md:place-self-center flex flex-col justify-center gap-4; + } &__edition { @apply col-span-6 md:col-span-2 md:text-center; } diff --git a/template-components/archives/fiche-info-rows.php b/template-components/archives/fiche-info-rows.php index c379299..334d4d4 100644 --- a/template-components/archives/fiche-info-rows.php +++ b/template-components/archives/fiche-info-rows.php @@ -8,9 +8,13 @@ $fichesInfosPosts = $args['fichesInfosPosts']; $ficheInfoPdf = get_field('brochure_pdf', get_the_ID()) ?? null;; $ficheInfoEdition = get_field('brochure_edition', get_the_ID()) ?? null; - $thematique = get_the_terms(get_the_ID(), 'thematiques')[0] ?? null; - $rootThematic = getParentThematique($thematique) ?? null; + $thematiques = get_the_terms(get_the_ID(), 'thematiques'); + + $mainThematique = get_the_terms(get_the_ID(), 'thematiques')[0] ?? null; + $rootThematic = getParentThematique($mainThematique) ?? null; $rootThematicIcon = get_field('taxonomy_pictures', "thematiques_" . $rootThematic->term_id)['icon'] ?? null; + + ?>
  • @@ -18,7 +22,19 @@ $fichesInfosPosts = $args['fichesInfosPosts'];

    -

    name ?>

    + +
    + + + term_id)['icon'] ?? null; + ?> +

    name ?>

    + +
    + +