<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @BitBagSyliusCmsPlugin/Shop/Page/show.html.twig */
class __TwigTemplate_99ab3a59d9a677b862282489a335539fef9f72b17dd2594bcc157c60c4be4aad extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'metatags' => [$this, 'block_metatags'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@SyliusShop/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig"));
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 3, $this->source); })()), "title", [], "any", false, false, false, 3))) {
echo twig_escape_filter($this->env, twig_trim_filter(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 3, $this->source); })()), "title", [], "any", false, false, false, 3)), "html", null, true);
} else {
$this->displayParentBlock("title", $context, $blocks);
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_metatags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
// line 6
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 6, $this->source); })()), "metaKeywords", [], "any", false, false, false, 6))) {
// line 7
echo " <meta name=\"keywords\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 7, $this->source); })()), "metaKeywords", [], "any", false, false, false, 7), "html", null, true);
echo "\"/>
";
}
// line 9
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 9, $this->source); })()), "metaDescription", [], "any", false, false, false, 9))) {
// line 10
echo " <meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 10, $this->source); })()), "metaDescription", [], "any", false, false, false, 10), "html", null, true);
echo "\"/>
";
}
// line 12
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 12, $this->source); })()), "translation", [], "any", false, false, false, 12), "metaRobotIndex", [], "any", false, false, false, 12) == true)) {
// line 13
echo " ";
$context["metaRobotIndex"] = "index, follow";
// line 14
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 14, $this->source); })()), "translation", [], "any", false, false, false, 14), "metaRobotIndex", [], "any", false, false, false, 14) == false)) {
// line 15
echo " ";
$context["metaRobotIndex"] = "noindex, nofollow";
// line 16
echo " ";
}
// line 17
echo " <meta name=\"robots\" content=\"";
echo twig_escape_filter($this->env, (isset($context["metaRobotIndex"]) || array_key_exists("metaRobotIndex", $context) ? $context["metaRobotIndex"] : (function () { throw new RuntimeError('Variable "metaRobotIndex" does not exist.', 17, $this->source); })()), "html", null, true);
echo "\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 20
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 21
echo "
";
// line 22
if (twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 22, $this->source); })()), "image", [], "any", false, false, false, 22)) {
// line 23
echo " <div class=\"image-instit-top pt-0 object-fit-img\">
";
// line 24
$context["path"] = (((array_key_exists("preview", $context) && ((isset($context["preview"]) || array_key_exists("preview", $context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.', 24, $this->source); })()) == true))) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 24, $this->source); })()), "image", [], "any", false, false, false, 24), "path", [], "any", false, false, false, 24)) : (("/media/image/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 24, $this->source); })()), "image", [], "any", false, false, false, 24), "path", [], "any", false, false, false, 24))));
// line 25
echo " <img class=\"\" src=\"";
echo twig_escape_filter($this->env, (isset($context["path"]) || array_key_exists("path", $context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.', 25, $this->source); })()), "html", null, true);
echo "\" alt=\"\">
</div>
";
}
// line 28
echo " <div class=\"max-container-3 px-2 px-xl-4\">
<nav>
<ol class=\"breadcrumb ariane-box m-0 bg-transparent\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 31
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.home"), "html", null, true);
echo "</a></li>
<li class=\"breadcrumb-item\">";
// line 32
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 32, $this->source); })()), "name", [], "any", false, false, false, 32), "html", null, true);
echo "</li>
</ol>
</nav>
<div class=\"page-instit-img mt-md-3 mt-2 pb-md-4 pb-3\">
<div class=\"text-center pb-2\"><h1 class=\"title-medium color-pink-s\">";
// line 36
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 36, $this->source); })()), "name", [], "any", false, false, false, 36), "html", null, true);
echo "</h1></div>
<div class=\"py-3 py-md-5 px-md-4 px-3 fontsize-normal fontsize-mobile-text py-3 text-regular content-instit page-instit-shadow\">
";
// line 39
echo $this->env->getRuntime('BitBag\SyliusCmsPlugin\Twig\Runtime\RenderContentRuntime')->renderContent((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 39, $this->source); })()));
echo "
";
// line 40
if ((twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 40, $this->source); })()), "code", [], "any", false, false, false, 40) == "pick_up_on_site")) {
// line 41
echo " <a href=\"https://fr.mappy.com/poi/60c9784522e6f13abc204b04\" target=\"_blank\" class=\"font-seize text-underline font-pro-bold color-pink-s\"><i class=\"icon-location\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.homepage.our_shop"), "html", null, true);
echo "</a>
<div class=\"pt-3\">
<a href=\"https://fr.mappy.com/poi/60c9784522e6f13abc204b04\" target=\"_blank\" class=\"\">
<img src=\"";
// line 44
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/map.png"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.shop_map"), "html", null, true);
echo "\">
</a>
</div>
";
}
// line 49
echo "
</div>
</div>
</div>
";
// line 54
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 54, $this->source); })()), "products", [], "any", false, false, false, 54)) > 0)) {
// line 55
echo " <h2 class=\"title-medium text-center\">
";
// line 56
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_cms_plugin.ui.page_related_products"), "html", null, true);
echo "
</h2>
<div class=\"bitbag-page-products d-none\">
";
// line 59
$this->loadTemplate("@SyliusShop/Product/_horizontalList.html.twig", "@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig", 59)->display(twig_array_merge($context, ["products" => twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 59, $this->source); })()), "products", [], "any", false, false, false, 59)]));
// line 60
echo " </div>
";
}
// line 62
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 237 => 62, 233 => 60, 231 => 59, 225 => 56, 222 => 55, 220 => 54, 213 => 49, 203 => 44, 196 => 41, 194 => 40, 190 => 39, 184 => 36, 177 => 32, 171 => 31, 166 => 28, 159 => 25, 157 => 24, 154 => 23, 152 => 22, 149 => 21, 139 => 20, 126 => 17, 123 => 16, 120 => 15, 117 => 14, 114 => 13, 111 => 12, 105 => 10, 102 => 9, 96 => 7, 93 => 6, 83 => 5, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout.html.twig' %}
{% block title %}{% if page.title is not empty %}{{ page.title|trim }}{% else %}{{ parent() }}{% endif %}{% endblock %}
{% block metatags %}
{% if page.metaKeywords is not empty %}
<meta name=\"keywords\" content=\"{{ page.metaKeywords }}\"/>
{% endif %}
{% if page.metaDescription is not empty %}
<meta name=\"description\" content=\"{{ page.metaDescription }}\"/>
{% endif %}
{% if page.translation.metaRobotIndex == true %}
{% set metaRobotIndex = 'index, follow' %}
{% elseif page.translation.metaRobotIndex == false %}
{% set metaRobotIndex = 'noindex, nofollow' %}
{% endif %}
<meta name=\"robots\" content=\"{{ metaRobotIndex }}\"/>
{% endblock %}
{% block content %}
{% if page.image %}
<div class=\"image-instit-top pt-0 object-fit-img\">
{% set path = preview is defined and preview == true ? page.image.path : '/media/image/'~page.image.path %}
<img class=\"\" src=\"{{ path }}\" alt=\"\">
</div>
{% endif %}
<div class=\"max-container-3 px-2 px-xl-4\">
<nav>
<ol class=\"breadcrumb ariane-box m-0 bg-transparent\">
<li class=\"breadcrumb-item\"><a href=\"{{ path('sylius_shop_homepage') }}\">{{ 'sylius.ui.home'|trans }}</a></li>
<li class=\"breadcrumb-item\">{{ page.name }}</li>
</ol>
</nav>
<div class=\"page-instit-img mt-md-3 mt-2 pb-md-4 pb-3\">
<div class=\"text-center pb-2\"><h1 class=\"title-medium color-pink-s\">{{ page.name }}</h1></div>
<div class=\"py-3 py-md-5 px-md-4 px-3 fontsize-normal fontsize-mobile-text py-3 text-regular content-instit page-instit-shadow\">
{{ bitbag_cms_render_content(page) }}
{% if page.code ==\"pick_up_on_site\" %}
<a href=\"https://fr.mappy.com/poi/60c9784522e6f13abc204b04\" target=\"_blank\" class=\"font-seize text-underline font-pro-bold color-pink-s\"><i class=\"icon-location\"></i> {{'app.homepage.our_shop'|trans}}</a>
<div class=\"pt-3\">
<a href=\"https://fr.mappy.com/poi/60c9784522e6f13abc204b04\" target=\"_blank\" class=\"\">
<img src=\"{{asset('images/map.png')}}\" alt=\"{{ 'app.common.shop_map'|trans }}\">
</a>
</div>
{% endif %}
</div>
</div>
</div>
{% if page.products|length > 0 %}
<h2 class=\"title-medium text-center\">
{{ 'bitbag_sylius_cms_plugin.ui.page_related_products'|trans }}
</h2>
<div class=\"bitbag-page-products d-none\">
{% include '@SyliusShop/Product/_horizontalList.html.twig' with {'products': page.products} %}
</div>
{% endif %}
{% endblock %}
", "@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig", "/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/BitBagSyliusCmsPlugin/Shop/Page/show.html.twig");
}
}