divers
This commit is contained in:
@@ -37,13 +37,25 @@ function rorschach_preprocess_field(&$variables) {
|
||||
|
||||
$field_name = &$variables['field_name'];
|
||||
if($node) {
|
||||
if ($field_name == 'field_type_de_protagoniste'){
|
||||
$type_protagoniste = $node->get('field_type_de_protagoniste')->getString();
|
||||
$variables['attributes']['class'][] = 'type-de-protagoniste-' . $type_protagoniste;
|
||||
}
|
||||
// if ($field_name == 'field_type_de_protagoniste'){
|
||||
// $type_protagoniste = $node->get('field_type_de_protagoniste')->getString();
|
||||
// $variables['attributes']['class'][] = 'type-de-protagoniste-' . $type_protagoniste;
|
||||
// }
|
||||
if ($field_name == 'block-pagetitle-2') {
|
||||
$depth_title = $node->get('block-pagetitle-2')->getString();
|
||||
$variables['classes_array'][] = "menu-depth-" . $depth_title;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
// $variables['classes_array'][] = "menu-depth-" . $depth;
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
// function rorschach_preprocess_field(&$variables){
|
||||
@@ -121,3 +133,4 @@ function rorschach_preprocess_field(&$variables) {
|
||||
// static $counter = 0;
|
||||
// $vars['counter'] = $counter++;
|
||||
// }
|
||||
|
||||
|
||||
@@ -156,3 +156,4 @@ jQuery(function($) {
|
||||
|
||||
|
||||
// ///////////////////////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user