{% set show_logo = (not(SERVER.SERVER_NAME matches '~^(?:www\.)?cr1site.pt~') and site.logo_footer) %}
{% set classes = {
	'twitter': 'twitter',
	'facebook': 'facebook-f',
	'tripadvisor': 'tripadvisor',
	'pinterest': 'pinterest-p',
	'instagram': 'instagram',
	'youtube': 'youtube'
} %}

{% block footer %}
<footer id="footer" class="footer">
	<div class="color-overlay">
		<div class="container">
			{% block footer_social %}
				<div class="row os-animation" data-os-animation="bounceIn">
					<ul class="social footer-social text-center">
					    {% block footer_social_content %}
    						{% for class in classes|keys %}
    							{% if site[class] %}
    								{% block social %}
    									<li>
    										<a href="{{ site[class] }}" target="_blank" class="social_contact_{{ class }}" rel="me">
    											<i class="fa fa-{{ classes[class] }}"></i>
    										</a>
    									</li>
    								{% endblock social %}
    							{% endif %}
    						{% endfor %}
    				
    						{% if show_logo %}
    							<li class="social-background">
    								<a href="{{ text.footer.c1s.url }}" title="{{ text.footer.c1s.title }}" target="_blank" class="social_contact_c1s"></a>
    							</li>
    						{% endif %}
    						
    						{% if site.show_consumer_complaints_resolution %}
    							<li class="social-background">
    								<a href="/terms.html?lightbox[height]=40p&lightbox[width]=40p&page=ca" title="{{ text.footer.ca.title }}" target="_blank" class="social_contact_ca lightbox"></a>
    							</li>
    						{% endif %}
    						
    						{% if site.show_complaints_book %}
    							<li class="social-background">
    								<a href="https://www.livroreclamacoes.pt/inicio" title="{{ text.footer.cb.title }}" target="_blank" class="social_contact_cb" rel="nofollow"></a>
    							</li>
    						{% endif %}
						{% endblock footer_social_content %}
					</ul>
				</div>
			{% endblock footer_social %}
			<div class="row os-animation" data-os-animation="bounceIn">
				<div class="transparent-line"></div>
			</div>
			{% block site_name %}
				<div id="footer-site-name" class="row os-animation" data-os-animation="bounceIn">
					<p class="text-center copy">&copy; {{ 'now' | date('Y') }} - {{ site.name }}
					{{
						(general.exts.store.enabled
							? (' - <a href="/store/terms/' ~ constant('SITE_LANG') ~ '.html?lightbox[height]=60p&lightbox[width]=50p&page=website" class="lightbox" rel="nofollow">' ~ text.footer.terms_and_conditions ~ '</a>')
							: (
								site.footer_show_terms
									? (' - <a href="/terms.html?lightbox[height]=60p&lightbox[width]=50p&page=website" class="lightbox" rel="nofollow">' ~ text.footer.terms_and_conditions ~ '</a>')
							)
						) | raw
					}}
					{{ general.exts.data.enabled ? (' - <a href="/terms.html?lightbox[height]=60p&lightbox[width]=50p&page=gdpr" class="lightbox" rel="nofollow">' ~ text.footer.gdpr ~ '</a>') | raw }}</p>
				</div>
			{% endblock site_name %}
	
			{% if general.exts.store.enabled %}
				{% block _ext_store_vat_footer %}
					<div id="ext_store_footer_vat" class="row os-animation" data-os-animation="bounceIn">
						<p class="text-center">
							{% if general.exts.store.settings.vat_exempt_art_53 %}
								{{ text.misc.ext.store.vat_exempt_art_53 }}
							{% elseif general.exts.store.settings.vat_show %}
								{{ text.misc.ext.store.vat_shown }}
							{% else %}
								{{ text.misc.ext.store.vat_not_shown }}
							{% endif %}
						</p>
					</div>
				{% endblock %}
			{% endif %}
		</div>
	</div>
</footer>
{% endblock footer %}