var/cache/dev/twig/07/0756cf91fc9da352e383a54725d04413.php line 38

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. /* VisualMediaProductBundle/views/Product/view.html.twig */
  14. class __TwigTemplate_c7ca2d206a0a126c7c935886938000b2 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. 'main' => [$this, 'block_main'],
  24. ];
  25. }
  26. protected function doGetParent(array $context)
  27. {
  28. // line 1
  29. return "Layout/base.html.twig";
  30. }
  31. protected function doDisplay(array $context, array $blocks = [])
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "VisualMediaProductBundle/views/Product/view.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "VisualMediaProductBundle/views/Product/view.html.twig"));
  38. // line 3
  39. $context["breadcrumbs"] = [];
  40. // line 1
  41. $this->parent = $this->loadTemplate("Layout/base.html.twig", "VisualMediaProductBundle/views/Product/view.html.twig", 1);
  42. $this->parent->display($context, array_merge($this->blocks, $blocks));
  43. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45. }
  46. // line 21
  47. public function block_main($context, array $blocks = [])
  48. {
  49. $macros = $this->macros;
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  52. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  54. // line 22
  55. echo " ";
  56. // line 23
  57. echo "
  58. <article class=\"container product-detail\">
  59. ";
  60. // line 25
  61. $this->loadTemplate("@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig", "VisualMediaProductBundle/views/Product/view.html.twig", 25)->display(twig_array_merge($context, ["breadcrumbs" => (isset($context["breadcrumbs"]) || array_key_exists("breadcrumbs", $context) ? $context["breadcrumbs"] : (function () { throw new RuntimeError('Variable "breadcrumbs" does not exist.', 25, $this->source); })())]));
  62. // line 26
  63. echo "
  64. <div class=\"row\">
  65. <div class=\"col-12 col-lg-6\">
  66. <span class=\"product-detail_image\">
  67. <div class=\"single-item\">
  68. ";
  69. // line 31
  70. $context["height"] = 256;
  71. // line 32
  72. echo " ";
  73. $context["photo"] = $this->extensions['VisualMedia\LisaBundle\Twig\TwigUploadUrl']->url(((twig_get_attribute($this->env, $this->source, twig_first($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.', 32, $this->source); })()), "photos", [], "any", false, false, false, 32)), "upload", [], "any", true, true, false, 32)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_first($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.', 32, $this->source); })()), "photos", [], "any", false, false, false, 32)), "upload", [], "any", false, false, false, 32), null)) : (null)), ["height" => (isset($context["height"]) || array_key_exists("height", $context) ? $context["height"] : (function () { throw new RuntimeError('Variable "height" does not exist.', 32, $this->source); })())]);
  74. // line 33
  75. echo " ";
  76. $context['_parent'] = $context;
  77. $context['_seq'] = twig_ensure_traversable(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.', 33, $this->source); })()), "photos", [], "any", false, false, false, 33));
  78. foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
  79. // line 34
  80. echo " <div>
  81. <img src=\"";
  82. // line 35
  83. echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigUploadUrl']->url(twig_get_attribute($this->env, $this->source, $context["photo"], "upload", [], "any", false, false, false, 35), ["height" => (isset($context["height"]) || array_key_exists("height", $context) ? $context["height"] : (function () { throw new RuntimeError('Variable "height" does not exist.', 35, $this->source); })())]), "html", null, true);
  84. echo "\" height=\"";
  85. echo twig_escape_filter($this->env, (isset($context["height"]) || array_key_exists("height", $context) ? $context["height"] : (function () { throw new RuntimeError('Variable "height" does not exist.', 35, $this->source); })()), "html", null, true);
  86. echo "\" class=\"img-fluid\" />
  87. </div>
  88. ";
  89. }
  90. $_parent = $context['_parent'];
  91. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
  92. $context = array_intersect_key($context, $_parent) + $_parent;
  93. // line 39
  94. echo " </div>
  95. </span>
  96. </div>
  97. <div class=\"col-12 col-lg-6\">
  98. <h1>
  99. ";
  100. // line 45
  101. 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.', 45, $this->source); })()), "title", [], "any", false, false, false, 45), "html", null, true);
  102. echo "<br>
  103. <span class=\"product-price\">
  104. ";
  105. // line 47
  106. if ((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.', 47, $this->source); })()), "previousPrice", [], "any", false, false, false, 47) > 0)) {
  107. // line 48
  108. echo " <span class=\"product-price_prev\">&euro; ";
  109. echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigFormatHelper']->priceFormat(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.', 48, $this->source); })()), "previousPrice", [], "any", false, false, false, 48)), "html", null, true);
  110. echo "</span>
  111. ";
  112. }
  113. // line 50
  114. echo "
  115. <span class=\"product-price_now\">&euro; ";
  116. // line 51
  117. echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigFormatHelper']->priceFormat(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.', 51, $this->source); })()), "price", [], "any", false, false, false, 51)), "html", null, true);
  118. echo "</span>
  119. </span>
  120. </h1>
  121. ";
  122. // line 55
  123. $context["htmlContent"] = ((twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "htmlContent", [], "any", true, true, false, 55)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "htmlContent", [], "any", false, false, false, 55), ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parent", [], "any", false, true, false, 55), "htmlContent", [], "any", true, true, false, 55)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parent", [], "any", false, true, false, 55), "htmlContent", [], "any", false, false, false, 55), null)) : (null)))) : (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parent", [], "any", false, true, false, 55), "htmlContent", [], "any", true, true, false, 55)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parent", [], "any", false, true, false, 55), "htmlContent", [], "any", false, false, false, 55), null)) : (null))));
  124. // line 56
  125. echo " ";
  126. if ( !twig_test_empty((isset($context["htmlContent"]) || array_key_exists("htmlContent", $context) ? $context["htmlContent"] : (function () { throw new RuntimeError('Variable "htmlContent" does not exist.', 56, $this->source); })()))) {
  127. // line 57
  128. echo " <span class=\"product-detail_description\">
  129. ";
  130. // line 58
  131. echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigContentScan']->scan((isset($context["htmlContent"]) || array_key_exists("htmlContent", $context) ? $context["htmlContent"] : (function () { throw new RuntimeError('Variable "htmlContent" does not exist.', 58, $this->source); })())), "html", null, true);
  132. echo "
  133. </span>
  134. ";
  135. }
  136. // line 61
  137. echo "
  138. <div class=\"btn-group cart\">
  139. <a href=\"";
  140. // line 63
  141. echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart_add", ["type" => "product", "id" => 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.', 63, $this->source); })()), "id", [], "any", false, false, false, 63)]), "html", null, true);
  142. echo "\" class=\"btn btn-success\">
  143. <i class=\"fal fa-plus mr-1\"></i>
  144. ";
  145. // line 65
  146. echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart.add_cart_btn", [], "frontend"), "html", null, true);
  147. echo "
  148. </a>
  149. </div>
  150. </div>
  151. <div class=\"col-12 col-lg-6\">
  152. <table class=\"table\">
  153. <tr>
  154. <th colspan=\"2\" style=\"border-width: 0px;\">
  155. <h2 class=\"my-0\"><i class=\"fas fa-info mr-2\"></i>Product eigenschappen</h2>
  156. </th>
  157. </tr>
  158. ";
  159. // line 78
  160. $context['_parent'] = $context;
  161. $context['_seq'] = twig_ensure_traversable(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.', 78, $this->source); })()), "flattenedAttributes", [], "any", false, false, false, 78));
  162. $context['_iterated'] = false;
  163. foreach ($context['_seq'] as $context["_key"] => $context["attribute"]) {
  164. if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 78), "visible", [], "any", false, false, false, 78)) {
  165. // line 79
  166. echo " <tr>
  167. <td class=\"pl-2\" style=\"width: 50%; border-color: #ddd;\">
  168. ";
  169. // line 81
  170. echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 81), "title", [], "any", false, false, false, 81)), "html", null, true);
  171. echo "
  172. </td>
  173. <td style=\"border-color: #ddd;\">";
  174. // line 85
  175. $context['_parent'] = $context;
  176. $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["attribute"], "coherentAttributes", [], "any", false, false, false, 85));
  177. $context['loop'] = [
  178. 'parent' => $context['_parent'],
  179. 'index0' => 0,
  180. 'index' => 1,
  181. 'first' => true,
  182. ];
  183. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  184. $length = count($context['_seq']);
  185. $context['loop']['revindex0'] = $length - 1;
  186. $context['loop']['revindex'] = $length;
  187. $context['loop']['length'] = $length;
  188. $context['loop']['last'] = 1 === $length;
  189. }
  190. foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
  191. // line 86
  192. echo twig_escape_filter($this->env, $context["content"], "html", null, true);
  193. // line 88
  194. if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["content"], "attribute", [], "any", false, false, false, 88), "unit", [], "any", false, false, false, 88))) {
  195. // line 89
  196. echo "<span class=\"product-unit\">";
  197. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["content"], "attribute", [], "any", false, false, false, 89), "unit", [], "any", false, false, false, 89), "html", null, true);
  198. echo "</span>";
  199. }
  200. // line 92
  201. if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 92)) {
  202. echo ",&nbsp;";
  203. }
  204. ++$context['loop']['index0'];
  205. ++$context['loop']['index'];
  206. $context['loop']['first'] = false;
  207. if (isset($context['loop']['length'])) {
  208. --$context['loop']['revindex0'];
  209. --$context['loop']['revindex'];
  210. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  211. }
  212. }
  213. $_parent = $context['_parent'];
  214. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
  215. $context = array_intersect_key($context, $_parent) + $_parent;
  216. // line 94
  217. echo "</td>
  218. </tr>
  219. ";
  220. $context['_iterated'] = true;
  221. }
  222. }
  223. if (!$context['_iterated']) {
  224. // line 97
  225. echo " <tr colspan=\"2\">
  226. <td>Er zijn geen product eigenschappen beschikbaar.</td>
  227. </tr>
  228. ";
  229. }
  230. $_parent = $context['_parent'];
  231. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attribute'], $context['_parent'], $context['loop']);
  232. $context = array_intersect_key($context, $_parent) + $_parent;
  233. // line 101
  234. echo " </table>
  235. </div>
  236. <div class=\"col-12 mt-3\">
  237. ";
  238. // line 105
  239. if (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.', 105, $this->source); })()), "productVariant", [], "any", false, false, false, 105)) {
  240. // line 106
  241. echo " <table class=\"table\">
  242. <tr>
  243. <th style=\"border-width: 0px;\">
  244. <h2 class=\"my-0\"><i class=\"fas fa-boxes mr-2\"></i>Product varianten</h2>
  245. </th>
  246. ";
  247. // line 112
  248. $context['_parent'] = $context;
  249. $context['_seq'] = twig_ensure_traversable(((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parent", [], "any", false, true, false, 112), "distinctAttributes", [], "any", true, true, false, 112)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parent", [], "any", false, true, false, 112), "distinctAttributes", [], "any", false, false, false, 112), [])) : ([])));
  250. foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
  251. // line 113
  252. echo " <th style=\"border-width: 0px;\"><b>";
  253. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["content"], "attribute", [], "any", false, false, false, 113), "html", null, true);
  254. echo "</b></th>
  255. ";
  256. }
  257. $_parent = $context['_parent'];
  258. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
  259. $context = array_intersect_key($context, $_parent) + $_parent;
  260. // line 115
  261. echo "
  262. <th style=\"border-width: 0px;\"><b>Prijs</b></th>
  263. </tr>
  264. ";
  265. // line 119
  266. $context['_parent'] = $context;
  267. $context['_seq'] = twig_ensure_traversable((isset($context["variants"]) || array_key_exists("variants", $context) ? $context["variants"] : (function () { throw new RuntimeError('Variable "variants" does not exist.', 119, $this->source); })()));
  268. foreach ($context['_seq'] as $context["_key"] => $context["variant"]) {
  269. // line 120
  270. echo " <tr";
  271. if ((twig_get_attribute($this->env, $this->source, $context["variant"], "slug", [], "any", false, false, false, 120) == 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.', 120, $this->source); })()), "slug", [], "any", false, false, false, 120))) {
  272. echo " style=\"background-color: #eee;\"";
  273. }
  274. echo ">
  275. <td class=\"pl-2\" style=\"border-color: #ddd;\">
  276. ";
  277. // line 122
  278. if ((twig_get_attribute($this->env, $this->source, $context["variant"], "slug", [], "any", false, false, false, 122) == 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.', 122, $this->source); })()), "slug", [], "any", false, false, false, 122))) {
  279. // line 123
  280. echo " ";
  281. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["variant"], "title", [], "any", false, false, false, 123), "html", null, true);
  282. echo "
  283. ";
  284. } else {
  285. // line 125
  286. echo " <a href=\"";
  287. echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product", ["slug" => twig_get_attribute($this->env, $this->source, $context["variant"], "slug", [], "any", false, false, false, 125)]), "html", null, true);
  288. echo "\">";
  289. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["variant"], "title", [], "any", false, false, false, 125), "html", null, true);
  290. echo "</a>
  291. ";
  292. }
  293. // line 127
  294. echo " </td>
  295. ";
  296. // line 129
  297. $context['_parent'] = $context;
  298. $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["variant"], "distinctAttributes", [], "any", false, false, false, 129));
  299. foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
  300. // line 130
  301. echo " <td style=\"border-color: #ddd;\">";
  302. // line 131
  303. echo twig_escape_filter($this->env, ((array_key_exists("content", $context)) ? (_twig_default_filter($context["content"], "-")) : ("-")), "html", null, true);
  304. // line 133
  305. if ( !twig_test_empty(((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["content"], "attribute", [], "any", false, true, false, 133), "unit", [], "any", true, true, false, 133)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["content"], "attribute", [], "any", false, true, false, 133), "unit", [], "any", false, false, false, 133), null)) : (null)))) {
  306. // line 134
  307. echo "<sub style=\"font-size: 1.0em; padding-left: 2px;\">";
  308. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["content"], "attribute", [], "any", false, false, false, 134), "unit", [], "any", false, false, false, 134), "html", null, true);
  309. echo "</sub>";
  310. }
  311. // line 136
  312. echo "</td>
  313. ";
  314. }
  315. $_parent = $context['_parent'];
  316. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
  317. $context = array_intersect_key($context, $_parent) + $_parent;
  318. // line 138
  319. echo "
  320. <td style=\"border-color: #ddd;\">
  321. &euro; ";
  322. // line 140
  323. echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigFormatHelper']->priceFormat(twig_get_attribute($this->env, $this->source, $context["variant"], "price", [], "any", false, false, false, 140)), "html", null, true);
  324. echo "
  325. </td>
  326. </tr>
  327. ";
  328. }
  329. $_parent = $context['_parent'];
  330. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['variant'], $context['_parent'], $context['loop']);
  331. $context = array_intersect_key($context, $_parent) + $_parent;
  332. // line 144
  333. echo " </table>
  334. ";
  335. }
  336. // line 146
  337. echo " </div>
  338. </div>
  339. </article>
  340. ";
  341. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  342. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  343. }
  344. public function getTemplateName()
  345. {
  346. return "VisualMediaProductBundle/views/Product/view.html.twig";
  347. }
  348. public function isTraitable()
  349. {
  350. return false;
  351. }
  352. public function getDebugInfo()
  353. {
  354. return array ( 363 => 146, 359 => 144, 349 => 140, 345 => 138, 338 => 136, 333 => 134, 331 => 133, 329 => 131, 327 => 130, 323 => 129, 319 => 127, 311 => 125, 305 => 123, 303 => 122, 295 => 120, 291 => 119, 285 => 115, 276 => 113, 272 => 112, 264 => 106, 262 => 105, 256 => 101, 247 => 97, 239 => 94, 223 => 92, 218 => 89, 216 => 88, 214 => 86, 197 => 85, 191 => 81, 187 => 79, 181 => 78, 165 => 65, 160 => 63, 156 => 61, 150 => 58, 147 => 57, 144 => 56, 142 => 55, 135 => 51, 132 => 50, 126 => 48, 124 => 47, 119 => 45, 111 => 39, 99 => 35, 96 => 34, 91 => 33, 88 => 32, 86 => 31, 79 => 26, 77 => 25, 73 => 23, 71 => 22, 61 => 21, 50 => 1, 48 => 3, 35 => 1,);
  355. }
  356. public function getSourceContext()
  357. {
  358. return new Source("{% extends 'Layout/base.html.twig' %}
  359. {% set breadcrumbs = [] %}
  360. {# {% if product.categories|first is not empty %}
  361. {% set breadcrumbs = breadcrumbs|merge([
  362. { title: 'Categorie \"' ~ product.categories|first.category.title|default('?') ~ '\"', 'path': path('product_category', { slug: product.categories|first.category.slug }) },
  363. ]) %}
  364. {% endif %}
  365. {% if product.productVariant %}
  366. {% set breadcrumbs = breadcrumbs|merge([
  367. { title: 'Hoofdproduct \"' ~ product.parent.title ~ '\"', 'path': path('product', { slug: product.parent.slug }) },
  368. ]) %}
  369. {% endif %}
  370. {% set breadcrumbs = breadcrumbs|merge([
  371. { title: 'Product \"' ~ product.title ~ '\"' },
  372. ]) %} #}
  373. {% block main %}
  374. {#% include '@VisualMediaVisual/Visual/visual.html.twig' with { visuals: product.photos|default(product.parent.photos|default(null)) } only %#}
  375. <article class=\"container product-detail\">
  376. {% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig' with { breadcrumbs: breadcrumbs } %}
  377. <div class=\"row\">
  378. <div class=\"col-12 col-lg-6\">
  379. <span class=\"product-detail_image\">
  380. <div class=\"single-item\">
  381. {% set height = 256 %}
  382. {% set photo = product.photos|first.upload|default(null)|url({ height: height }) %}
  383. {% for photo in product.photos %}
  384. <div>
  385. <img src=\"{{ photo.upload|url({ height: height }) }}\" height=\"{{ height }}\" class=\"img-fluid\" />
  386. </div>
  387. {% endfor %}
  388. </div>
  389. </span>
  390. </div>
  391. <div class=\"col-12 col-lg-6\">
  392. <h1>
  393. {{ product.title }}<br>
  394. <span class=\"product-price\">
  395. {% if product.previousPrice > 0 %}
  396. <span class=\"product-price_prev\">&euro; {{ product.previousPrice|price_format }}</span>
  397. {% endif %}
  398. <span class=\"product-price_now\">&euro; {{ product.price|price_format }}</span>
  399. </span>
  400. </h1>
  401. {% set htmlContent = product.htmlContent|default(product.parent.htmlContent|default(null)) %}
  402. {% if htmlContent is not empty %}
  403. <span class=\"product-detail_description\">
  404. {{ htmlContent|scan }}
  405. </span>
  406. {% endif %}
  407. <div class=\"btn-group cart\">
  408. <a href=\"{{ path('cart_add', { type: 'product', id: product.id }) }}\" class=\"btn btn-success\">
  409. <i class=\"fal fa-plus mr-1\"></i>
  410. {{ 'cart.add_cart_btn'|trans({}, 'frontend') }}
  411. </a>
  412. </div>
  413. </div>
  414. <div class=\"col-12 col-lg-6\">
  415. <table class=\"table\">
  416. <tr>
  417. <th colspan=\"2\" style=\"border-width: 0px;\">
  418. <h2 class=\"my-0\"><i class=\"fas fa-info mr-2\"></i>Product eigenschappen</h2>
  419. </th>
  420. </tr>
  421. {% for attribute in product.flattenedAttributes if attribute.attribute.visible %}
  422. <tr>
  423. <td class=\"pl-2\" style=\"width: 50%; border-color: #ddd;\">
  424. {{ attribute.attribute.title|capitalize }}
  425. </td>
  426. <td style=\"border-color: #ddd;\">
  427. {%- for content in attribute.coherentAttributes -%}
  428. {{- content -}}
  429. {%- if content.attribute.unit is not empty -%}
  430. <span class=\"product-unit\">{{ content.attribute.unit }}</span>
  431. {%- endif -%}
  432. {%- if not loop.last -%},&nbsp;{%- endif -%}
  433. {%- endfor -%}
  434. </td>
  435. </tr>
  436. {% else %}
  437. <tr colspan=\"2\">
  438. <td>Er zijn geen product eigenschappen beschikbaar.</td>
  439. </tr>
  440. {% endfor %}
  441. </table>
  442. </div>
  443. <div class=\"col-12 mt-3\">
  444. {% if product.productVariant %}
  445. <table class=\"table\">
  446. <tr>
  447. <th style=\"border-width: 0px;\">
  448. <h2 class=\"my-0\"><i class=\"fas fa-boxes mr-2\"></i>Product varianten</h2>
  449. </th>
  450. {% for content in product.parent.distinctAttributes|default([]) %}
  451. <th style=\"border-width: 0px;\"><b>{{ content.attribute }}</b></th>
  452. {% endfor %}
  453. <th style=\"border-width: 0px;\"><b>Prijs</b></th>
  454. </tr>
  455. {% for variant in variants %}
  456. <tr{% if variant.slug == product.slug %} style=\"background-color: #eee;\"{% endif %}>
  457. <td class=\"pl-2\" style=\"border-color: #ddd;\">
  458. {% if variant.slug == product.slug %}
  459. {{ variant.title }}
  460. {% else %}
  461. <a href=\"{{ path('product', { slug: variant.slug }) }}\">{{ variant.title }}</a>
  462. {% endif %}
  463. </td>
  464. {% for content in variant.distinctAttributes %}
  465. <td style=\"border-color: #ddd;\">
  466. {{- content|default('-') -}}
  467. {%- if content.attribute.unit|default(null) is not empty -%}
  468. <sub style=\"font-size: 1.0em; padding-left: 2px;\">{{ content.attribute.unit }}</sub>
  469. {%- endif -%}
  470. </td>
  471. {% endfor %}
  472. <td style=\"border-color: #ddd;\">
  473. &euro; {{ variant.price|price_format }}
  474. </td>
  475. </tr>
  476. {% endfor %}
  477. </table>
  478. {% endif %}
  479. </div>
  480. </div>
  481. </article>
  482. {% endblock %}
  483. ", "VisualMediaProductBundle/views/Product/view.html.twig", "/var/www/public_html/templates/VisualMediaProductBundle/views/Product/view.html.twig");
  484. }
  485. }