template pages projets

This commit is contained in:
Valentin
2024-11-06 02:46:29 +01:00
parent 5c4f8fd464
commit e6e9e9f7ac
20 changed files with 1362 additions and 59 deletions

View File

@@ -114,8 +114,9 @@ function erabletheme_theme_suggestions_views_view_alter(array &$suggestions, arr
function erabletheme_theme_suggestions_node_alter(array &$suggestions, array $variables) {
$is_actu = isset($variables['elements']['field_type_d_actualite']);
$is_projet = isset($variables['elements']['field_localisation_textuel']);
if (!$is_actu && isset($variables['elements']['#title'])) {
if (!$is_projet && !$is_actu && isset($variables['elements']['#title'])) {
$total_title = $variables['elements']['#title'];
$start_pos = strpos($total_title, '<span>') + strlen('<span>');
$end_pos = strpos($total_title, '</span>');