var/cache/dev/twig/b1/b1b691d2bda0bb19867ba4485f8c7f7b.php line 34

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. /* front/catalog/product/view/stock.html.twig */
  15. class __TwigTemplate_5b08d26711968a6f18d2b336e2cc2556 extends Template
  16. {
  17. private $source;
  18. private $macros = [];
  19. public function __construct(Environment $env)
  20. {
  21. parent::__construct($env);
  22. $this->source = $this->getSourceContext();
  23. $this->parent = false;
  24. $this->blocks = [
  25. ];
  26. }
  27. protected function doDisplay(array $context, array $blocks = [])
  28. {
  29. $macros = $this->macros;
  30. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/product/view/stock.html.twig"));
  32. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/product/view/stock.html.twig"));
  34. // line 1
  35. yield "<div class=\"stock\">
  36. <div class=\"model\">";
  37. // line 2
  38. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TextExtension']->unpad(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.', 2, $this->source); })()), "modelSAP", [], "any", false, false, false, 2)), "html", null, true);
  39. yield "</div>
  40. ";
  41. // line 3
  42. if (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); })()), "isAvailable", [], "method", false, false, false, 3)) {
  43. // line 4
  44. yield " <span class=\"stock-status available green\">";
  45. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("disponible", [], "messages");
  46. yield "</span>
  47. ";
  48. } elseif (CoreExtension::getAttribute($this->env, $this->source, // line 5
  49. (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 5, $this->source); })()), "isStopped", [], "method", false, false, false, 5)) {
  50. // line 6
  51. yield " <span class=\"stock-status unavailable red\">";
  52. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("PRODUIT ARRÊTÉ", [], "messages");
  53. yield "</span>
  54. ";
  55. } else {
  56. // line 8
  57. yield " <span class=\"stock-status unavailable orange\">";
  58. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("NON DISPONIBLE<br>IMMÉDIATEMENT", [], "messages");
  59. yield "</span>
  60. ";
  61. }
  62. // line 10
  63. yield "</div>";
  64. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66. return; yield '';
  67. }
  68. /**
  69. * @codeCoverageIgnore
  70. */
  71. public function getTemplateName()
  72. {
  73. return "front/catalog/product/view/stock.html.twig";
  74. }
  75. /**
  76. * @codeCoverageIgnore
  77. */
  78. public function isTraitable()
  79. {
  80. return false;
  81. }
  82. /**
  83. * @codeCoverageIgnore
  84. */
  85. public function getDebugInfo()
  86. {
  87. return array ( 72 => 10, 66 => 8, 60 => 6, 58 => 5, 53 => 4, 51 => 3, 47 => 2, 44 => 1,);
  88. }
  89. public function getSourceContext()
  90. {
  91. return new Source("<div class=\"stock\">
  92. <div class=\"model\">{{ product.modelSAP|unpad }}</div>
  93. {% if product.isAvailable() %}
  94. <span class=\"stock-status available green\">{% trans %}disponible{% endtrans %}</span>
  95. {% elseif product.isStopped() %}
  96. <span class=\"stock-status unavailable red\">{% trans %}PRODUIT ARRÊTÉ{% endtrans %}</span>
  97. {% else %}
  98. <span class=\"stock-status unavailable orange\">{% trans %}NON DISPONIBLE<br>IMMÉDIATEMENT{% endtrans %}</span>
  99. {% endif %}
  100. </div>", "front/catalog/product/view/stock.html.twig", "/var/www/dogcat.com/v2-test/templates/front/catalog/product/view/stock.html.twig");
  101. }
  102. }