var/cache/dev/twig/ad/ad99e70cbf6652e6150b51e0313e1618.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/brandcategories.html.twig */
  15. class __TwigTemplate_420012ace300814398339bf38e8d365b 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/brandcategories.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/brandcategories.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""ecom/brandcategories.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\">";
  89.         // line 18
  90.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'18$this->source); })()), "title", [], "any"falsefalsefalse18), "html"nulltrue);
  91.         yield " <img src=\"";
  92.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/brand/" CoreExtension::getAttribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'18$this->source); })()), "image", [], "any"falsefalsefalse18))), "html"nulltrue);
  93.         yield "\" alt=\"\" class=\"img-fluid\" style=\"width:30px;\"></h1>
  94.         <h6>Explore ";
  95.         // line 19
  96.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'19$this->source); })()), "title", [], "any"falsefalsefalse19), "html"nulltrue);
  97.         yield " products</h6>
  98.       </div>
  99.     </div>
  100.     <div class=\"row mb-5\">
  101.       ";
  102.         // line 23
  103.         $context['_parent'] = $context;
  104.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'23$this->source); })()));
  105.         foreach ($context['_seq'] as $context["_key"] => $context["c"]) {
  106.             // line 24
  107.             yield "      <div class=\"col-lg-4 mt-4\"> <a href=\"";
  108.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sajong_ecom_products_store", ["style" => CoreExtension::getAttribute($this->env$this->source$context["c"], "id", [], "any"falsefalsefalse24)]), "html"nulltrue);
  109.             yield "\">
  110.         <div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"";
  111.             // line 25
  112.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/categories/" CoreExtension::getAttribute($this->env$this->source$context["c"], "image", [], "any"falsefalsefalse25))), "html"nulltrue);
  113.             yield "\" alt=\"\" class=\"img-fluid\"> </div>
  114.         <h6 class=\"fw-bold mt-3 mb-4\">";
  115.             // line 26
  116.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["c"], "name", [], "any"falsefalsefalse26), "html"nulltrue);
  117.             yield "</h6>
  118.         </a> 
  119.       </div>
  120.       ";
  121.         }
  122.         $_parent $context['_parent'];
  123.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['c'], $context['_parent'], $context['loop']);
  124.         $context array_intersect_key($context$_parent) + $_parent;
  125.         // line 30
  126.         yield "    </div>
  127.   </div>
  128. ";
  129.         
  130.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  131.         
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  133.         return; yield '';
  134.     }
  135.     /**
  136.      * @codeCoverageIgnore
  137.      */
  138.     public function getTemplateName()
  139.     {
  140.         return "ecom/brandcategories.html.twig";
  141.     }
  142.     /**
  143.      * @codeCoverageIgnore
  144.      */
  145.     public function isTraitable()
  146.     {
  147.         return false;
  148.     }
  149.     /**
  150.      * @codeCoverageIgnore
  151.      */
  152.     public function getDebugInfo()
  153.     {
  154.         return array (  140 => 30,  130 => 26,  126 => 25,  121 => 24,  117 => 23,  110 => 19,  104 => 18,  95 => 11,  80 => 9,  76 => 8,  69 => 3,  59 => 2,  36 => 1,);
  155.     }
  156.     public function getSourceContext()
  157.     {
  158.         return new Source("{% extends 'base.html.twig' %}
  159. {% block body %}
  160.   <div class=\"container-fluid main-holder px-5 bg-light\">
  161.     <div class=\"row\">
  162.       <div class=\"col-lg-3\">
  163.         <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)\">
  164.           <option selected>Select a City</option>
  165.           {% for c in ecomvariables.cities() %}
  166.           <option value=\"{{ c.id }}\" {% if (c.name == app.session.get('mycity')) %}selected{% endif %}>{{ c.name }}</option>
  167.           {% endfor %}
  168.         </select>
  169.       </div>
  170.     </div>
  171.   </div>
  172.   <div class=\"container-fluid px-5 mt-5\">
  173.     <div class=\"row\">
  174.       <div class=\"col-lg-12\">
  175.         <h1 class=\"fw-bolder\">{{ brand.title }} <img src=\"{{ asset('uploads/brand/' ~ brand.image) }}\" alt=\"\" class=\"img-fluid\" style=\"width:30px;\"></h1>
  176.         <h6>Explore {{ brand.title }} products</h6>
  177.       </div>
  178.     </div>
  179.     <div class=\"row mb-5\">
  180.       {% for c in categories %}
  181.       <div class=\"col-lg-4 mt-4\"> <a href=\"{{ path('sajong_ecom_products_store', {'style':c.id }) }}\">
  182.         <div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"{{ asset('uploads/categories/' ~ c.image) }}\" alt=\"\" class=\"img-fluid\"> </div>
  183.         <h6 class=\"fw-bold mt-3 mb-4\">{{ c.name }}</h6>
  184.         </a> 
  185.       </div>
  186.       {% endfor %}
  187.     </div>
  188.   </div>
  189. {% endblock %}""ecom/brandcategories.html.twig""/var/www/commerce8/noble_natives/templates/ecom/brandcategories.html.twig");
  190.     }
  191. }