var/cache/dev/twig/af/af4fbcc85719ef340d5978db2ade1b52.php line 54

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/resource_detail.html.twig */
  16. class __TwigTemplate_bb0a345e6df0a03d4bd4ba5442aa4aca 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.             'footer' => [$this'block_footer'],
  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/resource_detail.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/resource_detail.html.twig"));
  44.         $this->parent $this->loadTemplate("layout/layout.html.twig""Resources/resource_detail.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 4
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_content(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""content"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  62.         // line 5
  63.         yield "
  64.     <section class=\"resource-banner\">
  65.       <div class=\"resource-banner-media\">
  66.         <figure class=\"resource-banner-media-img\">
  67.           <img src=\"";
  68.         // line 9
  69.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'9$this->source); })()), "resource_banner", [], "any"falsefalsefalse9), "html"nulltrue);
  70.         yield "\" alt=\"cooking-banner\">
  71.           ";
  72.         // line 13
  73.         yield "        </figure>
  74.       </div>
  75.     </section>
  76.     <!-- End banner -->
  77.     <!--Start Main training search-->
  78.     <section class=\"bread-crumbs-section resources-breadcrumb\">
  79.       <div class=\"container container-lg\">
  80.         <div class=\"bread-crumbs-section-box\">
  81.           <div class=\"breadcrumb-holder\">
  82.             <ol class=\"breadcrumb\">
  83.               <li class=\"breadcrumb-item\"><a href=\"/";
  84.         // line 24
  85.         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.'24$this->source); })()), "request", [], "any"falsefalsefalse24), "locale", [], "any"falsefalsefalse24), "html"nulltrue);
  86.         yield "\">";
  87.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Home"), "html"nulltrue);
  88.         yield "</a></li>
  89.               <li class=\"breadcrumb-item\"><a href=\"/";
  90.         // line 25
  91.         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.'25$this->source); })()), "request", [], "any"falsefalsefalse25), "locale", [], "any"falsefalsefalse25), "html"nulltrue);
  92.         yield "/resources\">";
  93.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Resources"), "html"nulltrue);
  94.         yield "</a></li>
  95.               ";
  96.         // line 26
  97.         if (CoreExtension::getAttribute($this->env$this->source, ($context["resource"] ?? null), "category", [], "any"truetruefalse26)) {
  98.             // line 27
  99.             yield "              <li class=\"breadcrumb-item\"><a href=\"/";
  100.             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.'27$this->source); })()), "request", [], "any"falsefalsefalse27), "locale", [], "any"falsefalsefalse27), "html"nulltrue);
  101.             yield "/resources/";
  102.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'27$this->source); })()), "category", [], "any"falsefalsefalse27), "url", [], "any"falsefalsefalse27), "html"nulltrue);
  103.             yield "\">";
  104.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'27$this->source); })()), "category", [], "any"falsefalsefalse27), "name", [], "any"falsefalsefalse27), "html"nulltrue);
  105.             yield "</a></li>
  106.               ";
  107.         }
  108.         // line 29
  109.         yield "              <li class=\"breadcrumb-item\">";
  110.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'29$this->source); })()), "name", [], "any"falsefalsefalse29), "html"nulltrue);
  111.         yield "</li>
  112.             </ol>
  113.           </div>
  114.         </div>
  115.       </div>
  116.     </section>
  117.     <!--End Main training search-->
  118. <div id =\"invoice\">
  119.     <!-- Start Article -->
  120.     <section class=\"resource-article\">
  121.       <div class=\"container container-sm\">
  122.   
  123.         ";
  124.         // line 41
  125.         if ((isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'41$this->source); })())) {
  126.             // line 42
  127.             yield "        <div class=\"col-12 newsletterBanner-v2\">
  128.           <div class=\"row gy-4\">
  129.             <div class=\"col-lg-6\">
  130.               <h3 class=\"heading\">
  131.                 ";
  132.             // line 46
  133.             if (((isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'46$this->source); })()) &&  !(null === CoreExtension::getAttribute($this->env$this->source, (isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'46$this->source); })()), "title", [], "any"falsefalsefalse46)))) {
  134.                 // line 47
  135.                 yield "                  ";
  136.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'47$this->source); })()), "title", [], "any"falsefalsefalse47), "html"nulltrue);
  137.                 yield "
  138.                 ";
  139.             }
  140.             // line 49
  141.             yield "              </h3>
  142.               <div class=\"content\">
  143.                 <div class=\"imgLeft d-md-none\">
  144.                   ";
  145.             // line 52
  146.             if (((isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'52$this->source); })()) &&  !(null === CoreExtension::getAttribute($this->env$this->source, (isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'52$this->source); })()), "pdf", [], "any"falsefalsefalse52)))) {
  147.                 // line 53
  148.                 yield "                    <a href=\"";
  149.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'53$this->source); })()), "pdf", [], "any"falsefalsefalse53), "html"nulltrue);
  150.                 yield "\" target=\"_blank\">
  151.                       ";
  152.                 // line 54
  153.                 if (CoreExtension::getAttribute($this->env$this->source, (isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'54$this->source); })()), "detailImageMobile", [], "any"falsefalsefalse54)) {
  154.                     // line 55
  155.                     yield "                        <img src=\"";
  156.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'55$this->source); })()), "detailImageMobile", [], "any"falsefalsefalse55), "html"nulltrue);
  157.                     yield "\" alt=\"Newsletter-Image-Mobile\">
  158.                       ";
  159.                 }
  160.                 // line 56
  161.                 yield "     
  162.                     </a>
  163.                   ";
  164.             }
  165.             // line 59
  166.             yield "                  
  167.                 </div>
  168.                 <div class=\"contentDesc\">
  169.                   <p>
  170.                     ";
  171.             // line 63
  172.             if (((isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'63$this->source); })()) &&  !(null === CoreExtension::getAttribute($this->env$this->source, (isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'63$this->source); })()), "description", [], "any"falsefalsefalse63)))) {
  173.                 // line 64
  174.                 yield "                      ";
  175.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'64$this->source); })()), "description", [], "any"falsefalsefalse64), "html"nulltrue);
  176.                 yield "
  177.                     ";
  178.             }
  179.             // line 66
  180.             yield "                  </p>
  181.                   ";
  182.             // line 67
  183.             $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.'67$this->source); })()), "session", [], "any"falsefalsefalse67), "get", ["loginUserName"], "method"falsefalsefalse67);
  184.             // line 68
  185.             yield "                  ";
  186.             if ((isset($context["newsletterPdf"]) || array_key_exists("newsletterPdf"$context) ? $context["newsletterPdf"] : (function () { throw new RuntimeError('Variable "newsletterPdf" does not exist.'68$this->source); })())) {
  187.                 // line 69
  188.                 yield "                    ";
  189.                 if ( !(null === (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'69$this->source); })()))) {
  190.                     // line 70
  191.                     yield "                      <a href=\"";
  192.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["newsletterPdf"]) || array_key_exists("newsletterPdf"$context) ? $context["newsletterPdf"] : (function () { throw new RuntimeError('Variable "newsletterPdf" does not exist.'70$this->source); })()), "html"nulltrue);
  193.                     yield "\" target=\"_blank\" class=\"btn btn-custom btn-lg-o-yellow-white mt-md-5\">
  194.                         ";
  195.                     // line 71
  196.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Read our Newsletter"), "html"nulltrue);
  197.                     yield "
  198.                       </a>
  199.                     ";
  200.                 } else {
  201.                     // line 74
  202.                     yield "                      <a href=\"javascript:void(0);\" onclick=\"storePdfForLater('";
  203.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["newsletterPdf"]) || array_key_exists("newsletterPdf"$context) ? $context["newsletterPdf"] : (function () { throw new RuntimeError('Variable "newsletterPdf" does not exist.'74$this->source); })()), "html"nulltrue);
  204.                     yield "')\" class=\"btn btn-custom btn-lg-o-yellow-white mt-md-5\">
  205.                         ";
  206.                     // line 75
  207.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Read our Newsletter"), "html"nulltrue);
  208.                     yield "
  209.                       </a>
  210.                     ";
  211.                 }
  212.                 // line 78
  213.                 yield "                  ";
  214.             }
  215.             // line 79
  216.             yield "                </div>
  217.               </div>
  218.             </div>
  219.             <div class=\"col-lg-6 d-none d-md-block pt-4 pt-lg-0\">
  220.               <div class=\"imgRight\">
  221.               ";
  222.             // line 84
  223.             if (((isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'84$this->source); })()) &&  !(null === CoreExtension::getAttribute($this->env$this->source, (isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'84$this->source); })()), "pdf", [], "any"falsefalsefalse84)))) {
  224.                 // line 85
  225.                 yield "                <a href=\"";
  226.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'85$this->source); })()), "pdf", [], "any"falsefalsefalse85), "html"nulltrue);
  227.                 yield "\" class=\"w-100\" target=\"_blank\">
  228.                   ";
  229.                 // line 86
  230.                 if (CoreExtension::getAttribute($this->env$this->source, (isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'86$this->source); })()), "detailImage", [], "any"falsefalsefalse86)) {
  231.                     // line 87
  232.                     yield "                    <img src=\"";
  233.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["newsletter"]) || array_key_exists("newsletter"$context) ? $context["newsletter"] : (function () { throw new RuntimeError('Variable "newsletter" does not exist.'87$this->source); })()), "detailImage", [], "any"falsefalsefalse87), "html"nulltrue);
  234.                     yield "\" class=\"w-100\" alt=\"Newsletter-Image\">
  235.                   ";
  236.                 }
  237.                 // line 88
  238.                 yield "     
  239.                 </a>
  240.               ";
  241.             }
  242.             // line 91
  243.             yield "              </div>
  244.             </div>
  245.           </div>
  246.         </div>
  247.         ";
  248.         }
  249.         // line 96
  250.         yield "      <div class=\"col-12\">
  251.         <div class=\"row justify-content-center mb-5\">
  252.           
  253.           <div class=\"col-12 px-0  d-none\">
  254.           ";
  255.         // line 100
  256.         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.'100$this->source); })()), "request", [], "any"falsefalsefalse100), "locale", [], "any"falsefalsefalse100) == "en")) {
  257.             // line 101
  258.             yield "            <a href=\"https://zoom.us/webinar/register/6417301077993/WN_Uy4Xiz0OT2SuJn0cCsaSUQ\" class=\"banner-transition-update\">
  259.               <img class=\"img-fluid w-100\" src=\"/resourcebanner/webinar-announcement-EN.jpg\" alt=\"webinar announcement\">
  260.             </a>
  261.             ";
  262.         } else {
  263.             // line 105
  264.             yield "            <a href=\"https://zoom.us/webinar/register/6417301077993/WN_Uy4Xiz0OT2SuJn0cCsaSUQ\" class=\"banner-transition-update\">
  265.               <img class=\"img-fluid w-100\" src=\"/resourcebanner/webinar-announcement-AR.jpg\" alt=\"webinar announcement\">
  266.             </a>
  267.           ";
  268.         }
  269.         // line 109
  270.         yield "          </div>
  271.           <div class=\"col-12 d-none \">
  272.             <a href=\"https://zoom.us/webinar/register/6417301077993/WN_Uy4Xiz0OT2SuJn0cCsaSUQ\" >
  273.               <img class=\"img-fluid w-100\" src=\"/resourcebanner/webinar-announcement-responsive.jpg\" alt=\"webinar announcement responsive\">
  274.             </a>
  275.           </div>
  276.         </div>
  277.       </div>
  278.         <div class=\"row\">
  279.           <div class=\"col-xl-9\">
  280.             <div class=\"resource-article-info\">
  281.               <h5>";
  282.         // line 120
  283.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'120$this->source); })()), "category", [], "any"falsefalsefalse120), "name", [], "any"falsefalsefalse120), "html"nulltrue);
  284.         yield "</h5>
  285.               <h1 class=\"resource-blog\">";
  286.         // line 121
  287.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'121$this->source); })()), "name", [], "any"falsefalsefalse121), "html"nulltrue);
  288.         yield "</h1>
  289.                ";
  290.         // line 122
  291.         $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.'122$this->source); })()), "session", [], "any"falsefalsefalse122), "get", ["loginUserName"], "method"falsefalsefalse122);
  292.         // line 123
  293.         yield "               ";
  294.         if ( !(null === (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'123$this->source); })()))) {
  295.             // line 124
  296.             yield "              <ul class=\"list-unstyled recipe-info\">
  297.                 <li class=\"share\"  onclick = \"loyaltyProgram(this, ";
  298.             // line 125
  299.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'125$this->source); })()), "id", [], "any"falsefalsefalse125), "html"nulltrue);
  300.             yield ",'";
  301.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'125$this->source); })()), "name", [], "any"falsefalsefalse125), "html"nulltrue);
  302.             yield "',10,'Article','Share')\"><span onclick = \"sharemodal('Article','";
  303.             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.'125$this->source); })()), "request", [], "any"falsefalsefalse125), "getSchemeAndHttpHost", [], "method"falsefalsefalse125) . "/") . 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.'125$this->source); })()), "request", [], "any"falsefalsefalse125), "locale", [], "any"falsefalsefalse125)) . "/resource/") . CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'125$this->source); })()), "url", [], "any"falsefalsefalse125)), "html"nulltrue);
  304.             yield "','";
  305.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "html"nulltrue);
  306.             yield "')\">";
  307.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html"nulltrue);
  308.             yield "</span></li>
  309.                 ";
  310.             // line 126
  311.             if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["Liked_detail_article"]) || array_key_exists("Liked_detail_article"$context) ? $context["Liked_detail_article"] : (function () { throw new RuntimeError('Variable "Liked_detail_article" does not exist.'126$this->source); })())) == 0)) {
  312.                 // line 127
  313.                 yield "                <li class=\"like article-detail\"  onclick = \"loyaltyProgram(this, ";
  314.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'127$this->source); })()), "id", [], "any"falsefalsefalse127), "html"nulltrue);
  315.                 yield ",'";
  316.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'127$this->source); })()), "name", [], "any"falsefalsefalse127), "html"nulltrue);
  317.                 yield "',10,'Article','Like', '";
  318.                 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.'127$this->source); })()), "request", [], "any"falsefalsefalse127), "locale", [], "any"falsefalsefalse127), "html"nulltrue);
  319.                 yield "')\">";
  320.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  321.                 yield "</li>
  322.                 ";
  323.             } else {
  324.                 // line 129
  325.                 yield "                      <li class= 'liked'>";
  326.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  327.                 yield "</li>
  328.                 ";
  329.             }
  330.             // line 132
  331.             yield "                <li class=\"download-black d-none\" id =\"download\" onclick = \"loyaltyProgram(this, ";
  332.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'132$this->source); })()), "id", [], "any"falsefalsefalse132), "html"nulltrue);
  333.             yield ",'";
  334.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'132$this->source); })()), "name", [], "any"falsefalsefalse132), "html"nulltrue);
  335.             yield "',10,'Article','Save')\">";
  336.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html"nulltrue);
  337.             yield "</li>
  338.               </ul>
  339.               ";
  340.         } else {
  341.             // line 135
  342.             yield "              <ul class=\"list-unstyled recipe-info\">
  343.                 <li class=\"share\" onclick = \"sharemodal('Article','";
  344.             // line 136
  345.             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.'136$this->source); })()), "request", [], "any"falsefalsefalse136), "getSchemeAndHttpHost", [], "method"falsefalsefalse136) . "/") . 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.'136$this->source); })()), "request", [], "any"falsefalsefalse136), "locale", [], "any"falsefalsefalse136)) . "/resource/") . CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'136$this->source); })()), "url", [], "any"falsefalsefalse136)), "html"nulltrue);
  346.             yield "','";
  347.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "html"nulltrue);
  348.             yield "')\">";
  349.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html"nulltrue);
  350.             yield "</li>
  351.                 <li class=\"like logged-out\">";
  352.             // line 137
  353.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  354.             yield "</li>
  355.                 <li class=\"download-black d-none\" id =\"download\">";
  356.             // line 138
  357.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html"nulltrue);
  358.             yield "</li>
  359.               </ul>
  360.               ";
  361.         }
  362.         // line 141
  363.         yield "              <p class=\"resource-article-info-qoute\">";
  364.         yield CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'141$this->source); })()), "main_description", [], "any"falsefalsefalse141);
  365.         yield "</p>              
  366.               ";
  367.         // line 142
  368.         $context['_parent'] = $context;
  369.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'142$this->source); })()), "resources", [], "any"falsefalsefalse142));
  370.         foreach ($context['_seq'] as $context["_key"] => $context["description"]) {
  371.             // line 143
  372.             yield "                ";
  373.             if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["description"], "localizedfields", [], "any"falsefalsefalse143), "data", [], "any"falsefalsefalse143), "getLocalizedValue", ["resource_heading"], "method"falsefalsefalse143)) {
  374.                 // line 144
  375.                 yield "                  <h2 class=\"resource-blog\">";
  376.                 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["description"], "localizedfields", [], "any"falsefalsefalse144), "data", [], "any"falsefalsefalse144), "getLocalizedValue", ["resource_heading"], "method"falsefalsefalse144), "html"nulltrue);
  377.                 yield "</h2>
  378.                 ";
  379.             }
  380.             // line 146
  381.             yield "                <p>";
  382.             yield CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["description"], "localizedfields", [], "any"falsefalsefalse146), "data", [], "any"falsefalsefalse146), "getLocalizedValue", ["description"], "method"falsefalsefalse146);
  383.             yield "</p>
  384.                 ";
  385.             // line 147
  386.             if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["description"], "localizedfields", [], "any"falsefalsefalse147), "data", [], "any"falsefalsefalse147), "getLocalizedValue", ["resource_video"], "method"falsefalsefalse147)) {
  387.                 // line 148
  388.                 yield "                  <div class=\"media-section\">
  389.                     <video poster=\"assets/images/media-01.png\">
  390.                       <source src=\"/static/assets/videos/oceans.mp4\" type=\"video/mp4\">
  391.                       Your browser does not support the video tag.
  392.                     </video>
  393.                     <div class=\"control-options\">
  394.                       <i class=\"fas fa-play-circle\"></i>
  395.                       <i class=\"fas fa-pause-circle\"></i>
  396.                     </div>
  397.                   </div>
  398.                 ";
  399.             }
  400.             // line 159
  401.             yield "                ";
  402.             if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["description"], "localizedfields", [], "any"falsefalsefalse159), "data", [], "any"falsefalsefalse159), "getLocalizedValue", ["resource_image"], "method"falsefalsefalse159)) {
  403.                 // line 160
  404.                 yield "                <div class=\"resource-article-info-media\">
  405.                   <figure class=\"resource-article-info-media-img\">
  406.                     <img src=\"";
  407.                 // line 162
  408.                 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["description"], "localizedfields", [], "any"falsefalsefalse162), "data", [], "any"falsefalsefalse162), "getLocalizedValue", ["resource_image"], "method"falsefalsefalse162), "html"nulltrue);
  409.                 yield "\" alt=\"article-img\">
  410.                   </figure>
  411.                 </div>
  412.                 ";
  413.             }
  414.             // line 166
  415.             yield "              ";
  416.         }
  417.         $_parent $context['_parent'];
  418.         unset($context['_seq'], $context['_key'], $context['description'], $context['_parent']);
  419.         $context array_intersect_key($context$_parent) + $_parent;
  420.         // line 167
  421.         yield "              ";
  422.         $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.'167$this->source); })()), "session", [], "any"falsefalsefalse167), "get", ["loginUserName"], "method"falsefalsefalse167);
  423.         // line 168
  424.         yield "               ";
  425.         if ( !(null === (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'168$this->source); })()))) {
  426.             // line 169
  427.             yield "              <ul class=\"list-unstyled recipe-info\">
  428.                 <li class=\"share\"  onclick = \"loyaltyProgram(this,";
  429.             // line 170
  430.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'170$this->source); })()), "id", [], "any"falsefalsefalse170), "html"nulltrue);
  431.             yield ",'";
  432.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'170$this->source); })()), "name", [], "any"falsefalsefalse170), "html"nulltrue);
  433.             yield "',10,'Article','Share')\"><span onclick = \"sharemodal('Article','";
  434.             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.'170$this->source); })()), "request", [], "any"falsefalsefalse170), "getSchemeAndHttpHost", [], "method"falsefalsefalse170) . "/") . 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.'170$this->source); })()), "request", [], "any"falsefalsefalse170), "locale", [], "any"falsefalsefalse170)) . "/resource/") . CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'170$this->source); })()), "url", [], "any"falsefalsefalse170)), "html"nulltrue);
  435.             yield "','";
  436.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "html"nulltrue);
  437.             yield "')\">";
  438.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html"nulltrue);
  439.             yield "</span></li>
  440.                 ";
  441.             // line 171
  442.             if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["Liked_detail_article"]) || array_key_exists("Liked_detail_article"$context) ? $context["Liked_detail_article"] : (function () { throw new RuntimeError('Variable "Liked_detail_article" does not exist.'171$this->source); })())) == 0)) {
  443.                 // line 172
  444.                 yield "                
  445.                 <li class=\"like article-detail\"  onclick = \"loyaltyProgram(this,";
  446.                 // line 173
  447.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'173$this->source); })()), "id", [], "any"falsefalsefalse173), "html"nulltrue);
  448.                 yield ",'";
  449.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'173$this->source); })()), "name", [], "any"falsefalsefalse173), "html"nulltrue);
  450.                 yield "',10,'Article','Like', '";
  451.                 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.'173$this->source); })()), "request", [], "any"falsefalsefalse173), "locale", [], "any"falsefalsefalse173), "html"nulltrue);
  452.                 yield "')\">";
  453.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  454.                 yield "</li>
  455.                 ";
  456.             } else {
  457.                 // line 175
  458.                 yield "                      <li class= 'liked'>";
  459.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  460.                 yield "</li>
  461.                 ";
  462.             }
  463.             // line 178
  464.             yield "                <li class=\"download-black d-none\" id =\"download\" onclick = \"loyaltyProgram(this,";
  465.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'178$this->source); })()), "id", [], "any"falsefalsefalse178), "html"nulltrue);
  466.             yield ",'";
  467.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'178$this->source); })()), "name", [], "any"falsefalsefalse178), "html"nulltrue);
  468.             yield "',10,'Article','Save')\">";
  469.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html"nulltrue);
  470.             yield "</li>
  471.               </ul>
  472.               ";
  473.         } else {
  474.             // line 181
  475.             yield "              <ul class=\"list-unstyled recipe-info\">
  476.                 <li class=\"share\" onclick = \"sharemodal('Article','";
  477.             // line 182
  478.             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.'182$this->source); })()), "request", [], "any"falsefalsefalse182), "getSchemeAndHttpHost", [], "method"falsefalsefalse182) . "/") . 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.'182$this->source); })()), "request", [], "any"falsefalsefalse182), "locale", [], "any"falsefalsefalse182)) . "/resource/") . CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'182$this->source); })()), "url", [], "any"falsefalsefalse182)), "html"nulltrue);
  479.             yield "','";
  480.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "html"nulltrue);
  481.             yield "')\">";
  482.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html"nulltrue);
  483.             yield "</li>
  484.                 <li class=\"like logged-out\">";
  485.             // line 183
  486.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  487.             yield "</li>
  488.                 <li class=\"download-black d-none\" id =\"download\">";
  489.             // line 184
  490.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html"nulltrue);
  491.             yield "</li>
  492.               </ul>
  493.               ";
  494.         }
  495.         // line 187
  496.         yield "
  497.               ";
  498.         // line 204
  499.         yield "
  500.             </div>
  501.           </div>
  502.           <div class=\"col-xl-3\">
  503.             <div class=\"resource-article-related\">
  504.               <!--Start Featured Recipes Section-->
  505.               <section class=\"featured-recipes-section inner-frecipes-section all-event-section related-article-section\">
  506.                 <div class=\"container container-sm\">
  507.                   <h2 class=\"heading related-article-headingg\">";
  508.         // line 212
  509.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Related Articles"), "html"nulltrue);
  510.         yield "</h2>
  511.                   <div class=\"featured-recipes\">
  512.                     <div class=\"custom-slider\">
  513.                       ";
  514.         // line 215
  515.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'215$this->source); })()), "related_article", [], "any"falsefalsefalse215)) {
  516.             // line 216
  517.             yield "                        ";
  518.             $context['_parent'] = $context;
  519.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'216$this->source); })()), "related_article", [], "any"falsefalsefalse216));
  520.             foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  521.                 // line 217
  522.                 yield "                        <div class=\"slide-holder\">
  523.                           <div class=\"slide-holder\">
  524.                            <a href=\"/";
  525.                 // line 219
  526.                 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.'219$this->source); })()), "request", [], "any"falsefalsefalse219), "locale", [], "any"falsefalsefalse219), "html"nulltrue);
  527.                 yield "/resource/";
  528.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "url", [], "any"falsefalsefalse219), "html"nulltrue);
  529.                 yield "\">
  530.                             <figure class=\"slide-img\">
  531.                               <img src=\"";
  532.                 // line 221
  533.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "image", [], "any"falsefalsefalse221), "html"nulltrue);
  534.                 yield "\" alt=\"";
  535.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "name", [], "any"falsefalsefalse221), "html"nulltrue);
  536.                 yield "\">
  537.                             </figure><a/>
  538.                             <div class=\"slide-content\">
  539.                               <div class=\"frecipes-box\">
  540.                                 <a href=\"/";
  541.                 // line 225
  542.                 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.'225$this->source); })()), "request", [], "any"falsefalsefalse225), "locale", [], "any"falsefalsefalse225), "html"nulltrue);
  543.                 yield "/resource/";
  544.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "url", [], "any"falsefalsefalse225), "html"nulltrue);
  545.                 yield "\" class=\"text-decoration-none\"><h3>";
  546.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "name", [], "any"falsefalsefalse225), "html"nulltrue);
  547.                 yield "</h3></a>
  548.                                 <p>";
  549.                 // line 226
  550.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "main_description", [], "any"falsefalsefalse226), "html"nulltrue);
  551.                 yield "</p>
  552.                               </div>
  553.                               ";
  554.                 // line 228
  555.                 $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.'228$this->source); })()), "session", [], "any"falsefalsefalse228), "get", ["loginUserName"], "method"falsefalsefalse228);
  556.                 // line 229
  557.                 yield "                              ";
  558.                 if ( !(null === (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'229$this->source); })()))) {
  559.                     yield "  
  560.                               <ul class=\"list-unstyled recipe-info\">
  561.                                 <li class=\"share\"  onclick = \"loyaltyProgram(this,";
  562.                     // line 231
  563.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "id", [], "any"falsefalsefalse231), "html"nulltrue);
  564.                     yield ",'";
  565.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "name", [], "any"falsefalsefalse231), "html"nulltrue);
  566.                     yield "',10,'Article','Share')\"><span onclick = \"sharemodal('Article','";
  567.                     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.'231$this->source); })()), "request", [], "any"falsefalsefalse231), "getSchemeAndHttpHost", [], "method"falsefalsefalse231) . "/") . 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.'231$this->source); })()), "request", [], "any"falsefalsefalse231), "locale", [], "any"falsefalsefalse231)) . "/resource/") . CoreExtension::getAttribute($this->env$this->source$context["article"], "url", [], "any"falsefalsefalse231)), "html"nulltrue);
  568.                     yield "','";
  569.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "html"nulltrue);
  570.                     yield "')\">";
  571.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html"nulltrue);
  572.                     yield "</span></li>
  573.                                 ";
  574.                     // line 232
  575.                     if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env$this->source$context["article"], "id", [], "any"falsefalsefalse232), (isset($context["Liked_related_article_Ids"]) || array_key_exists("Liked_related_article_Ids"$context) ? $context["Liked_related_article_Ids"] : (function () { throw new RuntimeError('Variable "Liked_related_article_Ids" does not exist.'232$this->source); })()))) {
  576.                         // line 233
  577.                         yield "                                 <li class= 'liked'>";
  578.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  579.                         yield "</li>
  580.                                   ";
  581.                     } else {
  582.                         // line 235
  583.                         yield "                                    <li class=\"like related_article\"  onclick = \"loyaltyProgram(this,";
  584.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "id", [], "any"falsefalsefalse235), "html"nulltrue);
  585.                         yield ",'";
  586.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "name", [], "any"falsefalsefalse235), "html"nulltrue);
  587.                         yield "',10,'Article','Like', '";
  588.                         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.'235$this->source); })()), "request", [], "any"falsefalsefalse235), "locale", [], "any"falsefalsefalse235), "html"nulltrue);
  589.                         yield "')\">";
  590.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  591.                         yield "</li>
  592.                                   ";
  593.                     }
  594.                     // line 238
  595.                     yield "                                
  596.                                 <li class=\"download-black d-none\"  onclick = \"loyaltyProgram(this,";
  597.                     // line 239
  598.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "id", [], "any"falsefalsefalse239), "html"nulltrue);
  599.                     yield ",'";
  600.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "name", [], "any"falsefalsefalse239), "html"nulltrue);
  601.                     yield "',10,'Article','Save')\">";
  602.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html"nulltrue);
  603.                     yield "</li>
  604.                               </ul>
  605.                               ";
  606.                 } else {
  607.                     // line 242
  608.                     yield "                              <ul class=\"list-unstyled recipe-info\">
  609.                                 <li class=\"share\" onclick = \"sharemodal('Article','";
  610.                     // line 243
  611.                     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.'243$this->source); })()), "request", [], "any"falsefalsefalse243), "getSchemeAndHttpHost", [], "method"falsefalsefalse243) . "/") . 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.'243$this->source); })()), "request", [], "any"falsefalsefalse243), "locale", [], "any"falsefalsefalse243)) . "/resource/") . CoreExtension::getAttribute($this->env$this->source$context["article"], "url", [], "any"falsefalsefalse243)), "html"nulltrue);
  612.                     yield "','";
  613.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "html"nulltrue);
  614.                     yield "')\">";
  615.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html"nulltrue);
  616.                     yield "</li>
  617.                                 <li class=\"like logged-out\"  >";
  618.                     // line 244
  619.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  620.                     yield "</li>
  621.                                 <li class=\"download-black d-none\"  >";
  622.                     // line 245
  623.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html"nulltrue);
  624.                     yield "</li>
  625.                               </ul>
  626.                               ";
  627.                 }
  628.                 // line 248
  629.                 yield "                            </div>
  630.                           </div>
  631.                         </div>
  632.                         ";
  633.             }
  634.             $_parent $context['_parent'];
  635.             unset($context['_seq'], $context['_key'], $context['article'], $context['_parent']);
  636.             $context array_intersect_key($context$_parent) + $_parent;
  637.             // line 252
  638.             yield "                      ";
  639.         } else {
  640.             // line 253
  641.             yield "                      No Related Article
  642.                       ";
  643.         }
  644.         // line 255
  645.         yield "                    </div>
  646.                   </div>
  647.                 </div>
  648.               </section>
  649.               <!--End Featured Recipes Section-->
  650.             </div>
  651.           </div>
  652.         </div>
  653.       </div>
  654.     </section>
  655.     <!-- End Article -->
  656. </div>
  657.         <!--Start Category Section -->
  658.            <section class=\"featured-categories resource-featured-categories\">
  659.             <div class=\"container container-sm\">
  660.               <div class=\"featured-categories-section\">
  661.                 <h2 class=\"heading\">";
  662.         // line 271
  663.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("More Topics"), "html"nulltrue);
  664.         yield "</h2>
  665.                 <div class=\"featured-categories-section-wrapper\">
  666.                   ";
  667.         // line 273
  668.         $context['_parent'] = $context;
  669.         $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.'273$this->source); })()));
  670.         foreach ($context['_seq'] as $context["_key"] => $context["topic"]) {
  671.             // line 274
  672.             yield "                  <div class=\"featured-categories-section-wrapper-item\">
  673.                   <a href=\"/";
  674.             // line 275
  675.             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);
  676.             yield "/resources/";
  677.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["topic"], "url", [], "any"falsefalsefalse275), "html"nulltrue);
  678.             yield "\">
  679.                     <figure class=\"featured-categories-section-wrapper-item-video\">
  680.                       <div class=\"media-section\">                
  681.                         <video poster=\"";
  682.             // line 278
  683.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["topic"], "image", [], "any"falsefalsefalse278), "html"nulltrue);
  684.             yield "\" playsinline>
  685.                           ";
  686.             // line 279
  687.             if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["topic"], "video", [], "any"falsetruefalse279), "data", [], "any"truetruefalse279)) {
  688.                 yield "                  
  689.                           <source src=\"";
  690.                 // line 280
  691.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["topic"], "video", [], "any"falsefalsefalse280), "data", [], "any"falsefalsefalse280), "html"nulltrue);
  692.                 yield "\" type=\"video/mp4\">
  693.                           ";
  694.             }
  695.             // line 282
  696.             yield "                          Your browser does not support the video tag.
  697.                         </video>
  698.                         ";
  699.             // line 288
  700.             yield "                      </div>
  701.                     </figure></a>
  702.                     <div class=\"featured-categories-section-wrapper-item-content\">
  703.                       <a href=\"/";
  704.             // line 291
  705.             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.'291$this->source); })()), "request", [], "any"falsefalsefalse291), "locale", [], "any"falsefalsefalse291), "html"nulltrue);
  706.             yield "/resources/";
  707.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["topic"], "url", [], "any"falsefalsefalse291), "html"nulltrue);
  708.             yield "\" class=\"featured-categories-section-wrapper-item-content-btn\">
  709.                         ";
  710.             // line 292
  711.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["topic"], "name", [], "any"falsefalsefalse292), "html"nulltrue);
  712.             yield "
  713.                       </a>
  714.                     </div>
  715.                   </div>
  716.                   ";
  717.         }
  718.         $_parent $context['_parent'];
  719.         unset($context['_seq'], $context['_key'], $context['topic'], $context['_parent']);
  720.         $context array_intersect_key($context$_parent) + $_parent;
  721.         // line 298
  722.         yield "                </div>
  723.               </div>
  724.             </div>
  725.           </section>
  726.         <!--End Category Section -->
  727.     ";
  728.         // line 303
  729.         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.'303$this->source); })()), "request", [], "any"falsefalsefalse303), "locale", [], "any"falsefalsefalse303) == "ar")) {
  730.             // line 304
  731.             yield "      ";
  732.             $context["topMenu"] = ("/en/resource/" CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'304$this->source); })()), "url", ["en"], "method"falsefalsefalse304));
  733.             // line 305
  734.             yield "    ";
  735.         } else {
  736.             // line 306
  737.             yield "      ";
  738.             $context["topMenu"] = ("/ar/resource/" CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'306$this->source); })()), "url", ["en"], "method"falsefalsefalse306));
  739.             // line 307
  740.             yield "    ";
  741.         }
  742.         // line 308
  743.         yield " <script>
  744.  var _TopMenuLink = \"";
  745.         // line 309
  746.         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.'309$this->source); })()), "html"nulltrue);
  747.         yield "\";
  748.  \$(document).ready(function(){
  749.   //loyaltyProgram(this,";
  750.         // line 311
  751.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'311$this->source); })()), "id", [], "any"falsefalsefalse311), "html"nulltrue);
  752.         yield ",'";
  753.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'311$this->source); })()), "name", [], "any"falsefalsefalse311), "html"nulltrue);
  754.         yield "',50,'Article','Viewed')
  755.  });
  756.  ";
  757.         // line 322
  758.         yield "
  759.  </script>
  760.  <script type=\"text/javascript\">
  761.     // This code is Vanilla JS, you can equivalently use jQuery
  762.     // \$(document).ready() or \$(window).on()
  763.     let timeSpentScrolling = 0;
  764.     let isHalted = false;
  765.     let haltedStartTime, haltedEndTime;
  766.     let totalHaltedTime = 0;
  767.     const update_halt_state = () => {
  768.       if (isHalted) {
  769.         isHalted = false;
  770.         haltedEndTime = new Date().getTime()
  771.         totalHaltedTime += (haltedEndTime - haltedStartTime) / 1000
  772.       } else {
  773.         isHalted = true;
  774.         haltedStartTime = new Date().getTime()
  775.       }
  776.     }
  777.     // Listen for scroll events
  778.     window.addEventListener('scroll', () => {
  779.       timeSpentScrolling += 1.8;
  780.       update_halt_state()
  781.     });
  782.     document.addEventListener(\"DOMContentLoaded\", () => {
  783.       const start = new Date().getTime();
  784.       // AVERAGE SCROLLING INTERVAL - 60 seconds
  785.       setInterval(() => {
  786.         if (new Date().getTime() - start > 60000) {
  787.           update_halt_state()
  788.            \$(document).ready(function(){
  789.           loyaltyProgram(this,";
  790.         // line 363
  791.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'363$this->source); })()), "id", [], "any"falsefalsefalse363), "html"nulltrue);
  792.         yield ",'";
  793.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'363$this->source); })()), "name", [], "any"falsefalsefalse363), "html"nulltrue);
  794.         yield "',50,'Article','Viewed')
  795.         });
  796.         }
  797.       }, 39000)
  798.       window.addEventListener(\"beforeunload\", () => {
  799.         const end = new Date().getTime();
  800.         update_halt_state()
  801.         const totalTime = ((end - start) / 1000) - (timeSpentScrolling / 1000) - totalHaltedTime
  802.         //navigator.sendBeacon(\"https://topapi2.free.beeceptor.com\", totalTime)
  803.       });
  804.     });
  805. </script>
  806.   <!-- Resource Listing More Topics End -->
  807. ";
  808.         
  809.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  810.         
  811.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  812.         yield from [];
  813.     }
  814.     // line 381
  815.     /**
  816.      * @return iterable<null|scalar|\Stringable>
  817.      */
  818.     public function block_footer(array $context, array $blocks = []): iterable
  819.     {
  820.         $macros $this->macros;
  821.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  822.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  823.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  824.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  825.         // line 382
  826.         yield "  ";
  827.         yield from $this->loadTemplate("includes/footer.html.twig""Resources/resource_detail.html.twig"382)->unwrap()->yield($context);
  828.         
  829.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  830.         
  831.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  832.         yield from [];
  833.     }
  834.     /**
  835.      * @codeCoverageIgnore
  836.      */
  837.     public function getTemplateName(): string
  838.     {
  839.         return "Resources/resource_detail.html.twig";
  840.     }
  841.     /**
  842.      * @codeCoverageIgnore
  843.      */
  844.     public function isTraitable(): bool
  845.     {
  846.         return false;
  847.     }
  848.     /**
  849.      * @codeCoverageIgnore
  850.      */
  851.     public function getDebugInfo(): array
  852.     {
  853.         return array (  864 => 382,  851 => 381,  820 => 363,  777 => 322,  770 => 311,  765 => 309,  762 => 308,  759 => 307,  756 => 306,  753 => 305,  750 => 304,  748 => 303,  741 => 298,  729 => 292,  723 => 291,  718 => 288,  714 => 282,  709 => 280,  705 => 279,  701 => 278,  693 => 275,  690 => 274,  686 => 273,  681 => 271,  663 => 255,  659 => 253,  656 => 252,  647 => 248,  641 => 245,  637 => 244,  629 => 243,  626 => 242,  616 => 239,  613 => 238,  600 => 235,  594 => 233,  592 => 232,  580 => 231,  574 => 229,  572 => 228,  567 => 226,  559 => 225,  550 => 221,  543 => 219,  539 => 217,  534 => 216,  532 => 215,  526 => 212,  516 => 204,  513 => 187,  507 => 184,  503 => 183,  495 => 182,  492 => 181,  481 => 178,  474 => 175,  463 => 173,  460 => 172,  458 => 171,  446 => 170,  443 => 169,  440 => 168,  437 => 167,  431 => 166,  424 => 162,  420 => 160,  417 => 159,  404 => 148,  402 => 147,  397 => 146,  391 => 144,  388 => 143,  384 => 142,  379 => 141,  373 => 138,  369 => 137,  361 => 136,  358 => 135,  347 => 132,  340 => 129,  328 => 127,  326 => 126,  314 => 125,  311 => 124,  308 => 123,  306 => 122,  302 => 121,  298 => 120,  285 => 109,  279 => 105,  273 => 101,  271 => 100,  265 => 96,  258 => 91,  253 => 88,  247 => 87,  245 => 86,  240 => 85,  238 => 84,  231 => 79,  228 => 78,  222 => 75,  217 => 74,  211 => 71,  206 => 70,  203 => 69,  200 => 68,  198 => 67,  195 => 66,  189 => 64,  187 => 63,  181 => 59,  176 => 56,  170 => 55,  168 => 54,  163 => 53,  161 => 52,  156 => 49,  150 => 47,  148 => 46,  142 => 42,  140 => 41,  124 => 29,  114 => 27,  112 => 26,  106 => 25,  100 => 24,  87 => 13,  83 => 9,  77 => 5,  64 => 4,  41 => 1,);
  854.     }
  855.     public function getSourceContext(): Source
  856.     {
  857.         return new Source("{% extends \"layout/layout.html.twig\" %}
  858. {# {% block title %}GFS - {{resource.name}}{% endblock %} #}
  859. {% block content %}
  860.     <section class=\"resource-banner\">
  861.       <div class=\"resource-banner-media\">
  862.         <figure class=\"resource-banner-media-img\">
  863.           <img src=\"{{resource.resource_banner}}\" alt=\"cooking-banner\">
  864.           {# {% if resource.resource_banner %}
  865.           {{ resource.resource_banner.thumbnail('1903x1070').getHTML({imgAttributes: {class:'',alt: \"cooking-banner\"}}) | raw }}
  866.           {% endif %} #}
  867.         </figure>
  868.       </div>
  869.     </section>
  870.     <!-- End banner -->
  871.     <!--Start Main training search-->
  872.     <section class=\"bread-crumbs-section resources-breadcrumb\">
  873.       <div class=\"container container-lg\">
  874.         <div class=\"bread-crumbs-section-box\">
  875.           <div class=\"breadcrumb-holder\">
  876.             <ol class=\"breadcrumb\">
  877.               <li class=\"breadcrumb-item\"><a href=\"/{{app.request.locale}}\">{{'Home'|trans}}</a></li>
  878.               <li class=\"breadcrumb-item\"><a href=\"/{{app.request.locale}}/resources\">{{'Resources'|trans}}</a></li>
  879.               {% if resource.category is defined %}
  880.               <li class=\"breadcrumb-item\"><a href=\"/{{app.request.locale}}/resources/{{resource.category.url}}\">{{resource.category.name}}</a></li>
  881.               {% endif %}
  882.               <li class=\"breadcrumb-item\">{{resource.name}}</li>
  883.             </ol>
  884.           </div>
  885.         </div>
  886.       </div>
  887.     </section>
  888.     <!--End Main training search-->
  889. <div id =\"invoice\">
  890.     <!-- Start Article -->
  891.     <section class=\"resource-article\">
  892.       <div class=\"container container-sm\">
  893.   
  894.         {% if newsletter %}
  895.         <div class=\"col-12 newsletterBanner-v2\">
  896.           <div class=\"row gy-4\">
  897.             <div class=\"col-lg-6\">
  898.               <h3 class=\"heading\">
  899.                 {% if newsletter and newsletter.title is not null %}
  900.                   {{newsletter.title}}
  901.                 {% endif %}
  902.               </h3>
  903.               <div class=\"content\">
  904.                 <div class=\"imgLeft d-md-none\">
  905.                   {% if newsletter and newsletter.pdf is not null %}
  906.                     <a href=\"{{newsletter.pdf}}\" target=\"_blank\">
  907.                       {% if newsletter.detailImageMobile %}
  908.                         <img src=\"{{newsletter.detailImageMobile}}\" alt=\"Newsletter-Image-Mobile\">
  909.                       {% endif %}     
  910.                     </a>
  911.                   {% endif %}
  912.                   
  913.                 </div>
  914.                 <div class=\"contentDesc\">
  915.                   <p>
  916.                     {% if newsletter and newsletter.description is not null %}
  917.                       {{newsletter.description}}
  918.                     {% endif %}
  919.                   </p>
  920.                   {% set user = app.session.get('loginUserName') %}
  921.                   {% if newsletterPdf %}
  922.                     {% if user is not null %}
  923.                       <a href=\"{{newsletterPdf}}\" target=\"_blank\" class=\"btn btn-custom btn-lg-o-yellow-white mt-md-5\">
  924.                         {{\"Read our Newsletter\" | trans}}
  925.                       </a>
  926.                     {% else %}
  927.                       <a href=\"javascript:void(0);\" onclick=\"storePdfForLater('{{ newsletterPdf }}')\" class=\"btn btn-custom btn-lg-o-yellow-white mt-md-5\">
  928.                         {{\"Read our Newsletter\" | trans}}
  929.                       </a>
  930.                     {% endif %}
  931.                   {% endif %}
  932.                 </div>
  933.               </div>
  934.             </div>
  935.             <div class=\"col-lg-6 d-none d-md-block pt-4 pt-lg-0\">
  936.               <div class=\"imgRight\">
  937.               {% if newsletter and newsletter.pdf is not null %}
  938.                 <a href=\"{{newsletter.pdf}}\" class=\"w-100\" target=\"_blank\">
  939.                   {% if newsletter.detailImage %}
  940.                     <img src=\"{{newsletter.detailImage}}\" class=\"w-100\" alt=\"Newsletter-Image\">
  941.                   {% endif %}     
  942.                 </a>
  943.               {% endif %}
  944.               </div>
  945.             </div>
  946.           </div>
  947.         </div>
  948.         {% endif %}
  949.       <div class=\"col-12\">
  950.         <div class=\"row justify-content-center mb-5\">
  951.           
  952.           <div class=\"col-12 px-0  d-none\">
  953.           {% if (app.request.locale =='en') %}
  954.             <a href=\"https://zoom.us/webinar/register/6417301077993/WN_Uy4Xiz0OT2SuJn0cCsaSUQ\" class=\"banner-transition-update\">
  955.               <img class=\"img-fluid w-100\" src=\"/resourcebanner/webinar-announcement-EN.jpg\" alt=\"webinar announcement\">
  956.             </a>
  957.             {% else %}
  958.             <a href=\"https://zoom.us/webinar/register/6417301077993/WN_Uy4Xiz0OT2SuJn0cCsaSUQ\" class=\"banner-transition-update\">
  959.               <img class=\"img-fluid w-100\" src=\"/resourcebanner/webinar-announcement-AR.jpg\" alt=\"webinar announcement\">
  960.             </a>
  961.           {% endif %}
  962.           </div>
  963.           <div class=\"col-12 d-none \">
  964.             <a href=\"https://zoom.us/webinar/register/6417301077993/WN_Uy4Xiz0OT2SuJn0cCsaSUQ\" >
  965.               <img class=\"img-fluid w-100\" src=\"/resourcebanner/webinar-announcement-responsive.jpg\" alt=\"webinar announcement responsive\">
  966.             </a>
  967.           </div>
  968.         </div>
  969.       </div>
  970.         <div class=\"row\">
  971.           <div class=\"col-xl-9\">
  972.             <div class=\"resource-article-info\">
  973.               <h5>{{resource.category.name}}</h5>
  974.               <h1 class=\"resource-blog\">{{resource.name}}</h1>
  975.                {% set user = app.session.get('loginUserName') %}
  976.                {% if user is not null %}
  977.               <ul class=\"list-unstyled recipe-info\">
  978.                 <li class=\"share\"  onclick = \"loyaltyProgram(this, {{ resource.id }},'{{ resource.name }}',10,'Article','Share')\"><span onclick = \"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/resource/' ~ resource.url}}','{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}</span></li>
  979.                 {% if Liked_detail_article|length == 0 %}
  980.                 <li class=\"like article-detail\"  onclick = \"loyaltyProgram(this, {{ resource.id }},'{{ resource.name }}',10,'Article','Like', '{{app.request.locale}}')\">{{'Like'|trans}}</li>
  981.                 {% else %}
  982.                       <li class= 'liked'>{{'Like'|trans}}</li>
  983.                 {% endif %}
  984.                 <li class=\"download-black d-none\" id =\"download\" onclick = \"loyaltyProgram(this, {{ resource.id }},'{{ resource.name }}',10,'Article','Save')\">{{'Download'|trans}}</li>
  985.               </ul>
  986.               {% else %}
  987.               <ul class=\"list-unstyled recipe-info\">
  988.                 <li class=\"share\" onclick = \"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/resource/' ~ resource.url}}','{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}</li>
  989.                 <li class=\"like logged-out\">{{'Like'|trans}}</li>
  990.                 <li class=\"download-black d-none\" id =\"download\">{{'Download'|trans}}</li>
  991.               </ul>
  992.               {% endif %}
  993.               <p class=\"resource-article-info-qoute\">{{resource.main_description | raw}}</p>              
  994.               {% for description in resource.resources %}
  995.                 {% if description.localizedfields.data.getLocalizedValue('resource_heading') %}
  996.                   <h2 class=\"resource-blog\">{{description.localizedfields.data.getLocalizedValue('resource_heading')}}</h2>
  997.                 {% endif %}
  998.                 <p>{{description.localizedfields.data.getLocalizedValue('description')|raw}}</p>
  999.                 {% if description.localizedfields.data.getLocalizedValue('resource_video') %}
  1000.                   <div class=\"media-section\">
  1001.                     <video poster=\"assets/images/media-01.png\">
  1002.                       <source src=\"/static/assets/videos/oceans.mp4\" type=\"video/mp4\">
  1003.                       Your browser does not support the video tag.
  1004.                     </video>
  1005.                     <div class=\"control-options\">
  1006.                       <i class=\"fas fa-play-circle\"></i>
  1007.                       <i class=\"fas fa-pause-circle\"></i>
  1008.                     </div>
  1009.                   </div>
  1010.                 {% endif %}
  1011.                 {% if description.localizedfields.data.getLocalizedValue('resource_image') %}
  1012.                 <div class=\"resource-article-info-media\">
  1013.                   <figure class=\"resource-article-info-media-img\">
  1014.                     <img src=\"{{description.localizedfields.data.getLocalizedValue('resource_image')}}\" alt=\"article-img\">
  1015.                   </figure>
  1016.                 </div>
  1017.                 {% endif %}
  1018.               {% endfor %}
  1019.               {% set user = app.session.get('loginUserName') %}
  1020.                {% if user is not null %}
  1021.               <ul class=\"list-unstyled recipe-info\">
  1022.                 <li class=\"share\"  onclick = \"loyaltyProgram(this,{{ resource.id }},'{{ resource.name }}',10,'Article','Share')\"><span onclick = \"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/resource/' ~ resource.url}}','{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}</span></li>
  1023.                 {% if Liked_detail_article|length == 0 %}
  1024.                 
  1025.                 <li class=\"like article-detail\"  onclick = \"loyaltyProgram(this,{{ resource.id }},'{{ resource.name }}',10,'Article','Like', '{{app.request.locale}}')\">{{'Like'|trans}}</li>
  1026.                 {% else %}
  1027.                       <li class= 'liked'>{{'Like'|trans}}</li>
  1028.                 {% endif %}
  1029.                 <li class=\"download-black d-none\" id =\"download\" onclick = \"loyaltyProgram(this,{{ resource.id }},'{{ resource.name }}',10,'Article','Save')\">{{'Download'|trans}}</li>
  1030.               </ul>
  1031.               {% else %}
  1032.               <ul class=\"list-unstyled recipe-info\">
  1033.                 <li class=\"share\" onclick = \"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/resource/' ~ resource.url}}','{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}</li>
  1034.                 <li class=\"like logged-out\">{{'Like'|trans}}</li>
  1035.                 <li class=\"download-black d-none\" id =\"download\">{{'Download'|trans}}</li>
  1036.               </ul>
  1037.               {% endif %}
  1038.               {# <div class = \"refrances\">
  1039.               {% if resource.references_links %}
  1040.                 <div class = \"refrances-links\">
  1041.                   <h3>{{'References'|trans}}</h3>
  1042.                   <ul class=\"list-unstyled\">
  1043.                   
  1044.                   {% for refrences in resource.references_links %}
  1045.                     <li><a href = \"{{refrences.references.data}}\">{{refrences.references.data}}</a></li>
  1046.                     {% endfor %}
  1047.                     
  1048.                 
  1049.               </ul>
  1050.                 </div>
  1051.                 {% endif %}
  1052.               </div> #}
  1053.             </div>
  1054.           </div>
  1055.           <div class=\"col-xl-3\">
  1056.             <div class=\"resource-article-related\">
  1057.               <!--Start Featured Recipes Section-->
  1058.               <section class=\"featured-recipes-section inner-frecipes-section all-event-section related-article-section\">
  1059.                 <div class=\"container container-sm\">
  1060.                   <h2 class=\"heading related-article-headingg\">{{'Related Articles'|trans}}</h2>
  1061.                   <div class=\"featured-recipes\">
  1062.                     <div class=\"custom-slider\">
  1063.                       {% if resource.related_article %}
  1064.                         {% for article in resource.related_article %}
  1065.                         <div class=\"slide-holder\">
  1066.                           <div class=\"slide-holder\">
  1067.                            <a href=\"/{{app.request.locale}}/resource/{{article.url}}\">
  1068.                             <figure class=\"slide-img\">
  1069.                               <img src=\"{{article.image}}\" alt=\"{{ article.name }}\">
  1070.                             </figure><a/>
  1071.                             <div class=\"slide-content\">
  1072.                               <div class=\"frecipes-box\">
  1073.                                 <a href=\"/{{app.request.locale}}/resource/{{article.url}}\" class=\"text-decoration-none\"><h3>{{article.name}}</h3></a>
  1074.                                 <p>{{article.main_description}}</p>
  1075.                               </div>
  1076.                               {% set user = app.session.get('loginUserName') %}
  1077.                               {% if user is not null %}  
  1078.                               <ul class=\"list-unstyled recipe-info\">
  1079.                                 <li class=\"share\"  onclick = \"loyaltyProgram(this,{{ article.id }},'{{ article.name }}',10,'Article','Share')\"><span onclick = \"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/resource/' ~ article.url}}','{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}</span></li>
  1080.                                 {% if article.id in Liked_related_article_Ids %}
  1081.                                  <li class= 'liked'>{{'Like'|trans}}</li>
  1082.                                   {% else %}
  1083.                                     <li class=\"like related_article\"  onclick = \"loyaltyProgram(this,{{ article.id }},'{{ article.name }}',10,'Article','Like', '{{app.request.locale}}')\">{{'Like'|trans}}</li>
  1084.                                   {% endif %}
  1085.                                 
  1086.                                 <li class=\"download-black d-none\"  onclick = \"loyaltyProgram(this,{{ article.id }},'{{ article.name }}',10,'Article','Save')\">{{'Download'|trans}}</li>
  1087.                               </ul>
  1088.                               {% else %}
  1089.                               <ul class=\"list-unstyled recipe-info\">
  1090.                                 <li class=\"share\" onclick = \"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/resource/' ~ article.url}}','{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}</li>
  1091.                                 <li class=\"like logged-out\"  >{{'Like'|trans}}</li>
  1092.                                 <li class=\"download-black d-none\"  >{{'Download'|trans}}</li>
  1093.                               </ul>
  1094.                               {% endif %}
  1095.                             </div>
  1096.                           </div>
  1097.                         </div>
  1098.                         {% endfor %}
  1099.                       {% else %}
  1100.                       No Related Article
  1101.                       {% endif %}
  1102.                     </div>
  1103.                   </div>
  1104.                 </div>
  1105.               </section>
  1106.               <!--End Featured Recipes Section-->
  1107.             </div>
  1108.           </div>
  1109.         </div>
  1110.       </div>
  1111.     </section>
  1112.     <!-- End Article -->
  1113. </div>
  1114.         <!--Start Category Section -->
  1115.            <section class=\"featured-categories resource-featured-categories\">
  1116.             <div class=\"container container-sm\">
  1117.               <div class=\"featured-categories-section\">
  1118.                 <h2 class=\"heading\">{{'More Topics'|trans}}</h2>
  1119.                 <div class=\"featured-categories-section-wrapper\">
  1120.                   {%  for topic in more_topics %}
  1121.                   <div class=\"featured-categories-section-wrapper-item\">
  1122.                   <a href=\"/{{app.request.locale}}/resources/{{topic.url}}\">
  1123.                     <figure class=\"featured-categories-section-wrapper-item-video\">
  1124.                       <div class=\"media-section\">                
  1125.                         <video poster=\"{{topic.image}}\" playsinline>
  1126.                           {% if topic.video.data is defined %}                  
  1127.                           <source src=\"{{ topic.video.data }}\" type=\"video/mp4\">
  1128.                           {% endif %}
  1129.                           Your browser does not support the video tag.
  1130.                         </video>
  1131.                         {# <div class=\"control-options\">
  1132.                           <i class=\"fas fa-play-circle\"></i>
  1133.                           <i class=\"fas fa-pause-circle\"></i>
  1134.                         </div> #}
  1135.                       </div>
  1136.                     </figure></a>
  1137.                     <div class=\"featured-categories-section-wrapper-item-content\">
  1138.                       <a href=\"/{{app.request.locale}}/resources/{{topic.url}}\" class=\"featured-categories-section-wrapper-item-content-btn\">
  1139.                         {{topic.name}}
  1140.                       </a>
  1141.                     </div>
  1142.                   </div>
  1143.                   {% endfor %}
  1144.                 </div>
  1145.               </div>
  1146.             </div>
  1147.           </section>
  1148.         <!--End Category Section -->
  1149.     {% if (app.request.locale =='ar') %}
  1150.       {% set topMenu =\"/en/resource/\" ~ resource.url('en') %}
  1151.     {% else %}
  1152.       {% set topMenu =\"/ar/resource/\" ~ resource.url('en') %}
  1153.     {% endif %}
  1154.  <script>
  1155.  var _TopMenuLink = \"{{ topMenu }}\";
  1156.  \$(document).ready(function(){
  1157.   //loyaltyProgram(this,{{ resource.id }},'{{ resource.name }}',50,'Article','Viewed')
  1158.  });
  1159.  {# document.addEventListener(\"DOMContentLoaded\", () => {
  1160.     const start = new Date().getTime();
  1161.     window.addEventListener(\"beforeunload\", () => {
  1162.         const end = new Date().getTime();
  1163.         const totalTime = (end - start) / 1000
  1164. \t
  1165.         console.log(totalTime)
  1166.     });
  1167. }); #}
  1168.  </script>
  1169.  <script type=\"text/javascript\">
  1170.     // This code is Vanilla JS, you can equivalently use jQuery
  1171.     // \$(document).ready() or \$(window).on()
  1172.     let timeSpentScrolling = 0;
  1173.     let isHalted = false;
  1174.     let haltedStartTime, haltedEndTime;
  1175.     let totalHaltedTime = 0;
  1176.     const update_halt_state = () => {
  1177.       if (isHalted) {
  1178.         isHalted = false;
  1179.         haltedEndTime = new Date().getTime()
  1180.         totalHaltedTime += (haltedEndTime - haltedStartTime) / 1000
  1181.       } else {
  1182.         isHalted = true;
  1183.         haltedStartTime = new Date().getTime()
  1184.       }
  1185.     }
  1186.     // Listen for scroll events
  1187.     window.addEventListener('scroll', () => {
  1188.       timeSpentScrolling += 1.8;
  1189.       update_halt_state()
  1190.     });
  1191.     document.addEventListener(\"DOMContentLoaded\", () => {
  1192.       const start = new Date().getTime();
  1193.       // AVERAGE SCROLLING INTERVAL - 60 seconds
  1194.       setInterval(() => {
  1195.         if (new Date().getTime() - start > 60000) {
  1196.           update_halt_state()
  1197.            \$(document).ready(function(){
  1198.           loyaltyProgram(this,{{ resource.id }},'{{ resource.name }}',50,'Article','Viewed')
  1199.         });
  1200.         }
  1201.       }, 39000)
  1202.       window.addEventListener(\"beforeunload\", () => {
  1203.         const end = new Date().getTime();
  1204.         update_halt_state()
  1205.         const totalTime = ((end - start) / 1000) - (timeSpentScrolling / 1000) - totalHaltedTime
  1206.         //navigator.sendBeacon(\"https://topapi2.free.beeceptor.com\", totalTime)
  1207.       });
  1208.     });
  1209. </script>
  1210.   <!-- Resource Listing More Topics End -->
  1211. {% endblock %}
  1212. {% block footer %}
  1213.   {% include \"includes/footer.html.twig\" %}
  1214. {% endblock %}
  1215. ""Resources/resource_detail.html.twig""/var/www/vhosts/centric.ae/gcs.centric.ae/templates/Resources/resource_detail.html.twig");
  1216.     }
  1217. }