FEATURE handling potential collective access link
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2026-06-08 11:50:10 +02:00
parent 4481a69316
commit d28911e49e

View File

@ -532,8 +532,9 @@ function carhop_get_post_card_link_according_to_post_datas($post_id, $card_args
$text = 'Voir la notice'; $text = 'Voir la notice';
break; break;
case 'fonds-archives': case 'fonds-archives':
$link = ''; $collective_access_link = get_field('collective_access_link', $post_id);
$target = '_self'; $link = $collective_access_link ?? '';
$target = '_blank';
$text = null; $text = null;
$is_external = false; $is_external = false;
break; break;