Skip to content
Snippets Groups Projects
Commit 12324c59 authored by Artem Antonov's avatar Artem Antonov
Browse files

Change markup structure

parent 33136bd7
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ function cern_toolbar_theme() {
return [
'cern_toolbar' => [
'render element' => 'element',
'variables' => ['toolbar_links' => NULL, 'attributes' => []],
'variables' => ['toolbar_links' => NULL, 'directory_link' => NULL, 'attributes' => []],
],
];
}
......
......@@ -199,7 +199,7 @@ class CernToolbar extends RenderElement {
],
];
}
$items_toolbar_links[] = [
$element['#directory_link'] = [
'#type' => 'link',
'#title'=> t('Directory'),
'#url'=> URL::fromUri('//cern.ch/directory'),
......
......@@ -5,5 +5,8 @@
<span>{{ 'Accelerating science' | t }}</span>
</a>
</h1>
{{ toolbar_links }}
<ul>
<li>{{ toolbar_links }}</li>
<li>{{ directory_link }}</li>
</ul>
</div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment