This commit is contained in:
armansansd
2022-12-09 15:02:54 +00:00
parent 94ec5ab316
commit b74b57b296
8 changed files with 45 additions and 13 deletions

View File

@@ -41,7 +41,12 @@ function popsu_preprocess_html(&$variables) {
}
function popsu_preprocess_page(&$variables) {
dump($variables);
if(isset($variables['node'])){
$node = $variables['node'];
if(isset($node) && $node->hasField('field_videos') && $node->get('field_videos')->getString() != ""){
$variables['attributes']['class'][] = 'ressources-video';
}
}
}
function popsu_preprocess_node(&$variables){