var/cache/dev/twig/9e/9e74059930a01f5cccc4eebd0ba12cdd.php line 39

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. /* product/list.html.twig */
  15. class __TwigTemplate_b484cd619d1aa45529f184e49ef80b0f 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->blocks = [
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "standard_tpl.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""product/list.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""product/list.html.twig"));
  39.         // line 3
  40.         $context["page_title_alt"] = "Shop";
  41.         // line 1
  42.         $this->parent $this->loadTemplate("standard_tpl.html.twig""product/list.html.twig"1);
  43.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 5
  50.     public function block_content($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  57.         // line 6
  58.         yield "
  59.     <!-- Fast Cart -->
  60.     <section class=\"fast-cart-area product-list\">
  61.         <div class=\"container\">
  62.             ";
  63.         // line 10
  64.         $context['_parent'] = $context;
  65.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["collection"]) || array_key_exists("collection"$context) ? $context["collection"] : (function () { throw new RuntimeError('Variable "collection" does not exist.'10$this->source); })()));
  66.         foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
  67.             // line 11
  68.             yield "                <div class=\"row justify-content-center align-items-center pb-20\">
  69.                     <div class=\"col-lg-4\">
  70.                         <div class=\"img-wrapper\">
  71.                             <img src=\"";
  72.             // line 14
  73.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boab\CmsBundle\Twig\Extension\MediaExtension']->generateMediaUrl(CoreExtension::getAttribute($this->env$this->source$context["content"], "thumbnail", [], "any"falsefalsefalse14)), "html"nulltrue);
  74.             yield "\" alt=\"";
  75.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["content"], "title", [], "any"falsefalsefalse14), "html"nulltrue);
  76.             yield "\">
  77.                         </div>
  78.                     </div>
  79.                     <div class=\"col-lg-5\">
  80.                         <h3 class=\"about-us-title\">";
  81.             // line 18
  82.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["content"], "title", [], "any"falsefalsefalse18), "html"nulltrue);
  83.             yield "</h3>
  84.                         <div class=\"price-wrapper\">
  85.                             <span class=\"price-cart\">";
  86.             // line 20
  87.             yield $this->extensions['Boab\CmsBundle\Twig\Extension\BoabCmsExtension']->formatNumber(CoreExtension::getAttribute($this->env$this->source$context["content"], "price", [], "any"falsefalsefalse20));
  88.             yield "</span>
  89.                         </div>
  90.                         <div class=\"cart-details-wrapper\">
  91.                             <p>";
  92.             // line 23
  93.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["content"], "summary", [], "any"falsefalsefalse23), "html"nulltrue);
  94.             yield "</p>
  95.                             <div class=\"cart-details\">
  96.                                 <span class=\"cart-bold\">Category: </span>
  97.                                 <span>";
  98.             // line 26
  99.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["content"], "term", [], "any"falsefalsefalse26), "name", [], "any"falsefalsefalse26), "html"nulltrue);
  100.             yield "</span>
  101.                             </div>
  102.                         </div>
  103.                         <div class=\"cart-btn-wrapper d-flex\">
  104.                             <form name=\"add-to-cart\" action=\"";
  105.             // line 30
  106.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shopping_add_to_cart");
  107.             yield "\" method=\"POST\" class=\"add-to-cart\" data-controller=\"add-to-cart\" data-action=\"submit->add-to-cart#addToCart\">
  108.                                 <input type=\"hidden\" name=\"productId\" value=\"";
  109.             // line 31
  110.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["content"], "id", [], "any"falsefalsefalse31), "html"nulltrue);
  111.             yield "\" />
  112.                                 <div class=\"d-flex\">
  113.                                     <input type=\"number\" name=\"qty\"  class=\"form-control checkout-form-input\" value=\"1\" min=\"1\">
  114.                                     <button type=\"submit\" class=\"btn btn-primary-fast mx-2 btn-add-to-cart\" data-add-to-cart-target=\"submitButton\">Add to Cart</button>
  115.                                 </div>
  116.                             </form>
  117.                         </div>
  118.                     </div>
  119.                     <div class=\"col-lg-9\">
  120.                         ";
  121.             // line 40
  122.             yield CoreExtension::getAttribute($this->env$this->source$context["content"], "body", [], "any"falsefalsefalse40);
  123.             yield "
  124.                     </div>
  125.                 </div>
  126.             ";
  127.         }
  128.         $_parent $context['_parent'];
  129.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
  130.         $context array_intersect_key($context$_parent) + $_parent;
  131.         // line 44
  132.         yield "        </div>
  133.     </section>
  134. ";
  135.         
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  137.         
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  139.         return; yield '';
  140.     }
  141.     /**
  142.      * @codeCoverageIgnore
  143.      */
  144.     public function getTemplateName()
  145.     {
  146.         return "product/list.html.twig";
  147.     }
  148.     /**
  149.      * @codeCoverageIgnore
  150.      */
  151.     public function isTraitable()
  152.     {
  153.         return false;
  154.     }
  155.     /**
  156.      * @codeCoverageIgnore
  157.      */
  158.     public function getDebugInfo()
  159.     {
  160.         return array (  146 => 44,  136 => 40,  124 => 31,  120 => 30,  113 => 26,  107 => 23,  101 => 20,  96 => 18,  87 => 14,  82 => 11,  78 => 10,  72 => 6,  62 => 5,  51 => 1,  49 => 3,  36 => 1,);
  161.     }
  162.     public function getSourceContext()
  163.     {
  164.         return new Source("{% extends \"standard_tpl.html.twig\" %}
  165. {% set page_title_alt = \"Shop\" %}
  166. {% block  content %}
  167.     <!-- Fast Cart -->
  168.     <section class=\"fast-cart-area product-list\">
  169.         <div class=\"container\">
  170.             {% for content in collection %}
  171.                 <div class=\"row justify-content-center align-items-center pb-20\">
  172.                     <div class=\"col-lg-4\">
  173.                         <div class=\"img-wrapper\">
  174.                             <img src=\"{{ content.thumbnail|media_url }}\" alt=\"{{ content.title }}\">
  175.                         </div>
  176.                     </div>
  177.                     <div class=\"col-lg-5\">
  178.                         <h3 class=\"about-us-title\">{{ content.title }}</h3>
  179.                         <div class=\"price-wrapper\">
  180.                             <span class=\"price-cart\">{{ currency(content.price)}}</span>
  181.                         </div>
  182.                         <div class=\"cart-details-wrapper\">
  183.                             <p>{{ content.summary }}</p>
  184.                             <div class=\"cart-details\">
  185.                                 <span class=\"cart-bold\">Category: </span>
  186.                                 <span>{{ content.term.name }}</span>
  187.                             </div>
  188.                         </div>
  189.                         <div class=\"cart-btn-wrapper d-flex\">
  190.                             <form name=\"add-to-cart\" action=\"{{ path('shopping_add_to_cart') }}\" method=\"POST\" class=\"add-to-cart\" data-controller=\"add-to-cart\" data-action=\"submit->add-to-cart#addToCart\">
  191.                                 <input type=\"hidden\" name=\"productId\" value=\"{{ content.id }}\" />
  192.                                 <div class=\"d-flex\">
  193.                                     <input type=\"number\" name=\"qty\"  class=\"form-control checkout-form-input\" value=\"1\" min=\"1\">
  194.                                     <button type=\"submit\" class=\"btn btn-primary-fast mx-2 btn-add-to-cart\" data-add-to-cart-target=\"submitButton\">Add to Cart</button>
  195.                                 </div>
  196.                             </form>
  197.                         </div>
  198.                     </div>
  199.                     <div class=\"col-lg-9\">
  200.                         {{ content.body|raw }}
  201.                     </div>
  202.                 </div>
  203.             {% endfor %}
  204.         </div>
  205.     </section>
  206. {% endblock %}""product/list.html.twig""/home/u835281259/domains/konashznaturals.com/siteFiles/templates/product/list.html.twig");
  207.     }
  208. }