Compare commits

...

2 Commits

Author SHA1 Message Date
Nonimart
314654ecf9 FIX passing a blank target to artisan website
All checks were successful
continuous-integration/drone/push Build is passing
2025-09-01 13:38:16 +02:00
Nonimart
1b2c6d81ca REFACTOR Removing unecessary space 2025-09-01 13:37:47 +02:00
2 changed files with 1 additions and 2 deletions

View File

@ -82,7 +82,6 @@ $cover_image = get_field('artisan_cover', $postID);
<?php endif; ?>
<?php $clean_website = str_replace(array('http://', 'https://'), '', $website); ?>
<?php if ($website && !empty($clean_website)): ?>
<a class="card-artisans__website" href="<?php echo $website ?>" target="_blank"><?php echo $clean_website ?></a>
<?php endif; ?>
<a href=" <?php echo $artisans_clean_url ?>" class="cta cta--read-more cta--with-arrow-button ">

View File

@ -62,7 +62,7 @@ $cover_image = get_field('artisan_cover', $postID);
<?php $clean_website = str_replace(array('http://', 'https://'), '', $website); ?>
<?php if ($website && !empty($clean_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 ?>" target="_blank"><?php echo $clean_website ?></a>
<?php endif; ?>
<?php if ($vatNumber): ?>
<p class="card-artisans__vat-number"><?php echo __("N° d'entreprise", "metiers-patrimoine-theme") . " : " . $vatNumber ?></p>