From d28911e49eadcc08197e4c995723041f09858a98 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Mon, 8 Jun 2026 11:50:10 +0200 Subject: [PATCH] FEATURE handling potential collective access link --- includes/utilities.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/utilities.php b/includes/utilities.php index 8d830a7..b6ba67a 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -532,8 +532,9 @@ function carhop_get_post_card_link_according_to_post_datas($post_id, $card_args $text = 'Voir la notice'; break; case 'fonds-archives': - $link = ''; - $target = '_self'; + $collective_access_link = get_field('collective_access_link', $post_id); + $link = $collective_access_link ?? ''; + $target = '_blank'; $text = null; $is_external = false; break;