This commit is contained in:
parent
b22257fe39
commit
5d7396e3f9
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
$postID = $args['post_ID'];
|
||||
$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_permalink = get_the_permalink($postID);
|
||||
|
|
@ -57,10 +58,10 @@ $adresse = get_field('adresse', $postID);
|
|||
<?php $clean_website = str_replace(array('http://', 'https://'), '', $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; ?>
|
||||
<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"> <?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=''>
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -18,9 +18,12 @@
|
|||
@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 {
|
||||
@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 {
|
||||
@apply inline-flex mr-3 h-6 w-6 bg-center bg-contain bg-no-repeat;
|
||||
content: '';
|
||||
|
|
@ -64,6 +67,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
&__vat-number {
|
||||
@apply !mb-0;
|
||||
}
|
||||
|
||||
.cta--read-more {
|
||||
@apply mt-6;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user