{% extends parent_template() %}
{% block content_all %}
{% include 'SocialFrontendBundle:Components/Navigation:account_top_navigation.html.twig' %}
{% block entire_content %}
{# Let the '':'' in array and do not alter that line - it will mess up the condition with in array #}
{% set loggedStat = 'not-logged' %}
{% if app.user %}
{% set loggedStat = 'logged-in' %}
{% endif %}
{% set bodyClassConditions = {
'social_support' : 'support-page ',
'social_about_flirto': 'support-page ',
'social_terms_conditions': 'support-page ',
'social_privacy': 'support-page ',
'social_online_safety': 'support-page ',
'social_frontend_call_window': 'call-window ',
'social_frontend_call_window_html': 'call-window ',
'':''
} %}
{% set currentActionArray = app.request.get('_controller')|split('::') %}
{% set controllerStack = currentActionArray|first|split('\\') %}
{% set partOne = (controllerStack|last)|replace({'Controller': ''}) %}
{% set partTwo = currentActionArray|last|replace({'Action': ''}) %}
{% set currentRoute = app.request.get('_route') %}
{% if app.user %}
{% set packageName = app.user.packageName|split('-')[0] %}
{% if (currentRoute != 'social_frontend_swipe_profiles') and (currentRoute != 'social_frontend_account_messages') %}
{% if packageName in getAllowedPackagesForSwipe() %}
<div class="swipe-icon-part">
<a href="{{ path('social_frontend_swipe_profiles') }}">
<i class="fa fa-fw fa-hand-holding-heart"></i> <br>
swipe
</a>
</div>
{% endif %}
{% endif %}
{% endif %}
<div class="container" id="refresh-token-container"
data-additional-classes="set-language-user-{{ app.request.locale }} {% if app.request.get('_route') in bodyClassConditions|keys %}{{ bodyClassConditions[app.request.get('__route')] }}{% endif %} {{ loggedStat }} {{ partOne|lower ~ '-' ~ partTwo|lower }}">
<div class="innerAll">
<div class="row">
{% if app.user or (not app.user and app.request.get('_route') != 'social_frontend_search' and app.request.get('_route') != 'social_frontend_search_refference') %}
<div class="col-md-3 col-lg-3 right-sidebar">
{% include 'SocialFrontendBundle:Components/Account:right_sidebar.html.twig' %}
</div>
{% endif %}
<div class="{% if app.user or (not app.user and app.request.get('_route') != 'social_frontend_search' and app.request.get('_route') != 'social_frontend_search_refference') %}col-lg-9 col-md-9{% else %}col-lg-12 col-md-12{% endif %}">
{% if app.user %}
{% set packageName = app.user.packageName|split('-')[0] %}
{% if (not isBoostedProfile(app.user)) and app.user.packageName and displayBannerInLeftBar() and packageName != "default" and (packageName in getPackagesForDisplayBannerInLeftBar()) %}
<div class="layout-middle-boost-banner">
{% include 'SocialFrontendBundle:Search:layout_middle_boost_profile.html.twig' %}
</div>
{% endif %}
{% endif %}
<div class="flash-messages"></div>
{% block content %}{% endblock %}
<div class="footer-main-container hidden-md hidden-lg">
{% include 'SocialFrontendBundle::layout_footer_base.html.twig' %}
</div>
</div>
</div>
</div>
</div>
{% include 'SocialFrontendBundle:Search:cancel_user_deletion_request_modal.html.twig' %}
{% endblock %}
<script type="text/javascript">
var acceptedFilesErrMsg = '{{ "The image could not be loaded. You need to upload images that have the extension: jpg, jpeg, png." | trans }}'
var acceptedAudioFilesErrMsg = '{{ "The audio could not be loaded. You need to upload audio that have the extension: mp3, mp4, wav." | trans }}'
</script>
{% endblock %}