var/cache/dev/twig/1c/1cc93a14bda0df3d05752a1e567b5acf.php line 53

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. /* menubuilder/menu-builder.html.twig */
  16. class __TwigTemplate_ac5830c45440667c0b370fcdb824e9e7 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.             'content' => [$this'block_content'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32.     {
  33.         // line 1
  34.         return "layout/layout.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = []): iterable
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""menubuilder/menu-builder.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""menubuilder/menu-builder.html.twig"));
  43.         $this->parent $this->loadTemplate("layout/layout.html.twig""menubuilder/menu-builder.html.twig"1);
  44.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 5
  51.     /**
  52.      * @return iterable<null|scalar|\Stringable>
  53.      */
  54.     public function block_content(array $context, array $blocks = []): iterable
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  61.         // line 6
  62.         yield "
  63. \t";
  64.         // line 7
  65.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'7$this->source); })())) {
  66.             // line 8
  67.             yield "
  68. \t\t";
  69.             // line 9
  70.             yield "Recipe Categories";
  71.             yield "
  72. \t\t";
  73.             // line 10
  74.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""recipecategory", ["types" => ["object"], "subtypes" => ["object" => ["object"]], "classes" => ["recipecategory"]]);
  75.             // line 16
  76.             yield "
  77. \t\t";
  78.             // line 18
  79.             yield "Recipe Brands";
  80.             yield "
  81. \t\t";
  82.             // line 20
  83.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""recipebrands", ["types" => ["object"], "subtypes" => ["object" => ["object"]], "classes" => ["brands"]]);
  84.             // line 26
  85.             yield "
  86. \t";
  87.         }
  88.         // line 30
  89.         yield "\t";
  90.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content", ["allowed" => ["menu-builder-main-area"]]);
  91.         // line 35
  92.         yield "
  93. \t<!--Start Product Box-->
  94. \t";
  95.         // line 39
  96.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'39$this->source); })())) {
  97.             // line 40
  98.             yield "\t\t<section class=\"product-result-container recipe-result-container menu-builder\">
  99. \t\t\t<div class=\"container container-sm\">
  100. \t\t\t\t<div class=\"row\">
  101. \t\t\t\t\t<div class=\"col-12 col-md-12 col-xl-3 filter-box\">
  102. \t\t\t\t\t\t<h4 class=\"title\">";
  103.             // line 44
  104.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Filters"), "html"nulltrue);
  105.             yield "</h4>
  106. \t\t\t\t\t\t<div class=\"filder-options\">
  107. \t\t\t\t\t\t\t<div class=\"input-holder\">
  108. \t\t\t\t\t\t\t\t<input type=\"text\" placeholder=\"";
  109.             // line 47
  110.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Search for product"), "html"nulltrue);
  111.             yield "\" class=\"form-control\" name=\"query\" id=\"search\" value=";
  112.             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.'47$this->source); })()), "query", [], "any"falsefalsefalse47), "html"nulltrue);
  113.             yield ">
  114. \t\t\t\t\t\t\t</div>
  115. \t\t\t\t\t\t</div>
  116. \t\t\t\t\t\t<div class=\"filter-accordion\">
  117. \t\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter1\">
  118. \t\t\t\t\t\t\t\t<div class=\"card-header\">
  119. \t\t\t\t\t\t\t\t\t<button type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse1\" aria-expanded=\"true\" aria-controls=\"collapse1\">
  120. \t\t\t\t\t\t\t\t\t\t";
  121.             // line 55
  122.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Category"), "html"nulltrue);
  123.             yield "
  124. \t\t\t\t\t\t\t\t\t</button>
  125. \t\t\t\t\t\t\t\t</div>
  126. \t\t\t\t\t\t\t\t<div id=\"collapse1\" class=\"collapse show\" data-parent=\"#filter1\">
  127. \t\t\t\t\t\t\t\t\t<div class=\"card-body\">
  128. \t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled check-list\">
  129. \t\t\t\t\t\t\t\t\t\t\t";
  130.             // line 62
  131.             $context['_parent'] = $context;
  132.             $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""recipecategory"));
  133.             foreach ($context['_seq'] as $context["_key"] => $context["recipecategories"]) {
  134.                 // line 63
  135.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox category_checkbox\" name='Category' id=\"";
  136.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["recipecategories"], "id", [], "any"falsefalsefalse63), "html"nulltrue);
  137.                 yield "\" type=\"checkbox\" value=\"";
  138.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["recipecategories"], "id", [], "any"falsefalsefalse63), "html"nulltrue);
  139.                 yield "\" ";
  140.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["recipecategories"], "id", [], "any"falsefalsefalse63), "html"nulltrue);
  141.                 yield " ";
  142.                 yield ((CoreExtension::inFilter(CoreExtension::getAttribute($this->env$this->source$context["recipecategories"], "id", [], "any"falsefalsefalse63), 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.'63$this->source); })()), "category_ids", [], "any"falsefalsefalse63))) ? ("checked") : (""));
  143.                 yield ">
  144. \t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"";
  145.                 // line 64
  146.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["recipecategories"], "id", [], "any"falsefalsefalse64), "html"nulltrue);
  147.                 yield "\">";
  148.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["recipecategories"], "recipecategoryname", [], "any"falsefalsefalse64), "html"nulltrue);
  149.                 yield "</label>
  150. \t\t\t\t\t\t\t\t\t\t\t\t</li>
  151. \t\t\t\t\t\t\t\t\t\t\t";
  152.             }
  153.             $_parent $context['_parent'];
  154.             unset($context['_seq'], $context['_key'], $context['recipecategories'], $context['_parent']);
  155.             $context array_intersect_key($context$_parent) + $_parent;
  156.             // line 67
  157.             yield "
  158. \t\t\t\t\t\t\t\t\t\t</ul>
  159. \t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder clear-filter\">
  160. \t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-link\" onclick=\"clearFilter('.category_checkbox')\">";
  161.             // line 70
  162.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Clear Filter"), "html"nulltrue);
  163.             yield "</a>
  164. \t\t\t\t\t\t\t\t\t\t</div>
  165. \t\t\t\t\t\t\t\t\t</div>
  166. \t\t\t\t\t\t\t\t</div>
  167. \t\t\t\t\t\t\t</div>
  168. \t\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter2\">
  169. \t\t\t\t\t\t\t\t<div class=\"card-header\">
  170. \t\t\t\t\t\t\t\t\t<button type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse2\" aria-expanded=\"true\" aria-controls=\"collapse2\">
  171. \t\t\t\t\t\t\t\t\t\t";
  172.             // line 81
  173.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Brands"), "html"nulltrue);
  174.             yield "
  175. \t\t\t\t\t\t\t\t\t</button>
  176. \t\t\t\t\t\t\t\t</div>
  177. \t\t\t\t\t\t\t\t<div id=\"collapse2\" class=\"collapse show\" data-parent=\"#filter2\">
  178. \t\t\t\t\t\t\t\t\t<div class=\"card-body\">
  179. \t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled check-list\">
  180. \t\t\t\t\t\t\t\t\t\t\t";
  181.             // line 88
  182.             $context['_parent'] = $context;
  183.             $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""recipebrands"));
  184.             foreach ($context['_seq'] as $context["_key"] => $context["recipe_brands"]) {
  185.                 // line 89
  186.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox brand_checkbox\" id=\"";
  187.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["recipe_brands"], "id", [], "any"falsefalsefalse89), "html"nulltrue);
  188.                 yield "\" type=\"checkbox\" value=\"";
  189.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["recipe_brands"], "id", [], "any"falsefalsefalse89), "html"nulltrue);
  190.                 yield "\" ";
  191.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["recipe_brands"], "id", [], "any"falsefalsefalse89), "html"nulltrue);
  192.                 yield " ";
  193.                 yield ((CoreExtension::inFilter(CoreExtension::getAttribute($this->env$this->source$context["recipe_brands"], "id", [], "any"falsefalsefalse89), 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.'89$this->source); })()), "brand_ids", [], "any"falsefalsefalse89))) ? ("checked") : (""));
  194.                 yield ">
  195. \t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"";
  196.                 // line 90
  197.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["recipe_brands"], "id", [], "any"falsefalsefalse90), "html"nulltrue);
  198.                 yield "\">";
  199.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["recipe_brands"], "name", [], "any"falsefalsefalse90), "html"nulltrue);
  200.                 yield "</label>
  201. \t\t\t\t\t\t\t\t\t\t\t\t</li>
  202. \t\t\t\t\t\t\t\t\t\t\t";
  203.             }
  204.             $_parent $context['_parent'];
  205.             unset($context['_seq'], $context['_key'], $context['recipe_brands'], $context['_parent']);
  206.             $context array_intersect_key($context$_parent) + $_parent;
  207.             // line 93
  208.             yield "
  209. \t\t\t\t\t\t\t\t\t\t</ul>
  210. \t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder clear-filter\">
  211. \t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-link\" onclick=\"clearFilter('.brand_checkbox')\">";
  212.             // line 97
  213.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Clear Filter"), "html"nulltrue);
  214.             yield "</a>
  215. \t\t\t\t\t\t\t\t\t\t</div>
  216. \t\t\t\t\t\t\t\t\t</div>
  217. \t\t\t\t\t\t\t\t</div>
  218. \t\t\t\t\t\t\t</div>
  219. \t\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter3\">
  220. \t\t\t\t\t\t\t\t<div class=\"card-header\">
  221. \t\t\t\t\t\t\t\t\t<button type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse3\" aria-expanded=\"true\" aria-controls=\"collapse3\">
  222. \t\t\t\t\t\t\t\t\t\t";
  223.             // line 108
  224.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Type"), "html"nulltrue);
  225.             yield "
  226. \t\t\t\t\t\t\t\t\t</button>
  227. \t\t\t\t\t\t\t\t</div>
  228. \t\t\t\t\t\t\t\t<div id=\"collapse3\" class=\"collapse show\" data-parent=\"#filter3\">
  229. \t\t\t\t\t\t\t\t\t<div class=\"card-body\">
  230. \t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled check-list\">
  231. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Lunch\" type=\"checkbox\" value=\"Lunch\" ";
  232.             // line 115
  233.             yield ((CoreExtension::inFilter("Lunch"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.'115$this->source); })()), "meal_type", [], "any"falsefalsefalse115))) ? ("checked") : (""));
  234.             yield ">
  235. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Lunch\">";
  236.             // line 116
  237.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Lunch"), "html"nulltrue);
  238.             yield "</label>
  239. \t\t\t\t\t\t\t\t\t\t\t</li>
  240. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Dinner\" type=\"checkbox\" value=\"Dinner\" ";
  241.             // line 118
  242.             yield ((CoreExtension::inFilter("Dinner"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.'118$this->source); })()), "meal_type", [], "any"falsefalsefalse118))) ? ("checked") : (""));
  243.             yield ">
  244. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Dinner\">";
  245.             // line 119
  246.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Dinner"), "html"nulltrue);
  247.             yield "</label>
  248. \t\t\t\t\t\t\t\t\t\t\t</li>
  249. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Dessert\" type=\"checkbox\" value=\"Dessert\" ";
  250.             // line 121
  251.             yield ((CoreExtension::inFilter("Dessert"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.'121$this->source); })()), "meal_type", [], "any"falsefalsefalse121))) ? ("checked") : (""));
  252.             yield ">
  253. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Dessert\">";
  254.             // line 122
  255.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Dessert"), "html"nulltrue);
  256.             yield "</label>
  257. \t\t\t\t\t\t\t\t\t\t\t</li>
  258. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Drink\" type=\"checkbox\" value=\"Drink\" ";
  259.             // line 124
  260.             yield ((CoreExtension::inFilter("Drink"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.'124$this->source); })()), "meal_type", [], "any"falsefalsefalse124))) ? ("checked") : (""));
  261.             yield ">
  262. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Drink\">";
  263.             // line 125
  264.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Drink"), "html"nulltrue);
  265.             yield "</label>
  266. \t\t\t\t\t\t\t\t\t\t\t</li>
  267. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Breakfast\" type=\"checkbox\" value=\"Breakfast\" ";
  268.             // line 127
  269.             yield ((CoreExtension::inFilter("Breakfast"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.'127$this->source); })()), "meal_type", [], "any"falsefalsefalse127))) ? ("checked") : (""));
  270.             yield ">
  271. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Breakfast\">";
  272.             // line 128
  273.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Breakfast1"), "html"nulltrue);
  274.             yield "</label>
  275. \t\t\t\t\t\t\t\t\t\t\t</li>
  276. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"snack\" type=\"checkbox\" value=\"snack\" ";
  277.             // line 130
  278.             yield ((CoreExtension::inFilter("snack"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.'130$this->source); })()), "meal_type", [], "any"falsefalsefalse130))) ? ("checked") : (""));
  279.             yield ">
  280. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"snack\">";
  281.             // line 131
  282.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("snack"), "html"nulltrue);
  283.             yield "</label>
  284. \t\t\t\t\t\t\t\t\t\t\t</li>
  285. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"bakery\" type=\"checkbox\" value=\"bakery\" ";
  286.             // line 133
  287.             yield ((CoreExtension::inFilter("bakery"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.'133$this->source); })()), "meal_type", [], "any"falsefalsefalse133))) ? ("checked") : (""));
  288.             yield ">
  289. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"bakery\">";
  290.             // line 134
  291.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bakery"), "html"nulltrue);
  292.             yield "</label>
  293. \t\t\t\t\t\t\t\t\t\t\t</li>
  294. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Appetizer\" type=\"checkbox\" value=\"Appetizer\" ";
  295.             // line 136
  296.             yield ((CoreExtension::inFilter("Appetizer"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.'136$this->source); })()), "meal_type", [], "any"falsefalsefalse136))) ? ("checked") : (""));
  297.             yield ">
  298. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Appetizer\">";
  299.             // line 137
  300.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Appetizer"), "html"nulltrue);
  301.             yield "</label>
  302. \t\t\t\t\t\t\t\t\t\t\t</li>
  303. \t\t\t\t\t\t\t\t\t\t</ul>
  304. \t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder clear-filter\">
  305. \t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-link\" onclick=\"clearFilter('.type_checkbox')\">";
  306.             // line 141
  307.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Clear Filter"), "html"nulltrue);
  308.             yield "</a>
  309. \t\t\t\t\t\t\t\t\t\t</div>
  310. \t\t\t\t\t\t\t\t\t</div>
  311. \t\t\t\t\t\t\t\t</div>
  312. \t\t\t\t\t\t\t</div>
  313. \t\t\t\t\t\t\t<div class=\"apply-filter\">
  314. \t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" onclick=\"searchFilter(this)\" class=\"btn btn-custom btn-green\">";
  315.             // line 149
  316.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Apply Filter"), "html"nulltrue);
  317.             yield "</a>
  318. \t\t\t\t\t\t\t</div>
  319. \t\t\t\t\t\t</div>
  320. \t\t\t\t\t</div>
  321. \t\t\t\t\t<div class=\"col-12 col-md-12 col-xl-9 product-results\">
  322. \t\t\t\t\t\t<div class=\"recipe-box-holder\">
  323. \t\t\t\t\t\t\t<div class=\"row\">
  324. \t\t\t\t\t\t\t\t";
  325.             // line 159
  326.             $context['_parent'] = $context;
  327.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["recipes"]) || array_key_exists("recipes"$context) ? $context["recipes"] : (function () { throw new RuntimeError('Variable "recipes" does not exist.'159$this->source); })()));
  328.             foreach ($context['_seq'] as $context["_key"] => $context["menu_recipes"]) {
  329.                 // line 160
  330.                 yield "
  331. \t\t\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 col-lg-4 product-result\">
  332. \t\t\t\t\t\t\t\t\t\t<div class=\"slide\">
  333. \t\t\t\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
  334. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/";
  335.                 // line 164
  336.                 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.'164$this->source); })()), "request", [], "any"falsefalsefalse164), "locale", [], "any"falsefalsefalse164), "html"nulltrue);
  337.                 yield "/menu-builder/";
  338.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "url", [], "any"falsefalsefalse164), "html"nulltrue);
  339.                 yield "\" tabindex=\"0\">
  340. \t\t\t\t\t\t\t\t\t\t\t\t\t<figure
  341. \t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"slide-img\">
  342. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  343.                 // line 168
  344.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  345.                 if (CoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "featured_image", [], "any"falsefalsefalse168)) {
  346.                     // line 169
  347.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  348.                     yield CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "featured_image", [], "any"falsefalsefalse169), "thumbnail", ["354x244"], "method"falsefalsefalse169), "getHTML", [["imgAttributes" => ["class" => """alt" => CoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "name", [], "any"falsefalsefalse169)]]], "method"falsefalsefalse169);
  349.                     yield "
  350. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  351.                 }
  352.                 // line 171
  353.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t</figure>
  354. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  355. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"slide-content\">
  356. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"frecipes-box\">
  357. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/";
  358.                 // line 175
  359.                 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.'175$this->source); })()), "request", [], "any"falsefalsefalse175), "locale", [], "any"falsefalsefalse175), "html"nulltrue);
  360.                 yield "/menu-builder/";
  361.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "url", [], "any"falsefalsefalse175), "html"nulltrue);
  362.                 yield "\" tabindex=\"0\">
  363. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3>";
  364.                 // line 176
  365.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "name", [], "any"falsefalsefalse176), "html"nulltrue);
  366.                 yield "</h3>
  367. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  368. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>";
  369.                 // line 178
  370.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "short_description", [], "any"falsefalsefalse178), "html"nulltrue);
  371.                 yield "</p>
  372. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  373.                 // line 179
  374.                 if (CoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "featured_product", [], "any"falsefalsefalse179)) {
  375.                     // line 180
  376.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"chef-names\">";
  377.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "featured_product", [], "any"falsefalsefalse180), 0, [], "array"falsefalsefalse180), "brands", [], "any"falsefalsefalse180), "name", [], "any"falsefalsefalse180), "html"nulltrue);
  378.                     yield "</div>
  379. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  380.                 }
  381.                 // line 182
  382.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  383. \t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled social-info recipe-info\">
  384. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  385.                 // line 184
  386.                 $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.'184$this->source); })()), "session", [], "any"falsefalsefalse184), "get", ["loginUserName"], "method"falsefalsefalse184);
  387.                 // line 185
  388.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  389.                 if ( !(null === (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'185$this->source); })()))) {
  390.                     // line 186
  391.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  392.                     if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "id", [], "any"falsefalsefalse186), (isset($context["LikedId"]) || array_key_exists("LikedId"$context) ? $context["LikedId"] : (function () { throw new RuntimeError('Variable "LikedId" does not exist.'186$this->source); })()))) {
  393.                         // line 187
  394.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class='liked'>";
  395.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  396.                         yield "</li>
  397. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  398.                         // line 188
  399.                         $context["break"] = true;
  400.                         // line 189
  401.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  402.                     } else {
  403.                         // line 190
  404.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like training_list\" onclick=\"loyaltyProgram(this,";
  405.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "id", [], "any"falsefalsefalse190), "html"nulltrue);
  406.                         yield ",'";
  407.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "name", [], "any"falsefalsefalse190), "html"nulltrue);
  408.                         yield "',30,'Recipe','Like' , '";
  409.                         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.'190$this->source); })()), "request", [], "any"falsefalsefalse190), "locale", [], "any"falsefalsefalse190), "html"nulltrue);
  410.                         yield "')\">";
  411.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  412.                         yield "</li>
  413. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  414.                     }
  415.                     // line 193
  416.                     yield "
  417. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  418.                 } else {
  419.                     // line 195
  420.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like logged-out\">";
  421.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  422.                     yield "</li>
  423. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  424.                 }
  425.                 // line 197
  426.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Recipe','";
  427.                 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.'197$this->source); })()), "request", [], "any"falsefalsefalse197), "getSchemeAndHttpHost", [], "method"falsefalsefalse197) . "/") . 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.'197$this->source); })()), "request", [], "any"falsefalsefalse197), "locale", [], "any"falsefalsefalse197)) . "/menu-builder/") . CoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "url", [], "any"falsefalsefalse197)), "html"nulltrue);
  428.                 yield "' , '";
  429.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(" share goody recipe with your friends"), "html"nulltrue);
  430.                 yield "')\">
  431. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"loyaltyProgram(this,";
  432.                 // line 198
  433.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "id", [], "any"falsefalsefalse198), "html"nulltrue);
  434.                 yield ",'";
  435.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["menu_recipes"], "name", [], "any"falsefalsefalse198), "html"nulltrue);
  436.                 yield "',30,'Recipe','Share' , '";
  437.                 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.'198$this->source); })()), "request", [], "any"falsefalsefalse198), "locale", [], "any"falsefalsefalse198), "html"nulltrue);
  438.                 yield "')\">";
  439.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html"nulltrue);
  440.                 yield "</span>
  441. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>
  442. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  443.                 // line 201
  444.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  445.                 // line 202
  446.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
  447. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  448. \t\t\t\t\t\t\t\t\t\t\t</div>
  449. \t\t\t\t\t\t\t\t\t\t</div>
  450. \t\t\t\t\t\t\t\t\t</div>
  451. \t\t\t\t\t\t\t\t";
  452.             }
  453.             $_parent $context['_parent'];
  454.             unset($context['_seq'], $context['_key'], $context['menu_recipes'], $context['_parent']);
  455.             $context array_intersect_key($context$_parent) + $_parent;
  456.             // line 208
  457.             yield "
  458. \t\t\t\t\t\t\t</div>
  459. \t\t\t\t\t\t</div>
  460. \t\t\t\t\t\t<!--Start pagination Section-->
  461. \t\t\t\t\t\t";
  462.             // line 216
  463.             $context["page"] = 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.'216$this->source); })()), "request", [], "any"falsefalsefalse216), "get", ["page"], "method"falsefalsefalse216);
  464.             // line 217
  465.             yield "
  466. \t\t\t\t\t\t<section class=\"pagination-section\">
  467. \t\t\t\t\t\t\t<nav aria-label=\"Page navigation\" class=\"goody-navigation\">
  468. \t\t\t\t\t\t\t\t<ul class=\"pagination justify-content-center\">
  469. \t\t\t\t\t\t\t\t\t<li class=\"page-item\">
  470. \t\t\t\t\t\t\t\t\t\t";
  471.             // line 225
  472.             if (((isset($context["total_pages"]) || array_key_exists("total_pages"$context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.'225$this->source); })()) > 1)) {
  473.                 // line 226
  474.                 yield "\t\t\t\t\t\t\t\t\t\t\t";
  475.                 if ((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'226$this->source); })()) == 1) || ((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'226$this->source); })()) == ""))) {
  476.                     // line 227
  477.                     yield "
  478. \t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\">";
  479.                     // line 228
  480.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("First"), "html"nulltrue);
  481.                     yield "</a>
  482. \t\t\t\t\t\t\t\t\t\t\t";
  483.                 } else {
  484.                     // line 231
  485.                     yield "
  486. \t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"";
  487.                     // line 232
  488.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('pimcore_url')->getCallable()(["page" => 1]), "html"nulltrue);
  489.                     yield "\">";
  490.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("First"), "html"nulltrue);
  491.                     yield "</a>
  492. \t\t\t\t\t\t\t\t\t\t\t";
  493.                 }
  494.                 // line 235
  495.                 yield "\t\t\t\t\t\t\t\t\t\t";
  496.             }
  497.             // line 236
  498.             yield "\t\t\t\t\t\t\t\t\t</li>
  499. \t\t\t\t\t\t\t\t\t";
  500.             // line 238
  501.             if (((isset($context["total_pages"]) || array_key_exists("total_pages"$context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.'238$this->source); })()) > 1)) {
  502.                 // line 239
  503.                 yield "\t\t\t\t\t\t\t\t\t\t<li class=\"page-item ";
  504.                 yield (((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'239$this->source); })()) == 1) || ((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'239$this->source); })()) == ""))) ? ("active") : (""));
  505.                 yield "\">
  506. \t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"";
  507.                 // line 240
  508.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('pimcore_url')->getCallable()(["page" => 1]), "html"nulltrue);
  509.                 yield "\" tabindex=\"-1\">1</a>
  510. \t\t\t\t\t\t\t\t\t\t</li>
  511. \t\t\t\t\t\t\t\t\t";
  512.             }
  513.             // line 243
  514.             yield "
  515. \t\t\t\t\t\t\t\t\t";
  516.             // line 244
  517.             $context['_parent'] = $context;
  518.             $context['_seq'] = CoreExtension::ensureTraversable(range(1, (isset($context["total_pages"]) || array_key_exists("total_pages"$context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.'244$this->source); })())));
  519.             $context['loop'] = [
  520.               'parent' => $context['_parent'],
  521.               'index0' => 0,
  522.               'index'  => 1,
  523.               'first'  => true,
  524.             ];
  525.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  526.                 $length count($context['_seq']);
  527.                 $context['loop']['revindex0'] = $length 1;
  528.                 $context['loop']['revindex'] = $length;
  529.                 $context['loop']['length'] = $length;
  530.                 $context['loop']['last'] = === $length;
  531.             }
  532.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  533.                 // line 245
  534.                 yield "
  535. \t\t\t\t\t\t\t\t\t\t";
  536.                 // line 246
  537.                 if ((($context["i"] != 1) && ($context["i"] != (isset($context["total_pages"]) || array_key_exists("total_pages"$context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.'246$this->source); })())))) {
  538.                     // line 247
  539.                     yield "\t\t\t\t\t\t\t\t\t\t\t<li class=\"page-item ";
  540.                     yield (((CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse247) == (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'247$this->source); })()))) ? ("active") : (""));
  541.                     yield "\">
  542. \t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"";
  543.                     // line 248
  544.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('pimcore_url')->getCallable()(["page" => $context["i"]]), "html"nulltrue);
  545.                     yield "\">";
  546.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["i"], "html"nulltrue);
  547.                     yield "</a>
  548. \t\t\t\t\t\t\t\t\t\t\t</li>
  549. \t\t\t\t\t\t\t\t\t\t";
  550.                 }
  551.                 // line 251
  552.                 yield "\t\t\t\t\t\t\t\t\t";
  553.                 ++$context['loop']['index0'];
  554.                 ++$context['loop']['index'];
  555.                 $context['loop']['first'] = false;
  556.                 if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  557.                     --$context['loop']['revindex0'];
  558.                     --$context['loop']['revindex'];
  559.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  560.                 }
  561.             }
  562.             $_parent $context['_parent'];
  563.             unset($context['_seq'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  564.             $context array_intersect_key($context$_parent) + $_parent;
  565.             // line 252
  566.             yield "
  567. \t\t\t\t\t\t\t\t\t";
  568.             // line 254
  569.             if (((isset($context["total_pages"]) || array_key_exists("total_pages"$context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.'254$this->source); })()) > 1)) {
  570.                 // line 255
  571.                 yield "\t\t\t\t\t\t\t\t\t\t<li class=\"page-item ";
  572.                 yield ((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'255$this->source); })()) == (isset($context["total_pages"]) || array_key_exists("total_pages"$context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.'255$this->source); })()))) ? ("active") : (""));
  573.                 yield "\">
  574. \t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"";
  575.                 // line 256
  576.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('pimcore_url')->getCallable()(["page" => (isset($context["total_pages"]) || array_key_exists("total_pages"$context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.'256$this->source); })())]), "html"nulltrue);
  577.                 yield "\">";
  578.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["total_pages"]) || array_key_exists("total_pages"$context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.'256$this->source); })()), "html"nulltrue);
  579.                 yield "</a>
  580. \t\t\t\t\t\t\t\t\t\t</li>
  581. \t\t\t\t\t\t\t\t\t\t<li class=\"page-item\">
  582. \t\t\t\t\t\t\t\t\t\t\t";
  583.                 // line 261
  584.                 if (((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'261$this->source); })()) == (isset($context["total_pages"]) || array_key_exists("total_pages"$context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.'261$this->source); })()))) {
  585.                     // line 262
  586.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\">";
  587.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Last"), "html"nulltrue);
  588.                     yield "</a>
  589. \t\t\t\t\t\t\t\t\t\t\t";
  590.                 } else {
  591.                     // line 264
  592.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"";
  593.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('pimcore_url')->getCallable()(["page" => (isset($context["total_pages"]) || array_key_exists("total_pages"$context) ? $context["total_pages"] : (function () { throw new RuntimeError('Variable "total_pages" does not exist.'264$this->source); })())]), "html"nulltrue);
  594.                     yield "\">";
  595.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Last"), "html"nulltrue);
  596.                     yield "</a>
  597. \t\t\t\t\t\t\t\t\t\t\t";
  598.                 }
  599.                 // line 266
  600.                 yield "
  601. \t\t\t\t\t\t\t\t\t\t</li>
  602. \t\t\t\t\t\t\t\t\t";
  603.             }
  604.             // line 269
  605.             yield "
  606. \t\t\t\t\t\t\t\t</ul>
  607. \t\t\t\t\t\t\t</nav>
  608. \t\t\t\t\t\t</section>
  609. \t\t\t\t\t\t<!--End pagination Section-->
  610. \t\t\t\t\t</div>
  611. \t\t\t\t</div>
  612. \t\t\t</div>
  613. \t\t</section>
  614. \t";
  615.         }
  616.         // line 281
  617.         yield "\t<!--End Product Box-->
  618. \t<!--Start GFS Loyalty Program-->
  619. \t";
  620.         // line 285
  621.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content-loyalty", ["allowed" => ["loyalty-banner"]]);
  622.         // line 290
  623.         yield "
  624. \t<section class=\"menu-builder-loyalty d-none\">
  625. \t\t<div class=\"info-media loyalty-program\">
  626. \t\t\t<div class=\"container container-sm\">
  627. \t\t\t\t<div class=\"info-section\">
  628. \t\t\t\t\t<h5>";
  629.         // line 295
  630.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Loyalty Program"), "html"nulltrue);
  631.         yield "</h5>
  632. \t\t\t\t\t<h4>";
  633.         // line 296
  634.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["loyaltybanner"]) || array_key_exists("loyaltybanner"$context) ? $context["loyaltybanner"] : (function () { throw new RuntimeError('Variable "loyaltybanner" does not exist.'296$this->source); })()), "sliders", [], "any"falsefalsefalse296), 0, [], "array"falsefalsefalse296), "localizedfields", [], "any"falsefalsefalse296), "data", [], "any"falsefalsefalse296), "getLocalizedValue", ["heading"], "method"falsefalsefalse296), "html"nulltrue);
  635.         yield "</h4>
  636. \t\t\t\t\t<h3>";
  637.         // line 297
  638.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["loyaltybanner"]) || array_key_exists("loyaltybanner"$context) ? $context["loyaltybanner"] : (function () { throw new RuntimeError('Variable "loyaltybanner" does not exist.'297$this->source); })()), "sliders", [], "any"falsefalsefalse297), 0, [], "array"falsefalsefalse297), "localizedfields", [], "any"falsefalsefalse297), "data", [], "any"falsefalsefalse297), "getLocalizedValue", ["heading1"], "method"falsefalsefalse297), "html"nulltrue);
  639.         yield "</h3>
  640. \t\t\t\t\t<p>";
  641.         // line 298
  642.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["loyaltybanner"]) || array_key_exists("loyaltybanner"$context) ? $context["loyaltybanner"] : (function () { throw new RuntimeError('Variable "loyaltybanner" does not exist.'298$this->source); })()), "sliders", [], "any"falsefalsefalse298), 0, [], "array"falsefalsefalse298), "localizedfields", [], "any"falsefalsefalse298), "data", [], "any"falsefalsefalse298), "getLocalizedValue", ["description"], "method"falsefalsefalse298), "html"nulltrue);
  643.         yield "</p>
  644. \t\t\t\t\t<div class=\"btn-holder\">
  645. \t\t\t\t\t\t<div class=\"btn-border\">
  646. \t\t\t\t\t\t\t<a href=\"/";
  647.         // line 303
  648.         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.'303$this->source); })()), "request", [], "any"falsefalsefalse303), "locale", [], "any"falsefalsefalse303), "html"nulltrue);
  649.         yield "/loyalty-program\" class=\"btn btn-custom btn-green\">";
  650.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Discover More"), "html"nulltrue);
  651.         yield "</a>
  652. \t\t\t\t\t\t</div>
  653. \t\t\t\t\t\t<div class=\"newsletter-subscribe\">
  654. \t\t\t\t\t\t\t<h4 class=\"cstsmLP\">\"";
  655.         // line 306
  656.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Coming Soon"), "html"nulltrue);
  657.         yield "\"</h4>
  658. \t\t\t\t\t\t</div>
  659. \t\t\t\t\t\t<div class=\"btn-border btn-border-black d-none\">
  660. \t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-lg-o-black\">Sign-up Now!</a>
  661. \t\t\t\t\t\t</div>
  662. \t\t\t\t\t</div>
  663. \t\t\t\t</div>
  664. \t\t\t\t<div class=\"media-section \">
  665. \t\t\t\t\t<img src=\"";
  666.         // line 315
  667.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["loyaltybanner"]) || array_key_exists("loyaltybanner"$context) ? $context["loyaltybanner"] : (function () { throw new RuntimeError('Variable "loyaltybanner" does not exist.'315$this->source); })()), "sliders", [], "any"falsefalsefalse315), 0, [], "array"falsefalsefalse315), "slider_image", [], "any"falsefalsefalse315), "data", [], "any"falsefalsefalse315), "html"nulltrue);
  668.         yield "\" alt=\"loyalty banner slide image\">
  669. \t\t\t\t</div>
  670. \t\t\t</div>
  671. \t\t</div>
  672. \t</section>
  673. \t";
  674.         // line 321
  675.         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.'321$this->source); })()), "request", [], "any"falsefalsefalse321), "locale", [], "any"falsefalsefalse321) == "ar")) {
  676.             // line 322
  677.             yield "\t\t";
  678.             $context["topMenu"] = "/en/menu-builder";
  679.             // line 323
  680.             yield "\t";
  681.         } else {
  682.             // line 324
  683.             yield "\t\t";
  684.             $context["topMenu"] = "/ar/menu-builder";
  685.             // line 325
  686.             yield "\t";
  687.         }
  688.         // line 326
  689.         yield "\t<script>
  690. \t\tvar _TopMenuLink = \"";
  691.         // line 327
  692.         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.'327$this->source); })()), "html"nulltrue);
  693.         yield "\";
  694. \t</script>
  695. \t<!--End GFS Loyalty Program-->
  696. \t<script>
  697. \t\t// ";
  698.         // line 336
  699.         yield "
  700. \t\tfunction searchFilter(e) {
  701. \t\tlet new_path = 'category_id=';
  702. \t\tlet new_brand = '&brand_id=';
  703. \t\tlet new_type = '&meal_type=';
  704. \t\tlet category_count = 1
  705. \t\tlet brand_count = 1
  706. \t\tlet cuisine_count = 1
  707. \t\tlet type_count = 1
  708. \t\tlet query = '';
  709. \t\t\$('.category_checkbox').each(function (index, value) {
  710. \t\tif (\$(this).is(':checked')) {
  711. \t\tif (category_count > 1) {
  712. \t\tnew_path += '_';
  713. \t\t}
  714. \t\tnew_path += \$(this).val();
  715. \t\tcategory_count++;
  716. \t\t}
  717. \t\t});
  718. \t\t\$('.brand_checkbox').each(function (index, value) {
  719. \t\tif (\$(this).is(':checked')) {
  720. \t\tif (brand_count > 1) {
  721. \t\tnew_brand += '_';
  722. \t\t}
  723. \t\tnew_brand += \$(this).val();
  724. \t\tbrand_count++;
  725. \t\t}
  726. \t\t});
  727. \t\t\$('.type_checkbox').each(function (index, value) {
  728. \t\tif (\$(this).is(':checked')) {
  729. \t\tif (type_count > 1) {
  730. \t\tnew_type += '_';
  731. \t\t}
  732. \t\tnew_type += \$(this).val();
  733. \t\ttype_count++;
  734. \t\t}
  735. \t\t});
  736. \t\tif (\$('#search').val()) {
  737. \t\tquery = '&query=' + \$('#search').val();
  738. \t\t}
  739. \t\twindow.location.href = '?' + new_path + new_brand + new_type + query;
  740. \t\t}
  741. \t\tfunction clearFilter(c) {
  742. \t\t\$(c).each(function (index, value) {
  743. \t\t\$(this).prop('checked', false);
  744. \t\t});
  745. \t\t}
  746. \t</script>
  747. ";
  748.         
  749.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  750.         
  751.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  752.         yield from [];
  753.     }
  754.     /**
  755.      * @codeCoverageIgnore
  756.      */
  757.     public function getTemplateName(): string
  758.     {
  759.         return "menubuilder/menu-builder.html.twig";
  760.     }
  761.     /**
  762.      * @codeCoverageIgnore
  763.      */
  764.     public function isTraitable(): bool
  765.     {
  766.         return false;
  767.     }
  768.     /**
  769.      * @codeCoverageIgnore
  770.      */
  771.     public function getDebugInfo(): array
  772.     {
  773.         return array (  757 => 336,  750 => 327,  747 => 326,  744 => 325,  741 => 324,  738 => 323,  735 => 322,  733 => 321,  724 => 315,  712 => 306,  704 => 303,  696 => 298,  692 => 297,  688 => 296,  684 => 295,  677 => 290,  675 => 285,  669 => 281,  655 => 269,  650 => 266,  642 => 264,  636 => 262,  634 => 261,  624 => 256,  619 => 255,  617 => 254,  613 => 252,  599 => 251,  591 => 248,  586 => 247,  584 => 246,  581 => 245,  564 => 244,  561 => 243,  555 => 240,  550 => 239,  548 => 238,  544 => 236,  541 => 235,  533 => 232,  530 => 231,  524 => 228,  521 => 227,  518 => 226,  516 => 225,  506 => 217,  504 => 216,  494 => 208,  483 => 202,  481 => 201,  470 => 198,  463 => 197,  457 => 195,  453 => 193,  440 => 190,  437 => 189,  435 => 188,  430 => 187,  427 => 186,  424 => 185,  422 => 184,  418 => 182,  412 => 180,  410 => 179,  406 => 178,  401 => 176,  395 => 175,  389 => 171,  383 => 169,  380 => 168,  372 => 164,  366 => 160,  362 => 159,  349 => 149,  338 => 141,  331 => 137,  327 => 136,  322 => 134,  318 => 133,  313 => 131,  309 => 130,  304 => 128,  300 => 127,  295 => 125,  291 => 124,  286 => 122,  282 => 121,  277 => 119,  273 => 118,  268 => 116,  264 => 115,  254 => 108,  240 => 97,  234 => 93,  223 => 90,  212 => 89,  208 => 88,  198 => 81,  184 => 70,  179 => 67,  168 => 64,  157 => 63,  153 => 62,  143 => 55,  130 => 47,  124 => 44,  118 => 40,  116 => 39,  110 => 35,  107 => 30,  101 => 26,  99 => 20,  94 => 18,  90 => 16,  88 => 10,  84 => 9,  81 => 8,  79 => 7,  76 => 6,  63 => 5,  40 => 1,);
  774.     }
  775.     public function getSourceContext(): Source
  776.     {
  777.         return new Source("{% extends \"layout/layout.html.twig\" %}
  778. {# {% block title %}GFS::Menu Builder{% endblock %} #}
  779. {% block content %}
  780. \t{% if editmode %}
  781. \t\t{{'Recipe Categories'}}
  782. \t\t{{ pimcore_relations(\"recipecategory\", {
  783. \t\t\t\"types\": [\"object\"],
  784. \t\t\t\"subtypes\": {
  785. \t\t\t\t\"object\": [\"object\"]
  786. \t\t\t},
  787. \t\t\t\"classes\": [\"recipecategory\"]
  788. \t\t}) }}
  789. \t\t{{'Recipe Brands'}}
  790. \t\t{{ pimcore_relations(\"recipebrands\", {
  791. \t\t\t\"types\": [\"object\"],
  792. \t\t\t\"subtypes\": {
  793. \t\t\t\t\"object\": [\"object\"]
  794. \t\t\t},
  795. \t\t\t\"classes\": [\"brands\"]
  796. \t\t}) }}
  797. \t{% endif %}
  798. \t{{ 
  799. \t\t\tpimcore_areablock(\"content\", {
  800. \t\t\t\t\"allowed\": [\"menu-builder-main-area\"],
  801. \t\t\t\t
  802. \t\t\t})
  803. \t}}
  804. \t<!--Start Product Box-->
  805. \t{% if not editmode %}
  806. \t\t<section class=\"product-result-container recipe-result-container menu-builder\">
  807. \t\t\t<div class=\"container container-sm\">
  808. \t\t\t\t<div class=\"row\">
  809. \t\t\t\t\t<div class=\"col-12 col-md-12 col-xl-3 filter-box\">
  810. \t\t\t\t\t\t<h4 class=\"title\">{{'Filters'|trans}}</h4>
  811. \t\t\t\t\t\t<div class=\"filder-options\">
  812. \t\t\t\t\t\t\t<div class=\"input-holder\">
  813. \t\t\t\t\t\t\t\t<input type=\"text\" placeholder=\"{{'Search for product'|trans}}\" class=\"form-control\" name=\"query\" id=\"search\" value={{ filters.query }}>
  814. \t\t\t\t\t\t\t</div>
  815. \t\t\t\t\t\t</div>
  816. \t\t\t\t\t\t<div class=\"filter-accordion\">
  817. \t\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter1\">
  818. \t\t\t\t\t\t\t\t<div class=\"card-header\">
  819. \t\t\t\t\t\t\t\t\t<button type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse1\" aria-expanded=\"true\" aria-controls=\"collapse1\">
  820. \t\t\t\t\t\t\t\t\t\t{{'Category'|trans}}
  821. \t\t\t\t\t\t\t\t\t</button>
  822. \t\t\t\t\t\t\t\t</div>
  823. \t\t\t\t\t\t\t\t<div id=\"collapse1\" class=\"collapse show\" data-parent=\"#filter1\">
  824. \t\t\t\t\t\t\t\t\t<div class=\"card-body\">
  825. \t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled check-list\">
  826. \t\t\t\t\t\t\t\t\t\t\t{% for recipecategories in pimcore_relations(\"recipecategory\") %}
  827. \t\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox category_checkbox\" name='Category' id=\"{{recipecategories.id}}\" type=\"checkbox\" value=\"{{recipecategories.id}}\" {{recipecategories.id}} {{ (recipecategories.id in filters.category_ids) ? 'checked' : '' }}>
  828. \t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"{{recipecategories.id}}\">{{recipecategories.recipecategoryname}}</label>
  829. \t\t\t\t\t\t\t\t\t\t\t\t</li>
  830. \t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  831. \t\t\t\t\t\t\t\t\t\t</ul>
  832. \t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder clear-filter\">
  833. \t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-link\" onclick=\"clearFilter('.category_checkbox')\">{{'Clear Filter'|trans}}</a>
  834. \t\t\t\t\t\t\t\t\t\t</div>
  835. \t\t\t\t\t\t\t\t\t</div>
  836. \t\t\t\t\t\t\t\t</div>
  837. \t\t\t\t\t\t\t</div>
  838. \t\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter2\">
  839. \t\t\t\t\t\t\t\t<div class=\"card-header\">
  840. \t\t\t\t\t\t\t\t\t<button type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse2\" aria-expanded=\"true\" aria-controls=\"collapse2\">
  841. \t\t\t\t\t\t\t\t\t\t{{'Brands'|trans}}
  842. \t\t\t\t\t\t\t\t\t</button>
  843. \t\t\t\t\t\t\t\t</div>
  844. \t\t\t\t\t\t\t\t<div id=\"collapse2\" class=\"collapse show\" data-parent=\"#filter2\">
  845. \t\t\t\t\t\t\t\t\t<div class=\"card-body\">
  846. \t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled check-list\">
  847. \t\t\t\t\t\t\t\t\t\t\t{% for recipe_brands in pimcore_relations(\"recipebrands\") %}
  848. \t\t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox brand_checkbox\" id=\"{{recipe_brands.id}}\" type=\"checkbox\" value=\"{{recipe_brands.id}}\" {{recipe_brands.id}} {{ (recipe_brands.id in filters.brand_ids) ? 'checked' : ''}}>
  849. \t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"{{recipe_brands.id}}\">{{recipe_brands.name}}</label>
  850. \t\t\t\t\t\t\t\t\t\t\t\t</li>
  851. \t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  852. \t\t\t\t\t\t\t\t\t\t</ul>
  853. \t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder clear-filter\">
  854. \t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-link\" onclick=\"clearFilter('.brand_checkbox')\">{{'Clear Filter'|trans}}</a>
  855. \t\t\t\t\t\t\t\t\t\t</div>
  856. \t\t\t\t\t\t\t\t\t</div>
  857. \t\t\t\t\t\t\t\t</div>
  858. \t\t\t\t\t\t\t</div>
  859. \t\t\t\t\t\t\t<div class=\"card filter-card\" id=\"filter3\">
  860. \t\t\t\t\t\t\t\t<div class=\"card-header\">
  861. \t\t\t\t\t\t\t\t\t<button type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse3\" aria-expanded=\"true\" aria-controls=\"collapse3\">
  862. \t\t\t\t\t\t\t\t\t\t{{'Type'|trans}}
  863. \t\t\t\t\t\t\t\t\t</button>
  864. \t\t\t\t\t\t\t\t</div>
  865. \t\t\t\t\t\t\t\t<div id=\"collapse3\" class=\"collapse show\" data-parent=\"#filter3\">
  866. \t\t\t\t\t\t\t\t\t<div class=\"card-body\">
  867. \t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled check-list\">
  868. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Lunch\" type=\"checkbox\" value=\"Lunch\" {{ ('Lunch' in filters.meal_type) ? 'checked' : '' }}>
  869. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Lunch\">{{'Lunch'|trans}}</label>
  870. \t\t\t\t\t\t\t\t\t\t\t</li>
  871. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Dinner\" type=\"checkbox\" value=\"Dinner\" {{ ('Dinner' in filters.meal_type) ? 'checked' : '' }}>
  872. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Dinner\">{{'Dinner'|trans}}</label>
  873. \t\t\t\t\t\t\t\t\t\t\t</li>
  874. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Dessert\" type=\"checkbox\" value=\"Dessert\" {{ ('Dessert' in filters.meal_type) ? 'checked' : '' }}>
  875. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Dessert\">{{'Dessert'|trans}}</label>
  876. \t\t\t\t\t\t\t\t\t\t\t</li>
  877. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Drink\" type=\"checkbox\" value=\"Drink\" {{ ('Drink' in filters.meal_type) ? 'checked' : '' }}>
  878. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Drink\">{{'Drink'|trans}}</label>
  879. \t\t\t\t\t\t\t\t\t\t\t</li>
  880. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Breakfast\" type=\"checkbox\" value=\"Breakfast\" {{ ('Breakfast' in filters.meal_type) ? 'checked' : '' }}>
  881. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Breakfast\">{{'Breakfast1'|trans}}</label>
  882. \t\t\t\t\t\t\t\t\t\t\t</li>
  883. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"snack\" type=\"checkbox\" value=\"snack\" {{ ('snack' in filters.meal_type) ? 'checked' : '' }}>
  884. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"snack\">{{'snack'|trans}}</label>
  885. \t\t\t\t\t\t\t\t\t\t\t</li>
  886. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"bakery\" type=\"checkbox\" value=\"bakery\" {{ ('bakery' in filters.meal_type) ? 'checked' : '' }}>
  887. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"bakery\">{{'bakery'|trans}}</label>
  888. \t\t\t\t\t\t\t\t\t\t\t</li>
  889. \t\t\t\t\t\t\t\t\t\t\t<li><input class=\"styled-checkbox type_checkbox\" id=\"Appetizer\" type=\"checkbox\" value=\"Appetizer\" {{ ('Appetizer' in filters.meal_type) ? 'checked' : '' }}>
  890. \t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Appetizer\">{{'Appetizer'|trans}}</label>
  891. \t\t\t\t\t\t\t\t\t\t\t</li>
  892. \t\t\t\t\t\t\t\t\t\t</ul>
  893. \t\t\t\t\t\t\t\t\t\t<div class=\"btn-holder clear-filter\">
  894. \t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-link\" onclick=\"clearFilter('.type_checkbox')\">{{'Clear Filter'|trans}}</a>
  895. \t\t\t\t\t\t\t\t\t\t</div>
  896. \t\t\t\t\t\t\t\t\t</div>
  897. \t\t\t\t\t\t\t\t</div>
  898. \t\t\t\t\t\t\t</div>
  899. \t\t\t\t\t\t\t<div class=\"apply-filter\">
  900. \t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" onclick=\"searchFilter(this)\" class=\"btn btn-custom btn-green\">{{'Apply Filter'|trans}}</a>
  901. \t\t\t\t\t\t\t</div>
  902. \t\t\t\t\t\t</div>
  903. \t\t\t\t\t</div>
  904. \t\t\t\t\t<div class=\"col-12 col-md-12 col-xl-9 product-results\">
  905. \t\t\t\t\t\t<div class=\"recipe-box-holder\">
  906. \t\t\t\t\t\t\t<div class=\"row\">
  907. \t\t\t\t\t\t\t\t{% for menu_recipes in recipes %}
  908. \t\t\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 col-lg-4 product-result\">
  909. \t\t\t\t\t\t\t\t\t\t<div class=\"slide\">
  910. \t\t\t\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
  911. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/menu-builder/{{menu_recipes.url}}\" tabindex=\"0\">
  912. \t\t\t\t\t\t\t\t\t\t\t\t\t<figure
  913. \t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"slide-img\">
  914. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{# <img src=\"{{menu_recipes.featured_image}}\" alt=\"{{menu_recipes.name}}\"> #}
  915. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if menu_recipes.featured_image %}
  916. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ menu_recipes.featured_image.thumbnail('354x244').getHTML({imgAttributes: {class:'',alt: menu_recipes.name}})|raw }}
  917. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  918. \t\t\t\t\t\t\t\t\t\t\t\t\t</figure>
  919. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  920. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"slide-content\">
  921. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"frecipes-box\">
  922. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/menu-builder/{{menu_recipes.url}}\" tabindex=\"0\">
  923. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3>{{menu_recipes.name}}</h3>
  924. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  925. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{menu_recipes.short_description}}</p>
  926. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if menu_recipes.featured_product %}
  927. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"chef-names\">{{menu_recipes.featured_product[0].brands.name}}</div>
  928. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  929. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  930. \t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled social-info recipe-info\">
  931. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set user = app.session.get('loginUserName') %}
  932. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if user is not null %}
  933. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if menu_recipes.id in  LikedId %}
  934. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class='liked'>{{'Like'|trans}}</li>
  935. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set break = true %}
  936. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  937. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like training_list\" onclick=\"loyaltyProgram(this,{{menu_recipes.id}},'{{menu_recipes.name}}',30,'Recipe','Like' , '{{app.request.locale}}')\">{{'Like'|trans}}</li>
  938. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  939. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  940. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"like logged-out\">{{'Like'|trans}}</li>
  941. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  942. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Recipe','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/menu-builder/' ~ menu_recipes.url}}' , '{{ \" share goody recipe with your friends\"|trans }}')\">
  943. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"loyaltyProgram(this,{{menu_recipes.id}},'{{menu_recipes.name}}',30,'Recipe','Share' , '{{app.request.locale}}')\">{{'Share'|trans}}</span>
  944. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>
  945. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{# <li class=\"share\" onclick=\"sharemodal('Recipe','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/menu-builder/' ~ menu_recipes.url}}' , '{{ \"SHARE GOODY RECIPE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}</li> #}
  946. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{# <li class=\"save\" id=\"save\">Save</li>                             #}
  947. \t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
  948. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  949. \t\t\t\t\t\t\t\t\t\t\t</div>
  950. \t\t\t\t\t\t\t\t\t\t</div>
  951. \t\t\t\t\t\t\t\t\t</div>
  952. \t\t\t\t\t\t\t\t{% endfor %}
  953. \t\t\t\t\t\t\t</div>
  954. \t\t\t\t\t\t</div>
  955. \t\t\t\t\t\t<!--Start pagination Section-->
  956. \t\t\t\t\t\t{% set page = app.request.get('page') %}
  957. \t\t\t\t\t\t<section class=\"pagination-section\">
  958. \t\t\t\t\t\t\t<nav aria-label=\"Page navigation\" class=\"goody-navigation\">
  959. \t\t\t\t\t\t\t\t<ul class=\"pagination justify-content-center\">
  960. \t\t\t\t\t\t\t\t\t<li class=\"page-item\">
  961. \t\t\t\t\t\t\t\t\t\t{% if total_pages > 1 %}
  962. \t\t\t\t\t\t\t\t\t\t\t{% if page == 1 or page == ''%}
  963. \t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\">{{\"First\"|trans}}</a>
  964. \t\t\t\t\t\t\t\t\t\t\t{% else %}
  965. \t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"{{ pimcore_url({'page': 1}) }}\">{{\"First\"|trans}}</a>
  966. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  967. \t\t\t\t\t\t\t\t\t\t{% endif %}
  968. \t\t\t\t\t\t\t\t\t</li>
  969. \t\t\t\t\t\t\t\t\t{% if total_pages > 1 %}
  970. \t\t\t\t\t\t\t\t\t\t<li class=\"page-item {{ (page == 1 or page == '') ? 'active' : '' }}\">
  971. \t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"{{ pimcore_url({'page': 1}) }}\" tabindex=\"-1\">1</a>
  972. \t\t\t\t\t\t\t\t\t\t</li>
  973. \t\t\t\t\t\t\t\t\t{% endif %}
  974. \t\t\t\t\t\t\t\t\t{% for i in 1..total_pages %}
  975. \t\t\t\t\t\t\t\t\t\t{% if i != 1 and i != total_pages %}
  976. \t\t\t\t\t\t\t\t\t\t\t<li class=\"page-item {{ (loop.index == page) ? 'active' : '' }}\">
  977. \t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"{{ pimcore_url({'page': i}) }}\">{{i}}</a>
  978. \t\t\t\t\t\t\t\t\t\t\t</li>
  979. \t\t\t\t\t\t\t\t\t\t{% endif %}
  980. \t\t\t\t\t\t\t\t\t{% endfor %}
  981. \t\t\t\t\t\t\t\t\t{% if total_pages > 1 %}
  982. \t\t\t\t\t\t\t\t\t\t<li class=\"page-item {{ (page == total_pages) ? 'active' : '' }}\">
  983. \t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"{{ pimcore_url({'page': total_pages}) }}\">{{total_pages}}</a>
  984. \t\t\t\t\t\t\t\t\t\t</li>
  985. \t\t\t\t\t\t\t\t\t\t<li class=\"page-item\">
  986. \t\t\t\t\t\t\t\t\t\t\t{% if page == total_pages %}
  987. \t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\">{{\"Last\"|trans}}</a>
  988. \t\t\t\t\t\t\t\t\t\t\t{% else %}
  989. \t\t\t\t\t\t\t\t\t\t\t\t<a class=\"page-link\" href=\"{{ pimcore_url({'page': total_pages}) }}\">{{\"Last\"|trans}}</a>
  990. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  991. \t\t\t\t\t\t\t\t\t\t</li>
  992. \t\t\t\t\t\t\t\t\t{% endif %}
  993. \t\t\t\t\t\t\t\t</ul>
  994. \t\t\t\t\t\t\t</nav>
  995. \t\t\t\t\t\t</section>
  996. \t\t\t\t\t\t<!--End pagination Section-->
  997. \t\t\t\t\t</div>
  998. \t\t\t\t</div>
  999. \t\t\t</div>
  1000. \t\t</section>
  1001. \t{% endif %}
  1002. \t<!--End Product Box-->
  1003. \t<!--Start GFS Loyalty Program-->
  1004. \t{{ 
  1005. \t\t\tpimcore_areablock(\"content-loyalty\", {
  1006. \t\t\t\t\"allowed\": [\"loyalty-banner\"],
  1007. \t\t\t\t
  1008. \t\t\t})
  1009. \t}}
  1010. \t<section class=\"menu-builder-loyalty d-none\">
  1011. \t\t<div class=\"info-media loyalty-program\">
  1012. \t\t\t<div class=\"container container-sm\">
  1013. \t\t\t\t<div class=\"info-section\">
  1014. \t\t\t\t\t<h5>{{'Loyalty Program'|trans}}</h5>
  1015. \t\t\t\t\t<h4>{{ loyaltybanner.sliders[0].localizedfields.data.getLocalizedValue('heading')}}</h4>
  1016. \t\t\t\t\t<h3>{{ loyaltybanner.sliders[0].localizedfields.data.getLocalizedValue('heading1')}}</h3>
  1017. \t\t\t\t\t<p>{{ loyaltybanner.sliders[0].localizedfields.data.getLocalizedValue('description')}}</p>
  1018. \t\t\t\t\t<div class=\"btn-holder\">
  1019. \t\t\t\t\t\t<div class=\"btn-border\">
  1020. \t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/loyalty-program\" class=\"btn btn-custom btn-green\">{{'Discover More'|trans}}</a>
  1021. \t\t\t\t\t\t</div>
  1022. \t\t\t\t\t\t<div class=\"newsletter-subscribe\">
  1023. \t\t\t\t\t\t\t<h4 class=\"cstsmLP\">\"{{'Coming Soon'|trans}}\"</h4>
  1024. \t\t\t\t\t\t</div>
  1025. \t\t\t\t\t\t<div class=\"btn-border btn-border-black d-none\">
  1026. \t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-lg-o-black\">Sign-up Now!</a>
  1027. \t\t\t\t\t\t</div>
  1028. \t\t\t\t\t</div>
  1029. \t\t\t\t</div>
  1030. \t\t\t\t<div class=\"media-section \">
  1031. \t\t\t\t\t<img src=\"{{loyaltybanner.sliders[0].slider_image.data}}\" alt=\"loyalty banner slide image\">
  1032. \t\t\t\t</div>
  1033. \t\t\t</div>
  1034. \t\t</div>
  1035. \t</section>
  1036. \t{% if (app.request.locale =='ar') %}
  1037. \t\t{% set topMenu =\"/en/menu-builder\" %}
  1038. \t{% else %}
  1039. \t\t{% set topMenu =\"/ar/menu-builder\" %}
  1040. \t{% endif %}
  1041. \t<script>
  1042. \t\tvar _TopMenuLink = \"{{ topMenu }}\";
  1043. \t</script>
  1044. \t<!--End GFS Loyalty Program-->
  1045. \t<script>
  1046. \t\t// {# \$('.pagination li').on('click', function () {
  1047. \t\t// \$('.active').removeClass('active');
  1048. \t\t// \$(this).addClass('active');
  1049. \t\t// });
  1050. \t\t// #}
  1051. \t\tfunction searchFilter(e) {
  1052. \t\tlet new_path = 'category_id=';
  1053. \t\tlet new_brand = '&brand_id=';
  1054. \t\tlet new_type = '&meal_type=';
  1055. \t\tlet category_count = 1
  1056. \t\tlet brand_count = 1
  1057. \t\tlet cuisine_count = 1
  1058. \t\tlet type_count = 1
  1059. \t\tlet query = '';
  1060. \t\t\$('.category_checkbox').each(function (index, value) {
  1061. \t\tif (\$(this).is(':checked')) {
  1062. \t\tif (category_count > 1) {
  1063. \t\tnew_path += '_';
  1064. \t\t}
  1065. \t\tnew_path += \$(this).val();
  1066. \t\tcategory_count++;
  1067. \t\t}
  1068. \t\t});
  1069. \t\t\$('.brand_checkbox').each(function (index, value) {
  1070. \t\tif (\$(this).is(':checked')) {
  1071. \t\tif (brand_count > 1) {
  1072. \t\tnew_brand += '_';
  1073. \t\t}
  1074. \t\tnew_brand += \$(this).val();
  1075. \t\tbrand_count++;
  1076. \t\t}
  1077. \t\t});
  1078. \t\t\$('.type_checkbox').each(function (index, value) {
  1079. \t\tif (\$(this).is(':checked')) {
  1080. \t\tif (type_count > 1) {
  1081. \t\tnew_type += '_';
  1082. \t\t}
  1083. \t\tnew_type += \$(this).val();
  1084. \t\ttype_count++;
  1085. \t\t}
  1086. \t\t});
  1087. \t\tif (\$('#search').val()) {
  1088. \t\tquery = '&query=' + \$('#search').val();
  1089. \t\t}
  1090. \t\twindow.location.href = '?' + new_path + new_brand + new_type + query;
  1091. \t\t}
  1092. \t\tfunction clearFilter(c) {
  1093. \t\t\$(c).each(function (index, value) {
  1094. \t\t\$(this).prop('checked', false);
  1095. \t\t});
  1096. \t\t}
  1097. \t</script>
  1098. {% endblock %}
  1099. ""menubuilder/menu-builder.html.twig""/var/www/vhosts/centric.ae/gcs.centric.ae/templates/menubuilder/menu-builder.html.twig");
  1100.     }
  1101. }