entete sit

This commit is contained in:
2024-07-01 16:33:16 +02:00
parent 09cd038feb
commit 5c16a8f4af
8 changed files with 488 additions and 401 deletions
+4
View File
@@ -46,6 +46,7 @@ function reha_preprocess_html(&$variables) {
$numero_field_content = '';
$adresse_field_content = '';
$lettre_field_content = '';
$image_caption_field_content = '';
foreach ($variables['content'] as $field_name => $field_content) {
if ($field_name == 'body') {
@@ -60,6 +61,8 @@ function reha_preprocess_html(&$variables) {
$adresse_field_content = $field_content;
} elseif ($field_name == 'field_lettre_de_site') {
$adresse_field_content = $field_content;
} elseif ($field_name == 'image_field_caption') {
$image_caption_field_content = $field_content;
} elseif (!in_array($field_name, $fields_to_exclude)) {
$filtered_content[$field_name] = $field_content;
} else {
@@ -75,6 +78,7 @@ function reha_preprocess_html(&$variables) {
$variables['adresse_field_content'] = $adresse_field_content;
$variables['numero_field_content'] = $numero_field_content;
$variables['field_lettre_de_site'] = $lettre_field_content;
$variables['image_field_caption'] = $image_caption_field_content;
}
}