<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* newsletter/newsletter.html.twig */
class __TwigTemplate_e4a1e10c8913d940d4f4cc30a323f503 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layout/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "newsletter/newsletter.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "newsletter/newsletter.html.twig"));
$this->parent = $this->loadTemplate("layout/layout.html.twig", "newsletter/newsletter.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield "GFS - Resources
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
yield " ";
$context["user"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 6), "get", ["loginUserName"], "method", false, false, false, 6);
// line 7
yield "\t<!--Start Main Slider-->
\t\t<section class=\"main-slider-section product-main-slider resources-section-slider\">
\t\t\t<div class=\"container container-lg\">
";
// line 10
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 10, $this->source); })())) {
// line 11
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "myImage", ["title" => "Drag image for desktop", "height" => 200]);
// line 14
yield "
";
// line 15
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "mobileImage", ["title" => "Drag image for mobile", "height" => 200]);
// line 18
yield "
";
}
// line 20
yield " <div class=\"custom-slider singal-slider main-slider\">
\t\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t\t<div class=\"slide-media slide-media-desktop\">
";
// line 24
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 24, $this->source); })())) {
// line 25
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "myImage", ["title" => "Drag image for desktop", "width" => 200, "height" => 200]);
// line 29
yield "
\t\t\t\t\t\t\t\t";
}
// line 31
yield "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"slide-media slide-media-mobile\">
";
// line 34
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 34, $this->source); })())) {
// line 35
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "mobileImage", ["title" => "Drag image for mobile", "width" => 200, "height" => 200]);
// line 39
yield "
";
}
// line 41
yield "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"silde-content-box\">
\t\t\t\t\t\t\t\t<div class=\"slide-content\">
\t\t\t\t\t\t\t\t\t<h1>
\t\t\t\t\t\t\t\t\t\t<span class=\"title-sm d-block\">";
// line 45
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline", ["placeholder" => "headimg one line"]);
// line 47
yield "</span>
\t\t\t\t\t\t\t\t\t\t<span class=\"title-lg underline-end\">";
// line 48
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline2", ["placeholder" => "headimg two line"]);
// line 50
yield "</span>
\t\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t<!--End Main Slider-->
\t<!--Start Breadcrumbs-->
\t<div class=\"breadcrumb-holder\">
\t\t<ol class=\"breadcrumb\">
\t\t\t<li class=\"breadcrumb-item\">
\t\t\t\t<a href=\"/";
// line 64
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 64), "locale", [], "any", false, false, false, 64), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Home"), "html", null, true);
yield "</a>
\t\t\t</li>
\t\t\t<li class=\"breadcrumb-item\">";
// line 66
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Resources"), "html", null, true);
yield "</li>
\t\t\t<li class=\"breadcrumb-item active\" aria-current=\"page\">
\t\t\t\t";
// line 68
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Newsletter"), "html", null, true);
yield "
\t\t\t</li>
\t\t</ol>
\t</div>
\t<!--End Breadcrumbs-->
\t<!--Start Info Media-->
\t\t<section class=\"training-media-box info-media res-listing-tech\">
\t\t\t\t\t\t<div class=\"container container-sm\">
\t\t\t\t\t\t\t<div class=\"info-section\">
\t\t\t\t\t\t\t\t<h5>
";
// line 80
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Newsletter"), "html", null, true);
yield "
</h5>
\t\t\t\t\t\t\t\t<h4>
";
// line 83
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "aboutHeading", ["placeholder" => "headimg one line"]);
// line 85
yield "
</h4>
\t\t\t\t\t\t\t\t<p class=\"slide-media-desktop\">
";
// line 88
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "description", ["placeholder" => "Loyalty Description", "nl2br" => true]);
// line 92
yield "
</p>
\t\t\t\t\t\t\t\t<p class=\"slide-media-mobile\">
";
// line 95
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 95, $this->source); })())) {
// line 96
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "description", ["placeholder" => "Loyalty Description", "nl2br" => true]);
// line 100
yield "
";
}
// line 102
yield "
\t\t\t\t\t\t\t\t\t<div class=\"d-none\">
";
// line 116
yield "\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"media-section slide-media-desktop\">
";
// line 121
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 121, $this->source); })())) {
// line 122
yield " ";
$context["thumbnail"] = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "aboutImage"), "getThumbnail", [""], "method", false, false, false, 122);
// line 123
yield " <video poster=\"";
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", null, true);
yield "\">
";
// line 126
yield " Your browser does not support the video tag.
</video>
";
} else {
// line 129
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "aboutImage", ["title" => "Drag image for mobile"]);
// line 132
yield "
";
}
// line 134
yield "\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"media-section slide-media-mobile\">
\t\t\t\t\t\t\t\t";
// line 138
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 138, $this->source); })())) {
// line 139
yield " ";
$context["thumbnail"] = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "aboutImage"), "getThumbnail", [""], "method", false, false, false, 139);
// line 140
yield " <video poster=\"";
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", null, true);
yield "\">
";
// line 143
yield " Your browser does not support the video tag.
</video>
";
}
// line 146
yield "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t</section>
\t<!--End Info Media-->
\t<!--Start Featured Recipes Section-->
\t";
// line 153
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); })()))) {
// line 154
yield "\t\t<section class=\"featured-recipes-section inner-frecipes-section event-detail-slider resources-center\">
\t\t\t<div class=\"container container-sm\">
\t\t\t <h2 class=\"heading\">";
// line 156
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Newsletters"), "html", null, true);
yield "</h2>
\t\t\t\t<div class=\"featured-recipes\">
\t\t\t\t\t<div class=\"custom-slider custom-event-slider\">
\t\t\t\t\t\t";
// line 159
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["newsletter"]) {
// line 160
yield "\t\t\t\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0);\">
\t\t\t\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 164
if (CoreExtension::getAttribute($this->env, $this->source, $context["newsletter"], "image", [], "any", true, true, false, 164)) {
// line 165
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["newsletter"], "image", [], "any", false, false, false, 165), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["newsletter"], "title", [], "any", false, false, false, 165), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 168
yield "\t\t\t\t\t\t\t\t\t\t\t</figure>
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t<div class=\"slide-content\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"frecipes-box\">
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0);\" class=\"text-decoration-none\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<h3>";
// line 173
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["newsletter"], "title", [], "any", false, false, false, 173), "html", null, true);
yield "</h3>
\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 175
if ((CoreExtension::getAttribute($this->env, $this->source, $context["newsletter"], "description", [], "any", true, true, false, 175) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["newsletter"], "description", [], "any", false, false, false, 175)))) {
// line 176
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<p>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["newsletter"], "description", [], "any", false, false, false, 176), "html", null, true);
yield "</p>
\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 178
yield "\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info w-100 justify-content-between\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"share\" onclick=\"sharemodal('Article','";
// line 180
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 180), "getSchemeAndHttpHost", [], "method", false, false, false, 180) . CoreExtension::getAttribute($this->env, $this->source, $context["newsletter"], "pdf", [], "any", false, false, false, 180)), "html", null, true);
yield "','";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SHARE KNOWLEDGE WITH YOUR FRIENDS"), "html", null, true);
yield "')\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html", null, true);
yield "</li>
<li class=\"px-0 w-auto\">
";
// line 182
if ( !(null === (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 182, $this->source); })()))) {
// line 183
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["newsletter"], "pdf", [], "any", false, false, false, 183), "html", null, true);
yield "\" target=\"_blank\" class=\"btn btn-custom btn-green\">
";
// line 184
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Read Now"), "html", null, true);
yield "
</a>
";
} else {
// line 187
yield " <a href=\"javascript:void(0);\" onclick=\"storePdfForLater('";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["newsletter"], "pdf", [], "any", false, false, false, 187), "html", null, true);
yield "')\" class=\"btn btn-custom btn-green\">
";
// line 188
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Read Now"), "html", null, true);
yield "
</a>
";
}
// line 191
yield " </li>
\t\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['newsletter'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 197
yield "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t";
}
// line 202
yield "\t<!--End Featured Recipes Section-->
\t\t\t";
// line 205
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 205), "locale", [], "any", false, false, false, 205) == "ar")) {
// line 206
yield "\t\t\t\t";
$context["topMenu"] = "/en/resources/newsletter";
// line 207
yield "\t\t\t";
} else {
// line 208
yield "\t\t\t\t";
$context["topMenu"] = "/ar/resources/newsletter";
// line 209
yield "\t\t\t";
}
// line 210
yield "\t\t\t<script>
\t\t\t\tvar _TopMenuLink = \"";
// line 211
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", null, true);
yield "\";
\t\t\t</script>
<script>
function storePdfForLater(pdfUrl) {
fetch('/store-pdf-session', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Requested-With': 'XMLHttpRequest'
},
body: JSON.stringify({ pdf: pdfUrl })
}).then(() => {
window.location.href = '/' + document.documentElement.lang + '/signin';
});
}
</script>
\t\t\t<!-- Resource Listing More Topics End -->
\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "newsletter/newsletter.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"layout/layout.html.twig\" %}
{% block title %}GFS - Resources
{% endblock %}
{% block content %}
{% set user = app.session.get('loginUserName') %}
\t<!--Start Main Slider-->
\t\t<section class=\"main-slider-section product-main-slider resources-section-slider\">
\t\t\t<div class=\"container container-lg\">
{% if editmode %}
{{ pimcore_image(\"myImage\",{
\"title\" : \"Drag image for desktop\",
\"height\" : 200
}) }}
{{ pimcore_image(\"mobileImage\",{
\"title\" : \"Drag image for mobile\",
\"height\" : 200
}) }}
{% endif %}
<div class=\"custom-slider singal-slider main-slider\">
\t\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t\t<div class=\"slide-media slide-media-desktop\">
{% if not editmode %}
{{ pimcore_image(\"myImage\",{
\"title\" : \"Drag image for desktop\",
\"width\" : 200,
\"height\" : 200
}) }}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"slide-media slide-media-mobile\">
{% if not editmode %}
{{ pimcore_image(\"mobileImage\",{
\"title\" : \"Drag image for mobile\",
\"width\" : 200,
\"height\" : 200
}) }}
{% endif %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"silde-content-box\">
\t\t\t\t\t\t\t\t<div class=\"slide-content\">
\t\t\t\t\t\t\t\t\t<h1>
\t\t\t\t\t\t\t\t\t\t<span class=\"title-sm d-block\">{{ pimcore_input(\"headline\",{
\"placeholder\": \"headimg one line\"
}) }}</span>
\t\t\t\t\t\t\t\t\t\t<span class=\"title-lg underline-end\">{{ pimcore_input(\"headline2\",{
\"placeholder\": \"headimg two line\"
}) }}</span>
\t\t\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t<!--End Main Slider-->
\t<!--Start Breadcrumbs-->
\t<div class=\"breadcrumb-holder\">
\t\t<ol class=\"breadcrumb\">
\t\t\t<li class=\"breadcrumb-item\">
\t\t\t\t<a href=\"/{{app.request.locale}}\">{{'Home'|trans}}</a>
\t\t\t</li>
\t\t\t<li class=\"breadcrumb-item\">{{'Resources'|trans}}</li>
\t\t\t<li class=\"breadcrumb-item active\" aria-current=\"page\">
\t\t\t\t{{\"Newsletter\" | trans}}
\t\t\t</li>
\t\t</ol>
\t</div>
\t<!--End Breadcrumbs-->
\t<!--Start Info Media-->
\t\t<section class=\"training-media-box info-media res-listing-tech\">
\t\t\t\t\t\t<div class=\"container container-sm\">
\t\t\t\t\t\t\t<div class=\"info-section\">
\t\t\t\t\t\t\t\t<h5>
{{ \"Newsletter\" | trans}}
</h5>
\t\t\t\t\t\t\t\t<h4>
{{ pimcore_input(\"aboutHeading\",{
\"placeholder\": \"headimg one line\"
}) }}
</h4>
\t\t\t\t\t\t\t\t<p class=\"slide-media-desktop\">
{{ pimcore_textarea(\"description\",{
\"placeholder\": \"Loyalty Description\",
\t\t\t\t\t\t\t\t\t\t\"nl2br\" : true,
})
}}
</p>
\t\t\t\t\t\t\t\t<p class=\"slide-media-mobile\">
{% if not editmode %}
{{ pimcore_textarea(\"description\",{
\"placeholder\": \"Loyalty Description\",
\t\t\t\t\t\t\t\t\t\t\t\"nl2br\" : true,
})
}}
{% endif %}
\t\t\t\t\t\t\t\t\t<div class=\"d-none\">
{# {% if featureNewsletter and featureNewsletter.pdf is not null %}
{% if user is not null %}
<a href=\"{{featureNewsletter.pdf}}\" target=\"_blank\" class=\"btn btn-custom btn-green\">
{{\"Read Now\" | trans}}
</a>
{% else %}
<a href=\"javascript:void(0);\" onclick=\"storePdfForLater('{{ featureNewsletter.pdf }}')\" class=\"btn btn-custom btn-green\">
{{\"Read Now\"|trans}}
</a>
{% endif %}
{% endif %} #}
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"media-section slide-media-desktop\">
{% if not editmode %}
{% set thumbnail = pimcore_image(\"aboutImage\").getThumbnail(\"\") %}
<video poster=\"{{ thumbnail }}\">
{# <source src=\"{{aboutus.banner_video.data}}\" type=\"video/mp4\" /> #}
Your browser does not support the video tag.
</video>
{% else %}
{{ pimcore_image(\"aboutImage\",{
\"title\" : \"Drag image for mobile\",
}) }}
{% endif %}
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"media-section slide-media-mobile\">
\t\t\t\t\t\t\t\t{% if not editmode %}
{% set thumbnail = pimcore_image(\"aboutImage\").getThumbnail(\"\") %}
<video poster=\"{{ thumbnail }}\">
{# <source src=\"{{aboutus.banner_video.data}}\" type=\"video/mp4\" /> #}
Your browser does not support the video tag.
</video>
{% endif %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t</section>
\t<!--End Info Media-->
\t<!--Start Featured Recipes Section-->
\t{% if newsletters is not empty %}
\t\t<section class=\"featured-recipes-section inner-frecipes-section event-detail-slider resources-center\">
\t\t\t<div class=\"container container-sm\">
\t\t\t <h2 class=\"heading\">{{'Newsletters'|trans}}</h2>
\t\t\t\t<div class=\"featured-recipes\">
\t\t\t\t\t<div class=\"custom-slider custom-event-slider\">
\t\t\t\t\t\t{% for newsletter in newsletters %}
\t\t\t\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t\t\t\t<div class=\"slide-holder\">
\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0);\">
\t\t\t\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
\t\t\t\t\t\t\t\t\t\t\t\t{% if newsletter.image is defined %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ newsletter.image }}\" alt=\"{{newsletter.title}}\">
\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t</figure>
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t<div class=\"slide-content\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"frecipes-box\">
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0);\" class=\"text-decoration-none\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<h3>{{newsletter.title}}</h3>
\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t{% if newsletter.description is defined and newsletter.description is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{newsletter.description}}</p>
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"list-unstyled recipe-info w-100 justify-content-between\">
\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>
<li class=\"px-0 w-auto\">
{% if user is not null %}
<a href=\"{{newsletter.pdf}}\" target=\"_blank\" class=\"btn btn-custom btn-green\">
{{\"Read Now\" | trans}}
</a>
{% else %}
<a href=\"javascript:void(0);\" onclick=\"storePdfForLater('{{ newsletter.pdf }}')\" class=\"btn btn-custom btn-green\">
{{\"Read Now\"|trans}}
</a>
{% endif %}
</li>
\t\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t{% endif %}
\t<!--End Featured Recipes Section-->
\t\t\t{% if (app.request.locale =='ar') %}
\t\t\t\t{% set topMenu =\"/en/resources/newsletter\"%}
\t\t\t{% else %}
\t\t\t\t{% set topMenu =\"/ar/resources/newsletter\"%}
\t\t\t{% endif %}
\t\t\t<script>
\t\t\t\tvar _TopMenuLink = \"{{ topMenu }}\";
\t\t\t</script>
<script>
function storePdfForLater(pdfUrl) {
fetch('/store-pdf-session', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Requested-With': 'XMLHttpRequest'
},
body: JSON.stringify({ pdf: pdfUrl })
}).then(() => {
window.location.href = '/' + document.documentElement.lang + '/signin';
});
}
</script>
\t\t\t<!-- Resource Listing More Topics End -->
\t\t{% endblock %}
", "newsletter/newsletter.html.twig", "/var/www/vhosts/centric.ae/gcs.centric.ae/templates/newsletter/newsletter.html.twig");
}
}