templates/base.html.twig line 1
<!DOCTYPE html>
<html lang="{{ app.request.locale }}">
{# define globally url parameters #}
{% if url_parameters is not defined %}
{% set url_parameters = {} %}
{% endif %}
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}SocialVault{% endblock %}</title>
<link rel="icon" href="{{ asset('images/favicon/favicon-3_white.ico') }}">
{% if USE_GA == 'true' %}
<!-- Google Tag Manager -->
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start':
new Date().getTime(), event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-MHSBFLQ');
</script>
<!-- End Google Tag Manager -->
{% endif %}
{{ encore_entry_link_tags('app') }}
{% block stylesheets %}
{% endblock %}
{# global js app#}
{{ encore_entry_script_tags('app') }}
{{ encore_entry_link_tags('styles/select2-bootstrap4') }}
<script src="{{ asset('bundles/tetranzselect2entity/js/select2entity.js') }}"></script>
{% block javascript_header %}
{% endblock %}
</head>
<body>
{% if USE_GA == 'true' %}
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe title="SocialVault Google Tag Manager" src="https://www.googletagmanager.com/ns.html?id=GTM-MHSBFLQ" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
{% endif %}
{% if app.user %}
{{ include('header/header_connected.html.twig') }}
{% else %}
{{ include('header/header_not_connected.html.twig') }}
{% endif %}
{% block flash %}
{% for label, messages in app.flashes %}
<div class="pt-3 px-4 pb-5">
{% for message in messages %}
<div class="container alert alert-{{ label }} w-50 alert-dismissible" role="alert" data-type="flash">
<a href="#" class="close" data-dismiss="alert">×</a>
{{ message|raw }}
</div>
{% endfor %}
</div>
{% endfor %}
{% endblock %}
<div class="pt-3 {% if app.request.attributes.get('_route') != 'index' %}px-4{% endif %} pb-5">
{% if app.user and user_service.isUserOutOfQuota(app.user) %}
{% set uploadCount = 0 %}
<div class="container alert alert-warning w-50 font-weight-bold" data-type="quota">
{{ 'flash.alert.quota'|trans({'%subscription%': path('subscription_index')})|raw }}
</div>
{% endif %}
{% if app.user and user_service.isUserOutOfQuotaPercent(app.user) %}
<div class="container alert alert-info w-50 font-weight-bold" data-type="quota">
{{ 'flash.alert.quotaCount'|trans({'%uploadCount%': user_service.findCreatedCurrentMonthForUser(app.user), '%subscription%': path('subscription_index')})|raw }}
</div>
{% endif %}
{% block body %}{% endblock %}
</div>
{% block footer %}
{% if not app.user %}
<footer class="text-center mt-5">
<div class="container">
<div class="row">
<div class="col-lg-4 col-sm-12 col-xl-4 col-md-12 my-auto">
<div class="row">
<div class="col text-left">
<p class="my-auto py-1">{{ 'footer.about'|trans|raw }}</p>
<p class="my-auto py-1"><a href="{{ path('privacy_policy') }}">{{ 'privacy_policy_title'|trans|raw }}</a></p>
</div>
<div class="col text-right">
<p class="my-auto py-1"><a href="https://www.cosavostra.com" target="_blank">CosaVostra</a></p>
<p class="my-auto py-1">{{ 'footer.contact'|trans|raw }}</p>
<p class="my-auto py-1">{{ 'footer.tel'|trans|raw }}</p>
</div>
</div>
</div>
<div class="col-lg-4 col-sm-12 col-xl-4 col-md-12 my-auto">
<img src="{{ asset('images/logo_white.svg') }}" alt="">
</div>
<div class="col-lg43 col-sm-12 col-xl-4 col-md-12 my-auto">
Made with ♡ by <a href="https://www.cosavostra.com" target="_blank">CosaVostra</a>
</div>
</div>
</div>
</footer>
{% endif %}
{% endblock %}
{% include 'jsTranslations.html.twig' %}
{{ encore_entry_script_tags('scripts/main') }}
{% block javascripts %}
{% endblock %}
</body>
</html>