var/cache/dev/twig/e3/e3146da099e9212578b1243ccd747831.php line 49

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/citybrands.html.twig */
  15. class __TwigTemplate_57d0394782b688b69c6e1530996284ef 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/citybrands.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/citybrands.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""ecom/citybrands.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 class=\"col-lg-4 position-relative mb-3\"> <i data-feather=\"search\" class=\"iconsize position-absolute search-icon\"></i>
  84.         <input class=\"form-control border rounded-pill py-3 px-3 ps-5 shadow-none\" type=\"text\" id=\"\" placeholder=\"Search\">
  85.       </div>
  86.     </div>
  87.   </div>
  88.   <div class=\"container-fluid px-5 mt-5\">
  89.     <div class=\"row\">
  90.       <div class=\"col-lg-12\">
  91.         <h1 class=\"fw-bolder\">";
  92.         // line 21
  93.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["city"]) || array_key_exists("city"$context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.'21$this->source); })()), "name", [], "any"falsefalsefalse21), "html"nulltrue);
  94.         yield " Brands</h1>
  95.         <h6>";
  96.         // line 22
  97.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["city"]) || array_key_exists("city"$context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.'22$this->source); })()), "name", [], "any"falsefalsefalse22), "html"nulltrue);
  98.         yield " Current Favourite Brands</h6>
  99.       </div>
  100.     </div>
  101.     <div class=\"row\">
  102.       ";
  103.         // line 26
  104.         $context['_parent'] = $context;
  105.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["brands"]) || array_key_exists("brands"$context) ? $context["brands"] : (function () { throw new RuntimeError('Variable "brands" does not exist.'26$this->source); })()));
  106.         foreach ($context['_seq'] as $context["_key"] => $context["b"]) {
  107.             // line 27
  108.             yield "      <div class=\"col-lg-3 mt-4\"> <a href=\"";
  109.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sajong_ecom_brand_categories", ["brand" => ((CoreExtension::getAttribute($this->env$this->source$context["b"], "title", [], "any"falsefalsefalse27) . "_") . CoreExtension::getAttribute($this->env$this->source$context["b"], "id", [], "any"falsefalsefalse27))]), "html"nulltrue);
  110.             yield "\">
  111.         <div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"";
  112.             // line 28
  113.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/brand/" CoreExtension::getAttribute($this->env$this->source$context["b"], "image", [], "any"falsefalsefalse28))), "html"nulltrue);
  114.             yield "\" alt=\"\" class=\"img-fluid\"> </div>
  115.         <h6 class=\"fw-bold mt-3 mb-4\">";
  116.             // line 29
  117.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["b"], "title", [], "any"falsefalsefalse29), "html"nulltrue);
  118.             yield "</h6>
  119.         </a> 
  120.       </div>
  121.       ";
  122.         }
  123.         $_parent $context['_parent'];
  124.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['b'], $context['_parent'], $context['loop']);
  125.         $context array_intersect_key($context$_parent) + $_parent;
  126.         // line 33
  127.         yield "    </div>
  128.   </div>
  129.   <div class=\"container-fluid px-5 bg-primary py-4 mt-4\">
  130.     <div class=\"row\">
  131.       <div class=\"col-md-4 position-relative mb-3 \"> <i data-feather=\"search\" class=\"iconsize position-absolute search-icon\"></i>
  132.         <input class=\"form-control border rounded-pill py-3 px-3 ps-5 shadow-none\" type=\"text\" id=\"\" placeholder=\"Search\">
  133.       </div>
  134.       <div class=\"col-lg-6 pt-3 pb-3\"> <a href=\"#0\" class=\"bg-secondary text-white px-4 py-4 rounded-pill me-3\">View All Brands</a> <a href=\"#0\" class=\"bg-secondary text-white px-4 py-4 rounded-pill\">Request a Brand</a> </div>
  135.     </div>
  136.   </div>
  137. ";
  138.         
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  140.         
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  142.         return; yield '';
  143.     }
  144.     /**
  145.      * @codeCoverageIgnore
  146.      */
  147.     public function getTemplateName()
  148.     {
  149.         return "ecom/citybrands.html.twig";
  150.     }
  151.     /**
  152.      * @codeCoverageIgnore
  153.      */
  154.     public function isTraitable()
  155.     {
  156.         return false;
  157.     }
  158.     /**
  159.      * @codeCoverageIgnore
  160.      */
  161.     public function getDebugInfo()
  162.     {
  163.         return array (  141 => 33,  131 => 29,  127 => 28,  122 => 27,  118 => 26,  111 => 22,  107 => 21,  95 => 11,  80 => 9,  76 => 8,  69 => 3,  59 => 2,  36 => 1,);
  164.     }
  165.     public function getSourceContext()
  166.     {
  167.         return new Source("{% extends 'base.html.twig' %}
  168. {% block body %}
  169.   <div class=\"container-fluid main-holder px-5 bg-light\">
  170.     <div class=\"row\">
  171.       <div class=\"col-lg-3\">
  172.         <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)\">
  173.           <option selected>Select a City</option>
  174.           {% for c in ecomvariables.cities() %}
  175.           <option value=\"{{ c.id }}\" {% if (c.name == app.session.get('mycity')) %}selected{% endif %}>{{ c.name }}</option>
  176.           {% endfor %}
  177.         </select>
  178.       </div>
  179.       <div class=\"col-lg-4 position-relative mb-3\"> <i data-feather=\"search\" class=\"iconsize position-absolute search-icon\"></i>
  180.         <input class=\"form-control border rounded-pill py-3 px-3 ps-5 shadow-none\" type=\"text\" id=\"\" placeholder=\"Search\">
  181.       </div>
  182.     </div>
  183.   </div>
  184.   <div class=\"container-fluid px-5 mt-5\">
  185.     <div class=\"row\">
  186.       <div class=\"col-lg-12\">
  187.         <h1 class=\"fw-bolder\">{{ city.name }} Brands</h1>
  188.         <h6>{{ city.name }} Current Favourite Brands</h6>
  189.       </div>
  190.     </div>
  191.     <div class=\"row\">
  192.       {% for b in brands %}
  193.       <div class=\"col-lg-3 mt-4\"> <a href=\"{{ path('sajong_ecom_brand_categories', {'brand':b.title~'_'~b.id }) }}\">
  194.         <div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"{{ asset('uploads/brand/' ~ b.image) }}\" alt=\"\" class=\"img-fluid\"> </div>
  195.         <h6 class=\"fw-bold mt-3 mb-4\">{{ b.title }}</h6>
  196.         </a> 
  197.       </div>
  198.       {% endfor %}
  199.     </div>
  200.   </div>
  201.   <div class=\"container-fluid px-5 bg-primary py-4 mt-4\">
  202.     <div class=\"row\">
  203.       <div class=\"col-md-4 position-relative mb-3 \"> <i data-feather=\"search\" class=\"iconsize position-absolute search-icon\"></i>
  204.         <input class=\"form-control border rounded-pill py-3 px-3 ps-5 shadow-none\" type=\"text\" id=\"\" placeholder=\"Search\">
  205.       </div>
  206.       <div class=\"col-lg-6 pt-3 pb-3\"> <a href=\"#0\" class=\"bg-secondary text-white px-4 py-4 rounded-pill me-3\">View All Brands</a> <a href=\"#0\" class=\"bg-secondary text-white px-4 py-4 rounded-pill\">Request a Brand</a> </div>
  207.     </div>
  208.   </div>
  209. {% endblock %}""ecom/citybrands.html.twig""/var/www/commerce8/noble_natives/templates/ecom/citybrands.html.twig");
  210.     }
  211. }