<?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_e06214c82da0ef271fe77f3c9c6e7568 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 5
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"));
// line 1
$context["preview"] = ("open_marketplace_vendor_product_listings_preview" == twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1, $this->source); })()), "request", [], "any", false, false, false, 1), "attributes", [], "any", false, false, false, 1), "get", [0 => "_route"], "method", false, false, false, 1));
// line 2
if (((true == (isset($context["preview"]) || array_key_exists("preview", $context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.', 2, $this->source); })())) && array_key_exists("product_listing", $context))) {
// line 3
$context["product"] = $this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\ConvertDraftToProductExtension']->convertDraftToProduct(twig_get_attribute($this->env, $this->source, (isset($context["product_listing"]) || array_key_exists("product_listing", $context) ? $context["product_listing"] : (function () { throw new RuntimeError('Variable "product_listing" does not exist.', 3, $this->source); })()), "latestDraft", [], "any", false, false, false, 3));
}
// line 5
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "@SyliusShop/Product/show.html.twig", 5);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 7
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.', 7, $this->source); })()), "name", [], "any", false, false, false, 7), "html", null, true);
echo " | ";
$this->displayParentBlock("title", $context, $blocks);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 9
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 10
echo " ";
$this->loadTemplate("@SyliusShop/Product/Show/_breadcrumb.html.twig", "@SyliusShop/Product/show.html.twig", 10)->display($context);
// line 11
echo " <div class=\"ui hidden divider\"></div>
";
// line 13
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.header", $context);
echo "
<div class=\"ui two column stackable grid\">
<div class=\"ten wide column\">
";
// line 17
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.left_sidebar", $context);
echo "
</div>
<div class=\"six wide column\">
<div class=\"ui top attached large tabular menu product-tabs\">
<a class=\"item active\" data-tab=\"summary\">";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.tabs.summary"), "html", null, true);
echo "</a>
</div>
<div class=\"ui bottom attached tab segment product-tabs active\" data-tab=\"summary\">
";
// line 24
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.right_sidebar", $context);
echo "
</div>
</div>
</div>
<div class=\"ui two column stackable grid\">
<div class=\"ten wide column\">
";
// line 31
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content_left_column", $context);
echo "
</div>
<div class=\"six wide column\">
";
// line 34
if ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) {
// line 35
echo " <div class=\"wrapper-cont trigger-element\">
<ul class=\"tab-conts-box-cont form-tabs\">
<li class=\"tab-hyf active\" data-tab=\"rfq\">
";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.tabs.rfq"), "html", null, true);
echo "
</li>
<li class=\"tab-hyf\" data-tab=\"inquiry\">
";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.tabs.contact_vendor"), "html", null, true);
echo "
</li>
</ul>
</div>
";
}
// line 46
echo " ";
if ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) {
// line 47
echo " <div class=\"tab-cont-content-cont\">
";
// line 48
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content_right_column", $context);
echo "
</div>
";
} else {
// line 51
echo " ";
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content_right_column", $context);
echo "
";
}
// line 53
echo " </div>
</div>
";
// line 56
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content", $context);
echo "
";
// line 57
if ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) {
// line 58
echo " <div class=\"rectangle-group sticky-header\">
<div class=\"sticky-buttons-group\">
<div class=\"btn\" data-tab=\"rfq\">";
// line 60
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.tabs.rfq"), "html", null, true);
echo "</div>
<div class=\"btn\" data-tab=\"inquiry\">";
// line 61
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.tabs.contact_vendor"), "html", null, true);
echo "</div>
</div>
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 67
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 68
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script type=\"text/javascript\">
lightbox.option({
'albumLabel': '";
// line 72
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 ( 233 => 72, 225 => 68, 215 => 67, 200 => 61, 196 => 60, 192 => 58, 190 => 57, 186 => 56, 181 => 53, 175 => 51, 169 => 48, 166 => 47, 163 => 46, 155 => 41, 149 => 38, 144 => 35, 142 => 34, 136 => 31, 126 => 24, 120 => 21, 113 => 17, 106 => 13, 102 => 11, 99 => 10, 89 => 9, 68 => 7, 57 => 5, 54 => 3, 52 => 2, 50 => 1, 37 => 5,);
}
public function getSourceContext()
{
return new Source("{% set preview = 'open_marketplace_vendor_product_listings_preview' == app.request.attributes.get('_route') %}
{% if true == preview and product_listing is defined %}
{% set product = convert_draft_to_product(product_listing.latestDraft) %}
{% endif %}
{% extends '@SyliusShop/layout.html.twig' %}
{% block title %}{{ product.name }} | {{ parent() }}{% endblock %}
{% block content %}
{% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}
<div class=\"ui hidden divider\"></div>
{{ sylius_template_event('sylius.shop.product.show.header', _context) }}
<div class=\"ui two column stackable grid\">
<div class=\"ten wide column\">
{{ sylius_template_event('sylius.shop.product.show.left_sidebar', _context) }}
</div>
<div class=\"six wide column\">
<div class=\"ui top attached large tabular menu product-tabs\">
<a class=\"item active\" data-tab=\"summary\">{{ 'app.ui.product.tabs.summary'|trans }}</a>
</div>
<div class=\"ui bottom attached tab segment product-tabs active\" data-tab=\"summary\">
{{ sylius_template_event('sylius.shop.product.show.right_sidebar', _context) }}
</div>
</div>
</div>
<div class=\"ui two column stackable grid\">
<div class=\"ten wide column\">
{{ sylius_template_event('sylius.shop.product.show.content_left_column', _context) }}
</div>
<div class=\"six wide column\">
{% if is_mobile() %}
<div class=\"wrapper-cont trigger-element\">
<ul class=\"tab-conts-box-cont form-tabs\">
<li class=\"tab-hyf active\" data-tab=\"rfq\">
{{ 'app.ui.product.tabs.rfq'|trans }}
</li>
<li class=\"tab-hyf\" data-tab=\"inquiry\">
{{ 'app.ui.product.tabs.contact_vendor'|trans }}
</li>
</ul>
</div>
{% endif %}
{% if is_mobile() %}
<div class=\"tab-cont-content-cont\">
{{ sylius_template_event('sylius.shop.product.show.content_right_column', _context) }}
</div>
{% else %}
{{ sylius_template_event('sylius.shop.product.show.content_right_column', _context) }}
{% endif %}
</div>
</div>
{{ sylius_template_event('sylius.shop.product.show.content', _context) }}
{% if is_mobile() %}
<div class=\"rectangle-group sticky-header\">
<div class=\"sticky-buttons-group\">
<div class=\"btn\" data-tab=\"rfq\">{{ 'app.ui.product.tabs.rfq'|trans }}</div>
<div class=\"btn\" data-tab=\"inquiry\">{{ 'app.ui.product.tabs.contact_vendor'|trans }}</div>
</div>
</div>
{% endif %}
{% 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", "/srv/open_marketplace/templates/bundles/SyliusShopBundle/Product/show.html.twig");
}
}