{% import '_macros/sulu_media.html.twig' as suluMedia %}
{% if sulu_snippet_load_by_area('footer_croisiland_area') is not null %}
{% set base = sulu_snippet_load_by_area('footer_croisiland_area').content|replace_translate_variables %}
{% else %}
{% set base = '' %}
{% endif %}
{# URLS des Compagnies #}
{% set allCompaniesUrl = '/croisieres' %}
{% set detail = allCompaniesUrl ~ '?companies=' %}
{# URLS des Destinations #}
{% set allDestinationsUrl = '/croisieres' %}
{% set detail2 = allDestinationsUrl ~ '?destinations=' %}
{# URLS des Ports #}
{% set allDeparturePortUrl = '/croisieres' %}
{% set detail3 = allDeparturePortUrl ~ '?ports=' %}
<div class="footer_section footer_1">
<div class="container">
<div class="row">
<div class="col-md-4 col-xs-12 mb-3">
{% if base is not empty and base.securepaiement is defined and base.securepaiement is not empty %}
<div class="footer_subtitle">
{{ 'website.ui.footer.title.secure_payment'|trans }}
</div>
<div class="d-flex justify-content-center flex-wrap">
{% for item in base.securepaiement %}
{% if item.logo %}
{% set logoUrl = suluMedia.thumbnail_url(item.logo, app.request.locale, ['200x', '400x']) %}
<a href="{{ (item.url) ? (item.url) : '#' }}" target="_blanck" rel="nofollow">
<img src="{{ logoUrl }}" alt="{{ (item.alt) ? (item.alt) : '' }}" loading="lazy">
</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
<div class="col-md-4 col-xs-12 bordered mb-3">
{% if base is not empty and base.waysofpaiement is defined and base.waysofpaiement is not empty %}
<div class="footer_subtitle">
{{ 'website.ui.footer.title.ways_payment'|trans }}<span class="asterisque red">*</span>
</div>
<div class="d-flex justify-content-center flex-wrap">
{% for item in base.waysofpaiement %}
{% if item.logo %}
{% set logoUrl = suluMedia.thumbnail_url(item.logo, app.request.locale, ['200x', '400x']) %}
<a href="{{ (item.url) ? (item.url) : '#' }}" target="_blanck" rel="nofollow">
<img src="{{ logoUrl }}" alt="{{ (item.alt) ? (item.alt) : '' }}" loading="lazy">
</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
<div class="col-md-4 col-xs-12 mb-3">
{% if base is not empty and base.garantiescheckbox is defined %}
{% if base.garantiescheckbox %}
<div class="footer_subtitle">
{{ 'website.ui.footer.title.guarantees'|trans }}
</div>
<div class="d-flex justify-content-center flex-wrap">
{% if base.guarantees2 is defined and base.guarantees2 is not empty %}
{% for item in base.guarantees2 %}
{% if item.logo %}
{% set logoUrl = suluMedia.thumbnail_url(item.logo, app.request.locale, ['200x', '400x']) %}
<a href="{{ (base.guaranteesPage is defined) ? (base.guaranteesPage) : '#' }}" class="logo">
<img src="{{ logoUrl }}" alt="{{ (item.alt) ? (item.alt) : '' }}" loading="lazy">
</a>
{% endif %}
{% endfor %}
{% elseif base.guarantees is defined and base.guarantees is not empty %}
{% for item in base.guarantees %}
{% if item.logo %}
{% set logoUrl = suluMedia.thumbnail_url(item.logo, app.request.locale, ['200x', '400x']) %}
<a href="{{ (item.url) ? (item.url) : '#' }}" class="logo" target="_blanck" rel="nofollow">
<img src="{{ logoUrl }}" alt="{{ (item.alt) ? (item.alt) : '' }}" loading="lazy">
</a>
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endif %}
{% endif %}
</div>
</div>
</div>
</div>
<div class="footer_section footer_2">
<div class="container">
<div class="d-flex justify-content-between newsletter">
<div>
<div class="footer_subtitle">{{ 'footer.newsletter.title'|trans }}</div>
<div>{{ 'footer.newsletter.subtitle'|trans }}</div>
</div>
<div
class="newsletter_input"
data-newsletter-root
data-newsletter-subscription-url="{{ newsLetterSubscriptionPageUrl|default('')|e('html_attr') }}"
>
<div class="input-group">
<input
type="text"
id="footer-newsletter-email"
class="form-control"
placeholder="{{ 'auth.login.email_placeholder'|trans }}"
aria-label="{{ 'auth.login.email_placeholder'|trans }}"
autocomplete="email"
aria-describedby="footer-newsletter-subscribe"
>
<div class="input-group-text btn style1 reverse_color">
<button type="button" class="btn" id="footer-newsletter-subscribe">
{{ getLucidIcon('mail') }}
<span>{{ 'footer.newsletter.subscribe'|trans }}</span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
{# {% if base.newsletter is defined and base.newsletter is not empty %}
<sulu-link
href="{{ base.newsletter }}">{{ 'website.ui.footer.links.newsletter_croisiland'|trans }}</sulu-link>
{% endif %}
#}
<div class="footer_section footer_3">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
<div class="footer_subtitle">{{ 'footer.contact.title'|trans }}</div>
<div>
{% if base.contactUs is defined and base.contactUs is not empty %}
{% for contact in base.contactUs %}
{% if (webspaceKey == "main-website" and contact.isOnlyPartner == false)
or (webspaceKey != "main-website" and contact.isOnlyPartner == true and contact.isNotPartner == false)
or (webspaceKey != "main-website" and contact.isOnlyPartner == false and contact.isNotPartner == false)
%}
<div class="d-flex">
<div class="picto {{ contact.icon is defined and contact.icon is not empty ? contact.icon | raw : '' }}">{{ getLucidIcon(contact.icon|default('')) }}</div>
{% if contact.isInternal is defined and contact.isInternal %}
<a href="{{ contact.internalLink is defined ? webspaceKey != "main-website" ? (translate_with_parameters((urls.fr|split('/fr')|first) ~ contact.internalLink, [])) | replace({' ': ''}) : contact.internalLink | replace({' ': ''}) : '#' }}">
{{ (contact.text is defined and contact.text is not empty) ? translate_with_parameters(contact.text, [])|raw }}
</a>
{% else %}
<a target="_blank"
href="{{ contact.externalLink is defined and contact.externalLink is not empty ? translate_with_parameters(contact.externalLink, []) | replace({' ': ''}) : '#' }}">
{{ (contact.text is defined and contact.text is not empty) ? translate_with_parameters(contact.text, [])|raw }}
</a>
{% endif %}
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
</div>
<div class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
<div class="footer_subtitle">{{ 'footer.company.title'|trans }}</div>
<div>
{% if base.croisilandLinks is defined and base.croisilandLinks is not empty %}
{% for link in base.croisilandLinks %}
{% if (webspaceKey == "main-website" and link.isOnlyPartner == false)
or (webspaceKey != "main-website" and link.isOnlyPartner == true and link.isNotPartner == false)
or (webspaceKey != "main-website" and link.isOnlyPartner == false and link.isNotPartner == false)
%}
<div>
{% if link.isInternal is defined and link.isInternal %}
<a
href="{{ link.internalLink is defined ? webspaceKey != "main-website" ? (translate_with_parameters((urls.fr|split('/fr')|first) ~ link.internalLink, [])) : link.internalLink : '#' }}">{{ translate_with_parameters(link.name, []) }}</a>
{% else %}
<a target="_blanck"
href="{{ link.externalLink is defined ? translate_with_parameters(link.externalLink, []) : '#' }}">{{ translate_with_parameters(link.name, []) }}</a>
{% endif %}
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
</div>
<div class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
<div class="footer_subtitle">{{ 'footer.informations.title'|trans }}</div>
<div>
{% if base.informations is defined and base.informations is not empty %}
{% for info in base.informations %}
{% if (webspaceKey == "main-website" and info.isOnlyPartner == false)
or (webspaceKey != "main-website" and info.isOnlyPartner == true and info.isNotPartner == false)
or (webspaceKey != "main-website" and info.isOnlyPartner == false and info.isNotPartner == false)
%}
<div>
{% if info.isInternal is defined and info.isInternal %}
<a
href="{{ info.internalLink is defined ? webspaceKey != "main-website" ? (translate_with_parameters((urls.fr|split('/fr')|first) ~ info.internalLink, [])) : info.internalLink : '#' }}">{{ translate_with_parameters(info.name, []) }}</a>
{% else %}
<a target="_blanck" rel="nofollow"
href="{{ info.externalLink is defined ? translate_with_parameters(info.externalLink, []) : '#' }}">{{ translate_with_parameters(info.name, []) }}</a>
{% endif %}
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
</div>
<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
<div class="footer_subtitle">{{ 'footer.legal.title'|trans }}</div>
<div>
{% if base.legalInformations is defined and base.legalInformations is not empty %}
{% for legal in base.legalInformations %}
{% if (webspaceKey == "main-website" and legal.isOnlyPartner == false)
or (webspaceKey != "main-website" and legal.isOnlyPartner == true and legal.isNotPartner == false)
or (webspaceKey != "main-website" and legal.isOnlyPartner == false and legal.isNotPartner == false)
%}
<div>
{% if legal.isInternal is defined and legal.isInternal %}
<a
href="{{ legal.internalLink is defined ? webspaceKey != "main-website" ? (translate_with_parameters((urls.fr|split('/fr')|first) ~ legal.internalLink, [])) : legal.internalLink : '#' }}">{{ translate_with_parameters(legal.name, []) }}</a>
{% else %}
<a target="_blanck" rel="nofollow"
href="{{ legal.externalLink is defined ? translate_with_parameters(legal.externalLink, []) : '#' }}">{{ translate_with_parameters(legal.name, []) }}</a>
{% endif %}
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
</div>
<div class="col-lg-2 col-md-3 col-sm-6 col-xs-12">
<div class="footer_subtitle">{{ 'footer.social.title'|trans }}</div>
<div class="social_networks mt-3">
{% if base.socialNetworks is defined and base.socialNetworks is not empty %}
{% for network in base.socialNetworks %}
<a href="{{ ( network.link is defined ) ? network.link : '#' }}" target="_blanck"
rel="nofollow">
<div class="picto {{ network.icon is defined and network.icon is not empty ? network.icon | raw : '' }}">{{ getLucidIcon(network.icon|default('')) }}</div>
</a>
{% endfor %}
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% if webspaceKey == "main-website" %}
<div class="footer_section footer_4">
<div class="container">
<div class="row">
<div class="col-lg-4 col-sm-6 col-xs-12 mb-0">
{% if base.destinations is defined and base.destinations is not empty %}
<div class="footer_subtitle"><span>{{ getLucidIcon('chevron-right', {'class': 'picto'}) }}</span> {{ 'footer.links.destinations.title'|trans }}</div>
<div>
<ul class="close">
{% for destination in base.destinations %}
<li><a href="{{ getCruiseSearchUrl([getDestinationById(destination.destinationSelector)]) }}">{{ destination.textToDisplay }}</a></li>
{% endfor %}
<li><a href="{{ allDestinationsUrl }}">{{ 'footer.links.destinations.all'|trans }}</a></li>
</ul>
</div>
{% endif %}
</div>
<div class="col-lg-4 col-sm-6 col-xs-12 mb-0">
{% if base.compagnies is defined and base.compagnies is not empty %}
<div class="footer_subtitle"><span>{{ getLucidIcon('chevron-right', {'class': 'picto'}) }}</span> {{ 'footer.links.companies.title'|trans }}</div>
<div>
<ul class="close">
{% for compagnie in base.compagnies %}
<li><a href="{{ getCruiseSearchUrl([getCompanyById(compagnie.compagnieSelector)]) }}">{{ compagnie.textToDisplay }}</a></li>
{% endfor %}
<li><a href="{{ allCompaniesUrl }}">{{ 'footer.links.companies.all'|trans }}</a></li>
</ul>
</div>
{% endif %}
</div>
<div class="col-lg-4 col-sm-6 col-xs-12 mb-0">
{% if base.ports is defined and base.ports is not empty %}
<div class="footer_subtitle"><span>{{ getLucidIcon('chevron-right', {'class': 'picto'}) }}</span> {{ 'footer.links.departure_ports.title'|trans }}</div>
<div>
<ul class="close">
{% for port in base.ports %}
<li><a href="{{ getCruiseSearchUrl([null]) }}">{{ port.textToDisplay }}</a></li>
{% endfor %}
<li><a href="{{ getCruiseSearchUrl([null]) }}">{{ 'footer.links.departure_ports.all'|trans }}</a></li>
</ul>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% endif %}
<div class="footer_section footer_5">
<div class="container">
<div class="d-flex justify-content-between">
<span class="version">v.{{ shivas_app_version }}</span>
{% if base is not empty and base.copyright is not none %}
{{ translate_with_parameters(base.copyright, [])|raw }}
{% endif %}
</div>
</div>
</div>
{% if showFloatingActions|default(true) %}
<div class="bottom">
{% if contactRequestForm is defined %}
{% include 'pages/_includes/base/_footer_recall.html.twig' %}
{% endif %}
<div id="TopArrow">
{{ getLucidIcon('arrow-up') }}
</div>
</div>
<style>
footer.footer {
margin-top: {{ base.marginTop|default(0) ~ base.marginUnit|default('px') }};
}
</style>
{% endif %}