<?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;
/* @SyliusShop/Product/show.html.twig */
class __TwigTemplate_0882a0a9f6330ad3a5b0ad3a400c0d21 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'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@SyliusShop/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/show.html.twig"));
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "@SyliusShop/Product/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 3, $this->source); })()), "name", [], "any", false, false, false, 3), "html", null, true);
echo " | ";
$this->displayParentBlock("title", $context, $blocks);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
echo " <div class=\"container-h\">
";
// line 7
$this->loadTemplate("@SyliusShop/Product/Show/_breadcrumb.html.twig", "@SyliusShop/Product/show.html.twig", 7)->display($context);
// line 9
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 9, $this->source); })()), "images", [], "any", false, false, false, 9), "toArray", [], "method", false, false, false, 9)) > 1)) {
// line 10
echo " <div class=\"header-product-info\">
";
// line 11
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.before.content", $context);
echo "
</div>
<div class=\"mobile-version-gallery\">
";
// line 14
$this->loadTemplate("@SyliusShop/Product/Show/_image_mobile.html.twig", "@SyliusShop/Product/show.html.twig", 14)->display($context);
// line 15
echo " </div>
<div class=\"ui two column stackable grid\" id=\"destock-version-gallery\">
<div class=\"column\" id=\"column-left\">
";
// line 18
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.left_sidebar", $context);
echo "
</div>
<div class=\"column\" id=\"column-right\">
";
// line 21
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.right_sidebar.images", $context);
echo "
</div>
</div>
";
} else {
// line 26
echo "
<div class=\"ui two column stackable grid\" id=\"gallery-main-and-secondary\">
<div class=\"column\" id=\"column-left\">
";
// line 29
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.left_sidebar", $context);
echo "
</div>
<div class=\"header-product-info column\">
";
// line 32
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.before.content", $context);
echo "
</div>
</div>
";
}
// line 38
echo "</div>
";
// line 39
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content", $context);
echo "
<style>
#main-container {
padding-bottom: 0;
}
#box-product-card{
display: none;
width: 100% !important;
margin: 0 !important;
}
#box-product-card:nth-child(1){
display: flex;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 57
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 58
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script type=\"text/javascript\">
lightbox.option({
'albumLabel': '";
// line 62
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.lightbox.image_album_label"), "js"), "html", null, true);
echo "'
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Product/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 196 => 62, 188 => 58, 178 => 57, 152 => 39, 149 => 38, 140 => 32, 134 => 29, 129 => 26, 121 => 21, 115 => 18, 110 => 15, 108 => 14, 102 => 11, 99 => 10, 96 => 9, 94 => 7, 91 => 6, 81 => 5, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout.html.twig' %}
{% block title %}{{ product.name }} | {{ parent() }}{% endblock %}
{% block content %}
<div class=\"container-h\">
{% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}
{# <div class=\"ui hidden divider\"></div>#}
{% if product.images.toArray()|length > 1%}
<div class=\"header-product-info\">
{{ sylius_template_event('sylius.shop.product.show.before.content', _context) }}
</div>
<div class=\"mobile-version-gallery\">
{% include '@SyliusShop/Product/Show/_image_mobile.html.twig' %}
</div>
<div class=\"ui two column stackable grid\" id=\"destock-version-gallery\">
<div class=\"column\" id=\"column-left\">
{{ sylius_template_event('sylius.shop.product.show.left_sidebar', _context) }}
</div>
<div class=\"column\" id=\"column-right\">
{{ sylius_template_event('sylius.shop.product.show.right_sidebar.images', _context) }}
</div>
</div>
{% else %}
<div class=\"ui two column stackable grid\" id=\"gallery-main-and-secondary\">
<div class=\"column\" id=\"column-left\">
{{ sylius_template_event('sylius.shop.product.show.left_sidebar', _context) }}
</div>
<div class=\"header-product-info column\">
{{ sylius_template_event('sylius.shop.product.show.before.content', _context) }}
</div>
</div>
{% endif %}
</div>
{{ sylius_template_event('sylius.shop.product.show.content', _context) }}
<style>
#main-container {
padding-bottom: 0;
}
#box-product-card{
display: none;
width: 100% !important;
margin: 0 !important;
}
#box-product-card:nth-child(1){
display: flex;
}
</style>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type=\"text/javascript\">
lightbox.option({
'albumLabel': '{{ 'sylius.lightbox.image_album_label'|trans|escape('js') }}'
});
</script>
{% endblock %}
", "@SyliusShop/Product/show.html.twig", "/var/www/Bikers/templates/bundles/SyliusShopBundle/Product/show.html.twig");
}
}