css bouton zoom projet
This commit is contained in:
@@ -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"];
|
||||
|
||||
// }
|
||||
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user