var/cache/dev/twig/d7/d7c0e989c60b68ce593845f7e2fdb9d3.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\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* front/catalog/product/view/references.html.twig */
  16. class __TwigTemplate_11b440f9fb5075622e3d741fdd224d74 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  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", "front/catalog/product/view/references.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", "front/catalog/product/view/references.html.twig"));
  38. // line 1
  39. yield "<div class=\"references\">
  40. ";
  41. // line 2
  42. $context["country"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["customerMgr"]) || array_key_exists("customerMgr", $context) ? $context["customerMgr"] : (function () { throw new RuntimeError('Variable "customerMgr" does not exist.', 2, $this->source); })()), "getCustomerCountry", [], "method", false, false, false, 2);
  43. // line 3
  44. yield " ";
  45. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["customerMgr"]) || array_key_exists("customerMgr", $context) ? $context["customerMgr"] : (function () { throw new RuntimeError('Variable "customerMgr" does not exist.', 3, $this->source); })()), "canSeePrices", [], "method", false, false, false, 3) && CoreExtension::getAttribute($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); })()), "isAvailableForCountry", [(isset($context["country"]) || array_key_exists("country", $context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.', 3, $this->source); })())], "method", false, false, false, 3))) {
  46. // line 4
  47. yield " <div class=\"row\">
  48. <div class=\"ref\">";
  49. // line 5
  50. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Réf.", [], "messages");
  51. yield " <span class=\"value\">";
  52. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 5, $this->source); })()), "reference", [], "any", false, false, false, 5), "html", null, true);
  53. yield "</span></div>
  54. <div class=\"prices\">
  55. <div class=\"price\" id=\"price-";
  56. // line 7
  57. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($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); })()), "id", [], "any", false, false, false, 7), "html", null, true);
  58. yield "\">";
  59. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\PriceExtension']->priceFilter(CoreExtension::getAttribute($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); })()), "getPrice", [true, (isset($context["priceGroup"]) || array_key_exists("priceGroup", $context) ? $context["priceGroup"] : (function () { throw new RuntimeError('Variable "priceGroup" does not exist.', 7, $this->source); })())], "method", false, false, false, 7)), "html", null, true);
  60. yield "</div>
  61. </div>
  62. ";
  63. // line 9
  64. yield from $this->load("front/cart/bt.html.twig", 9)->unwrap()->yield(CoreExtension::merge($context, ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 9, $this->source); })())]));
  65. // line 10
  66. yield " </div>
  67. ";
  68. }
  69. // line 12
  70. yield "</div>";
  71. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  72. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  73. yield from [];
  74. }
  75. /**
  76. * @codeCoverageIgnore
  77. */
  78. public function getTemplateName(): string
  79. {
  80. return "front/catalog/product/view/references.html.twig";
  81. }
  82. /**
  83. * @codeCoverageIgnore
  84. */
  85. public function isTraitable(): bool
  86. {
  87. return false;
  88. }
  89. /**
  90. * @codeCoverageIgnore
  91. */
  92. public function getDebugInfo(): array
  93. {
  94. return array ( 79 => 12, 75 => 10, 73 => 9, 66 => 7, 59 => 5, 56 => 4, 53 => 3, 51 => 2, 48 => 1,);
  95. }
  96. public function getSourceContext(): Source
  97. {
  98. return new Source("<div class=\"references\">
  99. {% set country = customerMgr.getCustomerCountry() %}
  100. {% if customerMgr.canSeePrices() and product.isAvailableForCountry(country) %}
  101. <div class=\"row\">
  102. <div class=\"ref\">{% trans %}Réf.{% endtrans %} <span class=\"value\">{{ product.reference }}</span></div>
  103. <div class=\"prices\">
  104. <div class=\"price\" id=\"price-{{ product.id }}\">{{ product.getPrice(true, priceGroup)|price }}</div>
  105. </div>
  106. {% include \x27front/cart/bt.html.twig\x27 with {product:product} %}
  107. </div>
  108. {% endif %}
  109. </div>", "front/catalog/product/view/references.html.twig", "/var/www/dogcat.com/pim/templates/front/catalog/product/view/references.html.twig");
  110. }
  111. }