template pages projets
This commit is contained in:
@@ -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>');
|
||||
|
||||
Reference in New Issue
Block a user