border color id protagoniste

This commit is contained in:
2022-01-20 15:25:09 +01:00
parent e2bf468ed9
commit c565e1a188
6 changed files with 190 additions and 22 deletions
+12
View File
@@ -15,8 +15,10 @@ function eql_preprocess_html(&$variables) {
$variables['attributes']['class'][] = 'node-type-' . $node->bundle();
$variables['attributes']['class'][] = 'node-id-' . $node->id();
}
}
function eql_preprocess_node(&$variables){
$node = &$variables['node'];
$variables['attributes']['class'][] = 'node-type-' . $node->gettype();
@@ -24,11 +26,21 @@ function eql_preprocess_node(&$variables){
$actu_type = $node->get('field_actu_type')->getString();
$variables['attributes']['class'][] = 'actu-type-' . $actu_type;
}
if($node->gettype() == "offre_de_service") {
$type_protagoniste = $node->get('field_type_de_protagoniste')->getString();
$variables['attributes']['class'][] = 'type-de-protagoniste-' . $type_protagoniste;
}
}
///////////////////////////////////////////////////
///////////////////////////////////////////////////
// counter pour id
// function eql_preprocess_field(&$variables) {