<?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_012abdf69ab2e1f9e493f768f7a2911d extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'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_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 4
$this->loadTemplate("@SyliusShop/Product/Show/_breadcrumb.html.twig", "@SyliusShop/Product/show.html.twig", 4)->display($context);
// line 5
echo "<div class=\"ui hidden divider\"></div>
<div class=\"ui two column stackable grid\">
<div class=\"four wide column\">
";
// line 10
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.product.show.before_images", ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 10, $this->source); })())]);
echo "
";
// line 12
$this->loadTemplate("@SyliusShop/Product/Show/_images.html.twig", "@SyliusShop/Product/show.html.twig", 12)->display($context);
// line 13
echo "
";
// line 14
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.product.show.after_images", ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 14, $this->source); })())]);
echo "
</div>
<div class=\"column\">
";
// line 18
$this->loadTemplate("@SyliusShop/Product/Show/_header.html.twig", "@SyliusShop/Product/show.html.twig", 18)->display($context);
// line 19
echo "
";
// line 20
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.product.show.after_product_header", ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 20, $this->source); })())]);
echo "
";
// line 24
echo " ";
// line 29
echo "
<div class=\"ui stackable grid\">
<div class=\"four wide column\">
";
// line 35
echo " ";
// line 40
echo " </div>
";
// line 44
echo " ";
// line 49
echo "
</div>
";
// line 52
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.product.show.after_price", ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 52, $this->source); })())]);
echo "
<div class=\"ui basic segment\">
<p>";
// line 55
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.', 55, $this->source); })()), "shortDescription", [], "any", false, false, false, 55), "html", null, true);
echo "</p>
</div>
";
// line 58
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.product.show.after_description", ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 58, $this->source); })())]);
echo "
";
// line 66
echo "
";
// line 67
$this->loadTemplate("@SyliusShop/Product/Show/_inventory.html.twig", "@SyliusShop/Product/show.html.twig", 67)->display($context);
// line 68
echo " <div class=\"ui hidden divider\"></div>
";
// line 71
echo " ";
// line 74
echo "
</div>
</div>
";
// line 78
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.product.show.before_tabs", ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 78, $this->source); })())]);
echo "
";
// line 80
$this->loadTemplate("@SyliusShop/Product/Show/_tabs.html.twig", "@SyliusShop/Product/show.html.twig", 80)->display($context);
// line 81
echo "
";
// line 82
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.product.show.before_associations", ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 82, $this->source); })())]);
echo "
";
// line 84
$this->loadTemplate("@SyliusShop/Product/Show/_associations.html.twig", "@SyliusShop/Product/show.html.twig", 84)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 87
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 88
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script type=\"text/javascript\">
lightbox.option({
'albumLabel': '";
// line 92
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 ( 205 => 92, 198 => 88, 188 => 87, 178 => 84, 173 => 82, 170 => 81, 168 => 80, 163 => 78, 157 => 74, 155 => 71, 151 => 68, 149 => 67, 146 => 66, 141 => 58, 135 => 55, 129 => 52, 124 => 49, 122 => 44, 117 => 40, 115 => 35, 108 => 29, 106 => 24, 100 => 20, 97 => 19, 95 => 18, 88 => 14, 85 => 13, 83 => 12, 78 => 10, 71 => 5, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout.html.twig' %}
{% block content %}
{% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}
<div class=\"ui hidden divider\"></div>
<div class=\"ui two column stackable grid\">
<div class=\"four wide column\">
{{ sonata_block_render_event('sylius.shop.product.show.before_images', {'product': product}) }}
{% include '@SyliusShop/Product/Show/_images.html.twig' %}
{{ sonata_block_render_event('sylius.shop.product.show.after_images', {'product': product}) }}
</div>
<div class=\"column\">
{% include '@SyliusShop/Product/Show/_header.html.twig' %}
{{ sonata_block_render_event('sylius.shop.product.show.after_product_header', {'product': product}) }}
{# avis #}
{#
{% include '@SyliusShop/Product/Show/_reviews.html.twig' %}
{{ sonata_block_render_event('sylius.shop.product.show.after_reviews', {'product': product}) }}
#}
<div class=\"ui stackable grid\">
<div class=\"four wide column\">
{# Price #}
{#
{% if not product.variants.empty() %}
{% include '@SyliusShop/Product/Show/_price.html.twig' %}
{% endif %}
#}
</div>
{# avis #}
{#
<div class=\"twelve wide right aligned column\">
<span class=\"ui sub header\">{{ product.code }}</span>
</div>
#}
</div>
{{ sonata_block_render_event('sylius.shop.product.show.after_price', {'product': product}) }}
<div class=\"ui basic segment\">
<p>{{ product.shortDescription }}</p>
</div>
{{ sonata_block_render_event('sylius.shop.product.show.after_description', {'product': product}) }}
{# Price #}
{#
{% if product.isConfigurable() and product.getVariantSelectionMethod() == 'match' and not product.variants.empty() %}
{% include '@SyliusShop/Product/Show/_variantsPricing.html.twig' with {'pricing': sylius_product_variant_prices(product, sylius.channel)} %}
{% endif %}
#}
{% include '@SyliusShop/Product/Show/_inventory.html.twig' %}
<div class=\"ui hidden divider\"></div>
{# ADD CARD #}
{#
{{ sonata_block_render_event('sylius.shop.product.show.after_add_to_cart', {'product': product}) }}
#}
</div>
</div>
{{ sonata_block_render_event('sylius.shop.product.show.before_tabs', {'product': product}) }}
{% include '@SyliusShop/Product/Show/_tabs.html.twig' %}
{{ sonata_block_render_event('sylius.shop.product.show.before_associations', {'product': product}) }}
{% include '@SyliusShop/Product/Show/_associations.html.twig' %}
{% 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", "/home/hephaestos.eu/public_html/hephsite/templates/bundles/SyliusShopBundle/Product/show.html.twig");
}
}