diff --git a/includes/utilities.php b/includes/utilities.php index 9bf8d31..8d830a7 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -531,6 +531,12 @@ function carhop_get_post_card_link_according_to_post_datas($post_id, $card_args $target = '_blank'; $text = 'Voir la notice'; break; + case 'fonds-archives': + $link = ''; + $target = '_self'; + $text = null; + $is_external = false; + break; default: $link = get_permalink($post_id) ?: ''; break; @@ -541,6 +547,6 @@ function carhop_get_post_card_link_according_to_post_datas($post_id, $card_args 'target' => $target, 'text' => $text, 'is_external' => $is_external, - 'has_valid_link' => ($link !== ''), + 'has_valid_link' => ! empty($link), ); }