{% extends '@SyliusShop/layout.html.twig' %}
{% block javascripts %}
{{ parent() }}
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAhEf7oDt2I_1KCDrmUzCclC_27Qw_Bdk4" defer></script>
{% endblock %}
{% block title %}{{ shop.seoTitle }} - {{ parent() }}{% endblock %}
{% block metatags %}
{{ parent() }}
<meta name="description" content="{{ shop.seoMetaDescription }}" />
{% endblock %}
{% block content %}
<div class="pageboutiques show">
{# Fil d'ariane #}
{% if not is_mobile() %}
{{ wo_render_breadcrumbs() }}
{% endif %}
<div class="pageboutiques-left">
<div class="pageboutiques-left-top">
{% if is_mobile() %}
{{ wo_render_breadcrumbs() }}
{% endif %}
<div class="content">
<h1>{{ 'app.front.boutiques.boutique'|trans }}<br/>{{ shop.name }}</h1>
<div class="show-info" data-lat="{{ shop.lat }}" data-lon="{{ shop.lon }}" data-name="{{ shop.name }}">
{% set image_bg = '' %}
{% if null != shop.images %}
{% for image in shop.images %}
{% set image_bg = asset('/media/image/'~image.path) %}
{% endfor %}
<img src="{{ image_bg }}" class="ui image" />
{% endif %}
<div>
<p>
Papa Pique et Maman Coud<br/>
{{ shop.street }},<br/>
{{ shop.postalCode }} {{ shop.city }}
</p>
<a href="tel:{{ shop.phoneNumber }}" class="phone">{{ shop.phoneNumber }}</a>
<div class="logos">
{% if null != shop.accessoriesSell %}
<span>
<img src="{{ asset('webapic-theme/images/boutique-icone-sac.svg') }}" class="ui image" />
{{ 'app.front.boutiques.accessoires'|trans }}
</span>
{% endif %}
{% if null != shop.fabricMeterSell %}
<span>
<img src="{{ asset('webapic-theme/images/boutique-icone-tissu.svg') }}" class="ui image" />
{{ 'app.front.boutiques.tissus'|trans }}
</span>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class="pageboutiques-left-bottom">
<div class="content">
<div>
<h2>{{ 'app.front.boutiques.horaires'|trans }}</h2>
<p>{{ shop.openHoursText|nl2br }}</p>
</div>
<div>
<h2>{{ 'app.front.boutiques.news'|trans }}</h2>
<p>{{ shop.newsText|nl2br }}</p>
</div>
{% if null != shop.dates %}
<div>
<h2>{{ 'app.front.boutiques.dates'|trans }}</h2>
<p>{{ shop.dates|nl2br }}</p>
</div>
{% endif %}
</div>
</div>
</div>
<div class="pageboutiques-right">
<div class="pageboutiques-right-sticky">
<div id="map"></div>
</div>
</div>
</div>
{% endblock %}