diff --git a/resources/css/app.css b/resources/css/app.css index 479a23f..afb3d22 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -70,6 +70,6 @@ @import './pages/demo-components.css'; @import './pages/template-archive-publications.css'; @import './pages/template-archive-conseils.css'; -@import './pages/template-archive-questions.css'; +@import './pages/template-archive-questions-(faq).css'; @import './pages/single-conseils.css'; -@import './pages/questions-thematiques-(faq).css'; +@import './pages/single-questions-(taxonomy-term).css'; diff --git a/resources/css/editor-content/color-taxonomy-scheme.css b/resources/css/editor-content/color-taxonomy-scheme.css index 28d2e7e..9cfaaff 100644 --- a/resources/css/editor-content/color-taxonomy-scheme.css +++ b/resources/css/editor-content/color-taxonomy-scheme.css @@ -52,6 +52,10 @@ body.acoustique, .homegrade-blocks-lien-chapitre__cta:hover { @apply filter-acoustique-coproprietes; } + /* page single questions */ + .thematiques-subtaxonomy-links .cta { + @apply text-acoustique-coproprietes border-acoustique-coproprietes; + } } /* PETITES COPROPRIÉTÉS — SPECIFIC */ @@ -129,6 +133,10 @@ body.energies, .homegrade-blocks-focused-thematique__figcaption-toggle img { @apply filter-energies-urbanisme; } + /* page single questions */ + .thematiques-subtaxonomy-links .cta { + @apply text-energies-urbanisme border-energies-urbanisme; + } } /* URBANISME — SPECIFIC */ @@ -205,6 +213,10 @@ body.isolation, .homegrade-blocks-focused-thematique__figcaption-toggle img { @apply filter-isolation-quotidien; } + /* page single questions */ + .thematiques-subtaxonomy-links .cta { + @apply text-isolation-quotidien border-isolation-quotidien; + } } /* AU QUOTIDIEN — SPECIFIC */ @@ -278,6 +290,11 @@ body.patrimoine, .homegrade-blocks-focused-thematique__figcaption-toggle img { @apply filter-patrimoine-renovation; } + + /* page single questions */ + .thematiques-subtaxonomy-links .cta { + @apply text-patrimoine-renovation border-patrimoine-renovation; + } } body.renovation, @@ -351,6 +368,11 @@ body.renovation-circulaire, .homegrade-blocks-focused-thematique__figcaption-toggle img { @apply filter-patrimoine-renovation; } + + /* page single questions */ + .thematiques-subtaxonomy-links .cta { + @apply text-location-renovation-circulaire border-location-renovation-circulaire; + } } /* RENOVATION CIRCULAIRE — SPECIFIC */ diff --git a/resources/css/pages/questions-thematiques-(faq).css b/resources/css/pages/single-questions-(taxonomy-term).css similarity index 78% rename from resources/css/pages/questions-thematiques-(faq).css rename to resources/css/pages/single-questions-(taxonomy-term).css index aff731d..d5c4352 100644 --- a/resources/css/pages/questions-thematiques-(faq).css +++ b/resources/css/pages/single-questions-(taxonomy-term).css @@ -1,4 +1,19 @@ .post-question-page { + .thematiques-subtaxonomy-links { + @apply pb-12; + ul { + @apply flex flex-wrap gap-2; + + .cta--button { + @apply px-4 py-2; + } + .cta--button:not([aria-current='location']) { + /* filter: grayscale(1) opacity(0.8); */ + @apply text-gray-dark border-gray-dark; + } + } + } + ul.checkboxes { list-style: none; margin: 0; diff --git a/resources/css/pages/template-archive-questions.css b/resources/css/pages/template-archive-questions-(faq).css similarity index 92% rename from resources/css/pages/template-archive-questions.css rename to resources/css/pages/template-archive-questions-(faq).css index b57e2b2..ec84736 100644 --- a/resources/css/pages/template-archive-questions.css +++ b/resources/css/pages/template-archive-questions-(faq).css @@ -1,3 +1,4 @@ + .card-large-content-container { @apply pt-40 mt-12 mb-0; diff --git a/taxonomy-thematiques.php b/taxonomy-thematiques.php index 57dbee4..47ca8c4 100644 --- a/taxonomy-thematiques.php +++ b/taxonomy-thematiques.php @@ -9,8 +9,10 @@ parent === 0; $mainThematique = getMainThematique($currentThematique); $thematiqueColorSlug = getThematiqueFamilySlug($mainThematique->slug); + $sousThematiques = get_terms(array( 'child_of' => $mainThematique->term_id, 'taxonomy' => 'thematiques', @@ -19,6 +21,20 @@ $sousThematiques = get_terms(array( ?> + 'questions', + 'posts_per_page' => -1, + 'tax_query' => array( + array( + 'taxonomy' => 'thematiques', + 'field' => 'term_id', + 'terms' => $currentThematique->term_id, + ) + ) +); +$relatedTaxQuestions = new WP_Query($query_args); +?>