src/Tutorka/Bundle/CoreBundle/Resources/views/footer.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'layout' %}
    
    <section class="footer__container container-fluid p-0">
        <div class="container row footer__social mx-auto">
            <div class="col-12 col-sm-6 col-md-6 text-center text-sm-left px-0">
                <img src="{{ asset('build/images/logo_white.svg') }}" alt="">
    {#            <a href="" class="social-link"><i class="fab fa-facebook-f"></i></a>#}
    {#            <a href="" class="social-link"><i class="fab fa-twitter"></i></a>#}
            </div>
            <div class="col-12 col-sm-6 col-md-6 text-right">
                <div class="dropdown">
                    <button class="btn btn-default btn-radius dropdown-toggle locale-switcher__button" type="button" id="webLocaleSwitcher" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        {% if tutorka_locale == 'cs' %}
                            <img src="{{ asset('build/images/flag/cz.svg') }}" alt=""><span class="locale-switcher__country-name">{{ 'czech.country'|trans({}, 'global') }}</span>
                        {% else %}
                            <img src="{{ asset('build/images/flag/sk.svg') }}" alt=""><span class="locale-switcher__country-name">{{ 'slovak.country'|trans({}, 'global') }}</span>
                        {% endif %}
                    </button>
                    <div class="dropdown-menu" aria-labelledby="webLocaleSwitcher">
                        {% if tutorka_locale == 'cs' %}
                            <a class="dropdown-item" href="{{ tutorka_sk_url }}"><img src="{{ asset('build/images/flag/sk.svg') }}" alt="sk">
                                <span class="locale-switcher__country-name">{{ 'slovak.country'|trans({}, 'global') }}</span>
                            </a>
                        {% else %}
                            <a class="dropdown-item" href="{{ tutorka_cz_url }}"><img src="{{ asset('build/images/flag/cz.svg') }}" alt="cz">
                                <span class="locale-switcher__country-name">{{ 'czech.country'|trans({}, 'global') }}</span>
                            </a>
                        {% endif %}
                    </div>
                </div>
            </div>
        </div>
        <div class="container row footer__links mx-auto">
            {{ advert_list_url({}) }}
            <div class="col-sm-6 col-md-6 col-lg-3 px-0">
                <h6 class="title">{{ 'footer.bestSubjects.title'|trans }}</h6>
                {% set bestSubjectsFooter = get_top_subjects() %}
                {% for subject in bestSubjectsFooter %}
                    <a href="{{ path('advert_list', {'filterContainer': advert_list_url({'subject': subject.slug})}) }}" class="link">
                        {{ 'advert.composed.title'|trans({}, 'advert') }} {{ subject.name|lower }}
                    </a>
                {% endfor %}
                <a href="{{ path('lander_subjects') }}" class="link">{{ 'footer.allSubjects.title'|trans }}</a>
            </div>
            <div class="col-sm-6 col-md-6 col-lg-3 mt-4 mt-sm-0 px-0">
                <h6 class="title">{{ 'footer.bestCities.title'|trans }}</h6>
                {% set bestCitiesFooter = get_top_cities() %}
                {% for city in bestCitiesFooter %}
                    <a href="{{ path('advert_list', {'filterContainer': advert_list_url({'city': city.slug})}) }}" class="link">
                        {{ 'advert.composed.title'|trans({}, 'advert') }} {{ city.name }}
                    </a>
                {% endfor %}
                <a href="{{ path('lander_cities') }}" class="link">{{ 'footer.allCities.title'|trans }}</a>
            </div>
            <div class="col-sm-6 col-md-6 col-lg-3 mt-4 mt-lg-0 px-0">
                <h6 class="title">{{ 'footer.onlineTutoring.title'|trans }}</h6>
                {% set onlinePlaceAttribute = get_advert_place_attribute(constant('App\\Tutorka\\Bundle\\ContentBundle\\Entity\\PlaceAttribute::ONLINE')) %}
    {#            {% set onlineSubjectsFooter = get_subjects_by_ids(constant('App\\Tutorka\\Bundle\\CoreBundle\\Constant\\Setting::FOOTER_ONLINE_SUBJECTS')|setting_array) %}#}
                {% set onlineSubjectsFooter = get_top_subjects() %}
                {% for subject in onlineSubjectsFooter %}
                    <a href="{{ path('advert_list', {'filterContainer': advert_list_url({'subject': subject.slug, 'placeAttribute': onlinePlaceAttribute.slug})}) }}" class="link">
                        {{ 'advert.composed.title'|trans({}, 'advert') }} {{ subject.name|lower }} online
                    </a>
                {% endfor %}
            </div>
            <div class="col-sm-6 col-md-6 col-lg-3 mt-4 mt-lg-0 px-0">
                <h6 class="title">{{ 'footer.aboutTutorka.title'|trans }}</h6>
                <a href="{{ path('dynamic_how_to_use') }}" class="link">{{ 'staticPage.howToUse.title'|trans }}</a>
                <a href="{{ path('static_guide') }}" class="link">{{ 'staticPage.guide.title'|trans }}</a>
                {% if orders_enabled %}<a href="{{ path('static_subscription') }}" class="link">{{ 'staticPage.packages.title'|trans }}</a>{% endif %}
                <a href="{{ path('dynamic_terms_of_use') }}" class="link">{{ 'staticPage.termsOfUse.title'|trans }}</a>
                <a href="{{ path('dynamic_privacy_policy') }}" class="link">{{ 'staticPage.privacyPolicy.title'|trans }}</a>
                <a href="{{ path('dynamic_about_cookies') }}" class="link">{{ 'staticPage.aboutCookies.title'|trans }}</a>
                <a href="{{ path('dynamic_contact') }}" class="link">{{ 'staticPage.contact.title'|trans }}</a>
                <a href="{{ path('become_teacher') }}" class="link">{{ 'staticPage.becomeTeacher.title'|trans }}</a>
            </div>
        </div>
        <div class="container row footer__copyright mx-auto">
            <div class="col-12">&copy; 2013-{{ 'now'|date('Y') }} {{ 'footer.copyright'|trans|raw }}</div>
        </div>
    </section>