var/cache/dev/twig/a0/a08044c39a46045169aea37fe3bb4292.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. /* ecom/store.html.twig */
  15. class __TwigTemplate_9d71a1fcaa20d7ad8be34d59ba8359d8 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.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.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""ecom/store.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""ecom/store.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""ecom/store.html.twig"1);
  40.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 2
  47.     public function block_body($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""body"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  54.         // line 3
  55.         yield "  <div class=\"container-fluid main-holder px-5 bg-light\">
  56.     <div class=\"row\">
  57.       <div class=\"col-lg-3\">
  58.         <select class=\"form-select rounded-pill py-3 px-3 shadow-none border-0 fs-5 bg-transparent fw-bold mb-3\" id=\"citydropdown\" onchange=\"city_select(this)\">
  59.           <option selected>Select a City</option>
  60.           ";
  61.         // line 8
  62.         $context['_parent'] = $context;
  63.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["ecomvariables"]) || array_key_exists("ecomvariables"$context) ? $context["ecomvariables"] : (function () { throw new RuntimeError('Variable "ecomvariables" does not exist.'8$this->source); })()), "cities", [], "method"falsefalsefalse8));
  64.         foreach ($context['_seq'] as $context["_key"] => $context["c"]) {
  65.             // line 9
  66.             yield "          <option value=\"";
  67.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["c"], "id", [], "any"falsefalsefalse9), "html"nulltrue);
  68.             yield "\" ";
  69.             if ((CoreExtension::getAttribute($this->env$this->source$context["c"], "name", [], "any"falsefalsefalse9) == CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'9$this->source); })()), "session", [], "any"falsefalsefalse9), "get", ["mycity"], "method"falsefalsefalse9))) {
  70.                 yield "selected";
  71.             }
  72.             yield ">";
  73.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["c"], "name", [], "any"falsefalsefalse9), "html"nulltrue);
  74.             yield "</option>
  75.           ";
  76.         }
  77.         $_parent $context['_parent'];
  78.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['c'], $context['_parent'], $context['loop']);
  79.         $context array_intersect_key($context$_parent) + $_parent;
  80.         // line 11
  81.         yield "        </select>
  82.       </div>
  83.     </div>
  84.   </div>
  85.   <div class=\"container-fluid px-5 mt-5\">
  86.     <div class=\"row\">
  87.       <div class=\"col-lg-12\">
  88.         <h1 class=\"fw-bolder\">Nick Tahoes <span class=\"small\">/ Men’s Apparel</span></h1>
  89.         <h6>Explore Nick Tahoes products</h6>
  90.       </div>
  91.     </div>
  92.     <div class=\"row pb-4\">
  93.       ";
  94.         // line 23
  95.         $context['_parent'] = $context;
  96.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'23$this->source); })()));
  97.         foreach ($context['_seq'] as $context["k"] => $context["product"]) {
  98.             // line 24
  99.             yield "        ";
  100.             if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source$context["product"], "path", [], "any"falsefalsefalse24))) {
  101.                 // line 25
  102.                 yield "        <div class=\"col-lg-3 mt-4\"> <a href=\"";
  103.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sajong_ecom_product_details", ["path" => CoreExtension::getAttribute($this->env$this->source$context["product"], "path", [], "any"falsefalsefalse25)]), "html"nulltrue);
  104.                 yield "\">
  105.           <div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"";
  106.                 // line 26
  107.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env$this->source$context["product"], "image", [], "any"falsefalsefalse26)), "html"nulltrue);
  108.                 yield "\" alt=\"\" class=\"img-fluid\"> </div>
  109.           <h6 class=\"fw-bold mb-3 mt-3\">";
  110.                 // line 27
  111.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "title", [], "any"falsefalsefalse27), "html"nulltrue);
  112.                 yield "</h6>
  113.           <h6 class=\"fw-bold mb-4\">\$ ";
  114.                 // line 28
  115.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((CoreExtension::getAttribute($this->env$this->source$context["product"], "price", [], "any"falsefalsefalse28) / 100), 2), "html"nulltrue);
  116.                 yield "</h6>  
  117.           </a> 
  118.         </div>
  119.         ";
  120.             }
  121.             // line 32
  122.             yield "      ";
  123.         }
  124.         $_parent $context['_parent'];
  125.         unset($context['_seq'], $context['_iterated'], $context['k'], $context['product'], $context['_parent'], $context['loop']);
  126.         $context array_intersect_key($context$_parent) + $_parent;
  127.         // line 33
  128.         yield "    </div>
  129. \t  <!--div class=\"row mb-5\">
  130.       <div class=\"col-md-12 text-center mb-2\"> <button type=\"button\" class=\"btn bg-secondary text-white px-4 py-3 rounded-pill\">Load More</button> </div>
  131.     </div -->
  132.   </div>
  133. ";
  134.         
  135.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  136.         
  137.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  138.         return; yield '';
  139.     }
  140.     /**
  141.      * @codeCoverageIgnore
  142.      */
  143.     public function getTemplateName()
  144.     {
  145.         return "ecom/store.html.twig";
  146.     }
  147.     /**
  148.      * @codeCoverageIgnore
  149.      */
  150.     public function isTraitable()
  151.     {
  152.         return false;
  153.     }
  154.     /**
  155.      * @codeCoverageIgnore
  156.      */
  157.     public function getDebugInfo()
  158.     {
  159.         return array (  142 => 33,  136 => 32,  129 => 28,  125 => 27,  121 => 26,  116 => 25,  113 => 24,  109 => 23,  95 => 11,  80 => 9,  76 => 8,  69 => 3,  59 => 2,  36 => 1,);
  160.     }
  161.     public function getSourceContext()
  162.     {
  163.         return new Source("{% extends 'base.html.twig' %}
  164. {% block body %}
  165.   <div class=\"container-fluid main-holder px-5 bg-light\">
  166.     <div class=\"row\">
  167.       <div class=\"col-lg-3\">
  168.         <select class=\"form-select rounded-pill py-3 px-3 shadow-none border-0 fs-5 bg-transparent fw-bold mb-3\" id=\"citydropdown\" onchange=\"city_select(this)\">
  169.           <option selected>Select a City</option>
  170.           {% for c in ecomvariables.cities() %}
  171.           <option value=\"{{ c.id }}\" {% if (c.name == app.session.get('mycity')) %}selected{% endif %}>{{ c.name }}</option>
  172.           {% endfor %}
  173.         </select>
  174.       </div>
  175.     </div>
  176.   </div>
  177.   <div class=\"container-fluid px-5 mt-5\">
  178.     <div class=\"row\">
  179.       <div class=\"col-lg-12\">
  180.         <h1 class=\"fw-bolder\">Nick Tahoes <span class=\"small\">/ Men’s Apparel</span></h1>
  181.         <h6>Explore Nick Tahoes products</h6>
  182.       </div>
  183.     </div>
  184.     <div class=\"row pb-4\">
  185.       {% for k, product in products %}
  186.         {% if product.path is not empty %}
  187.         <div class=\"col-lg-3 mt-4\"> <a href=\"{{ path('sajong_ecom_product_details', {'path':product.path })}}\">
  188.           <div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"{{ asset(product.image) }}\" alt=\"\" class=\"img-fluid\"> </div>
  189.           <h6 class=\"fw-bold mb-3 mt-3\">{{ product.title }}</h6>
  190.           <h6 class=\"fw-bold mb-4\">\$ {{ (product.price/100)|number_format(2) }}</h6>  
  191.           </a> 
  192.         </div>
  193.         {% endif %}
  194.       {% endfor %}
  195.     </div>
  196. \t  <!--div class=\"row mb-5\">
  197.       <div class=\"col-md-12 text-center mb-2\"> <button type=\"button\" class=\"btn bg-secondary text-white px-4 py-3 rounded-pill\">Load More</button> </div>
  198.     </div -->
  199.   </div>
  200. {% endblock %}""ecom/store.html.twig""/var/www/commerce8/noble_natives/templates/ecom/store.html.twig");
  201.     }
  202. }