templates/frontend/layout/_header.html.twig line 1
<div class="bg-brand-gray">
<div class="p-4 lg:w-[1280px] mx-auto flex justify-between items-center">
<div class="flex items-center">
<a href="{{ path('app_home', {'_locale': app.request.locale}) }}"><img class="h-[42px] mr-3" src="{{ asset('images/logo.png') }}"/></a>
<div class="uppercase text-[#3F4193] align-middle">
{{ 'header.slogan' | trans }}
</div>
</div>
<div class="flex space-x-3 text-sm">
<div class="bg-white rounded flex overflow-hidden items-center">
<div class="flex items-center h-full bg-gray-300 text-white px-3">
<i class="fa fa-phone"></i>
</div>
<span class="inline-block py-2 px-3">88108071, 99117508 </span>
</div>
<div class="bg-white rounded flex overflow-hidden items-center">
<div class="flex items-center h-full bg-gray-300 text-white px-3">
<i class="fa fa-envelope"></i>
</div>
<span class="inline-block py-2 px-3">info@msia.mn</span>
</div>
<a href="{{ path('app_login') }}"
class="inline-block bg-white rounded flex overflow-hidden items-center group">
<div class="flex items-center h-full bg-gray-300 group-hover:bg-brand-red text-white px-3">
<i class="fa fa-circle-user"></i>
</div>
<span class="inline-block py-2 px-3">{{ 'header.login' | trans }}</span>
</a>
{% if app.request.locale == 'mn' %}
<a href="{{ path('app_home', {_locale: 'en'}) }}"
class="inline-block bg-white rounded flex overflow-hidden items-center group">
<div class="flex items-center h-full bg-gray-300 text-white px-2">
<img class="h-[20px]" src="{{ asset('images/flag/uk.png') }}">
</div>
<span class="inline-block py-2 px-3">English</span>
</a>
{% elseif app.request.locale == 'en' %}
<a href="{{ path('app_home', {_locale: 'mn'}) }}"
class="inline-block bg-white rounded flex overflow-hidden items-center group">
<div class="flex items-center h-full bg-gray-300 text-white px-2">
<img class="h-[20px]" src="{{ asset('images/flag/mn.png') }}">
</div>
<span class="inline-block py-2 px-3">Монгол</span>
</a>
{% endif %}
</div>
</div>
</div>
<div class="bg-brand">
<div class="lg:w-[1280px] mx-auto flex justify-between items-center">
{% set menus = [
{label:'menu.homepage', link : 'app_home', locale: ['en','mn'], param: {'_locale': app.request.locale}},
{label:'menu.intro', link : 'app_intro', locale: ['en','mn'], param: {'_locale': app.request.locale}},
{label:'menu.about', link : 'app_about', locale: ['en','mn'], param: {'_locale': app.request.locale}},
{label:'menu.members', link : 'app_members', locale: ['en','mn'], param: {'_locale': app.request.locale}},
{label:'menu.news', link : 'app_content', locale: ['en','mn'], param: {'_locale': app.request.locale, type: 0}},
{label:'menu.technology', link : 'app_content', locale: ['en','mn'], param: {'_locale': app.request.locale, type: 1}},
{label:'menu.training', link : 'app_content', locale: ['en','mn'], param: {'_locale': app.request.locale, type: 2}},
] %}
<nav class="text-brand-gray uppercase text-sm">
{% for menu in menus %}
<a href="{{ path(menu.link, menu.param is defined ? menu.param : {}) }}"
class="py-4 px-6 inline-block cursor-pointer hover:text-brand-red">{{ menu.label|trans }}</a>
{% endfor %}
</nav>
</div>
</div>