<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* product/list.html.twig */
class __TwigTemplate_b484cd619d1aa45529f184e49ef80b0f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "standard_tpl.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "product/list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "product/list.html.twig"));
// line 3
$context["page_title_alt"] = "Shop";
// line 1
$this->parent = $this->loadTemplate("standard_tpl.html.twig", "product/list.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
yield "
<!-- Fast Cart -->
<section class=\"fast-cart-area product-list\">
<div class=\"container\">
";
// line 10
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
// line 11
yield " <div class=\"row justify-content-center align-items-center pb-20\">
<div class=\"col-lg-4\">
<div class=\"img-wrapper\">
<img src=\"";
// line 14
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", false, false, false, 14)), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["content"], "title", [], "any", false, false, false, 14), "html", null, true);
yield "\">
</div>
</div>
<div class=\"col-lg-5\">
<h3 class=\"about-us-title\">";
// line 18
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["content"], "title", [], "any", false, false, false, 18), "html", null, true);
yield "</h3>
<div class=\"price-wrapper\">
<span class=\"price-cart\">";
// line 20
yield $this->extensions['Boab\CmsBundle\Twig\Extension\BoabCmsExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, $context["content"], "price", [], "any", false, false, false, 20));
yield "</span>
</div>
<div class=\"cart-details-wrapper\">
<p>";
// line 23
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["content"], "summary", [], "any", false, false, false, 23), "html", null, true);
yield "</p>
<div class=\"cart-details\">
<span class=\"cart-bold\">Category: </span>
<span>";
// line 26
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["content"], "term", [], "any", false, false, false, 26), "name", [], "any", false, false, false, 26), "html", null, true);
yield "</span>
</div>
</div>
<div class=\"cart-btn-wrapper d-flex\">
<form name=\"add-to-cart\" action=\"";
// line 30
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shopping_add_to_cart");
yield "\" method=\"POST\" class=\"add-to-cart\" data-controller=\"add-to-cart\" data-action=\"submit->add-to-cart#addToCart\">
<input type=\"hidden\" name=\"productId\" value=\"";
// line 31
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["content"], "id", [], "any", false, false, false, 31), "html", null, true);
yield "\" />
<div class=\"d-flex\">
<input type=\"number\" name=\"qty\" class=\"form-control checkout-form-input\" value=\"1\" min=\"1\">
<button type=\"submit\" class=\"btn btn-primary-fast mx-2 btn-add-to-cart\" data-add-to-cart-target=\"submitButton\">Add to Cart</button>
</div>
</form>
</div>
</div>
<div class=\"col-lg-9\">
";
// line 40
yield CoreExtension::getAttribute($this->env, $this->source, $context["content"], "body", [], "any", false, false, false, 40);
yield "
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
yield " </div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "product/list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"standard_tpl.html.twig\" %}
{% set page_title_alt = \"Shop\" %}
{% block content %}
<!-- Fast Cart -->
<section class=\"fast-cart-area product-list\">
<div class=\"container\">
{% for content in collection %}
<div class=\"row justify-content-center align-items-center pb-20\">
<div class=\"col-lg-4\">
<div class=\"img-wrapper\">
<img src=\"{{ content.thumbnail|media_url }}\" alt=\"{{ content.title }}\">
</div>
</div>
<div class=\"col-lg-5\">
<h3 class=\"about-us-title\">{{ content.title }}</h3>
<div class=\"price-wrapper\">
<span class=\"price-cart\">{{ currency(content.price)}}</span>
</div>
<div class=\"cart-details-wrapper\">
<p>{{ content.summary }}</p>
<div class=\"cart-details\">
<span class=\"cart-bold\">Category: </span>
<span>{{ content.term.name }}</span>
</div>
</div>
<div class=\"cart-btn-wrapper d-flex\">
<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\">
<input type=\"hidden\" name=\"productId\" value=\"{{ content.id }}\" />
<div class=\"d-flex\">
<input type=\"number\" name=\"qty\" class=\"form-control checkout-form-input\" value=\"1\" min=\"1\">
<button type=\"submit\" class=\"btn btn-primary-fast mx-2 btn-add-to-cart\" data-add-to-cart-target=\"submitButton\">Add to Cart</button>
</div>
</form>
</div>
</div>
<div class=\"col-lg-9\">
{{ content.body|raw }}
</div>
</div>
{% endfor %}
</div>
</section>
{% endblock %}", "product/list.html.twig", "/home/u835281259/domains/konashznaturals.com/siteFiles/templates/product/list.html.twig");
}
}