{% if app.request.headers.get('WEB-VIEW-ACCESS') == null %}
{% set currentTheme = current_theme() %}
{% set themeConfig = isEditColor|default(false) ? currentTheme.config : currentTheme.confirmConfig %}
{% for config in themeConfig.blocks.left|default([]) %}
{% set code = config.code %}
{% if code == 'footer-link' %}
{% set category = config.categoryId|default(0) ? data('Category', {categoryId: config.categoryId}) : null %}
{% include 'default/' ~ code ~ '.html.twig' with {config:config, category: category} %}
{% endif %}
{% endfor %}
<footer class="es-footer hidden-xs">
<div class="copyright">
<div class="container">
{% include "powered-by.html.twig" %}
{{ setting('site.analytics')|raw }}
{{ setting('site.icpHtml')|raw }}
<div class="mts">
{% if setting('site.copyright') %}
{{ 'homepage.footer.course_copyright'|trans({'%copyRightUrl%':setting('site.copyright')})|raw }}
{% endif %}
{% if setting('site.icp') %}
<a class="mlm" href="http://beian.miit.gov.cn/" target="_blank">
{{ setting('site.icp') }}
</a>
{% endif %}
</div>
</div>
</div>
</footer>
{% if app.request.get('_route') != 'knowledge_base_entrance' and app.user.id|default(0) > 0 %}
<footer class="visible-xs">
<div class="m-footer-tabs" style="z-index: 99999">
{% if app.request.get('_route') == 'homepage' %}
<a href="{{path('homepage')}}" class="m-footer-tabs__item active">
<div class="m-footer-tabs__icon">
<i class="es-icon es-icon-a-Frame427319691"></i>
</div>
<div class="m-footer-tabs__title">{{ 'admin.default.work_arrangement.found'|trans }}</div>
</a>
{% else %}
<a href="{{path('homepage')}}" class="m-footer-tabs__item">
<div class="m-footer-tabs__icon">
<i class="es-icon es-icon-a-Frame427319691-1"></i>
</div>
<div class="m-footer-tabs__title">{{ 'admin.default.work_arrangement.found'|trans }}</div>
</a>
{% endif %}
{% if app.request.get('_route') == 'study_center_my' %}
<a href="{{path('study_center_my')}}" class="m-footer-tabs__item active">
<div class="m-footer-tabs__icon">
<i class="es-icon es-icon-yuantubiao06"></i>
</div>
<div class="m-footer-tabs__title">{{ 'homepage.header.learn'|trans }}</div>
</a>
{% else %}
<a href="{{path('study_center_my')}}" class="m-footer-tabs__item">
<div class="m-footer-tabs__icon">
<i class="es-icon es-icon-yuantubiao06-1"></i>
</div>
<div class="m-footer-tabs__title">{{ 'homepage.header.learn'|trans }}</div>
</a>
{% endif %}
{% if app.request.get('_route') == 'my_center' %}
<a href="{{path('my_center')}}" class="m-footer-tabs__item active">
<div class="m-footer-tabs__icon">
<i class="es-icon es-icon-yuantubiao01"></i>
</div>
<div class="m-footer-tabs__title"> {{ 'admin.default.work_arrangement.my'|trans }}</div>
</a>
{% else %}
<a href="{{path('my_center')}}" class="m-footer-tabs__item">
<div class="m-footer-tabs__icon">
<i class="es-icon es-icon-yuantubiao02"></i>
</div>
<div class="m-footer-tabs__title"> {{ 'admin.default.work_arrangement.my'|trans }}</div>
</a>
{% endif %}
</div>
<div class="m-footer-safe-area"></div>
</footer>
{% endif %}
{% endif %}