var/cache/dev/twig/47/47bc4cae67ace7587f4a1c96ac44f21c.php line 67

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. /* Blog/blogDetail.html.twig */
  15. class __TwigTemplate_c1e692a81f1d6493d186a344d03621ce extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'ogTags' => [$this'block_ogTags'],
  25.             'content' => [$this'block_content'],
  26.         ];
  27.         $this->sandbox $this->env->getExtension(SandboxExtension::class);
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 2
  33.         return "layouts/layout.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Blog/blogDetail.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Blog/blogDetail.html.twig"));
  42.         // line 5
  43.         $context["bannerImage"] = "";
  44.         // line 7
  45.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'7$this->source); })()), "image", [], "any"falsefalsetrue7)) {
  46.             // line 8
  47.             $context["bannerImage"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'8$this->source); })()), "image", [], "any"falsefalsetrue8);
  48.         } elseif ((CoreExtension::getAttribute($this->env$this->source,         // line 9
  49. (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'9$this->source); })()), "category", [], "any"falsefalsetrue9) && CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'9$this->source); })()), "category", [], "any"falsefalsetrue9), "bannerImage", [], "any"falsefalsetrue9))) {
  50.             // line 10
  51.             $context["bannerImage"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'10$this->source); })()), "category", [], "any"falsefalsetrue10), "bannerImage", [], "any"falsefalsetrue10);
  52.         } else {
  53.             // line 12
  54.             $context["bannerImage"] = "/insights/insight_banner_image_general.jpg";
  55.         }
  56.         // line 2
  57.         $this->parent $this->loadTemplate("layouts/layout.html.twig""Blog/blogDetail.html.twig"2);
  58.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  59.         
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  61.         
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63.     }
  64.     // line 16
  65.     public function block_ogTags($context, array $blocks = [])
  66.     {
  67.         $macros $this->macros;
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogTags"));
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogTags"));
  72.         // line 17
  73.         yield "<meta property=\"og:title\" content=\"";
  74.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'17$this->source); })()), "title", [], "any"falsefalsetrue17), 17$this->source), "html"nulltrue);
  75.         yield "\">
  76. <meta property=\"og:image\" content=\"";
  77.         // line 18
  78.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($this->sandbox->ensureToStringAllowed(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.'18$this->source); })()), "request", [], "any"falsefalsetrue18), "getSchemeAndHttpHost", [], "method"falsefalsetrue18), 18$this->source) . $this->sandbox->ensureToStringAllowed((isset($context["bannerImage"]) || array_key_exists("bannerImage"$context) ? $context["bannerImage"] : (function () { throw new RuntimeError('Variable "bannerImage" does not exist.'18$this->source); })()), 18$this->source)), "html"nulltrue);
  79.         yield "\">
  80. <meta property=\"og:url\" content=\"";
  81.         // line 19
  82.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'19$this->source); })()), "url", [], "any"falsefalsetrue19), 19$this->source), "html"nulltrue);
  83.         yield "\">
  84. <meta property=\"og:description\" content=\"";
  85.         // line 20
  86.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'20$this->source); })()), "shortDescription", [], "any"falsefalsetrue20), 20$this->source), "html"nulltrue);
  87.         yield "\">
  88. ";
  89.         
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  91.         
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  93.         return; yield '';
  94.     }
  95.     // line 23
  96.     public function block_content($context, array $blocks = [])
  97.     {
  98.         $macros $this->macros;
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  103.         // line 24
  104.         yield "
  105. \t<!--Hero Section -->
  106. \t<div id=\"hero\" class=\"has-image has-logo\">
  107. \t<div id=\"hero-styles\">
  108. \t  <div id=\"hero-caption\" class=\"content-max-width\">
  109. \t\t<div class=\"inner\">
  110. \t\t  <div class=\"hero-arrow\"><i class=\"arrow-icon\"></i></div>
  111. \t\t  <div class=\"hero-subtitle\">
  112. \t\t\t<span>";
  113.         // line 35
  114.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'35$this->source); })()), "date", [], "any"falsefalsetrue35), 35$this->source), "Y"), "html"nulltrue);
  115.         yield " </span>
  116. \t\t\t";
  117.         // line 37
  118.         yield "\t\t  </div>
  119. \t\t  <div class=\"hero-title-wrapper\">
  120. \t\t\t<div class=\"blog-N hero-title hero-title-small\">
  121. \t\t\t\t<h1><span>";
  122.         // line 41
  123.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'41$this->source); })()), "title", [], "any"falsefalsetrue41), 41$this->source), "html"nulltrue);
  124.         yield "</span></h1>
  125. \t\t\t  ";
  126.         // line 44
  127.         yield "\t\t\t</div>
  128. \t\t  </div>
  129. \t\t</div>
  130. \t  </div>
  131. \t  <div id=\"hero-footer\">
  132. \t\t<div class=\"hero-footer-right\">
  133. \t\t  <div class=\"button-wrap right scroll-down\">
  134. \t\t\t<div class=\"icon-wrap parallax-wrap\">
  135. \t\t\t  <div class=\"button-icon parallax-element\">
  136. \t\t\t\t<i class=\"fa fa-angle-down\"></i>
  137. \t\t\t  </div>
  138. \t\t\t</div>
  139. \t\t\t<div class=\"button-text sticky right\">
  140. \t\t\t  <span data-hover=\"Scroll to navigate\"
  141. \t\t\t\t>Scroll to navigate</span
  142. \t\t\t  >
  143. \t\t\t</div>
  144. \t\t  </div>
  145. \t\t</div>
  146. \t  </div>
  147. \t</div>
  148.   </div>
  149.   <div id=\"hero-image-wrapper\">
  150. \t<div id=\"hero-background-layer\" class=\"parallax-scroll-image\">
  151. \t  <div id=\"hero-bg-image\">
  152. \t\t\t<img src=\"";
  153.         // line 69
  154.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["bannerImage"]) || array_key_exists("bannerImage"$context) ? $context["bannerImage"] : (function () { throw new RuntimeError('Variable "bannerImage" does not exist.'69$this->source); })()), 69$this->source), "html"nulltrue);
  155.         yield "\" alt=\"";
  156.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'69$this->source); })()), "title", [], "any"falsefalsetrue69), 69$this->source), "html"nulltrue);
  157.         yield "\" id=\"hero-bg-image\"class=\"insights-header-image\">
  158. \t</div>
  159. \t</div>
  160.   </div>
  161.   <!--/Hero Section -->
  162.   <!-- Main Content -->
  163.   <div id=\"main-content\">
  164. \t<!-- Main Page Content -->
  165. \t<div id=\"main-page-content\" class=\"content-max-width\">
  166. \t  <div class=\"blog-detail\">
  167. \t\t<!-- Row -->
  168. \t\t<div
  169. \t\t  class=\"content-row row_padding_bottom row_padding_top light-section change-header-color\"
  170. \t\t  data-bgcolor=\"#fff\"
  171. \t\t>
  172. \t\t  <div class=\"blogs-layout\">
  173. \t\t\t<div class=\"blogs-main blogs-main-Headings\">
  174. \t\t\t  <div class=\"blog-detail-header\">
  175. \t\t\t\t";
  176.         // line 89
  177.         yield "\t\t\t\t<h5>";
  178.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'89$this->source); })()), "date", [], "any"falsefalsetrue89), 89$this->source), "d/m/Y"), "html"nulltrue);
  179.         yield "</h5>
  180. \t\t\t  </div>
  181. \t\t\t  ";
  182.         // line 91
  183.         yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'91$this->source); })()), "content", [], "any"falsefalsetrue91), 91$this->source);
  184.         yield "
  185. \t\t\t  ";
  186.         // line 93
  187.         if (((isset($context["blogPosts"]) || array_key_exists("blogPosts"$context) ? $context["blogPosts"] : (function () { throw new RuntimeError('Variable "blogPosts" does not exist.'93$this->source); })()) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["blogPosts"]) || array_key_exists("blogPosts"$context) ? $context["blogPosts"] : (function () { throw new RuntimeError('Variable "blogPosts" does not exist.'93$this->source); })())) > 0))) {
  188.             // line 94
  189.             yield "\t\t\t  <div>
  190. \t\t\t\t<div class=\"one_half\">
  191. \t\t\t\t  <h3 class=\"has-mask-fill no-margins\">Read</h3>
  192. \t\t\t\t  <h3 class=\"has-mask-fill\">More Stories</h3>
  193. \t\t\t\t</div>
  194. \t\t\t\t<hr />
  195. \t\t\t\t<div class=\"blog-detail-blogs change-header\">
  196. \t\t\t\t";
  197.             // line 102
  198.             $context['_parent'] = $context;
  199.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["blogPosts"]) || array_key_exists("blogPosts"$context) ? $context["blogPosts"] : (function () { throw new RuntimeError('Variable "blogPosts" does not exist.'102$this->source); })()));
  200.             foreach ($context['_seq'] as $context["_key"] => $context["blogPost"]) {
  201.                 // line 103
  202.                 yield "\t\t\t\t\t
  203. \t\t\t\t
  204. \t\t\t\t
  205. \t\t\t\t  <div class=\"blogs-blog\">
  206. \t\t\t\t\t<div class=\"hero-arrow\">
  207. \t\t\t\t\t  <i class=\"arrow-icon\"></i>
  208. \t\t\t\t\t</div>
  209. \t\t\t\t\t<div class=\"next-hero-subtitle\">
  210. \t\t\t\t\t  <span>";
  211.                 // line 111
  212.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["blogPost"], "date", [], "any"falsefalsetrue111), 111$this->source), "d/m/Y"), "html"nulltrue);
  213.                 yield "</span>
  214. \t\t\t\t\t  ";
  215.                 // line 113
  216.                 yield "\t\t\t\t\t</div>
  217. \t\t\t\t\t<div class=\"news-panel-title\">
  218. \t\t\t\t\t  <span>";
  219.                 // line 115
  220.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["blogPost"], "title", [], "any"falsefalsetrue115), 115$this->source), "html"nulltrue);
  221.                 yield "</span
  222. \t\t\t\t\t  >
  223. \t\t\t\t\t</div>
  224. \t\t\t\t\t<a href=\"/insights/";
  225.                 // line 118
  226.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["blogPost"], "category", [], "any"falsefalsetrue118), "url", [], "any"falsefalsetrue118), 118$this->source) . "/") . $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["blogPost"], "url", [], "any"falsefalsetrue118), 118$this->source)), "html"nulltrue);
  227.                 yield "\" class=\"has-animation has-icon-end\">
  228. \t\t\t\t\t  Read More
  229. \t\t\t\t\t</a>
  230. \t\t\t\t  </div>
  231. \t\t\t\t";
  232.             }
  233.             $_parent $context['_parent'];
  234.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blogPost'], $context['_parent'], $context['loop']);
  235.             $context array_intersect_key($context$_parent) + $_parent;
  236.             // line 123
  237.             yield "\t\t\t\t
  238. \t\t\t\t</div>
  239. \t\t\t  </div>
  240. \t\t\t";
  241.         }
  242.         // line 128
  243.         yield "\t\t\t</div>
  244. \t\t\t<aside class=\"blogs-aside\">
  245.                             <img
  246.                               src=\"/assets/images/icons/filter-icon.svg\"
  247.                               alt=\"Icon\"
  248.                               class=\"filter-icon\"
  249.                             />
  250. \t\t\t\t\t\t\t<form action=\"/insights-search\" method =\"GET\" class=\"blog-aside-form\">
  251. \t\t\t\t\t\t\t<div class=\"search-input\">
  252. \t\t\t\t\t\t\t  <input type=\"text\" placeholder=\"Search\" name=\"name\"/>
  253. \t\t\t\t\t\t\t  <span class=\"search-input-icon\">
  254. \t\t\t\t\t\t\t\t<i class=\"fa-solid fa-magnifying-glass\"></i>
  255. \t\t\t\t\t\t\t  </span>
  256. \t\t\t\t\t\t\t</div>
  257. \t\t\t\t\t\t\t<select name=\"category\" class=\"primary-select\">
  258. \t\t\t\t\t\t\t  ";
  259.         // line 143
  260.         if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'143$this->source); })())) > 0)) {
  261.             // line 144
  262.             yield "\t\t\t\t\t\t\t\t";
  263.             $context['_parent'] = $context;
  264.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'144$this->source); })()));
  265.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  266.                 // line 145
  267.                 yield "\t\t\t\t
  268. \t\t\t\t\t\t\t\t  ";
  269.                 // line 146
  270.                 if ((CoreExtension::getAttribute($this->env$this->source$context["category"], "id", [], "any"falsefalsetrue146) == CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'146$this->source); })()), "category", [], "any"falsefalsetrue146), "id", [], "any"falsefalsetrue146))) {
  271.                     // line 147
  272.                     yield "\t\t\t\t
  273. \t\t\t\t\t\t\t\t\t<option value=\"\" selected> ";
  274.                     // line 148
  275.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["category"], "name", [], "any"falsefalsetrue148), 148$this->source), "html"nulltrue);
  276.                     yield " </option>
  277. \t\t\t\t\t\t\t\t  ";
  278.                 } else {
  279.                     // line 150
  280.                     yield "\t\t\t\t
  281. \t\t\t\t\t\t\t\t\t<option value=\"";
  282.                     // line 151
  283.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["category"], "url", [], "any"falsefalsetrue151), 151$this->source), "html"nulltrue);
  284.                     yield "\" > ";
  285.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["category"], "name", [], "any"falsefalsetrue151), 151$this->source), "html"nulltrue);
  286.                     yield " </option>
  287. \t\t\t\t
  288. \t\t\t\t\t\t\t\t  ";
  289.                 }
  290.                 // line 154
  291.                 yield "\t\t\t\t\t\t\t\t
  292. \t\t\t\t\t\t\t\t";
  293.             }
  294.             $_parent $context['_parent'];
  295.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  296.             $context array_intersect_key($context$_parent) + $_parent;
  297.             // line 156
  298.             yield "
  299. \t\t\t\t\t\t\t\t
  300. \t\t\t\t\t\t\t\t
  301. \t\t\t\t\t\t\t  ";
  302.         }
  303.         // line 160
  304.         yield "\t\t\t\t\t\t\t<option value=\"all\" > ";
  305.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("All"), "html"nulltrue);
  306.         yield " </option>
  307. \t\t\t\t\t\t\t  
  308. \t\t\t\t\t\t\t</select>
  309. \t\t\t\t\t\t\t<button
  310. \t\t\t\t\t\t\t  class=\"primary-button button-square has-animation\"
  311. \t\t\t\t\t\t\t  style=\"width: 100%\"
  312. \t\t\t\t\t\t\t>
  313. \t\t\t\t\t\t\t  Search
  314. \t\t\t\t\t\t\t</button>
  315. \t\t\t\t\t\t  </form>
  316. \t\t\t\t\t\t\t";
  317.         // line 171
  318.         $context["image"] = "";
  319.         // line 172
  320.         yield "
  321. \t\t\t\t\t\t\t";
  322.         // line 173
  323.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'173$this->source); })()), "bannerImage", [], "any"falsefalsetrue173)) {
  324.             // line 174
  325.             yield "\t\t\t\t\t\t\t\t";
  326.             $context["image"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'174$this->source); })()), "bannerImage", [], "any"falsefalsetrue174);
  327.             // line 175
  328.             yield "\t\t\t\t\t\t\t";
  329.         } elseif ((CoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'175$this->source); })()), "category", [], "any"falsefalsetrue175) && CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'175$this->source); })()), "category", [], "any"falsefalsetrue175), "image", [], "any"falsefalsetrue175))) {
  330.             // line 176
  331.             yield "\t\t\t\t\t\t\t\t";
  332.             $context["image"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'176$this->source); })()), "category", [], "any"falsefalsetrue176), "image", [], "any"falsefalsetrue176);
  333.             // line 177
  334.             yield "\t\t\t\t\t\t\t";
  335.         } else {
  336.             // line 178
  337.             yield "\t\t\t\t\t\t\t\t";
  338.             $context["image"] = "/assets/images/blog-aside.png";
  339.             // line 179
  340.             yield "\t\t\t\t\t\t\t";
  341.         }
  342.         // line 180
  343.         yield "                            ";
  344.         yield from         $this->loadTemplate("Blog/__banner_sidebar.html.twig""Blog/blogDetail.html.twig"180)->unwrap()->yield(CoreExtension::merge($context, ["image" =>         // line 181
  345. (isset($context["image"]) || array_key_exists("image"$context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.'181$this->source); })()), "alt" => "Design Retainer | Centric"]));
  346.         // line 184
  347.         yield "                          </aside>
  348. \t\t  </div>
  349. \t\t</div>
  350. \t\t<!--/Row -->
  351. \t  </div>
  352. \t<!-- Contact Form Start -->
  353. \t\t";
  354.         // line 191
  355.         yield from         $this->loadTemplate("includes/contact_us_new_c2_form.html.twig""Blog/blogDetail.html.twig"191)->unwrap()->yield($context);
  356.         // line 192
  357.         yield "
  358. \t<!-- Contact Form Start -->
  359. \t</div>
  360. \t<!--/Main Page Content -->
  361. \t
  362.   </div>
  363.   <!--/Main Content -->
  364. ";
  365.         
  366.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  367.         
  368.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  369.         return; yield '';
  370.     }
  371.     /**
  372.      * @codeCoverageIgnore
  373.      */
  374.     public function getTemplateName()
  375.     {
  376.         return "Blog/blogDetail.html.twig";
  377.     }
  378.     /**
  379.      * @codeCoverageIgnore
  380.      */
  381.     public function isTraitable()
  382.     {
  383.         return false;
  384.     }
  385.     /**
  386.      * @codeCoverageIgnore
  387.      */
  388.     public function getDebugInfo()
  389.     {
  390.         return array (  386 => 192,  384 => 191,  375 => 184,  373 => 181,  371 => 180,  368 => 179,  365 => 178,  362 => 177,  359 => 176,  356 => 175,  353 => 174,  351 => 173,  348 => 172,  346 => 171,  331 => 160,  325 => 156,  318 => 154,  310 => 151,  307 => 150,  302 => 148,  299 => 147,  297 => 146,  294 => 145,  289 => 144,  287 => 143,  270 => 128,  263 => 123,  252 => 118,  246 => 115,  242 => 113,  238 => 111,  228 => 103,  224 => 102,  214 => 94,  212 => 93,  207 => 91,  201 => 89,  177 => 69,  150 => 44,  146 => 41,  140 => 37,  136 => 35,  123 => 24,  113 => 23,  100 => 20,  96 => 19,  92 => 18,  87 => 17,  77 => 16,  66 => 2,  63 => 12,  60 => 10,  58 => 9,  56 => 8,  54 => 7,  52 => 5,  39 => 2,);
  391.     }
  392.     public function getSourceContext()
  393.     {
  394.         return new Source("
  395. {% extends 'layouts/layout.html.twig' %}
  396. {% set bannerImage = ''%}
  397. {% if blog.image %}
  398. \t{% set bannerImage = blog.image %}
  399. {% elseif blog.category and blog.category.bannerImage %}
  400. \t{% set bannerImage = blog.category.bannerImage %}
  401. {% else %}
  402. \t{% set bannerImage = '/insights/insight_banner_image_general.jpg' %}
  403. {% endif %}
  404. {% block ogTags %}
  405. <meta property=\"og:title\" content=\"{{blog.title}}\">
  406. <meta property=\"og:image\" content=\"{{ app.request.getSchemeAndHttpHost() ~ bannerImage }}\">
  407. <meta property=\"og:url\" content=\"{{blog.url}}\">
  408. <meta property=\"og:description\" content=\"{{blog.shortDescription}}\">
  409. {% endblock %}
  410. {% block content %}
  411. \t<!--Hero Section -->
  412. \t<div id=\"hero\" class=\"has-image has-logo\">
  413. \t<div id=\"hero-styles\">
  414. \t  <div id=\"hero-caption\" class=\"content-max-width\">
  415. \t\t<div class=\"inner\">
  416. \t\t  <div class=\"hero-arrow\"><i class=\"arrow-icon\"></i></div>
  417. \t\t  <div class=\"hero-subtitle\">
  418. \t\t\t<span>{{blog.date|date('Y')}} </span>
  419. \t\t\t{# <span>{{blog.postedBy}}</span> #}
  420. \t\t  </div>
  421. \t\t  <div class=\"hero-title-wrapper\">
  422. \t\t\t<div class=\"blog-N hero-title hero-title-small\">
  423. \t\t\t\t<h1><span>{{blog.title}}</span></h1>
  424. \t\t\t  {# <span>Electronics | Navigating</span>
  425. \t\t\t  <span>the Digital Landscape</span> #}
  426. \t\t\t</div>
  427. \t\t  </div>
  428. \t\t</div>
  429. \t  </div>
  430. \t  <div id=\"hero-footer\">
  431. \t\t<div class=\"hero-footer-right\">
  432. \t\t  <div class=\"button-wrap right scroll-down\">
  433. \t\t\t<div class=\"icon-wrap parallax-wrap\">
  434. \t\t\t  <div class=\"button-icon parallax-element\">
  435. \t\t\t\t<i class=\"fa fa-angle-down\"></i>
  436. \t\t\t  </div>
  437. \t\t\t</div>
  438. \t\t\t<div class=\"button-text sticky right\">
  439. \t\t\t  <span data-hover=\"Scroll to navigate\"
  440. \t\t\t\t>Scroll to navigate</span
  441. \t\t\t  >
  442. \t\t\t</div>
  443. \t\t  </div>
  444. \t\t</div>
  445. \t  </div>
  446. \t</div>
  447.   </div>
  448.   <div id=\"hero-image-wrapper\">
  449. \t<div id=\"hero-background-layer\" class=\"parallax-scroll-image\">
  450. \t  <div id=\"hero-bg-image\">
  451. \t\t\t<img src=\"{{bannerImage}}\" alt=\"{{blog.title}}\" id=\"hero-bg-image\"class=\"insights-header-image\">
  452. \t</div>
  453. \t</div>
  454.   </div>
  455.   <!--/Hero Section -->
  456.   <!-- Main Content -->
  457.   <div id=\"main-content\">
  458. \t<!-- Main Page Content -->
  459. \t<div id=\"main-page-content\" class=\"content-max-width\">
  460. \t  <div class=\"blog-detail\">
  461. \t\t<!-- Row -->
  462. \t\t<div
  463. \t\t  class=\"content-row row_padding_bottom row_padding_top light-section change-header-color\"
  464. \t\t  data-bgcolor=\"#fff\"
  465. \t\t>
  466. \t\t  <div class=\"blogs-layout\">
  467. \t\t\t<div class=\"blogs-main blogs-main-Headings\">
  468. \t\t\t  <div class=\"blog-detail-header\">
  469. \t\t\t\t{# <h5>{{blog.postedBy}}</h5> #}
  470. \t\t\t\t<h5>{{blog.date|date(\"d/m/Y\")}}</h5>
  471. \t\t\t  </div>
  472. \t\t\t  {{ blog.content | raw}}
  473. \t\t\t  {% if blogPosts and blogPosts|length > 0 %}
  474. \t\t\t  <div>
  475. \t\t\t\t<div class=\"one_half\">
  476. \t\t\t\t  <h3 class=\"has-mask-fill no-margins\">Read</h3>
  477. \t\t\t\t  <h3 class=\"has-mask-fill\">More Stories</h3>
  478. \t\t\t\t</div>
  479. \t\t\t\t<hr />
  480. \t\t\t\t<div class=\"blog-detail-blogs change-header\">
  481. \t\t\t\t{% for blogPost in blogPosts %}
  482. \t\t\t\t\t
  483. \t\t\t\t
  484. \t\t\t\t
  485. \t\t\t\t  <div class=\"blogs-blog\">
  486. \t\t\t\t\t<div class=\"hero-arrow\">
  487. \t\t\t\t\t  <i class=\"arrow-icon\"></i>
  488. \t\t\t\t\t</div>
  489. \t\t\t\t\t<div class=\"next-hero-subtitle\">
  490. \t\t\t\t\t  <span>{{blogPost.date|date(\"d/m/Y\")}}</span>
  491. \t\t\t\t\t  {# <span>{{blogPost.postedBy}}</span> #}
  492. \t\t\t\t\t</div>
  493. \t\t\t\t\t<div class=\"news-panel-title\">
  494. \t\t\t\t\t  <span>{{blogPost.title}}</span
  495. \t\t\t\t\t  >
  496. \t\t\t\t\t</div>
  497. \t\t\t\t\t<a href=\"/insights/{{blogPost.category.url ~ '/' ~ blogPost.url}}\" class=\"has-animation has-icon-end\">
  498. \t\t\t\t\t  Read More
  499. \t\t\t\t\t</a>
  500. \t\t\t\t  </div>
  501. \t\t\t\t{% endfor %}
  502. \t\t\t\t
  503. \t\t\t\t</div>
  504. \t\t\t  </div>
  505. \t\t\t{% endif %}
  506. \t\t\t</div>
  507. \t\t\t<aside class=\"blogs-aside\">
  508.                             <img
  509.                               src=\"/assets/images/icons/filter-icon.svg\"
  510.                               alt=\"Icon\"
  511.                               class=\"filter-icon\"
  512.                             />
  513. \t\t\t\t\t\t\t<form action=\"/insights-search\" method =\"GET\" class=\"blog-aside-form\">
  514. \t\t\t\t\t\t\t<div class=\"search-input\">
  515. \t\t\t\t\t\t\t  <input type=\"text\" placeholder=\"Search\" name=\"name\"/>
  516. \t\t\t\t\t\t\t  <span class=\"search-input-icon\">
  517. \t\t\t\t\t\t\t\t<i class=\"fa-solid fa-magnifying-glass\"></i>
  518. \t\t\t\t\t\t\t  </span>
  519. \t\t\t\t\t\t\t</div>
  520. \t\t\t\t\t\t\t<select name=\"category\" class=\"primary-select\">
  521. \t\t\t\t\t\t\t  {% if categories|length > 0 %}
  522. \t\t\t\t\t\t\t\t{% for category in categories %}
  523. \t\t\t\t
  524. \t\t\t\t\t\t\t\t  {% if category.id == blog.category.id %}
  525. \t\t\t\t
  526. \t\t\t\t\t\t\t\t\t<option value=\"\" selected> {{category.name}} </option>
  527. \t\t\t\t\t\t\t\t  {% else %}
  528. \t\t\t\t
  529. \t\t\t\t\t\t\t\t\t<option value=\"{{category.url}}\" > {{category.name}} </option>
  530. \t\t\t\t
  531. \t\t\t\t\t\t\t\t  {% endif %}
  532. \t\t\t\t\t\t\t\t
  533. \t\t\t\t\t\t\t\t{% endfor %}
  534. \t\t\t\t\t\t\t\t
  535. \t\t\t\t\t\t\t\t
  536. \t\t\t\t\t\t\t  {% endif %}
  537. \t\t\t\t\t\t\t<option value=\"all\" > {{\"All\" |trans}} </option>
  538. \t\t\t\t\t\t\t  
  539. \t\t\t\t\t\t\t</select>
  540. \t\t\t\t\t\t\t<button
  541. \t\t\t\t\t\t\t  class=\"primary-button button-square has-animation\"
  542. \t\t\t\t\t\t\t  style=\"width: 100%\"
  543. \t\t\t\t\t\t\t>
  544. \t\t\t\t\t\t\t  Search
  545. \t\t\t\t\t\t\t</button>
  546. \t\t\t\t\t\t  </form>
  547. \t\t\t\t\t\t\t{% set image = ''%}
  548. \t\t\t\t\t\t\t{% if blog.bannerImage %}
  549. \t\t\t\t\t\t\t\t{% set image = blog.bannerImage %}
  550. \t\t\t\t\t\t\t{% elseif blog.category and blog.category.image %}
  551. \t\t\t\t\t\t\t\t{% set image = blog.category.image %}
  552. \t\t\t\t\t\t\t{% else %}
  553. \t\t\t\t\t\t\t\t{% set image = '/assets/images/blog-aside.png'%}
  554. \t\t\t\t\t\t\t{% endif %}
  555.                             {% include \"Blog/__banner_sidebar.html.twig\" with {
  556. \t\t\t\t\t\t'image': image,
  557. \t\t\t\t\t\t'alt':'Design Retainer | Centric'
  558.             } %}
  559.                           </aside>
  560. \t\t  </div>
  561. \t\t</div>
  562. \t\t<!--/Row -->
  563. \t  </div>
  564. \t<!-- Contact Form Start -->
  565. \t\t{% include \"includes/contact_us_new_c2_form.html.twig\" %}
  566. \t<!-- Contact Form Start -->
  567. \t</div>
  568. \t<!--/Main Page Content -->
  569. \t
  570.   </div>
  571.   <!--/Main Content -->
  572. {% endblock %}
  573. ""Blog/blogDetail.html.twig""/var/www/html/templates/Blog/blogDetail.html.twig");
  574.     }
  575.     
  576.     public function checkSecurity()
  577.     {
  578.         static $tags = array("set" => 5"if" => 7"for" => 102"include" => 180);
  579.         static $filters = array("escape" => 17"date" => 35"raw" => 91"length" => 93"trans" => 160);
  580.         static $functions = array();
  581.         try {
  582.             $this->sandbox->checkSecurity(
  583.                 ['set''if''for''include'],
  584.                 ['escape''date''raw''length''trans'],
  585.                 [],
  586.                 $this->source
  587.             );
  588.         } catch (SecurityError $e) {
  589.             $e->setSourceContext($this->source);
  590.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  591.                 $e->setTemplateLine($tags[$e->getTagName()]);
  592.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  593.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  594.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  595.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  596.             }
  597.             throw $e;
  598.         }
  599.     }
  600. }