page theme et villes
This commit is contained in:
@@ -26,6 +26,14 @@ function popsu_preprocess_html(&$variables) {
|
||||
}
|
||||
}
|
||||
|
||||
function popsu_preprocess_node(&$variables){
|
||||
|
||||
$node = &$variables['node'];
|
||||
if($node->hasField('field_programme') && $node->get('field_programme')->getString() != ""){
|
||||
$variables['attributes']['class'][] = 'programme-' . $node->get('field_programme')->getString();
|
||||
}
|
||||
}
|
||||
|
||||
function popsu_preprocess_field(&$variables){
|
||||
$element = &$variables['element'];
|
||||
if (isset($element['#field_name'])) {
|
||||
|
Reference in New Issue
Block a user