added file field to home showrooms
This commit is contained in:
@@ -403,3 +403,11 @@ function materiotheme_preprocess_field__node__field_showrooms__frontpage(array &
|
||||
"href" => '/' . $variables['element']['#language'] . '/showrooms'
|
||||
);
|
||||
}
|
||||
|
||||
function materiotheme_preprocess_file_link(array &$variables) {
|
||||
$url = $variables['link']['#url'];
|
||||
$attributes = $url->getOption('attributes');
|
||||
$attributes['target'] = '_blank';
|
||||
$url->setOption('attributes', $attributes);
|
||||
$t="t";
|
||||
}
|
Reference in New Issue
Block a user