few tweaks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2025-01-07 09:36:32 +01:00
parent b22257fe39
commit 5d7396e3f9
2 changed files with 11 additions and 3 deletions

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

@ -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;
} }