var/cache/dev/twig/02/02a9a0ce12c632bc130b172ecc259a82.php line 59

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @SyliusShop/Product/show.html.twig */
  14. class __TwigTemplate_012abdf69ab2e1f9e493f768f7a2911d extends \Twig\Template
  15. {
  16. private $source;
  17. private $macros = [];
  18. public function __construct(Environment $env)
  19. {
  20. parent::__construct($env);
  21. $this->source = $this->getSourceContext();
  22. $this->blocks = [
  23. 'content' => [$this, 'block_content'],
  24. 'javascripts' => [$this, 'block_javascripts'],
  25. ];
  26. }
  27. protected function doGetParent(array $context)
  28. {
  29. // line 1
  30. return "@SyliusShop/layout.html.twig";
  31. }
  32. protected function doDisplay(array $context, array $blocks = [])
  33. {
  34. $macros = $this->macros;
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/show.html.twig"));
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/show.html.twig"));
  39. $this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "@SyliusShop/Product/show.html.twig", 1);
  40. $this->parent->display($context, array_merge($this->blocks, $blocks));
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  43. }
  44. // line 3
  45. public function block_content($context, array $blocks = [])
  46. {
  47. $macros = $this->macros;
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  49. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  50. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  52. // line 4
  53. $this->loadTemplate("@SyliusShop/Product/Show/_breadcrumb.html.twig", "@SyliusShop/Product/show.html.twig", 4)->display($context);
  54. // line 5
  55. echo "<div class=\"ui hidden divider\"></div>
  56. <div class=\"ui two column stackable grid\">
  57. <div class=\"four wide column\">
  58. ";
  59. // line 10
  60. 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); })())]);
  61. echo "
  62. ";
  63. // line 12
  64. $this->loadTemplate("@SyliusShop/Product/Show/_images.html.twig", "@SyliusShop/Product/show.html.twig", 12)->display($context);
  65. // line 13
  66. echo "
  67. ";
  68. // line 14
  69. 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); })())]);
  70. echo "
  71. </div>
  72. <div class=\"column\">
  73. ";
  74. // line 18
  75. $this->loadTemplate("@SyliusShop/Product/Show/_header.html.twig", "@SyliusShop/Product/show.html.twig", 18)->display($context);
  76. // line 19
  77. echo "
  78. ";
  79. // line 20
  80. 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); })())]);
  81. echo "
  82. ";
  83. // line 24
  84. echo " ";
  85. // line 29
  86. echo "
  87. <div class=\"ui stackable grid\">
  88. <div class=\"four wide column\">
  89. ";
  90. // line 35
  91. echo " ";
  92. // line 40
  93. echo " </div>
  94. ";
  95. // line 44
  96. echo " ";
  97. // line 49
  98. echo "
  99. </div>
  100. ";
  101. // line 52
  102. 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); })())]);
  103. echo "
  104. <div class=\"ui basic segment\">
  105. <p>";
  106. // line 55
  107. 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);
  108. echo "</p>
  109. </div>
  110. ";
  111. // line 58
  112. 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); })())]);
  113. echo "
  114. ";
  115. // line 66
  116. echo "
  117. ";
  118. // line 67
  119. $this->loadTemplate("@SyliusShop/Product/Show/_inventory.html.twig", "@SyliusShop/Product/show.html.twig", 67)->display($context);
  120. // line 68
  121. echo " <div class=\"ui hidden divider\"></div>
  122. ";
  123. // line 71
  124. echo " ";
  125. // line 74
  126. echo "
  127. </div>
  128. </div>
  129. ";
  130. // line 78
  131. 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); })())]);
  132. echo "
  133. ";
  134. // line 80
  135. $this->loadTemplate("@SyliusShop/Product/Show/_tabs.html.twig", "@SyliusShop/Product/show.html.twig", 80)->display($context);
  136. // line 81
  137. echo "
  138. ";
  139. // line 82
  140. 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); })())]);
  141. echo "
  142. ";
  143. // line 84
  144. $this->loadTemplate("@SyliusShop/Product/Show/_associations.html.twig", "@SyliusShop/Product/show.html.twig", 84)->display($context);
  145. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  146. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  147. }
  148. // line 87
  149. public function block_javascripts($context, array $blocks = [])
  150. {
  151. $macros = $this->macros;
  152. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  153. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  154. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  155. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  156. // line 88
  157. $this->displayParentBlock("javascripts", $context, $blocks);
  158. echo "
  159. <script type=\"text/javascript\">
  160. lightbox.option({
  161. 'albumLabel': '";
  162. // line 92
  163. 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);
  164. echo "'
  165. });
  166. </script>
  167. ";
  168. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  169. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  170. }
  171. public function getTemplateName()
  172. {
  173. return "@SyliusShop/Product/show.html.twig";
  174. }
  175. public function isTraitable()
  176. {
  177. return false;
  178. }
  179. public function getDebugInfo()
  180. {
  181. 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,);
  182. }
  183. public function getSourceContext()
  184. {
  185. return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  186. {% block content %}
  187. {% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}
  188. <div class=\"ui hidden divider\"></div>
  189. <div class=\"ui two column stackable grid\">
  190. <div class=\"four wide column\">
  191. {{ sonata_block_render_event('sylius.shop.product.show.before_images', {'product': product}) }}
  192. {% include '@SyliusShop/Product/Show/_images.html.twig' %}
  193. {{ sonata_block_render_event('sylius.shop.product.show.after_images', {'product': product}) }}
  194. </div>
  195. <div class=\"column\">
  196. {% include '@SyliusShop/Product/Show/_header.html.twig' %}
  197. {{ sonata_block_render_event('sylius.shop.product.show.after_product_header', {'product': product}) }}
  198. {# avis #}
  199. {#
  200. {% include '@SyliusShop/Product/Show/_reviews.html.twig' %}
  201. {{ sonata_block_render_event('sylius.shop.product.show.after_reviews', {'product': product}) }}
  202. #}
  203. <div class=\"ui stackable grid\">
  204. <div class=\"four wide column\">
  205. {# Price #}
  206. {#
  207. {% if not product.variants.empty() %}
  208. {% include '@SyliusShop/Product/Show/_price.html.twig' %}
  209. {% endif %}
  210. #}
  211. </div>
  212. {# avis #}
  213. {#
  214. <div class=\"twelve wide right aligned column\">
  215. <span class=\"ui sub header\">{{ product.code }}</span>
  216. </div>
  217. #}
  218. </div>
  219. {{ sonata_block_render_event('sylius.shop.product.show.after_price', {'product': product}) }}
  220. <div class=\"ui basic segment\">
  221. <p>{{ product.shortDescription }}</p>
  222. </div>
  223. {{ sonata_block_render_event('sylius.shop.product.show.after_description', {'product': product}) }}
  224. {# Price #}
  225. {#
  226. {% if product.isConfigurable() and product.getVariantSelectionMethod() == 'match' and not product.variants.empty() %}
  227. {% include '@SyliusShop/Product/Show/_variantsPricing.html.twig' with {'pricing': sylius_product_variant_prices(product, sylius.channel)} %}
  228. {% endif %}
  229. #}
  230. {% include '@SyliusShop/Product/Show/_inventory.html.twig' %}
  231. <div class=\"ui hidden divider\"></div>
  232. {# ADD CARD #}
  233. {#
  234. {{ sonata_block_render_event('sylius.shop.product.show.after_add_to_cart', {'product': product}) }}
  235. #}
  236. </div>
  237. </div>
  238. {{ sonata_block_render_event('sylius.shop.product.show.before_tabs', {'product': product}) }}
  239. {% include '@SyliusShop/Product/Show/_tabs.html.twig' %}
  240. {{ sonata_block_render_event('sylius.shop.product.show.before_associations', {'product': product}) }}
  241. {% include '@SyliusShop/Product/Show/_associations.html.twig' %}
  242. {% endblock %}
  243. {% block javascripts %}
  244. {{ parent() }}
  245. <script type=\"text/javascript\">
  246. lightbox.option({
  247. 'albumLabel': '{{ 'sylius.lightbox.image_album_label'|trans|escape('js') }}'
  248. });
  249. </script>
  250. {% endblock %}
  251. ", "@SyliusShop/Product/show.html.twig", "/home/hephaestos.eu/public_html/hephsite/templates/bundles/SyliusShopBundle/Product/show.html.twig");
  252. }
  253. }