handling archives pages
This commit is contained in:
parent
eb9cf5e52e
commit
19027d2d4b
49
archive-brochures.php
Normal file
49
archive-brochures.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<nav class="breadcrumbs_navigation" aria-label="breadcrumbs">
|
||||
<ol>
|
||||
<li><a href="<?php echo home_url() ?>">Home</a></li>
|
||||
<li><a href="<?php echo get_post_type_archive_link('brochures') ?>" aria-current='location'>Publications</a></li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<section class="archives-brochures-header">
|
||||
|
||||
<h1>
|
||||
<?php echo __("Nos publications", "homegrade-theme__texte-fonctionnel__publications-archive-brochures") ?>
|
||||
</h1>
|
||||
<p>
|
||||
<?php echo __("Découvrez toutes nos publications et outils en ligne", "homegrade-theme__texte-fonctionnel__publications-archive-brochures") ?>
|
||||
</p>
|
||||
|
||||
</section>
|
||||
|
||||
<div class="brochures-grid">
|
||||
|
||||
<?php if (have_posts()) : ?>
|
||||
<?php
|
||||
while (have_posts()) :
|
||||
the_post();
|
||||
$brochure_file = get_field('brochure_pdf', get_the_ID());
|
||||
echo '<pre>';
|
||||
print_r($file);
|
||||
echo '</pre>';
|
||||
|
||||
?>
|
||||
|
||||
<?php if ($brochure_file) : ?>
|
||||
<article>
|
||||
<p><?php echo $brochure_file['title'] ?></p>
|
||||
</article>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php endwhile; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
|
|
@ -12,4 +12,100 @@
|
|||
|
||||
#toplevel_page_theme-general-settings {
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
|
||||
}
|
||||
|
||||
/* .wp-block-post-content,
|
||||
.is-root-container {
|
||||
background-color: red !imporatant;
|
||||
}
|
||||
|
||||
.block-editor-block-list__block {
|
||||
background-color: yellow !imporatant; */
|
||||
|
||||
/* } */
|
||||
|
||||
body.acoustique-coproprietes h2,
|
||||
body.acoustique-coproprietes h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(36 94 242 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
body.acoustique-coproprietes ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(36 94 242 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
body.acoustique-coproprietes .homegrade-blocks-highlight {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(223 241 255 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
body.energies-urbanisme h2,
|
||||
body.energies-urbanisme h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(2 126 80 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
body.energies-urbanisme ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(2 126 80 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
body.energies-urbanisme .homegrade-blocks-highlight {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(227 255 240 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
body.isolation-quotidien h2,
|
||||
body.isolation-quotidien h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(194 69 3 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
body.isolation-quotidien ul li::before {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(194 69 3 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
body.isolation-quotidien ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(194 69 3 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
body.isolation-quotidien .homegrade-blocks-highlight {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(255 251 236 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
body.patrimoine-renovation h1,
|
||||
body.patrimoine-renovation h2,
|
||||
body.patrimoine-renovation h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(139 47 247 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
body.patrimoine-renovation ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(139 47 247 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
body.patrimoine-renovation .homegrade-blocks-highlight {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(255 229 253 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
body.location h2,
|
||||
body.location h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(223 0 43 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
body.location ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(223 0 43 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
body.location .homegrade-blocks-highlight {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(254 226 231 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
|
|
|||
479
css/app.css
479
css/app.css
|
|
@ -1132,6 +1132,10 @@ video {
|
|||
}
|
||||
}
|
||||
|
||||
.rounding-radius {
|
||||
border-radius: 22px;
|
||||
}
|
||||
|
||||
/* ########### BASE ############ */
|
||||
|
||||
body:not(.wp-admin) {
|
||||
|
|
@ -1385,7 +1389,7 @@ button:focus {
|
|||
.card-large-content {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 1440px;
|
||||
max-width: 1280px;
|
||||
border-radius: 1.5rem;
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
||||
|
|
@ -1440,6 +1444,10 @@ button:focus {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
.section_titling--left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.section_titling__title {
|
||||
padding-bottom: 0.5rem;
|
||||
font-size: 1.25rem;
|
||||
|
|
@ -1450,6 +1458,11 @@ button:focus {
|
|||
color: rgb(223 30 30 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.section_titling.section_titling--left {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(250 204 21 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.section_titling__subtitle {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
|
@ -1548,6 +1561,7 @@ button:focus {
|
|||
}
|
||||
|
||||
.search-module__search-form__input {
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
flex-grow: 1;
|
||||
|
|
@ -1608,6 +1622,246 @@ button:focus {
|
|||
text-underline-offset: 4px;
|
||||
}
|
||||
|
||||
.thematiques-post-viewer {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 0px;
|
||||
max-width: 1280px;
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(47 1 84 / var(--tw-bg-opacity));
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 3rem;
|
||||
text-align: center;
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(255 255 255 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.thematiques-post-viewer__title {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
}
|
||||
|
||||
.thematiques-post-viewer__description {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 782px;
|
||||
padding-top: 1rem;
|
||||
font-size: 2.25rem;
|
||||
line-height: 2.5rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.thematiques-post-viewer__terms-grid {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
display: grid;
|
||||
max-width: 782px;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
.thematiques-post-viewer__terms-grid .term {
|
||||
border-radius: 1.5rem;
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
padding-top: 1.5rem;
|
||||
padding-bottom: 1.5rem;
|
||||
font-weight: 700;
|
||||
line-height: 1rem;
|
||||
}
|
||||
|
||||
.thematiques-post-viewer__terms-grid .term img {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 80px;
|
||||
border-radius: 0.5rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.breadcrumbs_navigation {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 1280px;
|
||||
padding-top: 1.5rem;
|
||||
padding-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.breadcrumbs_navigation ol {
|
||||
display: flex;
|
||||
list-style-type: none;
|
||||
align-items: center;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.breadcrumbs_navigation ol li + li:before {
|
||||
margin-left: 0.25rem;
|
||||
margin-right: 0.5rem;
|
||||
display: inline-block;
|
||||
content: '';
|
||||
border-right: 2.5px solid #000;
|
||||
border-bottom: 2.5px solid #000;
|
||||
border-radius: 2px;
|
||||
height: 8px;
|
||||
width: 8px;
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
|
||||
.archive-page-header {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 0px;
|
||||
max-width: 1280px;
|
||||
border-radius: 1rem;
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(47 1 84 / var(--tw-bg-opacity));
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 3rem;
|
||||
text-align: center;
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(255 255 255 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.archive-page-header__title {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
}
|
||||
|
||||
.archive-page-header__description {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 782px;
|
||||
padding-top: 1rem;
|
||||
font-size: 2.25rem;
|
||||
line-height: 2.5rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* POUR TEMPLATE ARCHIVE CONSEILS ET ARCHIVE QUESTIONS */
|
||||
|
||||
.archive-page-header__terms-grid {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
display: grid;
|
||||
max-width: 782px;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
.archive-page-header__terms-grid .term {
|
||||
border-radius: 1.5rem;
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
padding-top: 1.5rem;
|
||||
padding-bottom: 1.5rem;
|
||||
font-weight: 700;
|
||||
line-height: 1rem;
|
||||
}
|
||||
|
||||
.archive-page-header__terms-grid .term img {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 80px;
|
||||
border-radius: 0.5rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* POUR PUBLICATIONS */
|
||||
|
||||
.archive-page-header__search-grid {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
display: grid;
|
||||
max-width: 782px;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
.archive-page-header__search-grid .term {
|
||||
border-radius: 1.5rem;
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
padding-top: 1.5rem;
|
||||
padding-bottom: 1.5rem;
|
||||
font-weight: 700;
|
||||
line-height: 1rem;
|
||||
}
|
||||
|
||||
.archive-page-header__search-grid .term img {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 80px;
|
||||
border-radius: 0.5rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.brochures-grid {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-bottom: 3rem;
|
||||
max-width: 1280px;
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
|
||||
.brochures-grid__row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(11, minmax(0, 1fr));
|
||||
gap: 2rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.brochures-grid__row + .brochures-grid__row {
|
||||
margin-top: 2rem;
|
||||
border-top-width: 1px;
|
||||
border-color: rgb(239, 239, 239, 0.6);
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
.brochures-grid__cover {
|
||||
grid-column: span 1 / span 1;
|
||||
width: 5rem;
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
.brochures-grid__title {
|
||||
grid-column: span 4 / span 4;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.brochures-grid__thematique {
|
||||
grid-column: span 2 / span 2;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.brochures-grid__edition {
|
||||
grid-column: span 2 / span 2;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.brochures-grid__button {
|
||||
grid-column: span 2 / span 2;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.card-news {
|
||||
position: relative;
|
||||
border-radius: 1.5rem;
|
||||
|
|
@ -1873,7 +2127,6 @@ header#main-header {
|
|||
}
|
||||
|
||||
.site-footer {
|
||||
margin-top: 3rem;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 2rem;
|
||||
|
|
@ -1997,113 +2250,138 @@ article > *:not(.entry-content, .chapter-header-block),
|
|||
max-width: 960px;
|
||||
}
|
||||
|
||||
.entry-content h1, .block-editor-block-list__layout h1 {
|
||||
.entry-content--acoustique-coproprietes h2,
|
||||
.entry-content--acoustique-coproprietes h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(36 94 242 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.entry-content--acoustique-coproprietes ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(36 94 242 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.entry-content--acoustique-coproprietes .homegrade-blocks-highlight {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(223 241 255 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.entry-content--energies-urbanisme h2,
|
||||
.entry-content--energies-urbanisme h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(2 126 80 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.entry-content--energies-urbanisme ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(2 126 80 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.entry-content--energies-urbanisme .homegrade-blocks-highlight {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(227 255 240 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.entry-content--isolation-quotidien h2,
|
||||
.entry-content--isolation-quotidien h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(194 69 3 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.entry-content--isolation-quotidien ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(194 69 3 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.entry-content--isolation-quotidien .homegrade-blocks-highlight {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(255 251 236 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.entry-content--patrimoine-renovation h1,
|
||||
.entry-content--patrimoine-renovation h2,
|
||||
.entry-content--patrimoine-renovation h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(139 47 247 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.entry-content--patrimoine-renovation ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(139 47 247 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.entry-content--patrimoine-renovation .homegrade-blocks-highlight {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(255 229 253 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.entry-content--location h2,
|
||||
.entry-content--location h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(223 0 43 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.entry-content--location ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(223 0 43 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.entry-content--location .homegrade-blocks-highlight {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(254 226 231 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.entry-content h1 {
|
||||
font-size: 1.5rem;
|
||||
line-height: 2rem;
|
||||
}
|
||||
|
||||
.entry-content h2, .block-editor-block-list__layout h2 {
|
||||
.entry-content h2 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.entry-content h3, .block-editor-block-list__layout h3 {
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.75rem;
|
||||
.entry-content h3 {
|
||||
font-size: 1.5rem;
|
||||
line-height: 2rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.entry-content p a, .entry-content ul a, .entry-content ol a, .block-editor-block-list__layout p a, .block-editor-block-list__layout ul a, .block-editor-block-list__layout ol a {
|
||||
.entry-content p a, .entry-content ul a, .entry-content ol a {
|
||||
font-weight: 700;
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(59 130 246 / var(--tw-text-opacity));
|
||||
color: rgb(47 1 84 / var(--tw-text-opacity));
|
||||
-webkit-text-decoration-line: underline;
|
||||
text-decoration-line: underline;
|
||||
text-underline-offset: 4px;
|
||||
}
|
||||
|
||||
.entry-content p a:hover, .entry-content ul a:hover, .entry-content ol a:hover, .block-editor-block-list__layout p a:hover, .block-editor-block-list__layout ul a:hover, .block-editor-block-list__layout ol a:hover {
|
||||
/* &:after {
|
||||
@apply inline-block bg-red-500 h-3 w-3 ml-2;
|
||||
content: '';
|
||||
background-image: url('/wp-content/themes/homegrade/dist/images/arrow.svg');
|
||||
} */
|
||||
|
||||
.entry-content p a:hover, .entry-content ul a:hover, .entry-content ol a:hover {
|
||||
-webkit-text-decoration-line: none;
|
||||
text-decoration-line: none;
|
||||
}
|
||||
|
||||
.entry-content p,
|
||||
.entry-content ul,
|
||||
.entry-content ol,
|
||||
.block-editor-block-list__layout p,
|
||||
.block-editor-block-list__layout ul,
|
||||
.block-editor-block-list__layout ol {
|
||||
.entry-content ol {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.entry-content ul:not(.block-editor-block-variation-picker__variations) li, .block-editor-block-list__layout ul:not(.block-editor-block-variation-picker__variations) li {
|
||||
.entry-content ul:not(.block-editor-block-variation-picker__variations) li {
|
||||
list-style-position: inside;
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
.entry-content ol li, .block-editor-block-list__layout ol li {
|
||||
.entry-content ol li {
|
||||
list-style-position: inside;
|
||||
list-style-type: decimal;
|
||||
}
|
||||
|
||||
.single-editor-content h3 {
|
||||
font-size: 1.5rem;
|
||||
line-height: 2rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.single-editor-content--acoustique-coproprietes h2,
|
||||
.single-editor-content--acoustique-coproprietes h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(36 94 242 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.single-editor-content--acoustique-coproprietes ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(36 94 242 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.single-editor-content--energies-urbanisme h2,
|
||||
.single-editor-content--energies-urbanisme h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(2 126 80 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.single-editor-content--energies-urbanisme ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(2 126 80 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.single-editor-content--isolation-quotidien h2,
|
||||
.single-editor-content--isolation-quotidien h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(194 69 3 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.single-editor-content--isolation-quotidien ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(194 69 3 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.single-editor-content--patrimoine-renovation h1,
|
||||
.single-editor-content--patrimoine-renovation h2,
|
||||
.single-editor-content--patrimoine-renovation h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(139 47 247 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.single-editor-content--patrimoine-renovation ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(139 47 247 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.single-editor-content--location h2,
|
||||
.single-editor-content--location h3 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(223 0 43 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.single-editor-content--location ul li::marker {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(223 0 43 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.menu-renovateur {
|
||||
position: relative;
|
||||
display: flex;
|
||||
|
|
@ -3379,6 +3657,20 @@ article > *:not(.entry-content, .chapter-header-block),
|
|||
font-weight: 700;
|
||||
}
|
||||
|
||||
.homegrade-blocks-highlight {
|
||||
padding: 3rem;
|
||||
border-radius: 22px;
|
||||
}
|
||||
|
||||
.homegrade-blocks-highlight h3 {
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.homegrade-blocks-highlight .icon {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(47 1 84 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
/* ########### PAGE ############ */
|
||||
|
||||
.demo-components .title {
|
||||
|
|
@ -3400,6 +3692,37 @@ article > *:not(.entry-content, .chapter-header-block),
|
|||
gap: 2rem;
|
||||
}
|
||||
|
||||
.archives-publications-header {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 1280px;
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(47 1 84 / var(--tw-bg-opacity));
|
||||
text-align: center;
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(255 255 255 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.brochures-archives {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 1280px;
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.card-large-content-container {
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 0px;
|
||||
padding-top: 10rem;
|
||||
}
|
||||
|
||||
@media (min-width: 960px) {
|
||||
.card-large-content-container .card-large-content__links-container {
|
||||
gap: 8rem;
|
||||
}
|
||||
}
|
||||
|
||||
.hover\:bg-primary:hover {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(47 1 84 / var(--tw-bg-opacity));
|
||||
|
|
|
|||
|
|
@ -119,12 +119,15 @@ function add_acf_posts_columns($columns)
|
|||
return array_merge($new_admin_col_arrays);
|
||||
}
|
||||
add_filter('manage_conseils_posts_columns', 'add_acf_posts_columns');
|
||||
add_filter('manage_fiche-questions_posts_columns', 'add_acf_posts_columns');
|
||||
add_filter('manage_questions_posts_columns', 'add_acf_posts_columns');
|
||||
add_filter('manage_brochures_posts_columns', 'add_acf_posts_columns');
|
||||
|
||||
// CUSTOMISATION DE LA COLONNE POUR AFFICHER : THEMATIQUE PARENT > THEMATIQUE
|
||||
function handle_posts_custom_columns($column, $post_id)
|
||||
{
|
||||
if ($column != 'thematiques_taxo') {
|
||||
return;
|
||||
}
|
||||
$tax = get_the_terms($post_id, ('thematiques'));
|
||||
$edit_link = esc_url(get_edit_term_link($tax[0]->term_id, 'thematiques', 'conseils'));
|
||||
|
||||
|
|
@ -137,5 +140,29 @@ function handle_posts_custom_columns($column, $post_id)
|
|||
echo '</a>';
|
||||
}
|
||||
add_action('manage_conseils_posts_custom_column', 'handle_posts_custom_columns', 10, 2);
|
||||
add_action('manage_fiche-questions_posts_custom_column', 'handle_posts_custom_columns', 10, 2);
|
||||
add_action('manage_questions_posts_custom_column', 'handle_posts_custom_columns', 10, 2);
|
||||
add_action('manage_brochures_posts_custom_column', 'handle_posts_custom_columns', 10, 2);
|
||||
|
||||
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
ADDING CLASS TO ADMIN BODY
|
||||
------------------------------------------------------------------------*/
|
||||
function wpdocs_admin_classes($classes)
|
||||
{
|
||||
global $pagenow;
|
||||
global $post;
|
||||
$thematique = get_the_terms(get_the_ID(), 'thematiques')[0];
|
||||
$thematiqueParent = getParentThematique($thematique);
|
||||
$thematiqueColorSlug = getThematiqueFamilySlug($thematiqueParent->slug);
|
||||
|
||||
|
||||
if (in_array($pagenow, array('post.php', 'post-new.php'), true) && $thematiqueColorSlug) {
|
||||
$classes .= ' salut ' . $thematiqueColorSlug;
|
||||
}
|
||||
|
||||
return $classes;
|
||||
}
|
||||
|
||||
add_filter('admin_body_class', 'wpdocs_admin_classes');
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ function wrap_parent_menu_item_buttons($output, $item, $depth, $args)
|
|||
}
|
||||
|
||||
// #### ICONE DE PAGE FOR TOP LEVEL MENU ITEMS
|
||||
if (isset($page_icon)) {
|
||||
if (isset($page_icon['url'])) {
|
||||
$icon = '<img class="page_icon" src="' . $page_icon['url'] . '" alt=""/>';
|
||||
$link = $output;
|
||||
$output = $icon . $link;
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ function create_posttype()
|
|||
],
|
||||
'hierarchical' => true,
|
||||
'public' => true,
|
||||
'has_archive' => true,
|
||||
'has_archive' => false,
|
||||
'show_in_rest' => true,
|
||||
'menu_icon' => 'dashicons-pressthis',
|
||||
'menu_position' => 2,
|
||||
|
|
@ -75,7 +75,7 @@ function create_posttype()
|
|||
),
|
||||
'hierarchical' => true,
|
||||
'public' => true,
|
||||
'has_archive' => true,
|
||||
'has_archive' => false,
|
||||
'show_in_rest' => true,
|
||||
'menu_icon' => 'dashicons-book',
|
||||
'menu_position' => 2,
|
||||
|
|
@ -84,18 +84,19 @@ function create_posttype()
|
|||
)
|
||||
);
|
||||
register_post_type(
|
||||
'fiche-questions',
|
||||
'questions',
|
||||
array(
|
||||
'labels' => array(
|
||||
'name' => __('Questions', 'homegrade-theme__texte-backoffice'),
|
||||
'singular_name' => __('Question', 'homegrade-theme__texte-backoffice')
|
||||
),
|
||||
'public' => true,
|
||||
'has_archive' => true,
|
||||
'rewrite' => array('slug' => 'fiche-question'),
|
||||
'has_archive' => false,
|
||||
// 'rewrite' => array('slug' => 'questions'),
|
||||
// 'rewrite' => array('slug' => 'questions/%thematiques%'),
|
||||
'show_in_rest' => true,
|
||||
'menu_icon' => 'dashicons-editor-help',
|
||||
'menu_position' => 4,
|
||||
'menu_position' => 2.1,
|
||||
'supports' => array('title', 'custom-fields', 'editor', 'excerpt'),
|
||||
)
|
||||
);
|
||||
|
|
@ -142,7 +143,7 @@ function my_new_admin_menu_order($menu_order)
|
|||
'upload.php' => 9,
|
||||
// 'edit.php?post_type=page' => 1,
|
||||
'edit.php?post_type=conseils' => 1,
|
||||
'edit.php?post_type=fiche-questions' => 2,
|
||||
'edit.php?post_type=questions' => 2,
|
||||
'edit.php?post_type=brochures' => 3,
|
||||
'edit.php?post_type=vocabulaire' => 4,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -11,3 +11,19 @@ function redirect_to_demo_components_page()
|
|||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// function wpa_course_post_link($post_link, $id = 0)
|
||||
// {
|
||||
// $post = get_post($id);
|
||||
// if (is_object($post) && ICL_LANGUAGE_CODE == 'fr') {
|
||||
// $terms = wp_get_object_terms($post->ID, 'thematiques');
|
||||
// if ($terms) {
|
||||
// return str_replace('%thematiques%', $terms[0]->slug, $post_link);
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
// return $post_link;
|
||||
// }
|
||||
// add_filter('post_type_link', 'wpa_course_post_link', 1, 3);
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ get_template_part(
|
|||
)
|
||||
);
|
||||
|
||||
/** ------------------------------
|
||||
QUERIES
|
||||
/* ------------------------------
|
||||
QUERIES
|
||||
------------------------------*/
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ function undo_create_term($term_id, $tt_id, $taxonomy)
|
|||
function add_custom_taxonomies()
|
||||
{
|
||||
// ————— Thématiques —————
|
||||
register_taxonomy('thematiques', ['fiche-questions', 'conseils', 'brochures'], array(
|
||||
register_taxonomy('thematiques', ['questions', 'conseils', 'brochures'], array(
|
||||
// 'hierarchical' => true,
|
||||
'labels' => array(
|
||||
'name' => __('Thématiques', 'homegrade-theme__texte-backoffice'),
|
||||
|
|
@ -67,7 +67,7 @@ function add_custom_taxonomies()
|
|||
'show_in_quick_edit' => false,
|
||||
'meta_box_cb' => false,
|
||||
'rewrite' => array(
|
||||
'slug' => 'nos-conseils-thematiques',
|
||||
'slug' => 'questions-thematiques',
|
||||
// 'with_front' => false,
|
||||
'hierarchical' => true,
|
||||
'has_archive' => true
|
||||
|
|
@ -77,7 +77,7 @@ function add_custom_taxonomies()
|
|||
|
||||
|
||||
// ————— mots-clés —————
|
||||
register_taxonomy('mots-cles', ['fiche-questions', 'conseils'], array(
|
||||
register_taxonomy('mots-cles', ['questions', 'conseils'], array(
|
||||
|
||||
// This array of options controls the labels displayed in the WordPress Admin UI
|
||||
'labels' => array(
|
||||
|
|
@ -103,6 +103,27 @@ function add_custom_taxonomies()
|
|||
add_action('init', 'add_custom_taxonomies', 0);
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
Add custom taxonomy terms to body class
|
||||
HIDE THEMATIQUE METABOX
|
||||
------------------------------------------------------------------------*/
|
||||
// on passe le metabox_cb à false pour ne pas afficher la metabox
|
||||
function tna_edit_taxonomy_args($args, $tax_slug, $cptui_tax_args)
|
||||
{
|
||||
// Alternatively, you can check for specific taxonomies.
|
||||
if ('thematiques' === $tax_slug) {
|
||||
$args['meta_box_cb'] = false;
|
||||
}
|
||||
return $args;
|
||||
}
|
||||
add_filter('cptui_pre_register_taxonomy', 'tna_edit_taxonomy_args', 10, 3);
|
||||
|
||||
// on récupère les élément avec un metabox_cb false et on les masque dans la sidebar
|
||||
add_filter('rest_prepare_taxonomy', function ($response, $taxonomy, $request) {
|
||||
$context = !empty($request['context']) ? $request['context'] : 'view';
|
||||
// Context is edit in the editor
|
||||
if ($context === 'edit' && $taxonomy->meta_box_cb === false) {
|
||||
$data_response = $response->get_data();
|
||||
$data_response['visibility']['show_ui'] = false;
|
||||
$response->set_data($data_response);
|
||||
}
|
||||
return $response;
|
||||
}, 10, 3);
|
||||
|
|
|
|||
|
|
@ -8,29 +8,35 @@ function getThematiqueFamilySlug($thematique_slug)
|
|||
return "energies-urbanisme";
|
||||
|
||||
case "acoustique":
|
||||
case "akoestiek":
|
||||
case "petites-coproprietes":
|
||||
case "kleine-mede-eigendommen":
|
||||
return "acoustique-coproprietes";
|
||||
|
||||
case "isolation":
|
||||
case "isolatie":
|
||||
case "au-quotidien":
|
||||
return "isolation-quotidien";
|
||||
|
||||
case "energies":
|
||||
case "urbanisme":
|
||||
case "stedenbouw":
|
||||
return "energies-urbanisme";
|
||||
|
||||
case "patrimoine":
|
||||
case "erfgoed":
|
||||
case "renovation":
|
||||
return "patrimoine-renovation";
|
||||
|
||||
case "location":
|
||||
case "verhuur":
|
||||
return "location";
|
||||
}
|
||||
}
|
||||
|
||||
function getParentThematique($thematique)
|
||||
{
|
||||
if($thematique->parent == 0) {
|
||||
if ($thematique->parent == 0) {
|
||||
return $thematique;
|
||||
} else {
|
||||
return get_term($thematique->parent, 'thematiques');
|
||||
|
|
@ -42,10 +48,9 @@ function getParentThematique($thematique)
|
|||
function get_automatic_post($post_type)
|
||||
{
|
||||
$automatic_query_args = array(
|
||||
'numberposts' => 2,
|
||||
'post_per_page' => 1,
|
||||
'post_status' => 'publish',
|
||||
'post_type' => 'fiche-questions',
|
||||
'post_type' => 'questions',
|
||||
'thematiques' => $post_type,
|
||||
);
|
||||
return get_posts($automatic_query_args)[0];
|
||||
|
|
|
|||
|
|
@ -10,3 +10,77 @@
|
|||
#toplevel_page_theme-general-settings {
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
|
||||
}
|
||||
|
||||
/* .wp-block-post-content,
|
||||
.is-root-container {
|
||||
background-color: red !imporatant;
|
||||
}
|
||||
|
||||
.block-editor-block-list__block {
|
||||
background-color: yellow !imporatant; */
|
||||
/* } */
|
||||
|
||||
body.acoustique-coproprietes {
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-acoustique-coproprietes;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-acoustique-coproprietes;
|
||||
}
|
||||
.homegrade-blocks-highlight {
|
||||
@apply bg-acoustique-coproprietes-light;
|
||||
}
|
||||
}
|
||||
body.energies-urbanisme {
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-energies-urbanisme;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-energies-urbanisme;
|
||||
}
|
||||
.homegrade-blocks-highlight {
|
||||
@apply bg-energies-urbanisme-light;
|
||||
}
|
||||
}
|
||||
body.isolation-quotidien {
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-isolation-quotidien;
|
||||
}
|
||||
ul li::before {
|
||||
@apply bg-isolation-quotidien;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-isolation-quotidien;
|
||||
}
|
||||
.homegrade-blocks-highlight {
|
||||
@apply bg-isolation-quotidien-light;
|
||||
}
|
||||
}
|
||||
body.patrimoine-renovation {
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-patrimoine-renovation;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-patrimoine-renovation;
|
||||
}
|
||||
.homegrade-blocks-highlight {
|
||||
@apply bg-patrimoine-renovation-light;
|
||||
}
|
||||
}
|
||||
body.location {
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-location;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-location;
|
||||
}
|
||||
.homegrade-blocks-highlight {
|
||||
@apply bg-location-light;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
/* ########### UTILITIES ############ */
|
||||
@import './utilities/shadows.css';
|
||||
@import './utilities/animation.css';
|
||||
@import './utilities/rounding-radius.css';
|
||||
|
||||
/* ########### BASE ############ */
|
||||
@import './base/typography.css';
|
||||
|
|
@ -17,6 +18,10 @@
|
|||
@import './components/card-large-content.css';
|
||||
@import './components/section-titling.css';
|
||||
@import './components/search-module.css';
|
||||
@import './components/thematiques-post-viewer.css';
|
||||
@import './components/breadcrumb.css';
|
||||
@import './components/archive-page-header.css';
|
||||
@import './components/brochures-grid.css';
|
||||
|
||||
@import '../../template-components/card-news.css';
|
||||
@import '../../template-components/card-frequent_question.css';
|
||||
|
|
@ -44,6 +49,10 @@
|
|||
@import './blocks/chapter-header-block.css';
|
||||
@import './blocks/questions-container-block.css';
|
||||
@import './blocks/points-cles.css';
|
||||
@import './blocks/highlight.css';
|
||||
|
||||
/* ########### PAGE ############ */
|
||||
@import './pages/demo-components.css';
|
||||
@import './pages/template-archive-brochures.css';
|
||||
@import './pages/template-archive-conseils.css';
|
||||
@import './pages/template-archive-questions.css';
|
||||
|
|
|
|||
10
resources/css/blocks/highlight.css
Normal file
10
resources/css/blocks/highlight.css
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
.homegrade-blocks-highlight {
|
||||
@apply p-12 rounding-radius;
|
||||
|
||||
h3 {
|
||||
@apply pb-4;
|
||||
}
|
||||
.icon {
|
||||
@apply bg-primary;
|
||||
}
|
||||
}
|
||||
32
resources/css/components/archive-page-header.css
Normal file
32
resources/css/components/archive-page-header.css
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
.archive-page-header {
|
||||
@apply bg-primary text-white text-center py-12 max-w-screen-xl mx-auto
|
||||
mt-0 rounded-2xl;
|
||||
&__title {
|
||||
@apply uppercase font-medium text-xl tracking-widest;
|
||||
}
|
||||
&__description {
|
||||
@apply font-bold text-4xl max-w-screen-md mx-auto pt-4;
|
||||
}
|
||||
/* POUR TEMPLATE ARCHIVE CONSEILS ET ARCHIVE QUESTIONS */
|
||||
&__terms-grid {
|
||||
@apply grid grid-cols-4 max-w-screen-md mx-auto gap-4 p-4 pt-8;
|
||||
|
||||
.term {
|
||||
@apply bg-white rounded-3xl px-4 py-6 font-bold leading-4;
|
||||
}
|
||||
.term img {
|
||||
@apply rounded-lg pb-4 max-w-[80px] mx-auto;
|
||||
}
|
||||
}
|
||||
/* POUR PUBLICATIONS */
|
||||
&__search-grid {
|
||||
@apply grid grid-cols-4 max-w-screen-md mx-auto gap-4 p-4 pt-8;
|
||||
|
||||
.term {
|
||||
@apply bg-white rounded-3xl px-4 py-6 font-bold leading-4;
|
||||
}
|
||||
.term img {
|
||||
@apply rounded-lg pb-4 max-w-[80px] mx-auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
20
resources/css/components/breadcrumb.css
Normal file
20
resources/css/components/breadcrumb.css
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
.breadcrumbs_navigation {
|
||||
@apply py-6 max-w-screen-xl mx-auto;
|
||||
ol {
|
||||
@apply list-none flex items-center text-sm font-bold;
|
||||
|
||||
li + li {
|
||||
&:before {
|
||||
@apply ml-1 mr-2;
|
||||
@apply inline-block;
|
||||
content: '';
|
||||
border-right: 2.5px solid #000;
|
||||
border-bottom: 2.5px solid #000;
|
||||
border-radius: 2px;
|
||||
height: 8px;
|
||||
width: 8px;
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
26
resources/css/components/brochures-grid.css
Normal file
26
resources/css/components/brochures-grid.css
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
.brochures-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;
|
||||
}
|
||||
}
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
}
|
||||
}
|
||||
.card-large-content {
|
||||
@apply bg-white max-w-screen-2xl w-full rounded-3xl p-16 relative;
|
||||
@apply bg-white max-w-screen-xl w-full rounded-3xl p-16 relative;
|
||||
&--has-illustration {
|
||||
@apply pt-40;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@
|
|||
height: 1px;
|
||||
}
|
||||
&__input {
|
||||
box-sizing: border-box;
|
||||
@apply block max-w-full flex-grow py-3 border border-black rounded-tl-3xl rounded-bl-3xl px-4;
|
||||
}
|
||||
button[type='submit'] {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
.section_titling {
|
||||
@apply text-center pb-8;
|
||||
&--left {
|
||||
@apply text-left;
|
||||
}
|
||||
|
||||
&__title {
|
||||
@apply text-secondary
|
||||
|
|
@ -9,10 +12,14 @@
|
|||
pb-2
|
||||
tracking-widest;
|
||||
}
|
||||
&.section_titling--left {
|
||||
@apply bg-yellow-400;
|
||||
}
|
||||
&__subtitle {
|
||||
@apply text-black
|
||||
font-bold
|
||||
max-w-3xl mx-auto
|
||||
max-w-3xl
|
||||
mx-auto
|
||||
text-4xl;
|
||||
}
|
||||
|
||||
|
|
|
|||
19
resources/css/components/thematiques-post-viewer.css
Normal file
19
resources/css/components/thematiques-post-viewer.css
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
.thematiques-post-viewer {
|
||||
@apply bg-primary text-white text-center py-12 max-w-screen-xl mx-auto mt-0;
|
||||
&__title {
|
||||
@apply uppercase font-medium text-xl tracking-widest;
|
||||
}
|
||||
&__description {
|
||||
@apply font-bold text-4xl max-w-screen-md mx-auto pt-4;
|
||||
}
|
||||
&__terms-grid {
|
||||
@apply grid grid-cols-4 max-w-screen-md mx-auto gap-4 p-4 pt-8;
|
||||
|
||||
.term {
|
||||
@apply bg-white rounded-3xl px-4 py-6 font-bold leading-4;
|
||||
}
|
||||
.term img {
|
||||
@apply rounded-lg pb-4 max-w-[80px] mx-auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
.site-footer {
|
||||
@apply bg-gray grid grid-cols-4 px-8 gap-8 mt-12;
|
||||
@apply bg-gray grid grid-cols-4 px-8 gap-8;
|
||||
|
||||
&__informative-message {
|
||||
@apply bg-primary text-white p-8 col-span-4 rounded-3xl flex justify-center;
|
||||
|
|
|
|||
|
|
@ -3,8 +3,68 @@ article > *:not(.entry-content, .chapter-header-block),
|
|||
@apply mx-auto max-w-content;
|
||||
}
|
||||
|
||||
.entry-content,
|
||||
.block-editor-block-list__layout {
|
||||
.entry-content {
|
||||
&--acoustique-coproprietes {
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-acoustique-coproprietes;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-acoustique-coproprietes;
|
||||
}
|
||||
.homegrade-blocks-highlight {
|
||||
@apply bg-acoustique-coproprietes-light;
|
||||
}
|
||||
}
|
||||
&--energies-urbanisme {
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-energies-urbanisme;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-energies-urbanisme;
|
||||
}
|
||||
.homegrade-blocks-highlight {
|
||||
@apply bg-energies-urbanisme-light;
|
||||
}
|
||||
}
|
||||
&--isolation-quotidien {
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-isolation-quotidien;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-isolation-quotidien;
|
||||
}
|
||||
.homegrade-blocks-highlight {
|
||||
@apply bg-isolation-quotidien-light;
|
||||
}
|
||||
}
|
||||
&--patrimoine-renovation {
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-patrimoine-renovation;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-patrimoine-renovation;
|
||||
}
|
||||
.homegrade-blocks-highlight {
|
||||
@apply bg-patrimoine-renovation-light;
|
||||
}
|
||||
}
|
||||
&--location {
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-location;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-location;
|
||||
}
|
||||
.homegrade-blocks-highlight {
|
||||
@apply bg-location-light;
|
||||
}
|
||||
}
|
||||
h1 {
|
||||
@apply text-2xl;
|
||||
}
|
||||
|
|
@ -14,14 +74,19 @@ article > *:not(.entry-content, .chapter-header-block),
|
|||
}
|
||||
|
||||
h3 {
|
||||
@apply text-lg;
|
||||
@apply font-bold text-2xl;
|
||||
}
|
||||
|
||||
p,
|
||||
ul,
|
||||
ol {
|
||||
a {
|
||||
@apply text-blue-500 underline;
|
||||
@apply text-primary font-bold underline underline-offset-4;
|
||||
/* &:after {
|
||||
@apply inline-block bg-red-500 h-3 w-3 ml-2;
|
||||
content: '';
|
||||
background-image: url('/wp-content/themes/homegrade/dist/images/arrow.svg');
|
||||
} */
|
||||
|
||||
&:hover {
|
||||
@apply no-underline;
|
||||
|
|
@ -43,55 +108,3 @@ article > *:not(.entry-content, .chapter-header-block),
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.single-editor-content {
|
||||
h3 {
|
||||
@apply font-bold text-2xl;
|
||||
}
|
||||
&--acoustique-coproprietes {
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-acoustique-coproprietes;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-acoustique-coproprietes;
|
||||
}
|
||||
}
|
||||
&--energies-urbanisme {
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-energies-urbanisme;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-energies-urbanisme;
|
||||
}
|
||||
}
|
||||
&--isolation-quotidien {
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-isolation-quotidien;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-isolation-quotidien;
|
||||
}
|
||||
}
|
||||
&--patrimoine-renovation {
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-patrimoine-renovation;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-patrimoine-renovation;
|
||||
}
|
||||
}
|
||||
&--location {
|
||||
h2,
|
||||
h3 {
|
||||
@apply text-location;
|
||||
}
|
||||
ul li::marker {
|
||||
@apply text-location;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
6
resources/css/pages/template-archive-brochures.css
Normal file
6
resources/css/pages/template-archive-brochures.css
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
.archives-publications-header {
|
||||
@apply bg-primary max-w-screen-xl text-white text-center mx-auto;
|
||||
}
|
||||
.brochures-archives {
|
||||
@apply max-w-screen-xl mx-auto py-4;
|
||||
}
|
||||
0
resources/css/pages/template-archive-conseils.css
Normal file
0
resources/css/pages/template-archive-conseils.css
Normal file
9
resources/css/pages/template-archive-questions.css
Normal file
9
resources/css/pages/template-archive-questions.css
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
.card-large-content-container {
|
||||
@apply pt-40 mt-12 mb-0;
|
||||
|
||||
.card-large-content {
|
||||
&__links-container {
|
||||
@apply lg:gap-32;
|
||||
}
|
||||
}
|
||||
}
|
||||
3
resources/css/utilities/rounding-radius.css
Normal file
3
resources/css/utilities/rounding-radius.css
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
.rounding-radius {
|
||||
border-radius: 22px;
|
||||
}
|
||||
72
resources/img/illustrations/illustration-homegrade-help.svg
Normal file
72
resources/img/illustrations/illustration-homegrade-help.svg
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
<svg id="Groupe_3184" data-name="Groupe 3184" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="332.135" height="207.508" viewBox="0 0 332.135 207.508">
|
||||
<defs>
|
||||
<clipPath id="clip-path">
|
||||
<rect id="Rectangle_1083" data-name="Rectangle 1083" width="332.135" height="207.508" fill="none"/>
|
||||
</clipPath>
|
||||
<linearGradient id="linear-gradient" x1="0.101" y1="0.053" x2="1.095" y2="1.104" gradientUnits="objectBoundingBox">
|
||||
<stop offset="0" stop-color="#f3281d"/>
|
||||
<stop offset="1" stop-color="#fe766f"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="Groupe_3184-2" data-name="Groupe 3184" clip-path="url(#clip-path)">
|
||||
<path id="Tracé_18408" data-name="Tracé 18408" d="M171.983,128.751a115.82,115.82,0,0,1,14.508-7.087,60.379,60.379,0,0,1,17.388-3.874q9.942-.871,23.507,1.62,4.187.734,11.718,2.265t16.146,2.574a97.751,97.751,0,0,0,16.48.661,28.548,28.548,0,0,0,12.979-3.337q3.648-2.106,4.339-4.942a6.825,6.825,0,0,0-1.2-5.615,17.533,17.533,0,0,0-5.862-5.072,30.306,30.306,0,0,0-12.644-4.023,61.66,61.66,0,0,0-12.62.12q-5.942.7-10.389.981l-8.822-29.593a112.539,112.539,0,0,1,29.063-3.019,125.045,125.045,0,0,1,28.852,4.125,106.149,106.149,0,0,1,26.043,10.62,74.437,74.437,0,0,1,16.3,12.518,34.007,34.007,0,0,1,8.941,15.049Q348.786,120.7,344.09,129T325.7,145.207a93.936,93.936,0,0,1-12.245,5.923,75.858,75.858,0,0,1-13.5,3.925,95.033,95.033,0,0,1-15.253,1.641,120.878,120.878,0,0,1-17.259-.786,223.92,223.92,0,0,1-23.086-3.727,192.933,192.933,0,0,0-19.754-3.358q-8.764-.96-14.141,2.144Zm-63.152,37.321,40.459-23.359,38.48,22.216-40.459,23.359Z" transform="translate(-16.219 -10.488)" fill="#fff"/>
|
||||
<path id="Tracé_18409" data-name="Tracé 18409" d="M171.983,128.751a115.82,115.82,0,0,1,14.508-7.087,60.379,60.379,0,0,1,17.388-3.874q9.942-.871,23.507,1.62,4.187.734,11.718,2.265t16.146,2.574a97.751,97.751,0,0,0,16.48.661,28.548,28.548,0,0,0,12.979-3.337q3.648-2.106,4.339-4.942a6.825,6.825,0,0,0-1.2-5.615,17.533,17.533,0,0,0-5.862-5.072,30.306,30.306,0,0,0-12.644-4.023,61.66,61.66,0,0,0-12.62.12q-5.942.7-10.389.981l-8.822-29.593a112.539,112.539,0,0,1,29.063-3.019,125.045,125.045,0,0,1,28.852,4.125,106.149,106.149,0,0,1,26.043,10.62,74.437,74.437,0,0,1,16.3,12.518,34.007,34.007,0,0,1,8.941,15.049Q348.786,120.7,344.09,129T325.7,145.207a93.936,93.936,0,0,1-12.245,5.923,75.858,75.858,0,0,1-13.5,3.925,95.033,95.033,0,0,1-15.253,1.641,120.878,120.878,0,0,1-17.259-.786,223.92,223.92,0,0,1-23.086-3.727,192.933,192.933,0,0,0-19.754-3.358q-8.764-.96-14.141,2.144Zm-63.152,37.321,40.459-23.359,38.48,22.216-40.459,23.359Z" transform="translate(-16.219 -10.488)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18410" data-name="Tracé 18410" d="M108.568,136.088l.225,39.778,38.479,22.216-.224-39.778Z" transform="translate(-16.18 -20.281)" fill="#fff"/>
|
||||
<path id="Tracé_18411" data-name="Tracé 18411" d="M108.568,136.088l.225,39.778,38.479,22.216-.224-39.778Z" transform="translate(-16.18 -20.281)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18412" data-name="Tracé 18412" d="M182.78,92.231v39.778l38.7,22.216-.224-39.778Z" transform="translate(-27.239 -13.745)" fill="#fff"/>
|
||||
<path id="Tracé_18413" data-name="Tracé 18413" d="M182.78,92.231v39.778l38.7,22.216-.224-39.778Z" transform="translate(-27.239 -13.745)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18414" data-name="Tracé 18414" d="M171.719,82.007a115.82,115.82,0,0,1,14.508-7.087,60.385,60.385,0,0,1,17.388-3.874q9.942-.871,23.507,1.62,4.187.734,11.718,2.265t16.146,2.574a97.749,97.749,0,0,0,16.48.661,28.548,28.548,0,0,0,12.979-3.337q3.648-2.106,4.339-4.942a6.825,6.825,0,0,0-1.2-5.615,17.533,17.533,0,0,0-5.862-5.072,30.306,30.306,0,0,0-12.644-4.023,61.659,61.659,0,0,0-12.62.12q-5.942.7-10.39.981l-8.822-29.593a112.539,112.539,0,0,1,29.063-3.019,125.046,125.046,0,0,1,28.852,4.125,106.149,106.149,0,0,1,26.043,10.62,74.436,74.436,0,0,1,16.3,12.518,34.007,34.007,0,0,1,8.941,15.049q2.073,7.974-2.623,16.277T325.439,98.463a93.933,93.933,0,0,1-12.245,5.923,75.857,75.857,0,0,1-13.5,3.925,95.031,95.031,0,0,1-15.253,1.641,120.879,120.879,0,0,1-17.259-.786,223.91,223.91,0,0,1-23.086-3.727,192.937,192.937,0,0,0-19.754-3.358q-8.764-.96-14.141,2.144Zm-63.152,37.321,40.459-23.359,38.48,22.216-40.459,23.359Z" transform="translate(-16.18 -3.521)" fill="#fff"/>
|
||||
<path id="Tracé_18415" data-name="Tracé 18415" d="M171.719,82.007a115.82,115.82,0,0,1,14.508-7.087,60.385,60.385,0,0,1,17.388-3.874q9.942-.871,23.507,1.62,4.187.734,11.718,2.265t16.146,2.574a97.749,97.749,0,0,0,16.48.661,28.548,28.548,0,0,0,12.979-3.337q3.648-2.106,4.339-4.942a6.825,6.825,0,0,0-1.2-5.615,17.533,17.533,0,0,0-5.862-5.072,30.306,30.306,0,0,0-12.644-4.023,61.659,61.659,0,0,0-12.62.12q-5.942.7-10.39.981l-8.822-29.593a112.539,112.539,0,0,1,29.063-3.019,125.046,125.046,0,0,1,28.852,4.125,106.149,106.149,0,0,1,26.043,10.62,74.436,74.436,0,0,1,16.3,12.518,34.007,34.007,0,0,1,8.941,15.049q2.073,7.974-2.623,16.277T325.439,98.463a93.933,93.933,0,0,1-12.245,5.923,75.857,75.857,0,0,1-13.5,3.925,95.031,95.031,0,0,1-15.253,1.641,120.879,120.879,0,0,1-17.259-.786,223.91,223.91,0,0,1-23.086-3.727,192.937,192.937,0,0,0-19.754-3.358q-8.764-.96-14.141,2.144Zm-63.152,37.321,40.459-23.359,38.48,22.216-40.459,23.359Z" transform="translate(-16.18 -3.521)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18416" data-name="Tracé 18416" d="M194.246,134.744l.225,39.778-40.459,23.359-.225-39.778Z" transform="translate(-22.919 -20.081)" fill="#fff"/>
|
||||
<path id="Tracé_18417" data-name="Tracé 18417" d="M194.246,134.744l.225,39.778-40.459,23.359-.225-39.778Z" transform="translate(-22.919 -20.081)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18418" data-name="Tracé 18418" d="M259.785,27.223,260.01,67l2.379,7.982,6.563,1.909-.345-20.076-8.822-29.593" transform="translate(-38.716 -4.057)" fill="#fff"/>
|
||||
<path id="Tracé_18419" data-name="Tracé 18419" d="M259.785,27.223,260.01,67l2.379,7.982,6.563,1.909-.345-20.076Z" transform="translate(-38.716 -4.057)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18420" data-name="Tracé 18420" d="M270.152,61.682q.172,10.038.346,20.076c2.31.511,35.121,7.482,41.543-4.616a9.336,9.336,0,0,0,1.008-3.295,13.779,13.779,0,0,0-1.731-4.655c-.939-1.56-3.7-5.406-13.3-7.8-10.952-2.733-21.37-1.224-27.866.291" transform="translate(-40.261 -8.923)" fill="#fff"/>
|
||||
<path id="Tracé_18421" data-name="Tracé 18421" d="M270.152,61.682q.172,10.038.346,20.076c2.31.511,35.121,7.482,41.543-4.616a9.336,9.336,0,0,0,1.008-3.295,13.779,13.779,0,0,0-1.731-4.655c-.939-1.56-3.7-5.406-13.3-7.8C287.066,58.657,276.648,60.167,270.152,61.682Z" transform="translate(-40.261 -8.923)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18422" data-name="Tracé 18422" d="M228,112.367l.225,39.778a118.269,118.269,0,0,1,20.338-.371c16.037,1.092,19.681,3.962,33.44,5.835,7.689,1.047,28.873,3.695,50.217-4.937,8.428-3.409,13.8-7.333,19.133-11.222,6.409-4.677,9.465-7.992,11.558-12.232a27.083,27.083,0,0,0,2.354-7.169l-.221-43.776A54.215,54.215,0,0,1,350.06,102.09c-11.495,10.452-24.633,12.353-33.271,14-18.6,3.543-35.132-.412-46.458-3.143-11.657-2.811-24.828-7.593-39.3-1.92-1.309.513-2.357,1.006-3.035,1.34" transform="translate(-33.978 -11.665)" fill="#fff"/>
|
||||
<path id="Tracé_18423" data-name="Tracé 18423" d="M228,112.367l.225,39.778a118.269,118.269,0,0,1,20.338-.371c16.037,1.092,19.681,3.962,33.44,5.835,7.689,1.047,28.873,3.695,50.217-4.937,8.428-3.409,13.8-7.333,19.133-11.222,6.409-4.677,9.465-7.992,11.558-12.232a27.083,27.083,0,0,0,2.354-7.169l-.221-43.776A54.215,54.215,0,0,1,350.06,102.09c-11.495,10.452-24.633,12.353-33.271,14-18.6,3.543-35.132-.412-46.458-3.143-11.657-2.811-24.828-7.593-39.3-1.92C229.725,111.54,228.676,112.033,228,112.367Z" transform="translate(-33.978 -11.665)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18424" data-name="Tracé 18424" d="M97.294,9.959h0L82.829,1.691l-6.1,10.018C64.181,18.322,51.355,33.236,44.491,50.578a60.028,60.028,0,0,0-4.622,21.636l-5.873,9.642,12.1,7.821c.379.245.743.512,1.111.774A14.841,14.841,0,0,0,56,93.09c15.653,0,35.875-19.033,45.169-42.511,7.56-19.1,5.559-35.257-3.878-40.619" transform="translate(-5.066 -0.252)" fill="#fff"/>
|
||||
<path id="Tracé_18425" data-name="Tracé 18425" d="M97.294,9.959h0L82.829,1.691l-6.1,10.018C64.181,18.322,51.355,33.236,44.491,50.578a60.028,60.028,0,0,0-4.622,21.636l-5.873,9.642,12.1,7.821c.379.245.743.512,1.111.774A14.841,14.841,0,0,0,56,93.09c15.653,0,35.875-19.033,45.169-42.511C108.732,31.478,106.731,15.322,97.294,9.959Z" transform="translate(-5.066 -0.252)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18426" data-name="Tracé 18426" d="M88.914,43.511C79.62,66.99,59.4,86.023,43.746,86.023S22.939,66.99,32.232,43.511,61.748,1,77.4,1s20.807,19.033,11.514,42.51" transform="translate(-4.114 -0.149)" fill="#fff"/>
|
||||
<ellipse id="Ellipse_1360" data-name="Ellipse 1360" cx="47.411" cy="25.412" rx="47.411" ry="25.412" transform="matrix(0.524, -0.851, 0.851, 0.524, 9.958, 70.404)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18427" data-name="Tracé 18427" d="M84.926,44.827c-7.651,19.33-24.3,35-37.187,35s-17.129-15.67-9.478-35,24.3-35,37.186-35,17.13,15.67,9.479,35" transform="translate(-5.135 -1.465)" fill="#fff"/>
|
||||
<path id="Tracé_18428" data-name="Tracé 18428" d="M84.926,44.827c-7.651,19.33-24.3,35-37.187,35s-17.129-15.67-9.478-35,24.3-35,37.186-35S92.577,25.5,84.926,44.827Z" transform="translate(-5.135 -1.465)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18429" data-name="Tracé 18429" d="M69.85,106.578q-.444-3.191-.83-6.472l0-.021a4.654,4.654,0,0,1,1.372-3.875,15.485,15.485,0,0,1,7.027-3.943A2.187,2.187,0,0,1,80.1,94.053l2.017,12.525Z" transform="translate(-10.281 -13.74)" fill="#fff"/>
|
||||
<path id="Tracé_18430" data-name="Tracé 18430" d="M69.85,106.578q-.444-3.191-.83-6.472l0-.021a4.654,4.654,0,0,1,1.372-3.875,15.485,15.485,0,0,1,7.027-3.943A2.187,2.187,0,0,1,80.1,94.053l2.017,12.525Z" transform="translate(-10.281 -13.74)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18431" data-name="Tracé 18431" d="M67.488,110.965a11.062,11.062,0,0,1,7.838-4.679,10.883,10.883,0,0,1,7.717,2.384q3.646,24.115,7.292,48.23a12.273,12.273,0,0,0-7.9-2.674,12.6,12.6,0,0,0-9.114,4.617l-5.833-47.88" transform="translate(-10.058 -15.833)" fill="#fff"/>
|
||||
<path id="Tracé_18432" data-name="Tracé 18432" d="M67.488,110.965a11.062,11.062,0,0,1,7.838-4.679,10.883,10.883,0,0,1,7.717,2.384q3.646,24.115,7.292,48.23a12.273,12.273,0,0,0-7.9-2.674,12.6,12.6,0,0,0-9.114,4.617Z" transform="translate(-10.058 -15.833)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18433" data-name="Tracé 18433" d="M91.478,165.161c0-2.718-3.835-4.4-8.568-3.767s-8.568,3.358-8.568,6.076,3.836,4.405,8.568,3.767,8.568-3.358,8.568-6.076" transform="translate(-11.079 -24.032)" fill="#fff"/>
|
||||
<path id="Tracé_18434" data-name="Tracé 18434" d="M91.478,165.161c0-2.718-3.835-4.4-8.568-3.767s-8.568,3.358-8.568,6.076,3.836,4.405,8.568,3.767S91.478,167.879,91.478,165.161Z" transform="translate(-11.079 -24.032)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18435" data-name="Tracé 18435" d="M72.829,72.859A51.136,51.136,0,0,0,77.4,67.95" transform="translate(-10.854 -10.127)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18436" data-name="Tracé 18436" d="M48.185,42.031C37.919,58,39.431,73.55,45.45,77.212c3.217,1.957,8.711,1.12,14.623-2.248" transform="translate(-6.066 -6.264)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18437" data-name="Tracé 18437" d="M17.924,207.014a22.734,22.734,0,0,1-12.08.873q-1.739-36.42-3.476-72.84L15.235,151q1.344,28.008,2.689,56.015" transform="translate(-0.353 -20.126)" fill="#fff"/>
|
||||
<path id="Tracé_18438" data-name="Tracé 18438" d="M17.924,207.014a22.734,22.734,0,0,1-12.08.873q-1.739-36.42-3.476-72.84L15.235,151Q16.579,179.006,17.924,207.014Z" transform="translate(-0.353 -20.126)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18439" data-name="Tracé 18439" d="M2.368,142.227l10.86,15.94L20.07,215.8l10.624-2.619,3-65.222Z" transform="translate(-0.353 -21.196)" fill="#fff"/>
|
||||
<path id="Tracé_18440" data-name="Tracé 18440" d="M2.368,142.227l10.86,15.94L20.07,215.8l10.624-2.619,3-65.222Z" transform="translate(-0.353 -21.196)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<line id="Ligne_3188" data-name="Ligne 3188" y2="4.354" transform="translate(23.634 193.636)" fill="#fff"/>
|
||||
<line id="Ligne_3189" data-name="Ligne 3189" y2="4.354" transform="translate(23.634 193.636)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<line id="Ligne_3190" data-name="Ligne 3190" x2="1.024" y2="4.574" transform="translate(28.027 192.553)" fill="#fff"/>
|
||||
<line id="Ligne_3191" data-name="Ligne 3191" x2="1.024" y2="4.574" transform="translate(28.027 192.553)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<line id="Ligne_3192" data-name="Ligne 3192" y1="5.2" transform="translate(9.169 188.188)" fill="#fff"/>
|
||||
<line id="Ligne_3193" data-name="Ligne 3193" y1="5.2" transform="translate(9.169 188.188)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<line id="Ligne_3194" data-name="Ligne 3194" y1="4.387" transform="translate(13.918 187.851)" fill="#fff"/>
|
||||
<line id="Ligne_3195" data-name="Ligne 3195" y1="4.387" transform="translate(13.918 187.851)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18441" data-name="Tracé 18441" d="M11.657,224.407a4.206,4.206,0,0,0-1.346.788,4.868,4.868,0,0,0-1.459,2.748,12.069,12.069,0,0,0,0,3.263c.1,1.5.159,2.263.43,2.538.929.95,3.383.1,4.636-.564,3.063-1.63,4.308-5.031,4.815-7.109a1.944,1.944,0,0,0-.884-2.138,5.01,5.01,0,0,0-.754-.368,6.284,6.284,0,0,0-5.437.843" transform="translate(-1.303 -33.269)" fill="#fff"/>
|
||||
<path id="Tracé_18442" data-name="Tracé 18442" d="M11.657,224.407a4.206,4.206,0,0,0-1.346.788,4.868,4.868,0,0,0-1.459,2.748,12.069,12.069,0,0,0,0,3.263c.1,1.5.159,2.263.43,2.538.929.95,3.383.1,4.636-.564,3.063-1.63,4.308-5.031,4.815-7.109a1.944,1.944,0,0,0-.884-2.138,5.01,5.01,0,0,0-.754-.368A6.284,6.284,0,0,0,11.657,224.407Z" transform="translate(-1.303 -33.269)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18443" data-name="Tracé 18443" d="M27.329,231.782a1.975,1.975,0,0,0-1.211.63,8.481,8.481,0,0,0-2.226,5.3,7.555,7.555,0,0,0,.017.816,2.542,2.542,0,0,0,2.687,2.35,23.956,23.956,0,0,0,11.262-3.51,22.86,22.86,0,0,0,2.259-1.6,3.23,3.23,0,0,0-.677-5.47c-.1-.048-.213-.094-.323-.137-3.79-1.494-7.263.838-7.579,1.058Z" transform="translate(-3.56 -34.226)" fill="#fff"/>
|
||||
<path id="Tracé_18444" data-name="Tracé 18444" d="M27.329,231.782a1.975,1.975,0,0,0-1.211.63,8.481,8.481,0,0,0-2.226,5.3,7.555,7.555,0,0,0,.017.816,2.542,2.542,0,0,0,2.687,2.35,23.956,23.956,0,0,0,11.262-3.51,22.86,22.86,0,0,0,2.259-1.6,3.23,3.23,0,0,0-.677-5.47c-.1-.048-.213-.094-.323-.137-3.79-1.494-7.263.838-7.579,1.058Z" transform="translate(-3.56 -34.226)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18445" data-name="Tracé 18445" d="M74.851,114.454c-2.175-1.339-2.484-.412-6.122-.956-4.557-.664-4.554-1.65-6.809,3.159-3.3,1.954-10.9,3.965-15.654,3.594-9.1-23.722-3.338-28.986-28.074-40.127a19.738,19.738,0,0,0-6.3,4.794c-4.8,5.572-4.862,11.2-6.331,21.571-2.852,20.131-6.777,24.17-3.006,29.772,2.107,3.131,5.076,4.461,10.119,6.721,6.065,2.718,14,6.357,19.469,2.5,3.8-2.683,4.48-8.979,4.8-17.321,5.8,7.634,23.261-1.705,27.166-5.661a9.423,9.423,0,0,0,6.4-1.207,9.731,9.731,0,0,0,4.344-6.84" transform="translate(-0.149 -11.941)" fill="#fff"/>
|
||||
<path id="Tracé_18446" data-name="Tracé 18446" d="M74.851,114.454c-2.175-1.339-2.484-.412-6.122-.956-4.557-.664-4.554-1.65-6.809,3.159-3.3,1.954-10.9,3.965-15.654,3.594-9.1-23.722-3.338-28.986-28.074-40.127a19.738,19.738,0,0,0-6.3,4.794c-4.8,5.572-4.862,11.2-6.331,21.571-2.852,20.131-6.777,24.17-3.006,29.772,2.107,3.131,5.076,4.461,10.119,6.721,6.065,2.718,14,6.357,19.469,2.5,3.8-2.683,4.48-8.979,4.8-17.321,5.8,7.634,23.261-1.705,27.166-5.661a9.423,9.423,0,0,0,6.4-1.207A9.731,9.731,0,0,0,74.851,114.454Z" transform="translate(-0.149 -11.941)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18447" data-name="Tracé 18447" d="M32.339,106.778a166.19,166.19,0,0,0,7,20.041q1.252,2.956,2.559,5.74" transform="translate(-4.819 -15.913)" fill="#fff"/>
|
||||
<path id="Tracé_18448" data-name="Tracé 18448" d="M32.339,106.778a166.19,166.19,0,0,0,7,20.041q1.252,2.956,2.559,5.74" transform="translate(-4.819 -15.913)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18449" data-name="Tracé 18449" d="M70.348,124.021a14.86,14.86,0,0,1,2.247,5.916" transform="translate(-10.484 -18.483)" fill="#fff"/>
|
||||
<path id="Tracé_18450" data-name="Tracé 18450" d="M70.348,124.021a14.86,14.86,0,0,1,2.247,5.916" transform="translate(-10.484 -18.483)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18451" data-name="Tracé 18451" d="M13.14,79.293l14.674,9.866.931-17.036L21.916,57.9l-7.845,4.359Z" transform="translate(-1.958 -8.629)" fill="#fff"/>
|
||||
<path id="Tracé_18452" data-name="Tracé 18452" d="M13.14,79.293l14.674,9.866.931-17.036L21.916,57.9l-7.845,4.359Z" transform="translate(-1.958 -8.629)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18453" data-name="Tracé 18453" d="M30.384,90.376,46,83.1l.931-17.036L31.315,73.34Z" transform="translate(-4.528 -9.845)" fill="#fff"/>
|
||||
<path id="Tracé_18454" data-name="Tracé 18454" d="M30.384,90.376,46,83.1l.931-17.036L31.315,73.34Z" transform="translate(-4.528 -9.845)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18455" data-name="Tracé 18455" d="M23.453,56.624l15.611-7.277,6.829,14.225L30.282,70.849Z" transform="translate(-3.495 -7.354)" fill="#fff"/>
|
||||
<path id="Tracé_18456" data-name="Tracé 18456" d="M23.453,56.624l15.611-7.277,6.829,14.225L30.282,70.849Z" transform="translate(-3.495 -7.354)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_18457" data-name="Tracé 18457" d="M22.74,79.287h0L19.2,76.975l-.4,7.356,3.54,2.357Z" transform="translate(-2.801 -11.472)" fill="url(#linear-gradient)"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 19 KiB |
26
resources/img/pictogrammes/pictogramme-conseils.svg
Normal file
26
resources/img/pictogrammes/pictogramme-conseils.svg
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="70.694" height="87.416" viewBox="0 0 70.694 87.416">
|
||||
<defs>
|
||||
<linearGradient id="linear-gradient" x1="0.101" y1="0.053" x2="1.095" y2="1.104" gradientUnits="objectBoundingBox">
|
||||
<stop offset="0" stop-color="#f3281d"/>
|
||||
<stop offset="1" stop-color="#fe766f"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="Groupe_3528" data-name="Groupe 3528" transform="translate(-586.501 -1763.775)">
|
||||
<path id="Tracé_215" data-name="Tracé 215" d="M1603.892,831.486l-35.458-20.472,35.237-20.344,35.458,20.471Z" transform="translate(-981.933 1019.705)" fill="url(#linear-gradient)"/>
|
||||
<path id="Tracé_216" data-name="Tracé 216" d="M1628.832,806.365l-19.206-10.732V773.238l19.206,11.088Z" transform="translate(-987.779 1022.18)" fill="#fff" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
|
||||
<path id="Tracé_217" data-name="Tracé 217" d="M1606.451,794.205l-19.206,11.088V783.255l9.6-17.564,9.6,6.476Z" transform="translate(-984.604 1023.249)" fill="#fff" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
|
||||
<g id="Groupe_82" data-name="Groupe 82" transform="translate(610.949 1772.365)">
|
||||
<path id="Tracé_218" data-name="Tracé 218" d="M1612.127,782.536a2.6,2.6,0,1,1-4.927-.1Z" transform="translate(-1598.363 -751.492)" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||
<path id="Tracé_219" data-name="Tracé 219" d="M1597.241,755.148a12.326,12.326,0,0,1,4.821-6.776l.077-.054a10.946,10.946,0,0,1,12.453,0l.077.054a12.326,12.326,0,0,1,4.821,6.776c1.077,4.3-.667,9.056-4.366,12.324l-1.045,4.139-6,4.638-5.421-4.638q-.524-2.07-1.046-4.139C1597.908,764.2,1596.164,759.445,1597.241,755.148Z" transform="translate(-1596.926 -746.375)" fill="#fff" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
|
||||
<path id="Tracé_220" data-name="Tracé 220" d="M1603.536,775.784l1.664.556a12.763,12.763,0,0,0,8.1,0l1.665-.556a1.953,1.953,0,0,1,.364,1.41,1.87,1.87,0,0,1-.409.909,2.415,2.415,0,0,1,.135.728,2.463,2.463,0,0,1-.319,1.273,6.838,6.838,0,0,1-10.969,0,2.467,2.467,0,0,1-.318-1.273,2.383,2.383,0,0,1,.136-.728,1.873,1.873,0,0,1-.409-.909A1.954,1.954,0,0,1,1603.536,775.784Z" transform="translate(-1597.81 -750.548)" fill="#fff" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
|
||||
<path id="Tracé_221" data-name="Tracé 221" d="M1614.987,778.486a15.732,15.732,0,0,1-11.334,0" transform="translate(-1597.881 -750.931)" fill="#fff" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
|
||||
<ellipse id="Ellipse_29" data-name="Ellipse 29" cx="5.668" cy="2.227" rx="5.668" ry="2.227" transform="translate(5.744 22.024) rotate(-0.311)" fill="#fff" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
|
||||
<path id="Tracé_222" data-name="Tracé 222" d="M1611.223,772.717l1.395-10.232a.694.694,0,0,1-.639.061.678.678,0,0,1-.364-.455,1.463,1.463,0,0,1-1.668-.455,1.247,1.247,0,0,1-.667.212,1.361,1.361,0,0,1-1.031-.516,1.4,1.4,0,0,1-.546.273,1.422,1.422,0,0,1-.785-.03q.514,5.033,1.028,10.066" transform="translate(-1598.344 -748.497)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
|
||||
</g>
|
||||
<line id="Ligne_45" data-name="Ligne 45" y1="4.581" transform="translate(622.387 1764.275)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
|
||||
<line id="Ligne_46" data-name="Ligne 46" y1="2.597" x2="3.633" transform="translate(633.329 1771.066)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
|
||||
<line id="Ligne_47" data-name="Ligne 47" x1="3.633" y1="2.597" transform="translate(606.734 1771.066)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
|
||||
<path id="Tracé_223" data-name="Tracé 223" d="M1606.451,819.675l-19.206-11.088V786.548l19.206,11.088Z" transform="translate(-984.604 1020.292)" fill="#fff" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
|
||||
<path id="Tracé_224" data-name="Tracé 224" d="M1628.832,807.516,1609.626,818.6V796.566l9.6-17.565,9.6,6.476Z" transform="translate(-987.779 1021.362)" fill="#fff" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.3 KiB |
14
searchform-custom-1.php
Normal file
14
searchform-custom-1.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<form action="/" method="get" class="search-module__search-form">
|
||||
<label class="search-module__search-form__title" for="search"><?php echo __('UN AUTRE en particulier ?', 'homegrade-theme__texte-fonctionnel') ?></label>
|
||||
<hr class="search-module__search-form__separator separator">
|
||||
<!-- <label class="search-module__label" for="search">Rechercher</label> -->
|
||||
|
||||
<input class="search-module__search-form__input" type="text" name="s" id="search" value="<?php the_search_query(); ?>" placeholder="<?php echo __('Rechercher dans le site. Taper vos mots-clés ici', 'homegrade-theme__texte-fonctionnel') ?>" />
|
||||
<!-- <input class="search-module__search-form__submit" type="image" alt="Search" src="<?php get_template_directory_uri() . "/resources/img/search-icon.svg" ?>" /> -->
|
||||
|
||||
|
||||
<button type="submit">
|
||||
<span>Rechercher</span>
|
||||
<img class="search_icon" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/search-icon.svg' alt=''>
|
||||
</button>
|
||||
</form>
|
||||
12
single.php
12
single.php
|
|
@ -11,12 +11,12 @@ get_header();
|
|||
$thematiqueParent = getParentThematique($thematique);
|
||||
$thematiqueColorSlug = getThematiqueFamilySlug($thematiqueParent->slug);
|
||||
?>
|
||||
<article class="container my-8 mx-auto single-editor-content <?php echo $thematiqueColorSlug ? "single-editor-content--" . $thematiqueColorSlug : "" ?>">
|
||||
<article class="container my-8 mx-auto entry-content single-editor-content <?php echo $thematiqueColorSlug ? "entry-content--" . $thematiqueColorSlug : "" ?>">
|
||||
<?php the_content() ?>
|
||||
<?php endwhile; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ $demarches_administratives_links = get_field('demarches_administratives_links');
|
|||
<p class="section_titling__description"><?php echo $block_titling['description'] ?></p>
|
||||
</div>
|
||||
<div class="card-large-content__links-container">
|
||||
|
||||
<?php foreach ($demarches_administratives_links as $link_datas) : ?>
|
||||
<?php
|
||||
$linked_page = $link_datas['linked_page'];
|
||||
|
|
@ -40,8 +39,6 @@ $demarches_administratives_links = get_field('demarches_administratives_links');
|
|||
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($linked_page->ID) ?>"><?php echo $link_datas['button_text'] ?></a>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ $block_titling = get_field('block_titling_description_datas');
|
|||
|
||||
$manual_data = get_field($thematique->slug . '_manual_data');
|
||||
$post_datas = $manual_data ? $manual_data : get_automatic_post($thematique->slug);
|
||||
|
||||
get_template_part(
|
||||
'template-components/card-frequent-question',
|
||||
null,
|
||||
|
|
|
|||
|
|
@ -43,9 +43,6 @@ $terms = get_terms(array(
|
|||
null,
|
||||
array(
|
||||
'thematique' => $term,
|
||||
'post_ID' => $post_datas->ID,
|
||||
'post_title' => $post_datas->post_title,
|
||||
'post_excerpt' => $post_datas->post_excerpt,
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
$mots_cles = get_the_terms($args['post_ID'], 'mots-cles');
|
||||
$thematique_icon = get_field('taxonomy_pictures', $args['thematique'])['icon'];
|
||||
// echo '<pre>';
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ $post_ID = $args['post_ID'];
|
|||
$card_variant = $args['card_variant'];
|
||||
$post_thumbnail = $args['post_thumbnail'];
|
||||
$post_title = $args['post_title'];
|
||||
$post_tags = $args['post_tags'];
|
||||
$post_tags = $args['post_tags'] ?? null;
|
||||
?>
|
||||
|
||||
|
||||
|
|
@ -14,7 +14,9 @@ $post_tags = $args['post_tags'];
|
|||
<div class="card-news__inner">
|
||||
<div class="card-news__heading">
|
||||
<h3 class="card-news__title"><?php echo $post_title ?></h3>
|
||||
<p class="card-news__tag"><?php echo $post_tags[0]->name ?></p>
|
||||
<?php if ($post_tags) : ?>
|
||||
<p class="card-news__tag"><?php echo $post_tags[0]->name ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<a href="#" class="cta cta--read-more cta--with-arrow-button cta--streched ">
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ $logoSRC = wp_get_attachment_image_src($logoID, 'full');
|
|||
<?php $parent_id = $item->ID; ?>
|
||||
|
||||
<!-- HAS SUBMENU -->
|
||||
<?php if ($menuitems[$key + 1]->menu_item_parent == $item->ID) : ?>
|
||||
<?php if (isset($menuitems[$key + 1]->menu_item_parent) && $menuitems[$key + 1]->menu_item_parent == $item->ID) : ?>
|
||||
<li id="menu-item-<?php echo $item->ID ?>" class="menu-item menu-item-has-children">
|
||||
<button type="button" class="menu-item__submenu-toggle" aria-expanded="false">
|
||||
<?php echo $title; ?>
|
||||
|
|
@ -81,12 +81,7 @@ $logoSRC = wp_get_attachment_image_src($logoID, 'full');
|
|||
/* -----------------------------------------------------------
|
||||
IF IS A SUBMENU
|
||||
-----------------------------------------------------------*/
|
||||
// write_log($item);
|
||||
// echo '<pre>';
|
||||
// print_r(168);
|
||||
// print_r(gettype($item->ID));
|
||||
// echo '</pre>';
|
||||
if ($parent_id == $item->menu_item_parent) : ?>
|
||||
if (isset($parent_id) && $parent_id == $item->menu_item_parent) : ?>
|
||||
<?php if (!$submenu) : $submenu = true; ?>
|
||||
<div class="sub-menu sub-menu--closed" id="submenu-<?php echo $item->menu_item_parent ?>">
|
||||
|
||||
|
|
@ -137,7 +132,7 @@ $logoSRC = wp_get_attachment_image_src($logoID, 'full');
|
|||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($menuitems[$count + 1]->menu_item_parent != $parent_id) : ?>
|
||||
<?php if (isset($parent_id) && isset($menuitems[$count + 1]->menu_item_parent) && $menuitems[$count + 1]->menu_item_parent != $parent_id) : ?>
|
||||
</li>
|
||||
<?php $submenu = false;
|
||||
endif; ?>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<div class="search-module__wrapper-container">
|
||||
<?php get_search_form(); ?>
|
||||
<div class="search-module__suggestions">
|
||||
<p>Suggestions :</p>
|
||||
<>Suggestions :</>
|
||||
<?php
|
||||
$args = array(
|
||||
'post_type' => 'conseils',
|
||||
|
|
|
|||
110
template-conseils.php
Normal file
110
template-conseils.php
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
<?php /* Template Name: Conseils | Archive */
|
||||
get_header();
|
||||
$thematiquesTerms = get_terms(array(
|
||||
'taxonomy' => 'thematiques',
|
||||
'hide_empty' => false,
|
||||
'parent' => 0
|
||||
));
|
||||
|
||||
?>
|
||||
<nav class="breadcrumbs_navigation" aria-label="breadcrumbs">
|
||||
<ol>
|
||||
<li><a href="<?php echo home_url() ?>">Home</a></li>
|
||||
<li><a href="<?php echo get_post_type_archive_link('conseils') ?>" aria-current='location'>Nos conseils</a></li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<section class="archive-page-header">
|
||||
<h1 class="thematiques-post-viewer__title"><?php echo __("Nos conseils par thématique", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></h1>
|
||||
<p class="thematiques-post-viewer__description"><?php echo __("Simplifions votre recherche grâce aux questions fréquemment posées !", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></p>
|
||||
<ul class="thematiques-post-viewer__terms-grid">
|
||||
<?php foreach ($thematiquesTerms as $thematique) : ?>
|
||||
<?php
|
||||
// $thematique_icon = get_field('taxonomy_pictures', $thematique->term_id)['icon'];
|
||||
// $translated_term_id = icl_object_id($thematique->term_id, $thematique->taxonomy, true, ICL_LANGUAGE_CODE);
|
||||
|
||||
// $thematique_icon = get_field('taxonomy_pictures', $thematique->taxonomy . '_' . $translated_term_id)['icon'];
|
||||
|
||||
$original_term_ID = apply_filters('wpml_object_id', $thematique->term_id, 'thematiques', FALSE, 'fr');
|
||||
$thematique_icon = get_field('taxonomy_pictures', $thematique->taxonomy . '_' . $original_term_ID)['icon'];
|
||||
$termSlug = getThematiqueFamilySlug($thematique->slug);
|
||||
|
||||
$args = array(
|
||||
'posts_per_page' => 1,
|
||||
'post_type' => 'conseils',
|
||||
'tax_query' => array(
|
||||
array(
|
||||
'taxonomy' => 'thematiques',
|
||||
'field' => 'term_id',
|
||||
'terms' => $thematique->term_id,
|
||||
)
|
||||
)
|
||||
);
|
||||
$relatedPostConseil = get_posts($args);
|
||||
|
||||
?>
|
||||
<?php if ($relatedPostConseil) : ?>
|
||||
<li class="term">
|
||||
<a href="<?php echo get_permalink($relatedPostConseil[0]->ID) ?>">
|
||||
<img src="<?php echo $thematique_icon['url'] ?>" alt="">
|
||||
<p class="text-<?php echo $termSlug ?>"><span class="sr-only">Question </span><?php echo $thematique->name ?></p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
<section class="homegrade-help card-large-content-container">
|
||||
|
||||
<div class="card-large-content card-large-content--has-illustration">
|
||||
<img class="card-large-content__top-illustration" src='<?php echo get_template_directory_uri() ?>/resources/img/illustrations/illustration-homegrade-help.svg' alt=''>
|
||||
|
||||
<div class="section_titling">
|
||||
<h2 class="section_titling__title"><?php echo __("Comment Homegrade peut vous aider ?", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></h2>
|
||||
<p class="section_titling__subtitle"><?php echo __("Homegrade met à disposition des outils en ligne pour vous aider dans votre recherche", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></p>
|
||||
</div>
|
||||
<div class="card-large-content__links-container">
|
||||
<!-- PUBLICATIONS -->
|
||||
<div class="card-large-content__link">
|
||||
<?php $publication_page_ID = apply_filters('wpml_object_id', 106, 'page', TRUE); ?>
|
||||
<img class="card-large-content__link__page_icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/pictogramme-outils.svg' ?>" alt="">
|
||||
<h3 class="card-large-content__link__title"><?php echo get_the_title($publication_page_ID) ?></h3>
|
||||
<p class="card-large-content__link__excerpt"><?php echo get_the_excerpt($publication_page_ID) ?></p>
|
||||
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($publication_page_ID) ?>"><?php echo __("Accédez aux publications", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
|
||||
</div>
|
||||
<!-- FAQ -->
|
||||
<div class="card-large-content__link">
|
||||
<?php $faq_page_ID = apply_filters('wpml_object_id', 60, 'page', TRUE); ?>
|
||||
<img class="card-large-content__link__page_icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/pictogramme-faq.svg' ?>" alt="">
|
||||
<h3 class="card-large-content__link__title"><?php echo get_the_title($faq_page_ID) ?></h3>
|
||||
<p class="card-large-content__link__excerpt"><?php echo get_the_excerpt($faq_page_ID) ?></p>
|
||||
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($faq_page_ID) ?>"><?php echo __("Accédez aux publications", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
|
||||
</div>
|
||||
<!-- SERVICE -->
|
||||
<div class="card-large-content__link">
|
||||
<?php $services_page_ID = apply_filters('wpml_object_id', 52, 'page', TRUE); ?>
|
||||
<img class="card-large-content__link__page_icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/pictogramme-services.svg' ?>" alt="">
|
||||
<h3 class="card-large-content__link__title"><?php echo get_the_title($services_page_ID) ?></h3>
|
||||
<p class="card-large-content__link__excerpt"><?php echo get_the_excerpt($services_page_ID) ?></p>
|
||||
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($services_page_ID) ?>"><?php echo __("Accédez aux publications", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
86
template-publications.php
Normal file
86
template-publications.php
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
<?php /* Template Name: Publications | Archive */
|
||||
get_header();
|
||||
?>
|
||||
<div class="template-archives template-archives--publications">
|
||||
<nav class="breadcrumbs_navigation" aria-label="breadcrumbs">
|
||||
<ol>
|
||||
<li><a href="<?php echo home_url() ?>">Home</a></li>
|
||||
<li><a href="<?php echo get_post_type_archive_link('brochures') ?>" aria-current='location'>Publications</a></li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
|
||||
<section class="archive-page-header">
|
||||
<h1 class="archive-page-header__title"><?php echo __("Nos publications", "homegrade-theme__texte-fonctionnel__publications-archive-brochures") ?></h1>
|
||||
<p class="archive-page-header__description"> <?php echo __("Découvrez toutes nos publications et outils en ligne", "homegrade-theme__texte-fonctionnel__publications-archive-brochures") ?>
|
||||
</p>
|
||||
<?php get_search_form(); ?>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
<section class="brochures-archives">
|
||||
<div class="section_titling section_titling--left">
|
||||
<h2 class="section_titling__title"><?php echo __("Nos Brochures thématiques", "homegrade-theme__texte-fonctionnel__publications-archive-brochures") ?></h2>
|
||||
<p class="section_titling__subtitle">Curabitur eleifend neque eu erat lacinia tincidunt</p>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
$args = array(
|
||||
'post_type' => 'brochures',
|
||||
'posts_per_page' => -1,
|
||||
'post_status' => 'publish',
|
||||
'orderby' => 'date',
|
||||
'order' => 'DESC',
|
||||
);
|
||||
$brochures = new WP_Query($args);
|
||||
|
||||
|
||||
?>
|
||||
<ul class="brochures-grid">
|
||||
<?php if ($brochures->have_posts()) : ?>
|
||||
<?php while ($brochures->have_posts()) : $brochures->the_post(); ?>
|
||||
<?php
|
||||
$brochureCover = get_field('brochure_cover', get_the_ID());
|
||||
$brochurePdf = get_field('brochure_pdf', get_the_ID());
|
||||
$brochureEdition = get_field('brochure_edition', get_the_ID());
|
||||
$thematique = get_the_terms(get_the_ID(), 'thematiques')[0];
|
||||
$rootThematic = getParentThematique($thematique);
|
||||
|
||||
?>
|
||||
<?php if ($brochurePdf) : ?>
|
||||
<li class="brochures-grid__row">
|
||||
<?php if ($brochureCover) : ?>
|
||||
<img class="brochures-grid__cover" src="<?php echo $brochureCover['sizes']['medium'] ?>" />
|
||||
<?php endif; ?>
|
||||
<h2 class="brochures-grid__title"><?php echo $brochurePdf['title'] ?></h2>
|
||||
<p class="brochures-grid__thematique"><?php echo $rootThematic->name ?></p>
|
||||
<?php if ($brochureEdition) : ?>
|
||||
<p class="brochures-grid__edition"><?php echo $brochureEdition ?></p>
|
||||
<?php endif; ?>
|
||||
<div class="brochures-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-brochures") ?></a>
|
||||
</div>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endwhile ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
</ul>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
95
template-questions.php
Normal file
95
template-questions.php
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
<?php /* Template Name: Questions (FAQ) | Archive */
|
||||
|
||||
get_header();
|
||||
$thematiquesTerms = get_terms(array(
|
||||
'taxonomy' => 'thematiques',
|
||||
'hide_empty' => false,
|
||||
'parent' => 0
|
||||
));
|
||||
|
||||
?>
|
||||
<nav class="breadcrumbs_navigation" aria-label="breadcrumbs">
|
||||
<ol>
|
||||
<li><a href="<?php echo home_url() ?>">Home</a></li>
|
||||
<li><a href="<?php echo get_post_type_archive_link('questions') ?>" aria-current='location'>FAQ</a></li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<section class="archive-page-header">
|
||||
<h1 class="thematiques-post-viewer__title"><?php echo __("Les questions par thématique", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></h1>
|
||||
<p class="thematiques-post-viewer__description"><?php echo __("Simplifions votre recherche grâce aux questions fréquemment posées !", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></p>
|
||||
<ul class="thematiques-post-viewer__terms-grid">
|
||||
<?php foreach ($thematiquesTerms as $thematique) : ?>
|
||||
<?php
|
||||
|
||||
// $thematique_icon = get_field('taxonomy_pictures', $thematique)['icon'];
|
||||
|
||||
$original_term_ID = apply_filters('wpml_object_id', $thematique->term_id, 'thematiques', TRUE, 'fr');
|
||||
$thematique_icon = get_field('taxonomy_pictures', $thematique->taxonomy . '_' . $original_term_ID)['icon'];
|
||||
$termSlug = getThematiqueFamilySlug($thematique->slug);
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<li class="term">
|
||||
<a href="<?php echo get_term_link($thematique) ?>">
|
||||
<img src="<?php echo $thematique_icon['url'] ?>" alt="">
|
||||
<p class="text-<?php echo $termSlug ?>"><span class="sr-only">Question </span><?php echo $thematique->name ?></p>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
<section class="homegrade-help card-large-content-container">
|
||||
|
||||
<div class="card-large-content card-large-content--has-illustration">
|
||||
<img class="card-large-content__top-illustration" src='<?php echo get_template_directory_uri() ?>/resources/img/illustrations/illustration-homegrade-help.svg' alt=''>
|
||||
|
||||
<div class="section_titling">
|
||||
<h2 class="section_titling__title"><?php echo __("Comment Homegrade peut vous aider ?", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></h2>
|
||||
<p class="section_titling__subtitle"><?php echo __("Homegrade met à disposition des outils en ligne pour vous aider dans votre recherche", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></p>
|
||||
</div>
|
||||
<div class="card-large-content__links-container">
|
||||
<!-- PUBLICATIONS -->
|
||||
<div class="card-large-content__link">
|
||||
<?php $publication_page_ID = apply_filters('wpml_object_id', 106, 'page', TRUE); ?>
|
||||
<img class="card-large-content__link__page_icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/pictogramme-outils.svg' ?>" alt="">
|
||||
<h3 class="card-large-content__link__title"><?php echo get_the_title($publication_page_ID) ?></h3>
|
||||
<p class="card-large-content__link__excerpt"><?php echo get_the_excerpt($publication_page_ID) ?></p>
|
||||
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($publication_page_ID) ?>"><?php echo __("Accédez aux publications", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
|
||||
</div>
|
||||
<!-- FAQ -->
|
||||
<div class="card-large-content__link">
|
||||
<?php $conseils_page_ID = apply_filters('wpml_object_id', 102, 'page', TRUE); ?>
|
||||
<img class="card-large-content__link__page_icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/pictogramme-faq.svg' ?>" alt="">
|
||||
<h3 class="card-large-content__link__title"><?php echo get_the_title($conseils_page_ID) ?></h3>
|
||||
<p class="card-large-content__link__excerpt"><?php echo get_the_excerpt($conseils_page_ID) ?></p>
|
||||
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($conseils_page_ID) ?>"><?php echo __("Accédez aux publications", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
|
||||
</div>
|
||||
<!-- SERVICE -->
|
||||
<div class="card-large-content__link">
|
||||
<?php $services_page_ID = apply_filters('wpml_object_id', 52, 'page', TRUE); ?>
|
||||
<img class="card-large-content__link__page_icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/pictogramme-services.svg' ?>" alt="">
|
||||
<h3 class="card-large-content__link__title"><?php echo get_the_title($services_page_ID) ?></h3>
|
||||
<p class="card-large-content__link__excerpt"><?php echo get_the_excerpt($services_page_ID) ?></p>
|
||||
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($services_page_ID) ?>"><?php echo __("Accédez aux publications", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
Loading…
Reference in New Issue
Block a user