var/cache/dev/twig/36/36f0d68ed47cca6d547d591e16ef0801.php line 685

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. use Twig\TemplateWrapper;
  15. /* Resources/resources.html.twig */
  16. class __TwigTemplate_04318dff465a5dabc3f5219b8dc6e711 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'content' => [$this'block_content'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "layout/layout.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Resources/resources.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Resources/resources.html.twig"));
  44.         $this->parent $this->loadTemplate("layout/layout.html.twig""Resources/resources.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 2
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_title(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         yield "GFS - Resources
  63. ";
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.         yield from [];
  69.     }
  70.     // line 5
  71.     /**
  72.      * @return iterable<null|scalar|\Stringable>
  73.      */
  74.     public function block_content(array $context, array $blocks = []): iterable
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  81.         // line 6
  82.         yield "
  83. \t<!--Start Main Slider-->
  84. \t";
  85.         // line 8
  86.         if (CoreExtension::getAttribute($this->env$this->source, ($context["current_category"] ?? null), "sliders", [], "any"truetruefalse8)) {
  87.             // line 9
  88.             yield "\t\t<section class=\"main-slider-section product-main-slider resources-section-slider\">
  89. \t\t\t<div class=\"container container-lg\">
  90. \t\t\t\t<div class=\"custom-slider singal-slider main-slider\">
  91. \t\t\t\t\t";
  92.             // line 12
  93.             $context['_parent'] = $context;
  94.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["current_category"]) || array_key_exists("current_category"$context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.'12$this->source); })()), "sliders", [], "any"falsefalsefalse12));
  95.             foreach ($context['_seq'] as $context["_key"] => $context["slide"]) {
  96.                 // line 13
  97.                 yield "\t\t\t\t\t\t<div class=\"slide\">
  98. \t\t\t\t\t\t\t<div class=\"slide-media slide-media-desktop\">
  99. \t\t\t\t\t\t\t\t<img src=\"";
  100.                 // line 15
  101.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["slide"], "sliderimages", [], "any"falsefalsefalse15), "data", [], "any"falsefalsefalse15), "html"nulltrue);
  102.                 yield "\" alt=\"resource banner\"/>
  103. \t\t\t\t\t\t\t\t
  104. \t\t\t\t\t\t\t</div>
  105. \t\t\t\t\t\t\t<div class=\"slide-media slide-media-mobile\">
  106. \t\t\t\t\t\t\t\t<img src=\"";
  107.                 // line 20
  108.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["slide"], "sliderimages_mobile", [], "any"falsefalsefalse20), "data", [], "any"falsefalsefalse20), "html"nulltrue);
  109.                 yield "\" alt=\"resource banner mobile\"/>
  110. \t\t\t\t\t\t\t</div>
  111. \t\t\t\t\t\t\t<div class=\"silde-content-box\">
  112. \t\t\t\t\t\t\t\t<div class=\"slide-content\">
  113. \t\t\t\t\t\t\t\t\t<h1>
  114. \t\t\t\t\t\t\t\t\t\t<span class=\"title-sm d-block\">";
  115.                 // line 25
  116.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["slide"], "localizedfields", [], "any"falsefalsefalse25), "data", [], "any"falsefalsefalse25), "getLocalizedValue", ["slidertitle"], "method"falsefalsefalse25), "html"nulltrue);
  117.                 yield "</span>
  118. \t\t\t\t\t\t\t\t\t\t<span class=\"title-lg underline-end\">";
  119.                 // line 26
  120.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["current_category"]) || array_key_exists("current_category"$context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.'26$this->source); })()), "name", [], "any"falsefalsefalse26), "html"nulltrue);
  121.                 yield "</span>
  122. \t\t\t\t\t\t\t\t\t</h1>
  123. \t\t\t\t\t\t\t\t</div>
  124. \t\t\t\t\t\t\t\t<div class=\"product-brand d-none\">
  125. \t\t\t\t\t\t\t\t\t<img src=\"";
  126.                 // line 30
  127.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["slide"], "sliderbrandlogo", [], "any"falsefalsefalse30), "html"nulltrue);
  128.                 yield "\" alt=\"slide banner logo\"/>
  129. \t\t\t\t\t\t\t\t</div>
  130. \t\t\t\t\t\t\t</div>
  131. \t\t\t\t\t\t</div>
  132. \t\t\t\t\t";
  133.             }
  134.             $_parent $context['_parent'];
  135.             unset($context['_seq'], $context['_key'], $context['slide'], $context['_parent']);
  136.             $context array_intersect_key($context$_parent) + $_parent;
  137.             // line 35
  138.             yield "\t\t\t\t</div>
  139. \t\t\t</div>
  140. \t\t</section>
  141. \t";
  142.         }
  143.         // line 39
  144.         yield "\t<!--End Main Slider-->
  145. \t<!--Start Breadcrumbs-->
  146. \t<div class=\"breadcrumb-holder\">
  147. \t\t<ol class=\"breadcrumb\">
  148. \t\t\t<li class=\"breadcrumb-item\">
  149. \t\t\t\t<a href=\"/";
  150.         // line 45
  151.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'45$this->source); })()), "request", [], "any"falsefalsefalse45), "locale", [], "any"falsefalsefalse45), "html"nulltrue);
  152.         yield "\">";
  153.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Home"), "html"nulltrue);
  154.         yield "</a>
  155. \t\t\t</li>
  156. \t\t\t<li class=\"breadcrumb-item\">";
  157.         // line 47
  158.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Resources"), "html"nulltrue);
  159.         yield "</li>
  160. \t\t\t<li class=\"breadcrumb-item active\" aria-current=\"page\">
  161. \t\t\t\t";
  162.         // line 49
  163.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["current_category"]) || array_key_exists("current_category"$context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.'49$this->source); })()), "name", [], "any"falsefalsefalse49), "html"nulltrue);
  164.         yield "
  165. \t\t\t</li>
  166. \t\t</ol>
  167. \t</div>
  168. \t<!--End Breadcrumbs-->
  169. \t<!--Start Info Media-->
  170. \t";
  171.         // line 56
  172.         if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["current_category"]) || array_key_exists("current_category"$context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.'56$this->source); })()), "bannerimage", [], "any"falsefalsefalse56) && CoreExtension::getAttribute($this->env$this->source, (isset($context["current_category"]) || array_key_exists("current_category"$context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.'56$this->source); })()), "name", [], "any"falsefalsefalse56))) {
  173.             // line 57
  174.             yield "\t\t<section class=\"training-media-box info-media res-listing-tech\">
  175. \t\t\t";
  176.             // line 58
  177.             if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["current_category"]) || array_key_exists("current_category"$context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.'58$this->source); })()), "name", ["en"], "method"falsefalsefalse58) == "Business")) {
  178.                 // line 59
  179.                 yield "\t\t\t\t";
  180.                 $context['_parent'] = $context;
  181.                 $context['_seq'] = CoreExtension::ensureTraversable((isset($context["most"]) || array_key_exists("most"$context) ? $context["most"] : (function () { throw new RuntimeError('Variable "most" does not exist.'59$this->source); })()));
  182.                 foreach ($context['_seq'] as $context["_key"] => $context["popular"]) {
  183.                     // line 60
  184.                     yield "\t\t\t\t\t";
  185.                     if ((CoreExtension::getAttribute($this->env$this->source$context["popular"], "url", [], "any"falsefalsefalse60) == "the-future-of-the-hospitality-industry-in-saudi-arabia")) {
  186.                         // line 61
  187.                         yield "\t\t\t\t\t\t<div class=\"container container-sm\">
  188. \t\t\t\t\t\t\t<div class=\"info-section\">
  189. \t\t\t\t\t\t\t\t<h5>";
  190.                         // line 63
  191.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["current_category"]) || array_key_exists("current_category"$context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.'63$this->source); })()), "name", [], "any"falsefalsefalse63), "html"nulltrue);
  192.                         yield "</h5>
  193. \t\t\t\t\t\t\t\t<h4>";
  194.                         // line 64
  195.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "name", [], "any"falsefalsefalse64), "html"nulltrue);
  196.                         yield "</h4>
  197. \t\t\t\t\t\t\t\t<p class=\"slide-media-desktop\">";
  198.                         // line 65
  199.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "main_description", [], "any"falsefalsefalse65), "html"nulltrue);
  200.                         yield "</p>
  201. \t\t\t\t\t\t\t\t<p class=\"slide-media-mobile\">";
  202.                         // line 66
  203.                         yield (((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->source$context["popular"], "main_description", [], "any"falsefalsefalse66)) > 150)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->source$context["popular"], "main_description", [], "any"falsefalsefalse66), 0150) . "..."), "html"nulltrue)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "main_description", [], "any"falsefalsefalse66), "html"nulltrue)));
  204.                         yield "
  205. \t\t\t\t\t\t\t\t\t<div class=\"\">
  206. \t\t\t\t\t\t\t\t\t\t<a href=\"/";
  207.                         // line 68
  208.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'68$this->source); })()), "request", [], "any"falsefalsefalse68), "locale", [], "any"falsefalsefalse68), "html"nulltrue);
  209.                         yield "/resource/";
  210.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "url", [], "any"falsefalsefalse68), "html"nulltrue);
  211.                         yield "\" class=\"btn btn-custom btn-green\">";
  212.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Read More"), "html"nulltrue);
  213.                         yield "</a>
  214. \t\t\t\t\t\t\t\t\t</div>
  215. \t\t\t\t\t\t\t\t</p>
  216. \t\t\t\t\t\t\t</div>
  217. \t\t\t\t\t\t\t<div class=\"media-section slide-media-desktop\">
  218. \t\t\t\t\t\t\t\t<video
  219. \t\t\t\t\t\t\t\t\tposter=\"";
  220.                         // line 76
  221.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "image", [], "any"falsefalsefalse76), "html"nulltrue);
  222.                         yield "\">
  223. \t\t\t\t\t\t\t\t\t";
  224.                         // line 78
  225.                         yield "
  226. \t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
  227. \t\t\t\t\t\t\t\t</video>
  228. \t\t\t\t\t\t\t\t";
  229.                         // line 85
  230.                         yield "\t\t\t\t\t\t\t</div>
  231. \t\t\t\t\t\t\t<div class=\"media-section slide-media-mobile\">
  232. \t\t\t\t\t\t\t\t<video
  233. \t\t\t\t\t\t\t\t\tposter=\"";
  234.                         // line 89
  235.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "image", [], "any"falsefalsefalse89), "html"nulltrue);
  236.                         yield "\">
  237. \t\t\t\t\t\t\t\t\t";
  238.                         // line 91
  239.                         yield "\t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
  240. \t\t\t\t\t\t\t\t</video>
  241. \t\t\t\t\t\t\t\t";
  242.                         // line 97
  243.                         yield "\t\t\t\t\t\t\t</div>
  244. \t\t\t\t\t\t</div>
  245. \t\t\t\t\t";
  246.                     }
  247.                     // line 100
  248.                     yield "\t\t\t\t";
  249.                 }
  250.                 $_parent $context['_parent'];
  251.                 unset($context['_seq'], $context['_key'], $context['popular'], $context['_parent']);
  252.                 $context array_intersect_key($context$_parent) + $_parent;
  253.                 // line 101
  254.                 yield "
  255. \t\t\t";
  256.             } elseif ((CoreExtension::getAttribute($this->env$this->source,             // line 102
  257. (isset($context["current_category"]) || array_key_exists("current_category"$context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.'102$this->source); })()), "name", ["en"], "method"falsefalsefalse102) == "Management")) {
  258.                 // line 103
  259.                 yield "
  260. \t\t\t\t";
  261.                 // line 104
  262.                 $context['_parent'] = $context;
  263.                 $context['_seq'] = CoreExtension::ensureTraversable((isset($context["most"]) || array_key_exists("most"$context) ? $context["most"] : (function () { throw new RuntimeError('Variable "most" does not exist.'104$this->source); })()));
  264.                 foreach ($context['_seq'] as $context["_key"] => $context["popular"]) {
  265.                     // line 105
  266.                     yield "\t\t\t\t\t";
  267.                     if ((CoreExtension::getAttribute($this->env$this->source$context["popular"], "url", [], "any"falsefalsefalse105) == "waste-management-in-the-kitchen")) {
  268.                         // line 106
  269.                         yield "\t\t\t\t\t\t<div class=\"container container-sm\">
  270. \t\t\t\t\t\t\t<div class=\"info-section\">
  271. \t\t\t\t\t\t\t\t<h5>";
  272.                         // line 108
  273.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["current_category"]) || array_key_exists("current_category"$context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.'108$this->source); })()), "name", [], "any"falsefalsefalse108), "html"nulltrue);
  274.                         yield "</h5>
  275. \t\t\t\t\t\t\t\t<h4>";
  276.                         // line 109
  277.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "name", [], "any"falsefalsefalse109), "html"nulltrue);
  278.                         yield "</h4>
  279. \t\t\t\t\t\t\t\t<p class=\"slide-media-desktop\">";
  280.                         // line 110
  281.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "main_description", [], "any"falsefalsefalse110), "html"nulltrue);
  282.                         yield "</p>
  283. \t\t\t\t\t\t\t\t<p class=\"slide-media-mobile\">";
  284.                         // line 111
  285.                         yield (((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->source$context["popular"], "main_description", [], "any"falsefalsefalse111)) > 150)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->source$context["popular"], "main_description", [], "any"falsefalsefalse111), 0150) . "..."), "html"nulltrue)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "main_description", [], "any"falsefalsefalse111), "html"nulltrue)));
  286.                         yield "
  287. \t\t\t\t\t\t\t\t\t<div class=\"\">
  288. \t\t\t\t\t\t\t\t\t\t<a href=\"/";
  289.                         // line 113
  290.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'113$this->source); })()), "request", [], "any"falsefalsefalse113), "locale", [], "any"falsefalsefalse113), "html"nulltrue);
  291.                         yield "/resource/";
  292.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "url", [], "any"falsefalsefalse113), "html"nulltrue);
  293.                         yield "\" class=\"btn btn-custom btn-green\">";
  294.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Read More"), "html"nulltrue);
  295.                         yield "</a>
  296. \t\t\t\t\t\t\t\t\t</div>
  297. \t\t\t\t\t\t\t\t</p>
  298. \t\t\t\t\t\t\t</div>
  299. \t\t\t\t\t\t\t<div class=\"media-section slide-media-desktop\">
  300. \t\t\t\t\t\t\t\t<video
  301. \t\t\t\t\t\t\t\t\tposter=\"";
  302.                         // line 120
  303.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "image", [], "any"falsefalsefalse120), "html"nulltrue);
  304.                         yield "\">
  305. \t\t\t\t\t\t\t\t\t";
  306.                         // line 122
  307.                         yield "\t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
  308. \t\t\t\t\t\t\t\t</video>
  309. \t\t\t\t\t\t\t\t";
  310.                         // line 128
  311.                         yield "\t\t\t\t\t\t\t</div>
  312. \t\t\t\t\t\t\t<div class=\"media-section slide-media-mobile\">
  313. \t\t\t\t\t\t\t\t<video
  314. \t\t\t\t\t\t\t\t\tposter=\"";
  315.                         // line 132
  316.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "image", [], "any"falsefalsefalse132), "html"nulltrue);
  317.                         yield "\">
  318. \t\t\t\t\t\t\t\t\t";
  319.                         // line 134
  320.                         yield "\t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
  321. \t\t\t\t\t\t\t\t</video>
  322. \t\t\t\t\t\t\t\t";
  323.                         // line 140
  324.                         yield "\t\t\t\t\t\t\t</div>
  325. \t\t\t\t\t\t</div>
  326. \t\t\t\t\t";
  327.                     }
  328.                     // line 143
  329.                     yield "\t\t\t\t";
  330.                 }
  331.                 $_parent $context['_parent'];
  332.                 unset($context['_seq'], $context['_key'], $context['popular'], $context['_parent']);
  333.                 $context array_intersect_key($context$_parent) + $_parent;
  334.                 // line 144
  335.                 yield "\t\t\t";
  336.             }
  337.             // line 145
  338.             yield "\t\t</section>
  339. \t";
  340.         }
  341.         // line 148
  342.         yield "\t<!--End Info Media-->
  343. \t<!--Start Featured Recipes Section-->
  344. \t";
  345.         // line 151
  346.         if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["most"]) || array_key_exists("most"$context) ? $context["most"] : (function () { throw new RuntimeError('Variable "most" does not exist.'151$this->source); })()))) {
  347.             // line 152
  348.             yield "\t\t<section class=\"featured-recipes-section inner-frecipes-section event-detail-slider resources-center\">
  349. \t\t\t<div class=\"container container-sm\">
  350. \t\t\t\t";
  351.             // line 154
  352.             $context['_parent'] = $context;
  353.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["most"]) || array_key_exists("most"$context) ? $context["most"] : (function () { throw new RuntimeError('Variable "most" does not exist.'154$this->source); })()));
  354.             foreach ($context['_seq'] as $context["key"] => $context["popular"]) {
  355.                 // line 155
  356.                 yield "\t\t\t\t\t";
  357.                 if ((CoreExtension::getAttribute($this->env$this->source$context["popular"], "url", [], "any"falsefalsefalse155) != "waste-management-in-the-kitchen")) {
  358.                     // line 156
  359.                     yield "\t\t\t\t\t\t";
  360.                     if (($context["key"] == 1)) {
  361.                         // line 157
  362.                         yield "\t\t\t\t\t\t\t<h2 class=\"heading\">";
  363.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Most Popular"), "html"nulltrue);
  364.                         yield "</h2>
  365. \t\t\t\t\t\t\t";
  366.                         // line 159
  367.                         yield "\t\t\t\t\t\t";
  368.                     }
  369.                     // line 160
  370.                     yield "\t\t\t\t\t";
  371.                 }
  372.                 // line 161
  373.                 yield "\t\t\t\t";
  374.             }
  375.             $_parent $context['_parent'];
  376.             unset($context['_seq'], $context['key'], $context['popular'], $context['_parent']);
  377.             $context array_intersect_key($context$_parent) + $_parent;
  378.             // line 162
  379.             yield "\t\t\t\t<div class=\"featured-recipes\">
  380. \t\t\t\t\t<div class=\"custom-slider custom-event-slider\">
  381. \t\t\t\t\t\t";
  382.             // line 164
  383.             $context['_parent'] = $context;
  384.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["most"]) || array_key_exists("most"$context) ? $context["most"] : (function () { throw new RuntimeError('Variable "most" does not exist.'164$this->source); })()));
  385.             foreach ($context['_seq'] as $context["_key"] => $context["popular"]) {
  386.                 // line 165
  387.                 yield "\t\t\t\t\t\t\t";
  388.                 if ((CoreExtension::getAttribute($this->env$this->source$context["popular"], "url", [], "any"falsefalsefalse165) != "waste-management-in-the-kitchen")) {
  389.                     // line 166
  390.                     yield "\t\t\t\t\t\t\t\t<div class=\"slide\">
  391. \t\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
  392. \t\t\t\t\t\t\t\t\t\t<a href=\"/";
  393.                     // line 168
  394.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'168$this->source); })()), "request", [], "any"falsefalsefalse168), "locale", [], "any"falsefalsefalse168), "html"nulltrue);
  395.                     yield "/resource/";
  396.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "url", [], "any"falsefalsefalse168), "html"nulltrue);
  397.                     yield "\">
  398. \t\t\t\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
  399. \t\t\t\t\t\t\t\t\t\t\t\t";
  400.                     // line 170
  401.                     if (CoreExtension::getAttribute($this->env$this->source$context["popular"], "image", [], "any"truetruefalse170)) {
  402.                         // line 171
  403.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
  404.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "image", [], "any"falsefalsefalse171), "html"nulltrue);
  405.                         yield "\" alt=\"";
  406.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "name", [], "any"falsefalsefalse171), "html"nulltrue);
  407.                         yield "\">
  408. \t\t\t\t\t\t\t\t\t\t\t\t\t
  409. \t\t\t\t\t\t\t\t\t\t\t\t";
  410.                     }
  411.                     // line 174
  412.                     yield "\t\t\t\t\t\t\t\t\t\t\t</figure>
  413. \t\t\t\t\t\t\t\t\t\t</a>
  414. \t\t\t\t\t\t\t\t\t\t<div class=\"slide-content\">
  415. \t\t\t\t\t\t\t\t\t\t\t<div class=\"frecipes-box\">
  416. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/";
  417.                     // line 178
  418.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'178$this->source); })()), "request", [], "any"falsefalsefalse178), "locale", [], "any"falsefalsefalse178), "html"nulltrue);
  419.                     yield "/resource/";
  420.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "url", [], "any"falsefalsefalse178), "html"nulltrue);
  421.                     yield "\" class=\"text-decoration-none\">
  422. \t\t\t\t\t\t\t\t\t\t\t\t\t<h3>";
  423.                     // line 179
  424.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "name", [], "any"falsefalsefalse179), "html"nulltrue);
  425.                     yield "</h3>
  426. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  427. \t\t\t\t\t\t\t\t\t\t\t\t";
  428.                     // line 181
  429.                     if ((CoreExtension::getAttribute($this->env$this->source$context["popular"], "main_description", [], "any"truetruefalse181) &&  !(null === CoreExtension::getAttribute($this->env$this->source$context["popular"], "main_description", [], "any"falsefalsefalse181)))) {
  430.                         // line 182
  431.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<p>";
  432.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "main_description", [], "any"falsefalsefalse182), "html"nulltrue);
  433.                         yield "</p>
  434. \t\t\t\t\t\t\t\t\t\t\t\t";
  435.                     }
  436.                     // line 184
  437.                     yield "\t\t\t\t\t\t\t\t\t\t\t</div>
  438. \t\t\t\t\t\t\t\t\t\t\t";
  439.                     // line 185
  440.                     $context["user"] = 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.'185$this->source); })()), "session", [], "any"falsefalsefalse185), "get", ["loginUserName"], "method"falsefalsefalse185);
  441.                     // line 186
  442.                     yield "\t\t\t\t\t\t\t\t\t\t\t";
  443.                     if ( !(null === (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'186$this->source); })()))) {
  444.                         // line 187
  445.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info\">
  446. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"loyaltyProgram(this,";
  447.                         // line 188
  448.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "id", [], "any"falsefalsefalse188), "html"nulltrue);
  449.                         yield ",'";
  450.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "name", [], "any"falsefalsefalse188), "html"nulltrue);
  451.                         yield "',50,'Article','Share')\">
  452. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"sharemodal('Article','";
  453.                         // line 189
  454.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((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.'189$this->source); })()), "request", [], "any"falsefalsefalse189), "getSchemeAndHttpHost", [], "method"falsefalsefalse189) . "/") . 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.'189$this->source); })()), "request", [], "any"falsefalsefalse189), "locale", [], "any"falsefalsefalse189)) . "/resource/") . CoreExtension::getAttribute($this->env$this->source$context["popular"], "url", [], "any"falsefalsefalse189)), "html"nulltrue);
  455.                         yield "' ,'";
  456.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "html"nulltrue);
  457.                         yield "')\">";
  458.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html"nulltrue);
  459.                         yield "</span>
  460. \t\t\t\t\t\t\t\t\t\t\t\t\t</li>
  461. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  462.                         // line 191
  463.                         if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env$this->source$context["popular"], "id", [], "any"falsefalsefalse191), (isset($context["Liked_most_popular_Id"]) || array_key_exists("Liked_most_popular_Id"$context) ? $context["Liked_most_popular_Id"] : (function () { throw new RuntimeError('Variable "Liked_most_popular_Id" does not exist.'191$this->source); })()))) {
  464.                             // line 192
  465.                             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class='liked'>";
  466.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  467.                             yield "</li>
  468. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  469.                         } else {
  470.                             // line 194
  471.                             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like most_popular\" onclick=\"loyaltyProgram(this,";
  472.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "id", [], "any"falsefalsefalse194), "html"nulltrue);
  473.                             yield ",'";
  474.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "name", [], "any"falsefalsefalse194), "html"nulltrue);
  475.                             yield "',30,'Article','Like', '";
  476.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'194$this->source); })()), "request", [], "any"falsefalsefalse194), "locale", [], "any"falsefalsefalse194), "html"nulltrue);
  477.                             yield "')\">";
  478.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  479.                             yield "</li>
  480. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  481.                         }
  482.                         // line 196
  483.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"download-black d-none\" onclick=\"loyaltyProgram(this,";
  484.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "id", [], "any"falsefalsefalse196), "html"nulltrue);
  485.                         yield ",'";
  486.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["popular"], "name", [], "any"falsefalsefalse196), "html"nulltrue);
  487.                         yield "',20,'Article','Save')\">";
  488.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html"nulltrue);
  489.                         yield "</li>
  490. \t\t\t\t\t\t\t\t\t\t\t\t</ul>
  491. \t\t\t\t\t\t\t\t\t\t\t";
  492.                     } else {
  493.                         // line 199
  494.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info\">
  495. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Article','";
  496.                         // line 200
  497.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((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.'200$this->source); })()), "request", [], "any"falsefalsefalse200), "getSchemeAndHttpHost", [], "method"falsefalsefalse200) . "/") . 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.'200$this->source); })()), "request", [], "any"falsefalsefalse200), "locale", [], "any"falsefalsefalse200)) . "/resource/") . CoreExtension::getAttribute($this->env$this->source$context["popular"], "url", [], "any"falsefalsefalse200)), "html"nulltrue);
  498.                         yield "','";
  499.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "html"nulltrue);
  500.                         yield "')\">";
  501.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html"nulltrue);
  502.                         yield "</li>
  503. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like logged-out\">";
  504.                         // line 201
  505.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  506.                         yield "</li>
  507. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"download-black d-none\">";
  508.                         // line 202
  509.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html"nulltrue);
  510.                         yield "</li>
  511. \t\t\t\t\t\t\t\t\t\t\t\t</ul>
  512. \t\t\t\t\t\t\t\t\t\t\t";
  513.                     }
  514.                     // line 205
  515.                     yield "\t\t\t\t\t\t\t\t\t\t</div>
  516. \t\t\t\t\t\t\t\t\t</div>
  517. \t\t\t\t\t\t\t\t</div>
  518. \t\t\t\t\t\t\t";
  519.                 }
  520.                 // line 209
  521.                 yield "\t\t\t\t\t\t";
  522.             }
  523.             $_parent $context['_parent'];
  524.             unset($context['_seq'], $context['_key'], $context['popular'], $context['_parent']);
  525.             $context array_intersect_key($context$_parent) + $_parent;
  526.             // line 210
  527.             yield "\t\t\t\t\t</div>
  528. \t\t\t\t\t";
  529.             // line 214
  530.             yield "\t\t\t\t</div>
  531. \t\t\t</div>
  532. \t\t</section>
  533. \t";
  534.         }
  535.         // line 218
  536.         yield "\t<!--End Featured Recipes Section-->
  537. \t<!--Start Product Box-->
  538. \t<section class=\"product-result-container resources-cat\">
  539. \t\t<div class=\"container container-sm\">
  540. \t\t\t<div class=\"row\">
  541. \t\t\t\t<div class=\"col-12 col-md-12 col-xl-3 filter-box\">
  542. \t\t\t\t\t<h4 class=\"title\">";
  543.         // line 225
  544.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Filters"), "html"nulltrue);
  545.         yield "</h4>
  546. \t\t\t\t\t<div class=\"filder-options\">
  547. \t\t\t\t\t\t<div class=\"input-holder\">
  548. \t\t\t\t\t\t\t<input type=\"text\" placeholder=\"";
  549.         // line 228
  550.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(""), "html"nulltrue);
  551.         yield "\" id=\"search\" value=\"";
  552.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'228$this->source); })()), "query", [], "any"falsefalsefalse228), "html"nulltrue);
  553.         yield "\" class=\"form-control\"/>
  554. \t\t\t\t\t\t</div>
  555. \t\t\t\t\t</div>
  556. \t\t\t\t\t<div class=\"filter-accordion\">
  557. \t\t\t\t\t\t";
  558.         // line 232
  559.         if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'232$this->source); })()))) {
  560.             // line 233
  561.             yield "\t\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter1\">
  562. \t\t\t\t\t\t\t\t<div class=\"card-header\">
  563. \t\t\t\t\t\t\t\t\t<button type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse1\" aria-expanded=\"true\" aria-controls=\"collapse1\">
  564. \t\t\t\t\t\t\t\t\t\t";
  565.             // line 236
  566.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Category"), "html"nulltrue);
  567.             yield "
  568. \t\t\t\t\t\t\t\t\t</button>
  569. \t\t\t\t\t\t\t\t</div>
  570. \t\t\t\t\t\t\t\t<div id=\"collapse1\" class=\"collapse show\" data-parent=\"#filter1\">
  571. \t\t\t\t\t\t\t\t\t<div class=\"card-body\">
  572. \t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled check-list\">
  573. \t\t\t\t\t\t\t\t\t\t\t";
  574.             // line 243
  575.             $context['_parent'] = $context;
  576.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'243$this->source); })()));
  577.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  578.                 // line 244
  579.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t<li>
  580. \t\t\t\t\t\t\t\t\t\t\t\t\t<input class=\"styled-checkbox category_checkbox\" id=\"";
  581.                 // line 245
  582.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse245), "html"nulltrue);
  583.                 yield "\" type=\"checkbox\" value=\"";
  584.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse245), "html"nulltrue);
  585.                 yield "\" ";
  586.                 yield ((CoreExtension::inFilter(CoreExtension::getAttribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse245), CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'245$this->source); })()), "category_ids", [], "any"falsefalsefalse245))) ? ("checked") : (""));
  587.                 yield "/>
  588. \t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"";
  589.                 // line 246
  590.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse246), "html"nulltrue);
  591.                 yield "\">";
  592.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse246), "html"nulltrue);
  593.                 yield "</label>
  594. \t\t\t\t\t\t\t\t\t\t\t\t</li>
  595. \t\t\t\t\t\t\t\t\t\t\t";
  596.             }
  597.             $_parent $context['_parent'];
  598.             unset($context['_seq'], $context['_key'], $context['category'], $context['_parent']);
  599.             $context array_intersect_key($context$_parent) + $_parent;
  600.             // line 249
  601.             yield "\t\t\t\t\t\t\t\t\t\t</ul>
  602. \t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder clear-filter\">
  603. \t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-link\" onclick=\"clearFilter('.category_checkbox')\">";
  604.             // line 251
  605.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Clear Filter"), "html"nulltrue);
  606.             yield "</button>
  607. \t\t\t\t\t\t\t\t\t\t</div>
  608. \t\t\t\t\t\t\t\t\t</div>
  609. \t\t\t\t\t\t\t\t</div>
  610. \t\t\t\t\t\t\t</div>
  611. \t\t\t\t\t\t";
  612.         }
  613.         // line 257
  614.         yield "\t\t\t\t\t\t<div class=\"apply-filter\">
  615. \t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-green\" onclick=\"searchFilter(this)\">";
  616.         // line 258
  617.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Apply Filter"), "html"nulltrue);
  618.         yield "</a>
  619. \t\t\t\t\t\t</div>
  620. \t\t\t\t\t</div>
  621. \t\t\t\t</div>
  622. \t\t\t\t<div class=\"col-12 col-md-12 col-xl-9 product-results\">
  623. \t\t\t\t\t<h2 class=\"heading all-articles-heading-text\">";
  624.         // line 263
  625.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("All Articles"), "html"nulltrue);
  626.         yield "</h2>
  627. \t\t\t\t\t<!--End Product Small Banner-->
  628. \t\t\t\t\t<div
  629. \t\t\t\t\t\tclass=\"product-box-holder\">
  630. \t\t\t\t\t\t<!--Start Featured Recipes Section-->
  631. \t\t\t\t\t\t<section class=\"featured-recipes-section inner-frecipes-section all-training-section resource-listing-grid\">
  632. \t\t\t\t\t\t\t<div class=\"featured-recipes\">
  633. \t\t\t\t\t\t\t\t<div class=\"all-training-recip\">
  634. \t\t\t\t\t\t\t\t\t";
  635.         // line 272
  636.         $context['_parent'] = $context;
  637.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["resources"]) || array_key_exists("resources"$context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.'272$this->source); })()));
  638.         foreach ($context['_seq'] as $context["_key"] => $context["resource"]) {
  639.             // line 273
  640.             yield "\t\t\t\t\t\t\t\t\t\t<div class=\"slide\">
  641. \t\t\t\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
  642. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/";
  643.             // line 275
  644.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'275$this->source); })()), "request", [], "any"falsefalsefalse275), "locale", [], "any"falsefalsefalse275), "html"nulltrue);
  645.             yield "/resource/";
  646.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["resource"], "url", [], "any"falsefalsefalse275), "html"nulltrue);
  647.             yield "\">
  648. \t\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
  649. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
  650.             // line 277
  651.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["resource"], "image", [], "any"falsefalsefalse277), "html"nulltrue);
  652.             yield "\" alt=\"";
  653.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["resource"], "name", [], "any"falsefalsefalse277), "html"nulltrue);
  654.             yield "\"/>
  655. \t\t\t\t\t\t\t\t\t\t\t\t\t</figure>
  656. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  657. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"slide-content\">
  658. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"frecipes-box\">
  659. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/";
  660.             // line 282
  661.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'282$this->source); })()), "request", [], "any"falsefalsefalse282), "locale", [], "any"falsefalsefalse282), "html"nulltrue);
  662.             yield "/resource/";
  663.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["resource"], "url", [], "any"falsefalsefalse282), "html"nulltrue);
  664.             yield "\" class=\"text-decoration-none\">
  665. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3>";
  666.             // line 283
  667.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["resource"], "name", [], "any"falsefalsefalse283), "html"nulltrue);
  668.             yield "</h3>
  669. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  670. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  671.             // line 285
  672.             if ((CoreExtension::getAttribute($this->env$this->source$context["resource"], "main_description", [], "any"truetruefalse285) &&  !(null === CoreExtension::getAttribute($this->env$this->source$context["resource"], "main_description", [], "any"falsefalsefalse285)))) {
  673.                 // line 286
  674.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>";
  675.                 yield CoreExtension::getAttribute($this->env$this->source$context["resource"], "main_description", [], "any"falsefalsefalse286);
  676.                 yield "</p>
  677. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  678.             }
  679.             // line 288
  680.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  681. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  682.             // line 289
  683.             $context["user"] = 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.'289$this->source); })()), "session", [], "any"falsefalsefalse289), "get", ["loginUserName"], "method"falsefalsefalse289);
  684.             // line 290
  685.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  686.             if ( !(null === (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'290$this->source); })()))) {
  687.                 // line 291
  688.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info\">
  689. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"loyaltyProgram(this,";
  690.                 // line 293
  691.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["resource"], "id", [], "any"falsefalsefalse293), "html"nulltrue);
  692.                 yield ",'";
  693.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["resource"], "name", [], "any"falsefalsefalse293), "html"nulltrue);
  694.                 yield "',10,'Article','Share')\">
  695. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"sharemodal('Article','";
  696.                 // line 294
  697.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((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.'294$this->source); })()), "request", [], "any"falsefalsefalse294), "getSchemeAndHttpHost", [], "method"falsefalsefalse294) . "/") . 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.'294$this->source); })()), "request", [], "any"falsefalsefalse294), "locale", [], "any"falsefalsefalse294)) . "/resource/") . CoreExtension::getAttribute($this->env$this->source$context["resource"], "url", [], "any"falsefalsefalse294)), "html"nulltrue);
  698.                 yield "' ,'";
  699.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "html"nulltrue);
  700.                 yield "')\">";
  701.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html"nulltrue);
  702.                 yield "<span></li>
  703. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  704.                 // line 295
  705.                 if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env$this->source$context["resource"], "id", [], "any"falsefalsefalse295), (isset($context["Liked_all_recource_Id"]) || array_key_exists("Liked_all_recource_Id"$context) ? $context["Liked_all_recource_Id"] : (function () { throw new RuntimeError('Variable "Liked_all_recource_Id" does not exist.'295$this->source); })()))) {
  706.                     // line 296
  707.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class='liked'>";
  708.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  709.                     yield "</li>
  710. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  711.                 } else {
  712.                     // line 298
  713.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like all_article\" onclick=\"loyaltyProgram(this,";
  714.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["resource"], "id", [], "any"falsefalsefalse298), "html"nulltrue);
  715.                     yield ",'";
  716.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["resource"], "name", [], "any"falsefalsefalse298), "html"nulltrue);
  717.                     yield "',10,'Article','Like', '";
  718.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'298$this->source); })()), "request", [], "any"falsefalsefalse298), "locale", [], "any"falsefalsefalse298), "html"nulltrue);
  719.                     yield "')\">";
  720.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  721.                     yield "</li>
  722. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  723.                 }
  724.                 // line 300
  725.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"download d-none\" onclick=\"loyaltyProgram(this,";
  726.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["resource"], "id", [], "any"falsefalsefalse300), "html"nulltrue);
  727.                 yield ",'";
  728.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["resource"], "name", [], "any"falsefalsefalse300), "html"nulltrue);
  729.                 yield "',10,'Article','Save')\">";
  730.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html"nulltrue);
  731.                 yield "</li>
  732. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
  733. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  734.             } else {
  735.                 // line 304
  736.                 yield "
  737. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info\">
  738. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Article','";
  739.                 // line 307
  740.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((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.'307$this->source); })()), "request", [], "any"falsefalsefalse307), "getSchemeAndHttpHost", [], "method"falsefalsefalse307) . "/") . 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.'307$this->source); })()), "request", [], "any"falsefalsefalse307), "locale", [], "any"falsefalsefalse307)) . "/resource/") . CoreExtension::getAttribute($this->env$this->source$context["resource"], "url", [], "any"falsefalsefalse307)), "html"nulltrue);
  741.                 yield "') ,'";
  742.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "html"nulltrue);
  743.                 yield "'\">";
  744.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html"nulltrue);
  745.                 yield "</li>
  746. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like logged-out\">";
  747.                 // line 308
  748.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  749.                 yield "</li>
  750. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"download d-none\">";
  751.                 // line 309
  752.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html"nulltrue);
  753.                 yield "</li>
  754. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
  755. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  756.             }
  757.             // line 312
  758.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  759. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  760. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  761. \t\t\t\t\t\t\t\t\t\t\t";
  762.         }
  763.         $_parent $context['_parent'];
  764.         unset($context['_seq'], $context['_key'], $context['resource'], $context['_parent']);
  765.         $context array_intersect_key($context$_parent) + $_parent;
  766.         // line 316
  767.         yield "\t\t\t\t\t\t\t\t\t\t</div>
  768. \t\t\t\t\t\t\t\t\t</div>
  769. \t\t\t\t\t\t\t\t</section>
  770. \t\t\t\t\t\t\t\t<!--End Featured Recipes Section-->
  771. \t\t\t\t\t\t\t</div>
  772. \t\t\t\t\t\t</div>
  773. \t\t\t\t\t</div>
  774. \t\t\t\t</div>
  775. \t\t\t</section>
  776. \t\t\t<!--End Product Box-->
  777. \t\t\t<!-- Resource Listing More Topics Start-->
  778. \t\t\t<section class=\"featured-categories resource-featured-categories\">
  779. \t\t\t\t<div class=\"container container-sm\">
  780. \t\t\t\t\t<div class=\"featured-categories-section\">
  781. \t\t\t\t\t\t<h2 class=\"heading\">";
  782.         // line 331
  783.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("More Topics"), "html"nulltrue);
  784.         yield "</h2>
  785. \t\t\t\t\t\t<div class=\"featured-categories-section-wrapper\">
  786. \t\t\t\t\t\t\t";
  787.         // line 333
  788.         $context['_parent'] = $context;
  789.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["more_topics"]) || array_key_exists("more_topics"$context) ? $context["more_topics"] : (function () { throw new RuntimeError('Variable "more_topics" does not exist.'333$this->source); })()));
  790.         foreach ($context['_seq'] as $context["_key"] => $context["topic"]) {
  791.             // line 334
  792.             yield "\t\t\t\t\t\t\t\t<div class=\"featured-categories-section-wrapper-item\">
  793. \t\t\t\t\t\t\t\t\t<a href=\"";
  794.             // line 335
  795.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["topic"], "url", [], "any"falsefalsefalse335), "html"nulltrue);
  796.             yield "\">
  797. \t\t\t\t\t\t\t\t\t\t<figure class=\"featured-categories-section-wrapper-item-video\">
  798. \t\t\t\t\t\t\t\t\t\t\t<div class=\"media-section\">
  799. \t\t\t\t\t\t\t\t\t\t\t\t<video poster=\"";
  800.             // line 338
  801.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["topic"], "image", [], "any"falsefalsefalse338), "html"nulltrue);
  802.             yield "\" playsinline>
  803. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  804.             // line 339
  805.             if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["topic"], "video", [], "any"falsetruefalse339), "data", [], "any"truetruefalse339)) {
  806.                 // line 340
  807.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<source src=\"";
  808.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["topic"], "video", [], "any"falsefalsefalse340), "data", [], "any"falsefalsefalse340), "html"nulltrue);
  809.                 yield "\" type=\"video/mp4\">
  810. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  811.             }
  812.             // line 342
  813.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
  814. \t\t\t\t\t\t\t\t\t\t\t\t</video>
  815. \t\t\t\t\t\t\t\t\t\t\t\t";
  816.             // line 348
  817.             yield "\t\t\t\t\t\t\t\t\t\t\t</div>
  818. \t\t\t\t\t\t\t\t\t\t</figure>
  819. \t\t\t\t\t\t\t\t\t</a>
  820. \t\t\t\t\t\t\t\t\t<div class=\"featured-categories-section-wrapper-item-content\">
  821. \t\t\t\t\t\t\t\t\t\t<a href=\"";
  822.             // line 352
  823.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["topic"], "url", [], "any"falsefalsefalse352), "html"nulltrue);
  824.             yield "\" class=\"featured-categories-section-wrapper-item-content-btn\">
  825. \t\t\t\t\t\t\t\t\t\t\t";
  826.             // line 353
  827.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["topic"], "name", [], "any"falsefalsefalse353), "html"nulltrue);
  828.             yield "
  829. \t\t\t\t\t\t\t\t\t\t</a>
  830. \t\t\t\t\t\t\t\t\t</div>
  831. \t\t\t\t\t\t\t\t</div>
  832. \t\t\t\t\t\t\t";
  833.         }
  834.         $_parent $context['_parent'];
  835.         unset($context['_seq'], $context['_key'], $context['topic'], $context['_parent']);
  836.         $context array_intersect_key($context$_parent) + $_parent;
  837.         // line 359
  838.         yield "\t\t\t\t\t\t</div>
  839. \t\t\t\t\t</div>
  840. \t\t\t\t</div>
  841. \t\t\t</section>
  842. \t\t\t
  843. \t\t\t<script>
  844. \t\t\t\tfunction searchFilter(e) {
  845. \t\t\t\t\tlet new_path = 'sub_category_id=';
  846. \t\t\t\t\tlet query = '';
  847. \t\t\t\t\tlet category_count = 1
  848. \t\t\t\t\t\$('.category_checkbox').each(function (index, value) {
  849. \t\t\t\t\t\tif (\$(this).is(':checked')) {
  850. \t\t\t\t\t\t\t
  851. \t\t\t\t\t\t\tif (category_count > 1) {
  852. \t\t\t\t\t\t\t\tnew_path += '_';
  853. \t\t\t\t\t\t\t}
  854. \t\t\t\t\t\t\tnew_path += \$(this).val();
  855. \t\t\t\t\t\t\tcategory_count++;
  856. \t\t\t\t\t\t}
  857. \t\t\t\t\t});
  858. \t\t\t\t\tif (\$('#search').val()) {
  859. \t\t\t\t\t\tquery = '&query=' + \$('#search').val();
  860. \t\t\t\t\t}
  861. \t\t\t\t\twindow.location.href = '?' + new_path + query;
  862. \t\t\t\t}
  863. \t\t\t\tfunction clearFilter(c) {
  864. \t\t\t\t\t\$(c).each(function (index, value) {
  865. \t\t\t\t\t\t\$(this).prop('checked', false);
  866. \t\t\t\t\t});
  867. \t\t\t\t}
  868. \t\t\t\tlet page = 1;
  869. \t\t\t\tfunction loadMoreProduct() {
  870. \t\t\t\t\tlet add_query = '&';
  871. \t\t\t\t\tif (!window.location.search) {
  872. \t\t\t\t\t\tadd_query = '?';
  873. \t\t\t\t\t}
  874. \t\t\t\t\t\$.ajax({
  875. \t\t\t\t\ttype: \"GET\",
  876. \t\t\t\t\turl: window.location.href + add_query + 'page=' + page,
  877. \t\t\t\t\tdata: '',
  878. \t\t\t\t\tcache: false,
  879. \t\t\t\t\tbeforeSend: function () {
  880. \t\t\t\t\t\t\$('.btn-load').css('padding-left', '50px');
  881. \t\t\t\t\t\t\$('.btn-load').css('background-image', 'url(/static/assets/images/loader.gif)');
  882. \t\t\t\t\t},
  883. \t\t\t\t\tcomplete: function () {
  884. \t\t\t\t\t\t\$('.btn-load').css('padding-left', '15px');
  885. \t\t\t\t\t\t\$('.btn-load').css('background-image', 'inherit');
  886. \t\t\t\t\t},
  887. \t\t\t\t\tsuccess: function (data) {
  888. \t\t\t\t\t\tif (data.success) {
  889. \t\t\t\t\t\t\t\$('.product-box-holder .new-div').append(data.success);
  890. \t\t\t\t\t\t\tpage++;
  891. \t\t\t\t\t\t} else if (data.success == '') {
  892. \t\t\t\t\t\t\t\$('.btn-load').hide();
  893. \t\t\t\t\t\t}
  894. \t\t\t\t\t}
  895. \t\t\t\t\t});
  896. \t\t\t\t}
  897. \t\t\t\t//function explore() {
  898. \t\t\t\t//let add_query = '&';
  899. \t\t\t\t//if (!window.location.search) {
  900. \t\t\t\t//add_query = '?';
  901. \t\t\t\t//}
  902. \t\t\t\t//window.location.href = add_query + 'most=1';
  903. \t\t\t\t//}
  904. \t\t\t</script>
  905. \t\t\t";
  906.         // line 439
  907.         if ((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.'439$this->source); })()), "request", [], "any"falsefalsefalse439), "locale", [], "any"falsefalsefalse439) == "ar")) {
  908.             // line 440
  909.             yield "\t\t\t\t";
  910.             $context["topMenu"] = ("/en/resources/" CoreExtension::getAttribute($this->env$this->source, (isset($context["current_category"]) || array_key_exists("current_category"$context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.'440$this->source); })()), "url", ["en"], "method"falsefalsefalse440));
  911.             // line 441
  912.             yield "\t\t\t";
  913.         } else {
  914.             // line 442
  915.             yield "\t\t\t\t";
  916.             $context["topMenu"] = ("/ar/resources/" CoreExtension::getAttribute($this->env$this->source, (isset($context["current_category"]) || array_key_exists("current_category"$context) ? $context["current_category"] : (function () { throw new RuntimeError('Variable "current_category" does not exist.'442$this->source); })()), "url", ["ar"], "method"falsefalsefalse442));
  917.             // line 443
  918.             yield "\t\t\t";
  919.         }
  920.         // line 444
  921.         yield "\t\t\t<script>
  922. \t\t\t\tvar _TopMenuLink = \"";
  923.         // line 445
  924.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["topMenu"]) || array_key_exists("topMenu"$context) ? $context["topMenu"] : (function () { throw new RuntimeError('Variable "topMenu" does not exist.'445$this->source); })()), "html"nulltrue);
  925.         yield "\";
  926. \t\t\t</script>
  927. \t\t\t<!-- Resource Listing More Topics End -->
  928. \t\t";
  929.         
  930.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  931.         
  932.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  933.         yield from [];
  934.     }
  935.     /**
  936.      * @codeCoverageIgnore
  937.      */
  938.     public function getTemplateName(): string
  939.     {
  940.         return "Resources/resources.html.twig";
  941.     }
  942.     /**
  943.      * @codeCoverageIgnore
  944.      */
  945.     public function isTraitable(): bool
  946.     {
  947.         return false;
  948.     }
  949.     /**
  950.      * @codeCoverageIgnore
  951.      */
  952.     public function getDebugInfo(): array
  953.     {
  954.         return array (  974 => 445,  971 => 444,  968 => 443,  965 => 442,  962 => 441,  959 => 440,  957 => 439,  875 => 359,  863 => 353,  859 => 352,  853 => 348,  849 => 342,  843 => 340,  841 => 339,  837 => 338,  831 => 335,  828 => 334,  824 => 333,  819 => 331,  802 => 316,  793 => 312,  787 => 309,  783 => 308,  775 => 307,  770 => 304,  758 => 300,  746 => 298,  740 => 296,  738 => 295,  730 => 294,  724 => 293,  720 => 291,  717 => 290,  715 => 289,  712 => 288,  706 => 286,  704 => 285,  699 => 283,  693 => 282,  683 => 277,  676 => 275,  672 => 273,  668 => 272,  656 => 263,  648 => 258,  645 => 257,  636 => 251,  632 => 249,  621 => 246,  613 => 245,  610 => 244,  606 => 243,  596 => 236,  591 => 233,  589 => 232,  580 => 228,  574 => 225,  565 => 218,  559 => 214,  556 => 210,  550 => 209,  544 => 205,  538 => 202,  534 => 201,  526 => 200,  523 => 199,  512 => 196,  500 => 194,  494 => 192,  492 => 191,  483 => 189,  477 => 188,  474 => 187,  471 => 186,  469 => 185,  466 => 184,  460 => 182,  458 => 181,  453 => 179,  447 => 178,  441 => 174,  432 => 171,  430 => 170,  423 => 168,  419 => 166,  416 => 165,  412 => 164,  408 => 162,  402 => 161,  399 => 160,  396 => 159,  391 => 157,  388 => 156,  385 => 155,  381 => 154,  377 => 152,  375 => 151,  370 => 148,  365 => 145,  362 => 144,  356 => 143,  351 => 140,  347 => 134,  343 => 132,  337 => 128,  333 => 122,  329 => 120,  315 => 113,  310 => 111,  306 => 110,  302 => 109,  298 => 108,  294 => 106,  291 => 105,  287 => 104,  284 => 103,  282 => 102,  279 => 101,  273 => 100,  268 => 97,  264 => 91,  260 => 89,  254 => 85,  249 => 78,  245 => 76,  230 => 68,  225 => 66,  221 => 65,  217 => 64,  213 => 63,  209 => 61,  206 => 60,  201 => 59,  199 => 58,  196 => 57,  194 => 56,  184 => 49,  179 => 47,  172 => 45,  164 => 39,  158 => 35,  147 => 30,  140 => 26,  136 => 25,  128 => 20,  120 => 15,  116 => 13,  112 => 12,  107 => 9,  105 => 8,  101 => 6,  88 => 5,  64 => 2,  41 => 1,);
  955.     }
  956.     public function getSourceContext(): Source
  957.     {
  958.         return new Source("{% extends \"layout/layout.html.twig\" %}
  959. {% block title %}GFS - Resources
  960. {% endblock %}
  961. {% block content %}
  962. \t<!--Start Main Slider-->
  963. \t{% if current_category.sliders is defined %}
  964. \t\t<section class=\"main-slider-section product-main-slider resources-section-slider\">
  965. \t\t\t<div class=\"container container-lg\">
  966. \t\t\t\t<div class=\"custom-slider singal-slider main-slider\">
  967. \t\t\t\t\t{% for slide in current_category.sliders %}
  968. \t\t\t\t\t\t<div class=\"slide\">
  969. \t\t\t\t\t\t\t<div class=\"slide-media slide-media-desktop\">
  970. \t\t\t\t\t\t\t\t<img src=\"{{slide.sliderimages.data}}\" alt=\"resource banner\"/>
  971. \t\t\t\t\t\t\t\t
  972. \t\t\t\t\t\t\t</div>
  973. \t\t\t\t\t\t\t<div class=\"slide-media slide-media-mobile\">
  974. \t\t\t\t\t\t\t\t<img src=\"{{slide.sliderimages_mobile.data}}\" alt=\"resource banner mobile\"/>
  975. \t\t\t\t\t\t\t</div>
  976. \t\t\t\t\t\t\t<div class=\"silde-content-box\">
  977. \t\t\t\t\t\t\t\t<div class=\"slide-content\">
  978. \t\t\t\t\t\t\t\t\t<h1>
  979. \t\t\t\t\t\t\t\t\t\t<span class=\"title-sm d-block\">{{ slide.localizedfields.data.getLocalizedValue('slidertitle') }}</span>
  980. \t\t\t\t\t\t\t\t\t\t<span class=\"title-lg underline-end\">{{current_category.name}}</span>
  981. \t\t\t\t\t\t\t\t\t</h1>
  982. \t\t\t\t\t\t\t\t</div>
  983. \t\t\t\t\t\t\t\t<div class=\"product-brand d-none\">
  984. \t\t\t\t\t\t\t\t\t<img src=\"{{slide.sliderbrandlogo}}\" alt=\"slide banner logo\"/>
  985. \t\t\t\t\t\t\t\t</div>
  986. \t\t\t\t\t\t\t</div>
  987. \t\t\t\t\t\t</div>
  988. \t\t\t\t\t{% endfor %}
  989. \t\t\t\t</div>
  990. \t\t\t</div>
  991. \t\t</section>
  992. \t{% endif %}
  993. \t<!--End Main Slider-->
  994. \t<!--Start Breadcrumbs-->
  995. \t<div class=\"breadcrumb-holder\">
  996. \t\t<ol class=\"breadcrumb\">
  997. \t\t\t<li class=\"breadcrumb-item\">
  998. \t\t\t\t<a href=\"/{{app.request.locale}}\">{{'Home'|trans}}</a>
  999. \t\t\t</li>
  1000. \t\t\t<li class=\"breadcrumb-item\">{{'Resources'|trans}}</li>
  1001. \t\t\t<li class=\"breadcrumb-item active\" aria-current=\"page\">
  1002. \t\t\t\t{{current_category.name}}
  1003. \t\t\t</li>
  1004. \t\t</ol>
  1005. \t</div>
  1006. \t<!--End Breadcrumbs-->
  1007. \t<!--Start Info Media-->
  1008. \t{% if current_category.bannerimage and current_category.name %}
  1009. \t\t<section class=\"training-media-box info-media res-listing-tech\">
  1010. \t\t\t{% if current_category.name(\"en\")  == \"Business\" %}
  1011. \t\t\t\t{% for popular in most %}
  1012. \t\t\t\t\t{% if popular.url == \"the-future-of-the-hospitality-industry-in-saudi-arabia\" %}
  1013. \t\t\t\t\t\t<div class=\"container container-sm\">
  1014. \t\t\t\t\t\t\t<div class=\"info-section\">
  1015. \t\t\t\t\t\t\t\t<h5>{{current_category.name}}</h5>
  1016. \t\t\t\t\t\t\t\t<h4>{{popular.name}}</h4>
  1017. \t\t\t\t\t\t\t\t<p class=\"slide-media-desktop\">{{popular.main_description}}</p>
  1018. \t\t\t\t\t\t\t\t<p class=\"slide-media-mobile\">{{ popular.main_description|length > 150 ? popular.main_description|slice(0, 150) ~ '...' : popular.main_description  }}
  1019. \t\t\t\t\t\t\t\t\t<div class=\"\">
  1020. \t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/resource/{{popular.url}}\" class=\"btn btn-custom btn-green\">{{'Read More'|trans}}</a>
  1021. \t\t\t\t\t\t\t\t\t</div>
  1022. \t\t\t\t\t\t\t\t</p>
  1023. \t\t\t\t\t\t\t</div>
  1024. \t\t\t\t\t\t\t<div class=\"media-section slide-media-desktop\">
  1025. \t\t\t\t\t\t\t\t<video
  1026. \t\t\t\t\t\t\t\t\tposter=\"{{popular.image}}\">
  1027. \t\t\t\t\t\t\t\t\t{# <source src=\"{{current_category.bannervideo.data}}\" type=\"video/mp4\" /> #}
  1028. \t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
  1029. \t\t\t\t\t\t\t\t</video>
  1030. \t\t\t\t\t\t\t\t{# <div class=\"control-options\">
  1031. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t            <i class=\"fas fa-play-circle\"></i>
  1032. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t            <i class=\"fas fa-pause-circle\"></i>
  1033. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t          </div> #}
  1034. \t\t\t\t\t\t\t</div>
  1035. \t\t\t\t\t\t\t<div class=\"media-section slide-media-mobile\">
  1036. \t\t\t\t\t\t\t\t<video
  1037. \t\t\t\t\t\t\t\t\tposter=\"{{popular.image}}\">
  1038. \t\t\t\t\t\t\t\t\t{# <source src=\"{{current_category.bannervideo.data}}\" type=\"video/mp4\" /> #}
  1039. \t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
  1040. \t\t\t\t\t\t\t\t</video>
  1041. \t\t\t\t\t\t\t\t{# <div class=\"control-options\">
  1042. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t            <i class=\"fas fa-play-circle\"></i>
  1043. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t            <i class=\"fas fa-pause-circle\"></i>
  1044. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t          </div> #}
  1045. \t\t\t\t\t\t\t</div>
  1046. \t\t\t\t\t\t</div>
  1047. \t\t\t\t\t{% endif %}
  1048. \t\t\t\t{% endfor %}
  1049. \t\t\t{% elseif current_category.name(\"en\") == \"Management\" %}
  1050. \t\t\t\t{% for popular in most %}
  1051. \t\t\t\t\t{% if popular.url == \"waste-management-in-the-kitchen\" %}
  1052. \t\t\t\t\t\t<div class=\"container container-sm\">
  1053. \t\t\t\t\t\t\t<div class=\"info-section\">
  1054. \t\t\t\t\t\t\t\t<h5>{{current_category.name}}</h5>
  1055. \t\t\t\t\t\t\t\t<h4>{{popular.name}}</h4>
  1056. \t\t\t\t\t\t\t\t<p class=\"slide-media-desktop\">{{popular.main_description}}</p>
  1057. \t\t\t\t\t\t\t\t<p class=\"slide-media-mobile\">{{ popular.main_description|length > 150 ? popular.main_description|slice(0, 150) ~ '...' : popular.main_description  }}
  1058. \t\t\t\t\t\t\t\t\t<div class=\"\">
  1059. \t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/resource/{{popular.url}}\" class=\"btn btn-custom btn-green\">{{'Read More'|trans}}</a>
  1060. \t\t\t\t\t\t\t\t\t</div>
  1061. \t\t\t\t\t\t\t\t</p>
  1062. \t\t\t\t\t\t\t</div>
  1063. \t\t\t\t\t\t\t<div class=\"media-section slide-media-desktop\">
  1064. \t\t\t\t\t\t\t\t<video
  1065. \t\t\t\t\t\t\t\t\tposter=\"{{popular.image}}\">
  1066. \t\t\t\t\t\t\t\t\t{# <source src=\"{{current_category.bannervideo.data}}\" type=\"video/mp4\" /> #}
  1067. \t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
  1068. \t\t\t\t\t\t\t\t</video>
  1069. \t\t\t\t\t\t\t\t{# <div class=\"control-options\">
  1070. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t            <i class=\"fas fa-play-circle\"></i>
  1071. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t            <i class=\"fas fa-pause-circle\"></i>
  1072. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t          </div> #}
  1073. \t\t\t\t\t\t\t</div>
  1074. \t\t\t\t\t\t\t<div class=\"media-section slide-media-mobile\">
  1075. \t\t\t\t\t\t\t\t<video
  1076. \t\t\t\t\t\t\t\t\tposter=\"{{popular.image}}\">
  1077. \t\t\t\t\t\t\t\t\t{# <source src=\"{{current_category.bannervideo.data}}\" type=\"video/mp4\" /> #}
  1078. \t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
  1079. \t\t\t\t\t\t\t\t</video>
  1080. \t\t\t\t\t\t\t\t{# <div class=\"control-options\">
  1081. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t            <i class=\"fas fa-play-circle\"></i>
  1082. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t            <i class=\"fas fa-pause-circle\"></i>
  1083. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t          </div> #}
  1084. \t\t\t\t\t\t\t</div>
  1085. \t\t\t\t\t\t</div>
  1086. \t\t\t\t\t{% endif %}
  1087. \t\t\t\t{% endfor %}
  1088. \t\t\t{% endif %}
  1089. \t\t</section>
  1090. \t{% endif %}
  1091. \t<!--End Info Media-->
  1092. \t<!--Start Featured Recipes Section-->
  1093. \t{% if most is not empty %}
  1094. \t\t<section class=\"featured-recipes-section inner-frecipes-section event-detail-slider resources-center\">
  1095. \t\t\t<div class=\"container container-sm\">
  1096. \t\t\t\t{% for key , popular in most %}
  1097. \t\t\t\t\t{% if popular.url != \"waste-management-in-the-kitchen\" %}
  1098. \t\t\t\t\t\t{% if key == 1 %}
  1099. \t\t\t\t\t\t\t<h2 class=\"heading\">{{'Most Popular'|trans}}</h2>
  1100. \t\t\t\t\t\t\t{# break #}
  1101. \t\t\t\t\t\t{% endif %}
  1102. \t\t\t\t\t{% endif %}
  1103. \t\t\t\t{% endfor %}
  1104. \t\t\t\t<div class=\"featured-recipes\">
  1105. \t\t\t\t\t<div class=\"custom-slider custom-event-slider\">
  1106. \t\t\t\t\t\t{% for popular in most %}
  1107. \t\t\t\t\t\t\t{% if popular.url != \"waste-management-in-the-kitchen\" %}
  1108. \t\t\t\t\t\t\t\t<div class=\"slide\">
  1109. \t\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
  1110. \t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/resource/{{popular.url}}\">
  1111. \t\t\t\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
  1112. \t\t\t\t\t\t\t\t\t\t\t\t{% if popular.image is defined %}
  1113. \t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ popular.image }}\" alt=\"{{popular.name}}\">
  1114. \t\t\t\t\t\t\t\t\t\t\t\t\t
  1115. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1116. \t\t\t\t\t\t\t\t\t\t\t</figure>
  1117. \t\t\t\t\t\t\t\t\t\t</a>
  1118. \t\t\t\t\t\t\t\t\t\t<div class=\"slide-content\">
  1119. \t\t\t\t\t\t\t\t\t\t\t<div class=\"frecipes-box\">
  1120. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/resource/{{popular.url}}\" class=\"text-decoration-none\">
  1121. \t\t\t\t\t\t\t\t\t\t\t\t\t<h3>{{popular.name}}</h3>
  1122. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  1123. \t\t\t\t\t\t\t\t\t\t\t\t{% if popular.main_description is defined and popular.main_description is not null %}
  1124. \t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{popular.main_description}}</p>
  1125. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1126. \t\t\t\t\t\t\t\t\t\t\t</div>
  1127. \t\t\t\t\t\t\t\t\t\t\t{% set user = app.session.get('loginUserName') %}
  1128. \t\t\t\t\t\t\t\t\t\t\t{% if user is not null %}
  1129. \t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info\">
  1130. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"loyaltyProgram(this,{{ popular.id }},'{{ popular.name }}',50,'Article','Share')\">
  1131. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/resource/' ~ popular.url}}' ,'{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}</span>
  1132. \t\t\t\t\t\t\t\t\t\t\t\t\t</li>
  1133. \t\t\t\t\t\t\t\t\t\t\t\t\t{% if popular.id in Liked_most_popular_Id %}
  1134. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class='liked'>{{'Like'|trans}}</li>
  1135. \t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  1136. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like most_popular\" onclick=\"loyaltyProgram(this,{{ popular.id }},'{{ popular.name }}',30,'Article','Like', '{{app.request.locale}}')\">{{'Like'|trans}}</li>
  1137. \t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1138. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"download-black d-none\" onclick=\"loyaltyProgram(this,{{ popular.id }},'{{ popular.name }}',20,'Article','Save')\">{{'Download'|trans}}</li>
  1139. \t\t\t\t\t\t\t\t\t\t\t\t</ul>
  1140. \t\t\t\t\t\t\t\t\t\t\t{% else %}
  1141. \t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info\">
  1142. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/resource/' ~ popular.url}}','{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}</li>
  1143. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like logged-out\">{{'Like'|trans}}</li>
  1144. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"download-black d-none\">{{'Download'|trans}}</li>
  1145. \t\t\t\t\t\t\t\t\t\t\t\t</ul>
  1146. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1147. \t\t\t\t\t\t\t\t\t\t</div>
  1148. \t\t\t\t\t\t\t\t\t</div>
  1149. \t\t\t\t\t\t\t\t</div>
  1150. \t\t\t\t\t\t\t{% endif %}
  1151. \t\t\t\t\t\t{% endfor %}
  1152. \t\t\t\t\t</div>
  1153. \t\t\t\t\t{# <div class=\"btn-border\">
  1154. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t            <button class=\"btn btn-custom btn-lg-o-black\" onclick=\"explore()\">Explore More</button>
  1155. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t          </div> #}
  1156. \t\t\t\t</div>
  1157. \t\t\t</div>
  1158. \t\t</section>
  1159. \t{% endif %}
  1160. \t<!--End Featured Recipes Section-->
  1161. \t<!--Start Product Box-->
  1162. \t<section class=\"product-result-container resources-cat\">
  1163. \t\t<div class=\"container container-sm\">
  1164. \t\t\t<div class=\"row\">
  1165. \t\t\t\t<div class=\"col-12 col-md-12 col-xl-3 filter-box\">
  1166. \t\t\t\t\t<h4 class=\"title\">{{'Filters'|trans}}</h4>
  1167. \t\t\t\t\t<div class=\"filder-options\">
  1168. \t\t\t\t\t\t<div class=\"input-holder\">
  1169. \t\t\t\t\t\t\t<input type=\"text\" placeholder=\"{{''|trans}}\" id=\"search\" value=\"{{filters.query}}\" class=\"form-control\"/>
  1170. \t\t\t\t\t\t</div>
  1171. \t\t\t\t\t</div>
  1172. \t\t\t\t\t<div class=\"filter-accordion\">
  1173. \t\t\t\t\t\t{% if categories is not empty %}
  1174. \t\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter1\">
  1175. \t\t\t\t\t\t\t\t<div class=\"card-header\">
  1176. \t\t\t\t\t\t\t\t\t<button type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse1\" aria-expanded=\"true\" aria-controls=\"collapse1\">
  1177. \t\t\t\t\t\t\t\t\t\t{{'Category'|trans}}
  1178. \t\t\t\t\t\t\t\t\t</button>
  1179. \t\t\t\t\t\t\t\t</div>
  1180. \t\t\t\t\t\t\t\t<div id=\"collapse1\" class=\"collapse show\" data-parent=\"#filter1\">
  1181. \t\t\t\t\t\t\t\t\t<div class=\"card-body\">
  1182. \t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled check-list\">
  1183. \t\t\t\t\t\t\t\t\t\t\t{%  for category in categories %}
  1184. \t\t\t\t\t\t\t\t\t\t\t\t<li>
  1185. \t\t\t\t\t\t\t\t\t\t\t\t\t<input class=\"styled-checkbox category_checkbox\" id=\"{{category.name}}\" type=\"checkbox\" value=\"{{category.id}}\" {{ (category.id in filters.category_ids) ? 'checked' : '' }}/>
  1186. \t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"{{category.name}}\">{{category.name}}</label>
  1187. \t\t\t\t\t\t\t\t\t\t\t\t</li>
  1188. \t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  1189. \t\t\t\t\t\t\t\t\t\t</ul>
  1190. \t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder clear-filter\">
  1191. \t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-link\" onclick=\"clearFilter('.category_checkbox')\">{{'Clear Filter'|trans}}</button>
  1192. \t\t\t\t\t\t\t\t\t\t</div>
  1193. \t\t\t\t\t\t\t\t\t</div>
  1194. \t\t\t\t\t\t\t\t</div>
  1195. \t\t\t\t\t\t\t</div>
  1196. \t\t\t\t\t\t{% endif %}
  1197. \t\t\t\t\t\t<div class=\"apply-filter\">
  1198. \t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-green\" onclick=\"searchFilter(this)\">{{'Apply Filter'|trans}}</a>
  1199. \t\t\t\t\t\t</div>
  1200. \t\t\t\t\t</div>
  1201. \t\t\t\t</div>
  1202. \t\t\t\t<div class=\"col-12 col-md-12 col-xl-9 product-results\">
  1203. \t\t\t\t\t<h2 class=\"heading all-articles-heading-text\">{{'All Articles'|trans}}</h2>
  1204. \t\t\t\t\t<!--End Product Small Banner-->
  1205. \t\t\t\t\t<div
  1206. \t\t\t\t\t\tclass=\"product-box-holder\">
  1207. \t\t\t\t\t\t<!--Start Featured Recipes Section-->
  1208. \t\t\t\t\t\t<section class=\"featured-recipes-section inner-frecipes-section all-training-section resource-listing-grid\">
  1209. \t\t\t\t\t\t\t<div class=\"featured-recipes\">
  1210. \t\t\t\t\t\t\t\t<div class=\"all-training-recip\">
  1211. \t\t\t\t\t\t\t\t\t{% for resource in resources %}
  1212. \t\t\t\t\t\t\t\t\t\t<div class=\"slide\">
  1213. \t\t\t\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
  1214. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/resource/{{resource.url}}\">
  1215. \t\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
  1216. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{resource.image}}\" alt=\"{{ resource.name }}\"/>
  1217. \t\t\t\t\t\t\t\t\t\t\t\t\t</figure>
  1218. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  1219. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"slide-content\">
  1220. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"frecipes-box\">
  1221. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/resource/{{resource.url}}\" class=\"text-decoration-none\">
  1222. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3>{{ resource.name }}</h3>
  1223. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  1224. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if resource.main_description is defined and resource.main_description is not null %}
  1225. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{resource.main_description|raw}}</p>
  1226. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1227. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1228. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set user = app.session.get('loginUserName') %}
  1229. \t\t\t\t\t\t\t\t\t\t\t\t\t{% if user is not null %}
  1230. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info\">
  1231. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"loyaltyProgram(this,{{ resource.id }},'{{ resource.name }}',10,'Article','Share')\">
  1232. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/resource/' ~ resource.url}}' ,'{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}<span></li>
  1233. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if resource.id in Liked_all_recource_Id %}
  1234. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class='liked'>{{'Like'|trans}}</li>
  1235. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  1236. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like all_article\" onclick=\"loyaltyProgram(this,{{ resource.id }},'{{ resource.name }}',10,'Article','Like', '{{app.request.locale}}')\">{{'Like'|trans}}</li>
  1237. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1238. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"download d-none\" onclick=\"loyaltyProgram(this,{{ resource.id }},'{{ resource.name }}',10,'Article','Save')\">{{'Download'|trans}}</li>
  1239. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
  1240. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  1241. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info\">
  1242. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/resource/' ~ resource.url}}') ,'{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}'\">{{'Share'|trans}}</li>
  1243. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like logged-out\">{{'Like'|trans}}</li>
  1244. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"download d-none\">{{'Download'|trans}}</li>
  1245. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
  1246. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1247. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1248. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1249. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  1250. \t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  1251. \t\t\t\t\t\t\t\t\t\t</div>
  1252. \t\t\t\t\t\t\t\t\t</div>
  1253. \t\t\t\t\t\t\t\t</section>
  1254. \t\t\t\t\t\t\t\t<!--End Featured Recipes Section-->
  1255. \t\t\t\t\t\t\t</div>
  1256. \t\t\t\t\t\t</div>
  1257. \t\t\t\t\t</div>
  1258. \t\t\t\t</div>
  1259. \t\t\t</section>
  1260. \t\t\t<!--End Product Box-->
  1261. \t\t\t<!-- Resource Listing More Topics Start-->
  1262. \t\t\t<section class=\"featured-categories resource-featured-categories\">
  1263. \t\t\t\t<div class=\"container container-sm\">
  1264. \t\t\t\t\t<div class=\"featured-categories-section\">
  1265. \t\t\t\t\t\t<h2 class=\"heading\">{{'More Topics'|trans}}</h2>
  1266. \t\t\t\t\t\t<div class=\"featured-categories-section-wrapper\">
  1267. \t\t\t\t\t\t\t{%  for topic in more_topics %}
  1268. \t\t\t\t\t\t\t\t<div class=\"featured-categories-section-wrapper-item\">
  1269. \t\t\t\t\t\t\t\t\t<a href=\"{{topic.url}}\">
  1270. \t\t\t\t\t\t\t\t\t\t<figure class=\"featured-categories-section-wrapper-item-video\">
  1271. \t\t\t\t\t\t\t\t\t\t\t<div class=\"media-section\">
  1272. \t\t\t\t\t\t\t\t\t\t\t\t<video poster=\"{{topic.image}}\" playsinline>
  1273. \t\t\t\t\t\t\t\t\t\t\t\t\t{% if topic.video.data is defined %}
  1274. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<source src=\"{{ topic.video.data }}\" type=\"video/mp4\">
  1275. \t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1276. \t\t\t\t\t\t\t\t\t\t\t\t\tYour browser does not support the video tag.
  1277. \t\t\t\t\t\t\t\t\t\t\t\t</video>
  1278. \t\t\t\t\t\t\t\t\t\t\t\t{# <div class=\"control-options\">
  1279. \t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-play-circle\"></i>
  1280. \t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-pause-circle\"></i>
  1281. \t\t\t\t\t\t\t\t\t\t\t\t</div> #}
  1282. \t\t\t\t\t\t\t\t\t\t\t</div>
  1283. \t\t\t\t\t\t\t\t\t\t</figure>
  1284. \t\t\t\t\t\t\t\t\t</a>
  1285. \t\t\t\t\t\t\t\t\t<div class=\"featured-categories-section-wrapper-item-content\">
  1286. \t\t\t\t\t\t\t\t\t\t<a href=\"{{topic.url}}\" class=\"featured-categories-section-wrapper-item-content-btn\">
  1287. \t\t\t\t\t\t\t\t\t\t\t{{topic.name}}
  1288. \t\t\t\t\t\t\t\t\t\t</a>
  1289. \t\t\t\t\t\t\t\t\t</div>
  1290. \t\t\t\t\t\t\t\t</div>
  1291. \t\t\t\t\t\t\t{% endfor %}
  1292. \t\t\t\t\t\t</div>
  1293. \t\t\t\t\t</div>
  1294. \t\t\t\t</div>
  1295. \t\t\t</section>
  1296. \t\t\t
  1297. \t\t\t<script>
  1298. \t\t\t\tfunction searchFilter(e) {
  1299. \t\t\t\t\tlet new_path = 'sub_category_id=';
  1300. \t\t\t\t\tlet query = '';
  1301. \t\t\t\t\tlet category_count = 1
  1302. \t\t\t\t\t\$('.category_checkbox').each(function (index, value) {
  1303. \t\t\t\t\t\tif (\$(this).is(':checked')) {
  1304. \t\t\t\t\t\t\t
  1305. \t\t\t\t\t\t\tif (category_count > 1) {
  1306. \t\t\t\t\t\t\t\tnew_path += '_';
  1307. \t\t\t\t\t\t\t}
  1308. \t\t\t\t\t\t\tnew_path += \$(this).val();
  1309. \t\t\t\t\t\t\tcategory_count++;
  1310. \t\t\t\t\t\t}
  1311. \t\t\t\t\t});
  1312. \t\t\t\t\tif (\$('#search').val()) {
  1313. \t\t\t\t\t\tquery = '&query=' + \$('#search').val();
  1314. \t\t\t\t\t}
  1315. \t\t\t\t\twindow.location.href = '?' + new_path + query;
  1316. \t\t\t\t}
  1317. \t\t\t\tfunction clearFilter(c) {
  1318. \t\t\t\t\t\$(c).each(function (index, value) {
  1319. \t\t\t\t\t\t\$(this).prop('checked', false);
  1320. \t\t\t\t\t});
  1321. \t\t\t\t}
  1322. \t\t\t\tlet page = 1;
  1323. \t\t\t\tfunction loadMoreProduct() {
  1324. \t\t\t\t\tlet add_query = '&';
  1325. \t\t\t\t\tif (!window.location.search) {
  1326. \t\t\t\t\t\tadd_query = '?';
  1327. \t\t\t\t\t}
  1328. \t\t\t\t\t\$.ajax({
  1329. \t\t\t\t\ttype: \"GET\",
  1330. \t\t\t\t\turl: window.location.href + add_query + 'page=' + page,
  1331. \t\t\t\t\tdata: '',
  1332. \t\t\t\t\tcache: false,
  1333. \t\t\t\t\tbeforeSend: function () {
  1334. \t\t\t\t\t\t\$('.btn-load').css('padding-left', '50px');
  1335. \t\t\t\t\t\t\$('.btn-load').css('background-image', 'url(/static/assets/images/loader.gif)');
  1336. \t\t\t\t\t},
  1337. \t\t\t\t\tcomplete: function () {
  1338. \t\t\t\t\t\t\$('.btn-load').css('padding-left', '15px');
  1339. \t\t\t\t\t\t\$('.btn-load').css('background-image', 'inherit');
  1340. \t\t\t\t\t},
  1341. \t\t\t\t\tsuccess: function (data) {
  1342. \t\t\t\t\t\tif (data.success) {
  1343. \t\t\t\t\t\t\t\$('.product-box-holder .new-div').append(data.success);
  1344. \t\t\t\t\t\t\tpage++;
  1345. \t\t\t\t\t\t} else if (data.success == '') {
  1346. \t\t\t\t\t\t\t\$('.btn-load').hide();
  1347. \t\t\t\t\t\t}
  1348. \t\t\t\t\t}
  1349. \t\t\t\t\t});
  1350. \t\t\t\t}
  1351. \t\t\t\t//function explore() {
  1352. \t\t\t\t//let add_query = '&';
  1353. \t\t\t\t//if (!window.location.search) {
  1354. \t\t\t\t//add_query = '?';
  1355. \t\t\t\t//}
  1356. \t\t\t\t//window.location.href = add_query + 'most=1';
  1357. \t\t\t\t//}
  1358. \t\t\t</script>
  1359. \t\t\t{% if (app.request.locale =='ar') %}
  1360. \t\t\t\t{% set topMenu =\"/en/resources/\" ~ current_category.url('en') %}
  1361. \t\t\t{% else %}
  1362. \t\t\t\t{% set topMenu =\"/ar/resources/\" ~ current_category.url('ar') %}
  1363. \t\t\t{% endif %}
  1364. \t\t\t<script>
  1365. \t\t\t\tvar _TopMenuLink = \"{{ topMenu }}\";
  1366. \t\t\t</script>
  1367. \t\t\t<!-- Resource Listing More Topics End -->
  1368. \t\t{% endblock %}
  1369. ""Resources/resources.html.twig""/var/www/vhosts/centric.ae/gcs.centric.ae/templates/Resources/resources.html.twig");
  1370.     }
  1371. }