Header: Add external links
This commit is contained in:
parent
b3a4c67b1b
commit
e4a06fb457
|
@ -23,6 +23,12 @@ return [
|
||||||
// Set to development to enable debugging messages
|
// Set to development to enable debugging messages
|
||||||
'environment' => env('ENVIRONMENT', 'production'),
|
'environment' => env('ENVIRONMENT', 'production'),
|
||||||
|
|
||||||
|
// Header links
|
||||||
|
// Available link placeholders: %lang%
|
||||||
|
'header_items' => [
|
||||||
|
//'Foo' => 'https://foo.bar/batz-%lang%.html',
|
||||||
|
],
|
||||||
|
|
||||||
// Footer links
|
// Footer links
|
||||||
'footer_items' => [
|
'footer_items' => [
|
||||||
// URL to the angel faq and job description
|
// URL to the angel faq and job description
|
||||||
|
|
|
@ -28,6 +28,18 @@
|
||||||
<div class="collapse navbar-collapse" id="navbar-collapse-1">
|
<div class="collapse navbar-collapse" id="navbar-collapse-1">
|
||||||
{% block menu_items %}
|
{% block menu_items %}
|
||||||
{{ menu() }}
|
{{ menu() }}
|
||||||
|
|
||||||
|
{% if config('header_items') %}
|
||||||
|
<ul class="nav navbar-nav">
|
||||||
|
{% for text,link in config('header_items', {}) %}
|
||||||
|
<li>
|
||||||
|
<a href="{{ link|replace({'%lang%': session_get('locale')|split('_')[0]})|escape('html_attr') }}">
|
||||||
|
{{ text }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block menu_toolbar %}
|
{% block menu_toolbar %}
|
||||||
|
|
Loading…
Reference in New Issue