home sections labels link made active

This commit is contained in:
2021-06-10 19:45:30 +02:00
parent 27ece7a12c
commit 81eb01d101
12 changed files with 54 additions and 16 deletions

View File

@@ -331,3 +331,24 @@ function materiotheme_preprocess_printable(array &$variables) {
// $variables['attributes']['src'] = '/themes/custom/materiotheme/assets/img/blank.gif';
// }
// }
function materiotheme_preprocess_field__node__field_a_database__frontpage(array &$variables) {
if ($variables['logged_in']) {
$variables['label_link'] = array(
"href" => '/' . $variables['element']['#language'] . '/base'
);
}
}
function materiotheme_preprocess_field__node__field_blabla__frontpage(array &$variables) {
$variables['label_link'] = array(
"href" => '/' . $variables['element']['#language'] . '/blabla'
);
}
function materiotheme_preprocess_field__node__field_showrooms__frontpage(array &$variables) {
$variables['label_link'] = array(
"href" => '/' . $variables['element']['#language'] . '/showrooms'
);
}