Compare commits

..

4 Commits

Author SHA1 Message Date
5d7396e3f9 few tweaks
All checks were successful
continuous-integration/drone/push Build is passing
2025-01-07 09:36:32 +01:00
b22257fe39 handling disclaimer 2025-01-07 09:35:26 +01:00
726c45cf41 handling coordonnées and VAT number 2025-01-07 09:35:03 +01:00
8a01c5e0e9 handling font-bold and font-light for taxonomy and sub taxonomy filters 2025-01-07 09:34:42 +01:00
5 changed files with 24 additions and 5 deletions

View File

@ -101,6 +101,9 @@
&.checkbox-choice-parent { &.checkbox-choice-parent {
@apply px-2 rounded-2xl; @apply px-2 rounded-2xl;
> label {
@apply font-bold;
}
} }
&.checkbox-choice-parent:has(.child-checkbox:checked) { &.checkbox-choice-parent:has(.child-checkbox:checked) {
transition: all 0.3s ease; transition: all 0.3s ease;
@ -144,7 +147,7 @@
&__search-by { &__search-by {
@apply flex flex-col gap-4 mt-4; @apply flex flex-col gap-4 mt-4;
legend { legend {
@apply block text-neutral-400 uppercase !text-base tracking-wider mb-4; @apply block !text-neutral-400 font-normal uppercase !text-base tracking-wider mb-4;
} }
.search-radio-card { .search-radio-card {
@apply bg-white rounded-lg p-4 shadowed flex justify-between cursor-pointer; @apply bg-white rounded-lg p-4 shadowed flex justify-between cursor-pointer;

View File

@ -99,4 +99,7 @@
} }
} }
} }
.disclaimer {
@apply text-white text-center mt-4 bg-primary rounded-xl p-4;
}
} }

View File

@ -1,6 +1,7 @@
<?php <?php
$postID = $args['post_ID']; $postID = $args['post_ID'];
$post_thumbnail = get_the_post_thumbnail($postID, 'full', array('class' => 'card-artisans__thumbnail card-post__thumbnail')) ?? null; $post_thumbnail = get_the_post_thumbnail($postID, 'full', array('class' => 'card-artisans__thumbnail card-post__thumbnail')) ?? null;
$postDefautlThumbnail = get_stylesheet_directory_uri() . '/resources/img/photos/default-cover.jpg';
$post_title = $args['post_title']; $post_title = $args['post_title'];
$post_permalink = get_the_permalink($postID); $post_permalink = get_the_permalink($postID);
@ -57,10 +58,10 @@ $adresse = get_field('adresse', $postID);
<?php $clean_website = str_replace(array('http://', 'https://'), '', $website); ?> <?php $clean_website = str_replace(array('http://', 'https://'), '', $website); ?>
<?php if ($website && !empty($clean_website)): ?> <?php if ($website && !empty($clean_website)): ?>
<a class="card-artisans__website" href="<?php echo $website ?>"><?php echo $clean_website ?></a> <a class="card-artisans__website" href="<?php echo $website ?>" target="_blank"><?php echo $clean_website ?></a>
<?php endif; ?> <?php endif; ?>
<a href=" <?php echo get_the_permalink($postID) ?>" class="cta cta--read-more cta--with-arrow-button "> <a href=" <?php echo get_the_permalink($postID) ?>" class="cta cta--read-more cta--with-arrow-button ">
<span><?php echo __("En savoir plus", 'metiers-du-patirmoine-theme') ?></span> <span><?php echo __("En savoir plus", 'metiers-patrimoine-theme') ?></span>
<span class="sr-only"> &nbsp;<?php echo $post_title ?></span> <span class="sr-only"> &nbsp;<?php echo $post_title ?></span>
<img class="cta_arrow_button" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/arrow-right-circle.svg' alt=''> <img class="cta_arrow_button" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/arrow-right-circle.svg' alt=''>
</a> </a>

View File

@ -14,6 +14,7 @@ $email = get_field('email', $postID);
$website = get_field('website', $postID); $website = get_field('website', $postID);
$adresse = get_field('adresse', $postID); $adresse = get_field('adresse', $postID);
$vatNumber = get_field('vat_number', $postID);
// write_log(gettype($formattedPhoneNumber)); // write_log(gettype($formattedPhoneNumber));
?> ?>
@ -23,7 +24,6 @@ $adresse = get_field('adresse', $postID);
<div class="card-artisans__inner"> <div class="card-artisans__inner">
<h2 class="card-artisans__title"><?php echo $post_title ?></h2> <h2 class="card-artisans__title"><?php echo $post_title ?></h2>
<?php if ($company_members): ?> <?php if ($company_members): ?>
<p class="card-artisans__team-members"> <p class="card-artisans__team-members">
<?php foreach ($company_members as $key => $member) : ?> <?php foreach ($company_members as $key => $member) : ?>
@ -32,6 +32,8 @@ $adresse = get_field('adresse', $postID);
</p> </p>
<?php endif; ?> <?php endif; ?>
<h4 class="card-artisans__contact-details-title"><?php echo __("Coordonnées ", "metiers-patrimoine-theme") ?></h4>
<?php if ($adresse): ?> <?php if ($adresse): ?>
<p class="card-artisans__adresse"><?php echo $adresse['post_code'] . " " . $adresse['city'] ?></p> <p class="card-artisans__adresse"><?php echo $adresse['post_code'] . " " . $adresse['city'] ?></p>
@ -53,5 +55,8 @@ $adresse = get_field('adresse', $postID);
<?php $clean_website = str_replace(array('http://', 'https://'), '', $website); ?> <?php $clean_website = str_replace(array('http://', 'https://'), '', $website); ?>
<a class="card-artisans__website" href="<?php echo $website ?>"><?php echo $clean_website ?></a> <a class="card-artisans__website" href="<?php echo $website ?>"><?php echo $clean_website ?></a>
<?php endif; ?> <?php endif; ?>
<?php if ($vatNumber): ?>
<p class="card-artisans__vat-number"><?php echo __("N° d'entreprise", "metiers-patrimoine-theme") . " : " . $vatNumber ?></p>
<?php endif; ?>
</article> </article>

View File

@ -18,9 +18,12 @@
@apply bg-patrimoine-sante-securite-light text-patrimoine-sante-securite rounded-lg text-sm px-3 py-1; @apply bg-patrimoine-sante-securite-light text-patrimoine-sante-securite rounded-lg text-sm px-3 py-1;
} }
} }
&__contact-details-title {
@apply uppercase !font-medium text-neutral-400 !mb-3 !text-sm;
}
&__adresse { &__adresse {
@apply font-normal underline-offset-4 inline-flex !mt-6 w-full; @apply font-normal underline-offset-4 inline-flex !mt-0 w-full;
&:before { &:before {
@apply inline-flex mr-3 h-6 w-6 bg-center bg-contain bg-no-repeat; @apply inline-flex mr-3 h-6 w-6 bg-center bg-contain bg-no-repeat;
content: ''; content: '';
@ -64,6 +67,10 @@
} }
} }
&__vat-number {
@apply !mb-0;
}
.cta--read-more { .cta--read-more {
@apply mt-6; @apply mt-6;
} }