This commit is contained in:
2023-11-06 10:50:13 +01:00
parent f6221293c6
commit 8570ab6d8b
56 changed files with 1252 additions and 860 deletions
+17 -4
View File
@@ -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($) {
// ///////////////////////////////