var/cache/dev/twig/8d/8dfccc160d4ff6045936b887417aed05.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. /* newsletter/newsletter.html.twig */
  16. class __TwigTemplate_e4a1e10c8913d940d4f4cc30a323f503 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'content' => [$this'block_content'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "layout/layout.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""newsletter/newsletter.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""newsletter/newsletter.html.twig"));
  44.         $this->parent $this->loadTemplate("layout/layout.html.twig""newsletter/newsletter.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 2
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_title(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         yield "GFS - Resources
  63. ";
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.         yield from [];
  69.     }
  70.     // line 5
  71.     /**
  72.      * @return iterable<null|scalar|\Stringable>
  73.      */
  74.     public function block_content(array $context, array $blocks = []): iterable
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  81.         // line 6
  82.         yield "    ";
  83.         $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.'6$this->source); })()), "session", [], "any"falsefalsefalse6), "get", ["loginUserName"], "method"falsefalsefalse6);
  84.         // line 7
  85.         yield "\t<!--Start Main Slider-->
  86. \t\t<section class=\"main-slider-section product-main-slider resources-section-slider\">
  87. \t\t\t<div class=\"container container-lg\">
  88.                 ";
  89.         // line 10
  90.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'10$this->source); })())) {
  91.             // line 11
  92.             yield "                    ";
  93.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""myImage", ["title" => "Drag image for desktop""height" => 200]);
  94.             // line 14
  95.             yield "
  96.                     ";
  97.             // line 15
  98.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""mobileImage", ["title" => "Drag image for mobile""height" => 200]);
  99.             // line 18
  100.             yield "
  101.                 ";
  102.         }
  103.         // line 20
  104.         yield "                <div class=\"custom-slider singal-slider main-slider\">
  105.                         
  106. \t\t\t\t\t\t<div class=\"slide\">
  107. \t\t\t\t\t\t\t<div class=\"slide-media slide-media-desktop\">
  108.                                 ";
  109.         // line 24
  110.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'24$this->source); })())) {
  111.             // line 25
  112.             yield "                                    ";
  113.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""myImage", ["title" => "Drag image for desktop""width" => 200"height" => 200]);
  114.             // line 29
  115.             yield "
  116. \t\t\t\t\t\t\t\t";
  117.         }
  118.         // line 31
  119.         yield "\t\t\t\t\t\t\t</div>
  120. \t\t\t\t\t\t\t<div class=\"slide-media slide-media-mobile\">
  121.                                 ";
  122.         // line 34
  123.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'34$this->source); })())) {
  124.             // line 35
  125.             yield "                                    ";
  126.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""mobileImage", ["title" => "Drag image for mobile""width" => 200"height" => 200]);
  127.             // line 39
  128.             yield "
  129.                                 ";
  130.         }
  131.         // line 41
  132.         yield "\t\t\t\t\t\t\t</div>
  133. \t\t\t\t\t\t\t<div class=\"silde-content-box\">
  134. \t\t\t\t\t\t\t\t<div class=\"slide-content\">
  135. \t\t\t\t\t\t\t\t\t<h1>
  136. \t\t\t\t\t\t\t\t\t\t<span class=\"title-sm d-block\">";
  137.         // line 45
  138.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline", ["placeholder" => "headimg one line"]);
  139.         // line 47
  140.         yield "</span>
  141. \t\t\t\t\t\t\t\t\t\t<span class=\"title-lg underline-end\">";
  142.         // line 48
  143.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline2", ["placeholder" => "headimg two line"]);
  144.         // line 50
  145.         yield "</span>
  146. \t\t\t\t\t\t\t\t\t</h1>
  147. \t\t\t\t\t\t\t\t</div>
  148. \t\t\t\t\t\t\t</div>
  149. \t\t\t\t\t\t</div>
  150. \t\t\t\t</div>
  151. \t\t\t</div>
  152. \t\t</section>
  153. \t<!--End Main Slider-->
  154. \t<!--Start Breadcrumbs-->
  155. \t<div class=\"breadcrumb-holder\">
  156. \t\t<ol class=\"breadcrumb\">
  157. \t\t\t<li class=\"breadcrumb-item\">
  158. \t\t\t\t<a href=\"/";
  159.         // line 64
  160.         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.'64$this->source); })()), "request", [], "any"falsefalsefalse64), "locale", [], "any"falsefalsefalse64), "html"nulltrue);
  161.         yield "\">";
  162.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Home"), "html"nulltrue);
  163.         yield "</a>
  164. \t\t\t</li>
  165. \t\t\t<li class=\"breadcrumb-item\">";
  166.         // line 66
  167.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Resources"), "html"nulltrue);
  168.         yield "</li>
  169. \t\t\t<li class=\"breadcrumb-item active\" aria-current=\"page\">
  170. \t\t\t\t";
  171.         // line 68
  172.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Newsletter"), "html"nulltrue);
  173.         yield "
  174. \t\t\t</li>
  175. \t\t</ol>
  176. \t</div>
  177. \t<!--End Breadcrumbs-->
  178. \t<!--Start Info Media-->
  179. \t\t<section class=\"training-media-box info-media res-listing-tech\">
  180. \t\t\t\t\t\t<div class=\"container container-sm\">
  181. \t\t\t\t\t\t\t<div class=\"info-section\">
  182.                             
  183. \t\t\t\t\t\t\t\t<h5>
  184.                                     ";
  185.         // line 80
  186.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Newsletter"), "html"nulltrue);
  187.         yield "
  188.                                 </h5>
  189. \t\t\t\t\t\t\t\t<h4>
  190.                                     ";
  191.         // line 83
  192.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""aboutHeading", ["placeholder" => "headimg one line"]);
  193.         // line 85
  194.         yield "
  195.                                 </h4>
  196. \t\t\t\t\t\t\t\t<p class=\"slide-media-desktop\">
  197.                                     ";
  198.         // line 88
  199.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""description", ["placeholder" => "Loyalty Description""nl2br" => true]);
  200.         // line 92
  201.         yield "
  202.                                 </p>
  203. \t\t\t\t\t\t\t\t<p class=\"slide-media-mobile\">
  204.                                     ";
  205.         // line 95
  206.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'95$this->source); })())) {
  207.             // line 96
  208.             yield "                                            ";
  209.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""description", ["placeholder" => "Loyalty Description""nl2br" => true]);
  210.             // line 100
  211.             yield "
  212.                                     ";
  213.         }
  214.         // line 102
  215.         yield "                                    
  216. \t\t\t\t\t\t\t\t\t<div class=\"d-none\">
  217.                                         ";
  218.         // line 116
  219.         yield "\t\t\t\t\t\t\t\t\t</div>
  220. \t\t\t\t\t\t\t\t</p>
  221. \t\t\t\t\t\t\t</div>
  222. \t\t\t\t\t\t\t<div class=\"media-section slide-media-desktop\">
  223.                                     
  224.                                 ";
  225.         // line 121
  226.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'121$this->source); })())) {
  227.             // line 122
  228.             yield "                                    ";
  229.             $context["thumbnail"] = CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""aboutImage"), "getThumbnail", [""], "method"falsefalsefalse122);
  230.             // line 123
  231.             yield "                                    <video poster=\"";
  232.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["thumbnail"]) || array_key_exists("thumbnail"$context) ? $context["thumbnail"] : (function () { throw new RuntimeError('Variable "thumbnail" does not exist.'123$this->source); })()), "html"nulltrue);
  233.             yield "\">
  234.                                 
  235.                                         ";
  236.             // line 126
  237.             yield "                                        Your browser does not support the video tag.
  238.                                     </video>
  239.                                 ";
  240.         } else {
  241.             // line 129
  242.             yield "                                     ";
  243.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""aboutImage", ["title" => "Drag image for mobile"]);
  244.             // line 132
  245.             yield "
  246.                                 ";
  247.         }
  248.         // line 134
  249.         yield "\t\t\t\t\t\t\t\t
  250. \t\t\t\t\t\t\t</div>
  251. \t\t\t\t\t\t\t<div class=\"media-section slide-media-mobile\">
  252. \t\t\t\t\t\t\t\t";
  253.         // line 138
  254.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'138$this->source); })())) {
  255.             // line 139
  256.             yield "                                    ";
  257.             $context["thumbnail"] = CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""aboutImage"), "getThumbnail", [""], "method"falsefalsefalse139);
  258.             // line 140
  259.             yield "                                    <video poster=\"";
  260.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["thumbnail"]) || array_key_exists("thumbnail"$context) ? $context["thumbnail"] : (function () { throw new RuntimeError('Variable "thumbnail" does not exist.'140$this->source); })()), "html"nulltrue);
  261.             yield "\">
  262.                                 
  263.                                         ";
  264.             // line 143
  265.             yield "                                        Your browser does not support the video tag.
  266.                                     </video>
  267.                                 ";
  268.         }
  269.         // line 146
  270.         yield "\t\t\t\t\t\t\t</div>
  271. \t\t\t\t\t\t</div>
  272. \t\t</section>
  273. \t<!--End Info Media-->
  274. \t<!--Start Featured Recipes Section-->
  275. \t";
  276.         // line 153
  277.         if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["newsletters"]) || array_key_exists("newsletters"$context) ? $context["newsletters"] : (function () { throw new RuntimeError('Variable "newsletters" does not exist.'153$this->source); })()))) {
  278.             // line 154
  279.             yield "\t\t<section class=\"featured-recipes-section inner-frecipes-section event-detail-slider resources-center\">
  280. \t\t\t<div class=\"container container-sm\">
  281. \t\t\t    <h2 class=\"heading\">";
  282.             // line 156
  283.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Newsletters"), "html"nulltrue);
  284.             yield "</h2>
  285. \t\t\t\t<div class=\"featured-recipes\">
  286. \t\t\t\t\t<div class=\"custom-slider custom-event-slider\">
  287. \t\t\t\t\t\t";
  288.             // line 159
  289.             $context['_parent'] = $context;
  290.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["newsletters"]) || array_key_exists("newsletters"$context) ? $context["newsletters"] : (function () { throw new RuntimeError('Variable "newsletters" does not exist.'159$this->source); })()));
  291.             foreach ($context['_seq'] as $context["_key"] => $context["newsletter"]) {
  292.                 // line 160
  293.                 yield "\t\t\t\t\t\t\t\t<div class=\"slide\">
  294. \t\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
  295. \t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0);\">
  296. \t\t\t\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
  297. \t\t\t\t\t\t\t\t\t\t\t\t";
  298.                 // line 164
  299.                 if (CoreExtension::getAttribute($this->env$this->source$context["newsletter"], "image", [], "any"truetruefalse164)) {
  300.                     // line 165
  301.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
  302.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["newsletter"], "image", [], "any"falsefalsefalse165), "html"nulltrue);
  303.                     yield "\" alt=\"";
  304.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["newsletter"], "title", [], "any"falsefalsefalse165), "html"nulltrue);
  305.                     yield "\">
  306. \t\t\t\t\t\t\t\t\t\t\t\t\t
  307. \t\t\t\t\t\t\t\t\t\t\t\t";
  308.                 }
  309.                 // line 168
  310.                 yield "\t\t\t\t\t\t\t\t\t\t\t</figure>
  311. \t\t\t\t\t\t\t\t\t\t</a>
  312. \t\t\t\t\t\t\t\t\t\t<div class=\"slide-content\">
  313. \t\t\t\t\t\t\t\t\t\t\t<div class=\"frecipes-box\">
  314. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0);\" class=\"text-decoration-none\">
  315. \t\t\t\t\t\t\t\t\t\t\t\t\t<h3>";
  316.                 // line 173
  317.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["newsletter"], "title", [], "any"falsefalsefalse173), "html"nulltrue);
  318.                 yield "</h3>
  319. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  320. \t\t\t\t\t\t\t\t\t\t\t\t";
  321.                 // line 175
  322.                 if ((CoreExtension::getAttribute($this->env$this->source$context["newsletter"], "description", [], "any"truetruefalse175) &&  !(null === CoreExtension::getAttribute($this->env$this->source$context["newsletter"], "description", [], "any"falsefalsefalse175)))) {
  323.                     // line 176
  324.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<p>";
  325.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["newsletter"], "description", [], "any"falsefalsefalse176), "html"nulltrue);
  326.                     yield "</p>
  327. \t\t\t\t\t\t\t\t\t\t\t\t";
  328.                 }
  329.                 // line 178
  330.                 yield "\t\t\t\t\t\t\t\t\t\t\t</div>
  331. \t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info w-100 justify-content-between\">
  332. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Article','";
  333.                 // line 180
  334.                 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.'180$this->source); })()), "request", [], "any"falsefalsefalse180), "getSchemeAndHttpHost", [], "method"falsefalsefalse180) . CoreExtension::getAttribute($this->env$this->source$context["newsletter"], "pdf", [], "any"falsefalsefalse180)), "html"nulltrue);
  335.                 yield "','";
  336.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "html"nulltrue);
  337.                 yield "')\">";
  338.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html"nulltrue);
  339.                 yield "</li>
  340.                                                     <li class=\"px-0 w-auto\">
  341.                                                         ";
  342.                 // line 182
  343.                 if ( !(null === (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'182$this->source); })()))) {
  344.                     // line 183
  345.                     yield "                                                            <a href=\"";
  346.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["newsletter"], "pdf", [], "any"falsefalsefalse183), "html"nulltrue);
  347.                     yield "\" target=\"_blank\" class=\"btn btn-custom btn-green\">
  348.                                                                 ";
  349.                     // line 184
  350.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Read Now"), "html"nulltrue);
  351.                     yield "
  352.                                                             </a>
  353.                                                         ";
  354.                 } else {
  355.                     // line 187
  356.                     yield "                                                            <a href=\"javascript:void(0);\" onclick=\"storePdfForLater('";
  357.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["newsletter"], "pdf", [], "any"falsefalsefalse187), "html"nulltrue);
  358.                     yield "')\" class=\"btn btn-custom btn-green\">
  359.                                                                 ";
  360.                     // line 188
  361.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Read Now"), "html"nulltrue);
  362.                     yield "
  363.                                                             </a>
  364.                                                         ";
  365.                 }
  366.                 // line 191
  367.                 yield "                                                    </li>                                               
  368. \t\t\t\t\t\t\t\t\t\t\t\t</ul>
  369. \t\t\t\t\t\t\t\t\t\t</div>
  370. \t\t\t\t\t\t\t\t\t</div>
  371. \t\t\t\t\t\t\t\t</div>
  372. \t\t\t\t\t\t";
  373.             }
  374.             $_parent $context['_parent'];
  375.             unset($context['_seq'], $context['_key'], $context['newsletter'], $context['_parent']);
  376.             $context array_intersect_key($context$_parent) + $_parent;
  377.             // line 197
  378.             yield "\t\t\t\t\t</div>
  379. \t\t\t\t</div>
  380. \t\t\t</div>
  381. \t\t</section>
  382. \t";
  383.         }
  384.         // line 202
  385.         yield "\t<!--End Featured Recipes Section-->
  386. \t\t\t";
  387.         // line 205
  388.         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.'205$this->source); })()), "request", [], "any"falsefalsefalse205), "locale", [], "any"falsefalsefalse205) == "ar")) {
  389.             // line 206
  390.             yield "\t\t\t\t";
  391.             $context["topMenu"] = "/en/resources/newsletter";
  392.             // line 207
  393.             yield "\t\t\t";
  394.         } else {
  395.             // line 208
  396.             yield "\t\t\t\t";
  397.             $context["topMenu"] = "/ar/resources/newsletter";
  398.             // line 209
  399.             yield "\t\t\t";
  400.         }
  401.         // line 210
  402.         yield "\t\t\t<script>
  403. \t\t\t\tvar _TopMenuLink = \"";
  404.         // line 211
  405.         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.'211$this->source); })()), "html"nulltrue);
  406.         yield "\";
  407. \t\t\t</script>
  408.             <script>
  409.                 function storePdfForLater(pdfUrl) {
  410.                     fetch('/store-pdf-session', {
  411.                         method: 'POST',
  412.                         headers: {
  413.                             'Content-Type': 'application/json',
  414.                             'X-Requested-With': 'XMLHttpRequest'
  415.                         },
  416.                         body: JSON.stringify({ pdf: pdfUrl })
  417.                     }).then(() => {
  418.                         window.location.href = '/' + document.documentElement.lang + '/signin';
  419.                     });
  420.                 }
  421.             </script>
  422. \t\t\t<!-- Resource Listing More Topics End -->
  423. \t\t";
  424.         
  425.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  426.         
  427.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  428.         yield from [];
  429.     }
  430.     /**
  431.      * @codeCoverageIgnore
  432.      */
  433.     public function getTemplateName(): string
  434.     {
  435.         return "newsletter/newsletter.html.twig";
  436.     }
  437.     /**
  438.      * @codeCoverageIgnore
  439.      */
  440.     public function isTraitable(): bool
  441.     {
  442.         return false;
  443.     }
  444.     /**
  445.      * @codeCoverageIgnore
  446.      */
  447.     public function getDebugInfo(): array
  448.     {
  449.         return array (  433 => 211,  430 => 210,  427 => 209,  424 => 208,  421 => 207,  418 => 206,  416 => 205,  411 => 202,  404 => 197,  393 => 191,  387 => 188,  382 => 187,  376 => 184,  371 => 183,  369 => 182,  360 => 180,  356 => 178,  350 => 176,  348 => 175,  343 => 173,  336 => 168,  327 => 165,  325 => 164,  319 => 160,  315 => 159,  309 => 156,  305 => 154,  303 => 153,  294 => 146,  289 => 143,  283 => 140,  280 => 139,  278 => 138,  272 => 134,  268 => 132,  265 => 129,  260 => 126,  254 => 123,  251 => 122,  249 => 121,  242 => 116,  237 => 102,  233 => 100,  230 => 96,  228 => 95,  223 => 92,  221 => 88,  216 => 85,  214 => 83,  208 => 80,  193 => 68,  188 => 66,  181 => 64,  165 => 50,  163 => 48,  160 => 47,  158 => 45,  152 => 41,  148 => 39,  145 => 35,  143 => 34,  138 => 31,  134 => 29,  131 => 25,  129 => 24,  123 => 20,  119 => 18,  117 => 15,  114 => 14,  111 => 11,  109 => 10,  104 => 7,  101 => 6,  88 => 5,  64 => 2,  41 => 1,);
  450.     }
  451.     public function getSourceContext(): Source
  452.     {
  453.         return new Source("{% extends \"layout/layout.html.twig\" %}
  454. {% block title %}GFS - Resources
  455. {% endblock %}
  456. {% block content %}
  457.     {% set user = app.session.get('loginUserName') %}
  458. \t<!--Start Main Slider-->
  459. \t\t<section class=\"main-slider-section product-main-slider resources-section-slider\">
  460. \t\t\t<div class=\"container container-lg\">
  461.                 {% if editmode %}
  462.                     {{ pimcore_image(\"myImage\",{
  463.                         \"title\" : \"Drag image for desktop\",
  464.                         \"height\" : 200
  465.                     }) }}
  466.                     {{ pimcore_image(\"mobileImage\",{
  467.                         \"title\" : \"Drag image for mobile\",
  468.                         \"height\" : 200
  469.                     }) }}
  470.                 {% endif %}
  471.                 <div class=\"custom-slider singal-slider main-slider\">
  472.                         
  473. \t\t\t\t\t\t<div class=\"slide\">
  474. \t\t\t\t\t\t\t<div class=\"slide-media slide-media-desktop\">
  475.                                 {% if not editmode %}
  476.                                     {{ pimcore_image(\"myImage\",{
  477.                                         \"title\" : \"Drag image for desktop\",
  478.                                         \"width\" : 200,
  479.                                         \"height\" : 200
  480.                                     }) }}
  481. \t\t\t\t\t\t\t\t{% endif %}
  482. \t\t\t\t\t\t\t</div>
  483. \t\t\t\t\t\t\t<div class=\"slide-media slide-media-mobile\">
  484.                                 {% if not editmode %}
  485.                                     {{ pimcore_image(\"mobileImage\",{
  486.                                         \"title\" : \"Drag image for mobile\",
  487.                                         \"width\" : 200,
  488.                                         \"height\" : 200
  489.                                     }) }}
  490.                                 {% endif %}
  491. \t\t\t\t\t\t\t</div>
  492. \t\t\t\t\t\t\t<div class=\"silde-content-box\">
  493. \t\t\t\t\t\t\t\t<div class=\"slide-content\">
  494. \t\t\t\t\t\t\t\t\t<h1>
  495. \t\t\t\t\t\t\t\t\t\t<span class=\"title-sm d-block\">{{ pimcore_input(\"headline\",{
  496.                                             \"placeholder\": \"headimg one line\"
  497.                                         }) }}</span>
  498. \t\t\t\t\t\t\t\t\t\t<span class=\"title-lg underline-end\">{{ pimcore_input(\"headline2\",{
  499.                                             \"placeholder\": \"headimg two line\"
  500.                                         }) }}</span>
  501. \t\t\t\t\t\t\t\t\t</h1>
  502. \t\t\t\t\t\t\t\t</div>
  503. \t\t\t\t\t\t\t</div>
  504. \t\t\t\t\t\t</div>
  505. \t\t\t\t</div>
  506. \t\t\t</div>
  507. \t\t</section>
  508. \t<!--End Main Slider-->
  509. \t<!--Start Breadcrumbs-->
  510. \t<div class=\"breadcrumb-holder\">
  511. \t\t<ol class=\"breadcrumb\">
  512. \t\t\t<li class=\"breadcrumb-item\">
  513. \t\t\t\t<a href=\"/{{app.request.locale}}\">{{'Home'|trans}}</a>
  514. \t\t\t</li>
  515. \t\t\t<li class=\"breadcrumb-item\">{{'Resources'|trans}}</li>
  516. \t\t\t<li class=\"breadcrumb-item active\" aria-current=\"page\">
  517. \t\t\t\t{{\"Newsletter\" | trans}}
  518. \t\t\t</li>
  519. \t\t</ol>
  520. \t</div>
  521. \t<!--End Breadcrumbs-->
  522. \t<!--Start Info Media-->
  523. \t\t<section class=\"training-media-box info-media res-listing-tech\">
  524. \t\t\t\t\t\t<div class=\"container container-sm\">
  525. \t\t\t\t\t\t\t<div class=\"info-section\">
  526.                             
  527. \t\t\t\t\t\t\t\t<h5>
  528.                                     {{ \"Newsletter\" | trans}}
  529.                                 </h5>
  530. \t\t\t\t\t\t\t\t<h4>
  531.                                     {{ pimcore_input(\"aboutHeading\",{
  532.                                         \"placeholder\": \"headimg one line\"
  533.                                     }) }}
  534.                                 </h4>
  535. \t\t\t\t\t\t\t\t<p class=\"slide-media-desktop\">
  536.                                     {{ pimcore_textarea(\"description\",{
  537.                                         \"placeholder\": \"Loyalty Description\",
  538. \t\t\t\t\t\t\t\t\t\t\"nl2br\" : true,
  539.                                         }) 
  540.                                     }}
  541.                                 </p>
  542. \t\t\t\t\t\t\t\t<p class=\"slide-media-mobile\">
  543.                                     {% if not editmode %}
  544.                                             {{ pimcore_textarea(\"description\",{
  545.                                             \"placeholder\": \"Loyalty Description\",
  546. \t\t\t\t\t\t\t\t\t\t\t\"nl2br\" : true,
  547.                                             }) 
  548.                                         }}
  549.                                     {% endif %}
  550.                                     
  551. \t\t\t\t\t\t\t\t\t<div class=\"d-none\">
  552.                                         {# {% if featureNewsletter and featureNewsletter.pdf is not null %}
  553.                                             {% if user is not null %}
  554.                                                 <a href=\"{{featureNewsletter.pdf}}\" target=\"_blank\" class=\"btn btn-custom btn-green\">
  555.                                                     {{\"Read Now\" | trans}}
  556.                                                 </a>
  557.                                             {% else %}
  558.                                                 <a href=\"javascript:void(0);\" onclick=\"storePdfForLater('{{ featureNewsletter.pdf }}')\" class=\"btn btn-custom btn-green\">
  559.                                                     {{\"Read Now\"|trans}}
  560.                                                 </a>
  561.                                             {% endif %}
  562.                                         {% endif %} #}
  563. \t\t\t\t\t\t\t\t\t</div>
  564. \t\t\t\t\t\t\t\t</p>
  565. \t\t\t\t\t\t\t</div>
  566. \t\t\t\t\t\t\t<div class=\"media-section slide-media-desktop\">
  567.                                     
  568.                                 {% if not editmode %}
  569.                                     {% set thumbnail = pimcore_image(\"aboutImage\").getThumbnail(\"\") %}
  570.                                     <video poster=\"{{ thumbnail }}\">
  571.                                 
  572.                                         {# <source src=\"{{aboutus.banner_video.data}}\" type=\"video/mp4\" /> #}
  573.                                         Your browser does not support the video tag.
  574.                                     </video>
  575.                                 {% else %}
  576.                                      {{ pimcore_image(\"aboutImage\",{
  577.                                         \"title\" : \"Drag image for mobile\",
  578.                                         
  579.                                     }) }}
  580.                                 {% endif %}
  581. \t\t\t\t\t\t\t\t
  582. \t\t\t\t\t\t\t</div>
  583. \t\t\t\t\t\t\t<div class=\"media-section slide-media-mobile\">
  584. \t\t\t\t\t\t\t\t{% if not editmode %}
  585.                                     {% set thumbnail = pimcore_image(\"aboutImage\").getThumbnail(\"\") %}
  586.                                     <video poster=\"{{ thumbnail }}\">
  587.                                 
  588.                                         {# <source src=\"{{aboutus.banner_video.data}}\" type=\"video/mp4\" /> #}
  589.                                         Your browser does not support the video tag.
  590.                                     </video>
  591.                                 {% endif %}
  592. \t\t\t\t\t\t\t</div>
  593. \t\t\t\t\t\t</div>
  594. \t\t</section>
  595. \t<!--End Info Media-->
  596. \t<!--Start Featured Recipes Section-->
  597. \t{% if newsletters is not empty %}
  598. \t\t<section class=\"featured-recipes-section inner-frecipes-section event-detail-slider resources-center\">
  599. \t\t\t<div class=\"container container-sm\">
  600. \t\t\t    <h2 class=\"heading\">{{'Newsletters'|trans}}</h2>
  601. \t\t\t\t<div class=\"featured-recipes\">
  602. \t\t\t\t\t<div class=\"custom-slider custom-event-slider\">
  603. \t\t\t\t\t\t{% for newsletter in newsletters %}
  604. \t\t\t\t\t\t\t\t<div class=\"slide\">
  605. \t\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
  606. \t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0);\">
  607. \t\t\t\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
  608. \t\t\t\t\t\t\t\t\t\t\t\t{% if newsletter.image is defined %}
  609. \t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ newsletter.image }}\" alt=\"{{newsletter.title}}\">
  610. \t\t\t\t\t\t\t\t\t\t\t\t\t
  611. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  612. \t\t\t\t\t\t\t\t\t\t\t</figure>
  613. \t\t\t\t\t\t\t\t\t\t</a>
  614. \t\t\t\t\t\t\t\t\t\t<div class=\"slide-content\">
  615. \t\t\t\t\t\t\t\t\t\t\t<div class=\"frecipes-box\">
  616. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0);\" class=\"text-decoration-none\">
  617. \t\t\t\t\t\t\t\t\t\t\t\t\t<h3>{{newsletter.title}}</h3>
  618. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  619. \t\t\t\t\t\t\t\t\t\t\t\t{% if newsletter.description is defined and newsletter.description is not null %}
  620. \t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{newsletter.description}}</p>
  621. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  622. \t\t\t\t\t\t\t\t\t\t\t</div>
  623. \t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info w-100 justify-content-between\">
  624. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Article','{{ app.request.getSchemeAndHttpHost() ~ newsletter.pdf }}','{{ \"SHARE KNOWLEDGE WITH YOUR FRIENDS\"|trans }}')\">{{'Share'|trans}}</li>
  625.                                                     <li class=\"px-0 w-auto\">
  626.                                                         {% if user is not null %}
  627.                                                             <a href=\"{{newsletter.pdf}}\" target=\"_blank\" class=\"btn btn-custom btn-green\">
  628.                                                                 {{\"Read Now\" | trans}}
  629.                                                             </a>
  630.                                                         {% else %}
  631.                                                             <a href=\"javascript:void(0);\" onclick=\"storePdfForLater('{{ newsletter.pdf }}')\" class=\"btn btn-custom btn-green\">
  632.                                                                 {{\"Read Now\"|trans}}
  633.                                                             </a>
  634.                                                         {% endif %}
  635.                                                     </li>                                               
  636. \t\t\t\t\t\t\t\t\t\t\t\t</ul>
  637. \t\t\t\t\t\t\t\t\t\t</div>
  638. \t\t\t\t\t\t\t\t\t</div>
  639. \t\t\t\t\t\t\t\t</div>
  640. \t\t\t\t\t\t{% endfor %}
  641. \t\t\t\t\t</div>
  642. \t\t\t\t</div>
  643. \t\t\t</div>
  644. \t\t</section>
  645. \t{% endif %}
  646. \t<!--End Featured Recipes Section-->
  647. \t\t\t{% if (app.request.locale =='ar') %}
  648. \t\t\t\t{% set topMenu =\"/en/resources/newsletter\"%}
  649. \t\t\t{% else %}
  650. \t\t\t\t{% set topMenu =\"/ar/resources/newsletter\"%}
  651. \t\t\t{% endif %}
  652. \t\t\t<script>
  653. \t\t\t\tvar _TopMenuLink = \"{{ topMenu }}\";
  654. \t\t\t</script>
  655.             <script>
  656.                 function storePdfForLater(pdfUrl) {
  657.                     fetch('/store-pdf-session', {
  658.                         method: 'POST',
  659.                         headers: {
  660.                             'Content-Type': 'application/json',
  661.                             'X-Requested-With': 'XMLHttpRequest'
  662.                         },
  663.                         body: JSON.stringify({ pdf: pdfUrl })
  664.                     }).then(() => {
  665.                         window.location.href = '/' + document.documentElement.lang + '/signin';
  666.                     });
  667.                 }
  668.             </script>
  669. \t\t\t<!-- Resource Listing More Topics End -->
  670. \t\t{% endblock %}
  671. ""newsletter/newsletter.html.twig""/var/www/vhosts/centric.ae/gcs.centric.ae/templates/newsletter/newsletter.html.twig");
  672.     }
  673. }