border color id protagoniste
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user