css bouton zoom projet

This commit is contained in:
2023-07-12 19:50:33 +02:00
parent 9ba0e2b6b8
commit 01e1cc89e5
4 changed files with 37 additions and 16 deletions
+13
View File
@@ -21,6 +21,7 @@ function eql_preprocess_html(&$variables) {
function eql_preprocess_node(&$variables){
$node = &$variables['node'];
$variables['attributes']['class'][] = 'node-type-' . $node->gettype();
// $variables['elements']['content_bottom'] = []; /////////////////////////////
if($node->gettype() == "actualite") {
$actu_type = $node->get('field_actu_type')->getString();
$variables['attributes']['class'][] = 'actu-type-' . $actu_type;
@@ -30,6 +31,18 @@ function eql_preprocess_node(&$variables){
$variables['attributes']['class'][] = 'type-de-protagoniste-' . $type_protagoniste;
}
// foreach ($variables['elements'] as $key => $value){ //////////////////////////////////
// if(isset($value['#view_mode']) && $value['#view_mode']== 'teaser'){
// if($value['elements']=="field_region" || $value['#derivative_plugin_id']=="node:field_adresse"){
// $variables['elements']['content_bottom'][] = $variables["elements"]["field_incube"]["#field_name"];
// }
// }
// }
}