<?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;
/* Blog/blogDetail.html.twig */
class __TwigTemplate_c1e692a81f1d6493d186a344d03621ce extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'ogTags' => [$this, 'block_ogTags'],
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension(SandboxExtension::class);
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 2
return "layouts/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "Blog/blogDetail.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Blog/blogDetail.html.twig"));
// line 5
$context["bannerImage"] = "";
// line 7
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", false, false, true, 7)) {
// line 8
$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", false, false, true, 8);
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 9
(isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 9, $this->source); })()), "category", [], "any", false, false, true, 9) && CoreExtension::getAttribute($this->env, $this->source, 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.', 9, $this->source); })()), "category", [], "any", false, false, true, 9), "bannerImage", [], "any", false, false, true, 9))) {
// line 10
$context["bannerImage"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 10, $this->source); })()), "category", [], "any", false, false, true, 10), "bannerImage", [], "any", false, false, true, 10);
} else {
// line 12
$context["bannerImage"] = "/insights/insight_banner_image_general.jpg";
}
// line 2
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "Blog/blogDetail.html.twig", 2);
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 16
public function block_ogTags($context, array $blocks = [])
{
$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", "ogTags"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogTags"));
// line 17
yield "<meta property=\"og:title\" content=\"";
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", false, false, true, 17), 17, $this->source), "html", null, true);
yield "\">
<meta property=\"og:image\" content=\"";
// line 18
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($this->sandbox->ensureToStringAllowed(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.', 18, $this->source); })()), "request", [], "any", false, false, true, 18), "getSchemeAndHttpHost", [], "method", false, false, true, 18), 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", null, true);
yield "\">
<meta property=\"og:url\" content=\"";
// line 19
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", false, false, true, 19), 19, $this->source), "html", null, true);
yield "\">
<meta property=\"og:description\" content=\"";
// line 20
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", false, false, true, 20), 20, $this->source), "html", null, true);
yield "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 23
public function block_content($context, array $blocks = [])
{
$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 24
yield "
\t<!--Hero Section -->
\t<div id=\"hero\" class=\"has-image has-logo\">
\t<div id=\"hero-styles\">
\t <div id=\"hero-caption\" class=\"content-max-width\">
\t\t<div class=\"inner\">
\t\t <div class=\"hero-arrow\"><i class=\"arrow-icon\"></i></div>
\t\t <div class=\"hero-subtitle\">
\t\t\t<span>";
// line 35
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", false, false, true, 35), 35, $this->source), "Y"), "html", null, true);
yield " </span>
\t\t\t";
// line 37
yield "\t\t </div>
\t\t <div class=\"hero-title-wrapper\">
\t\t\t<div class=\"blog-N hero-title hero-title-small\">
\t\t\t\t<h1><span>";
// line 41
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", false, false, true, 41), 41, $this->source), "html", null, true);
yield "</span></h1>
\t\t\t ";
// line 44
yield "\t\t\t</div>
\t\t </div>
\t\t</div>
\t </div>
\t <div id=\"hero-footer\">
\t\t<div class=\"hero-footer-right\">
\t\t <div class=\"button-wrap right scroll-down\">
\t\t\t<div class=\"icon-wrap parallax-wrap\">
\t\t\t <div class=\"button-icon parallax-element\">
\t\t\t\t<i class=\"fa fa-angle-down\"></i>
\t\t\t </div>
\t\t\t</div>
\t\t\t<div class=\"button-text sticky right\">
\t\t\t <span data-hover=\"Scroll to navigate\"
\t\t\t\t>Scroll to navigate</span
\t\t\t >
\t\t\t</div>
\t\t </div>
\t\t</div>
\t </div>
\t</div>
</div>
<div id=\"hero-image-wrapper\">
\t<div id=\"hero-background-layer\" class=\"parallax-scroll-image\">
\t <div id=\"hero-bg-image\">
\t\t\t<img src=\"";
// line 69
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", null, true);
yield "\" alt=\"";
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", false, false, true, 69), 69, $this->source), "html", null, true);
yield "\" id=\"hero-bg-image\"class=\"insights-header-image\">
\t</div>
\t</div>
</div>
<!--/Hero Section -->
<!-- Main Content -->
<div id=\"main-content\">
\t<!-- Main Page Content -->
\t<div id=\"main-page-content\" class=\"content-max-width\">
\t <div class=\"blog-detail\">
\t\t<!-- Row -->
\t\t<div
\t\t class=\"content-row row_padding_bottom row_padding_top light-section change-header-color\"
\t\t data-bgcolor=\"#fff\"
\t\t>
\t\t <div class=\"blogs-layout\">
\t\t\t<div class=\"blogs-main blogs-main-Headings\">
\t\t\t <div class=\"blog-detail-header\">
\t\t\t\t";
// line 89
yield "\t\t\t\t<h5>";
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", false, false, true, 89), 89, $this->source), "d/m/Y"), "html", null, true);
yield "</h5>
\t\t\t </div>
\t\t\t ";
// line 91
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", false, false, true, 91), 91, $this->source);
yield "
\t\t\t ";
// line 93
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))) {
// line 94
yield "\t\t\t <div>
\t\t\t\t<div class=\"one_half\">
\t\t\t\t <h3 class=\"has-mask-fill no-margins\">Read</h3>
\t\t\t\t <h3 class=\"has-mask-fill\">More Stories</h3>
\t\t\t\t</div>
\t\t\t\t<hr />
\t\t\t\t<div class=\"blog-detail-blogs change-header\">
\t\t\t\t";
// line 102
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["blogPost"]) {
// line 103
yield "\t\t\t\t\t
\t\t\t\t
\t\t\t\t
\t\t\t\t <div class=\"blogs-blog\">
\t\t\t\t\t<div class=\"hero-arrow\">
\t\t\t\t\t <i class=\"arrow-icon\"></i>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"next-hero-subtitle\">
\t\t\t\t\t <span>";
// line 111
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", false, false, true, 111), 111, $this->source), "d/m/Y"), "html", null, true);
yield "</span>
\t\t\t\t\t ";
// line 113
yield "\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"news-panel-title\">
\t\t\t\t\t <span>";
// line 115
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["blogPost"], "title", [], "any", false, false, true, 115), 115, $this->source), "html", null, true);
yield "</span
\t\t\t\t\t >
\t\t\t\t\t</div>
\t\t\t\t\t<a href=\"/insights/";
// line 118
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["blogPost"], "category", [], "any", false, false, true, 118), "url", [], "any", false, false, true, 118), 118, $this->source) . "/") . $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["blogPost"], "url", [], "any", false, false, true, 118), 118, $this->source)), "html", null, true);
yield "\" class=\"has-animation has-icon-end\">
\t\t\t\t\t Read More
\t\t\t\t\t</a>
\t\t\t\t </div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blogPost'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 123
yield "\t\t\t\t
\t\t\t\t</div>
\t\t\t </div>
\t\t\t";
}
// line 128
yield "\t\t\t</div>
\t\t\t<aside class=\"blogs-aside\">
<img
src=\"/assets/images/icons/filter-icon.svg\"
alt=\"Icon\"
class=\"filter-icon\"
/>
\t\t\t\t\t\t\t<form action=\"/insights-search\" method =\"GET\" class=\"blog-aside-form\">
\t\t\t\t\t\t\t<div class=\"search-input\">
\t\t\t\t\t\t\t <input type=\"text\" placeholder=\"Search\" name=\"name\"/>
\t\t\t\t\t\t\t <span class=\"search-input-icon\">
\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-magnifying-glass\"></i>
\t\t\t\t\t\t\t </span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<select name=\"category\" class=\"primary-select\">
\t\t\t\t\t\t\t ";
// line 143
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)) {
// line 144
yield "\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 145
yield "\t\t\t\t
\t\t\t\t\t\t\t\t ";
// line 146
if ((CoreExtension::getAttribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, true, 146) == CoreExtension::getAttribute($this->env, $this->source, 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.', 146, $this->source); })()), "category", [], "any", false, false, true, 146), "id", [], "any", false, false, true, 146))) {
// line 147
yield "\t\t\t\t
\t\t\t\t\t\t\t\t\t<option value=\"\" selected> ";
// line 148
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, true, 148), 148, $this->source), "html", null, true);
yield " </option>
\t\t\t\t\t\t\t\t ";
} else {
// line 150
yield "\t\t\t\t
\t\t\t\t\t\t\t\t\t<option value=\"";
// line 151
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "url", [], "any", false, false, true, 151), 151, $this->source), "html", null, true);
yield "\" > ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, true, 151), 151, $this->source), "html", null, true);
yield " </option>
\t\t\t\t
\t\t\t\t\t\t\t\t ";
}
// line 154
yield "\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 156
yield "
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t ";
}
// line 160
yield "\t\t\t\t\t\t\t<option value=\"all\" > ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("All"), "html", null, true);
yield " </option>
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<button
\t\t\t\t\t\t\t class=\"primary-button button-square has-animation\"
\t\t\t\t\t\t\t style=\"width: 100%\"
\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t Search
\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t </form>
\t\t\t\t\t\t\t";
// line 171
$context["image"] = "";
// line 172
yield "
\t\t\t\t\t\t\t";
// line 173
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", false, false, true, 173)) {
// line 174
yield "\t\t\t\t\t\t\t\t";
$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", false, false, true, 174);
// line 175
yield "\t\t\t\t\t\t\t";
} 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", false, false, true, 175) && CoreExtension::getAttribute($this->env, $this->source, 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", false, false, true, 175), "image", [], "any", false, false, true, 175))) {
// line 176
yield "\t\t\t\t\t\t\t\t";
$context["image"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 176, $this->source); })()), "category", [], "any", false, false, true, 176), "image", [], "any", false, false, true, 176);
// line 177
yield "\t\t\t\t\t\t\t";
} else {
// line 178
yield "\t\t\t\t\t\t\t\t";
$context["image"] = "/assets/images/blog-aside.png";
// line 179
yield "\t\t\t\t\t\t\t";
}
// line 180
yield " ";
yield from $this->loadTemplate("Blog/__banner_sidebar.html.twig", "Blog/blogDetail.html.twig", 180)->unwrap()->yield(CoreExtension::merge($context, ["image" => // line 181
(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"]));
// line 184
yield " </aside>
\t\t </div>
\t\t</div>
\t\t<!--/Row -->
\t </div>
\t<!-- Contact Form Start -->
\t\t";
// line 191
yield from $this->loadTemplate("includes/contact_us_new_c2_form.html.twig", "Blog/blogDetail.html.twig", 191)->unwrap()->yield($context);
// line 192
yield "
\t<!-- Contact Form Start -->
\t</div>
\t<!--/Main Page Content -->
\t
</div>
<!--/Main Content -->
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Blog/blogDetail.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("
{% extends 'layouts/layout.html.twig' %}
{% set bannerImage = ''%}
{% if blog.image %}
\t{% set bannerImage = blog.image %}
{% elseif blog.category and blog.category.bannerImage %}
\t{% set bannerImage = blog.category.bannerImage %}
{% else %}
\t{% set bannerImage = '/insights/insight_banner_image_general.jpg' %}
{% endif %}
{% block ogTags %}
<meta property=\"og:title\" content=\"{{blog.title}}\">
<meta property=\"og:image\" content=\"{{ app.request.getSchemeAndHttpHost() ~ bannerImage }}\">
<meta property=\"og:url\" content=\"{{blog.url}}\">
<meta property=\"og:description\" content=\"{{blog.shortDescription}}\">
{% endblock %}
{% block content %}
\t<!--Hero Section -->
\t<div id=\"hero\" class=\"has-image has-logo\">
\t<div id=\"hero-styles\">
\t <div id=\"hero-caption\" class=\"content-max-width\">
\t\t<div class=\"inner\">
\t\t <div class=\"hero-arrow\"><i class=\"arrow-icon\"></i></div>
\t\t <div class=\"hero-subtitle\">
\t\t\t<span>{{blog.date|date('Y')}} </span>
\t\t\t{# <span>{{blog.postedBy}}</span> #}
\t\t </div>
\t\t <div class=\"hero-title-wrapper\">
\t\t\t<div class=\"blog-N hero-title hero-title-small\">
\t\t\t\t<h1><span>{{blog.title}}</span></h1>
\t\t\t {# <span>Electronics | Navigating</span>
\t\t\t <span>the Digital Landscape</span> #}
\t\t\t</div>
\t\t </div>
\t\t</div>
\t </div>
\t <div id=\"hero-footer\">
\t\t<div class=\"hero-footer-right\">
\t\t <div class=\"button-wrap right scroll-down\">
\t\t\t<div class=\"icon-wrap parallax-wrap\">
\t\t\t <div class=\"button-icon parallax-element\">
\t\t\t\t<i class=\"fa fa-angle-down\"></i>
\t\t\t </div>
\t\t\t</div>
\t\t\t<div class=\"button-text sticky right\">
\t\t\t <span data-hover=\"Scroll to navigate\"
\t\t\t\t>Scroll to navigate</span
\t\t\t >
\t\t\t</div>
\t\t </div>
\t\t</div>
\t </div>
\t</div>
</div>
<div id=\"hero-image-wrapper\">
\t<div id=\"hero-background-layer\" class=\"parallax-scroll-image\">
\t <div id=\"hero-bg-image\">
\t\t\t<img src=\"{{bannerImage}}\" alt=\"{{blog.title}}\" id=\"hero-bg-image\"class=\"insights-header-image\">
\t</div>
\t</div>
</div>
<!--/Hero Section -->
<!-- Main Content -->
<div id=\"main-content\">
\t<!-- Main Page Content -->
\t<div id=\"main-page-content\" class=\"content-max-width\">
\t <div class=\"blog-detail\">
\t\t<!-- Row -->
\t\t<div
\t\t class=\"content-row row_padding_bottom row_padding_top light-section change-header-color\"
\t\t data-bgcolor=\"#fff\"
\t\t>
\t\t <div class=\"blogs-layout\">
\t\t\t<div class=\"blogs-main blogs-main-Headings\">
\t\t\t <div class=\"blog-detail-header\">
\t\t\t\t{# <h5>{{blog.postedBy}}</h5> #}
\t\t\t\t<h5>{{blog.date|date(\"d/m/Y\")}}</h5>
\t\t\t </div>
\t\t\t {{ blog.content | raw}}
\t\t\t {% if blogPosts and blogPosts|length > 0 %}
\t\t\t <div>
\t\t\t\t<div class=\"one_half\">
\t\t\t\t <h3 class=\"has-mask-fill no-margins\">Read</h3>
\t\t\t\t <h3 class=\"has-mask-fill\">More Stories</h3>
\t\t\t\t</div>
\t\t\t\t<hr />
\t\t\t\t<div class=\"blog-detail-blogs change-header\">
\t\t\t\t{% for blogPost in blogPosts %}
\t\t\t\t\t
\t\t\t\t
\t\t\t\t
\t\t\t\t <div class=\"blogs-blog\">
\t\t\t\t\t<div class=\"hero-arrow\">
\t\t\t\t\t <i class=\"arrow-icon\"></i>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"next-hero-subtitle\">
\t\t\t\t\t <span>{{blogPost.date|date(\"d/m/Y\")}}</span>
\t\t\t\t\t {# <span>{{blogPost.postedBy}}</span> #}
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"news-panel-title\">
\t\t\t\t\t <span>{{blogPost.title}}</span
\t\t\t\t\t >
\t\t\t\t\t</div>
\t\t\t\t\t<a href=\"/insights/{{blogPost.category.url ~ '/' ~ blogPost.url}}\" class=\"has-animation has-icon-end\">
\t\t\t\t\t Read More
\t\t\t\t\t</a>
\t\t\t\t </div>
\t\t\t\t{% endfor %}
\t\t\t\t
\t\t\t\t</div>
\t\t\t </div>
\t\t\t{% endif %}
\t\t\t</div>
\t\t\t<aside class=\"blogs-aside\">
<img
src=\"/assets/images/icons/filter-icon.svg\"
alt=\"Icon\"
class=\"filter-icon\"
/>
\t\t\t\t\t\t\t<form action=\"/insights-search\" method =\"GET\" class=\"blog-aside-form\">
\t\t\t\t\t\t\t<div class=\"search-input\">
\t\t\t\t\t\t\t <input type=\"text\" placeholder=\"Search\" name=\"name\"/>
\t\t\t\t\t\t\t <span class=\"search-input-icon\">
\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-magnifying-glass\"></i>
\t\t\t\t\t\t\t </span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<select name=\"category\" class=\"primary-select\">
\t\t\t\t\t\t\t {% if categories|length > 0 %}
\t\t\t\t\t\t\t\t{% for category in categories %}
\t\t\t\t
\t\t\t\t\t\t\t\t {% if category.id == blog.category.id %}
\t\t\t\t
\t\t\t\t\t\t\t\t\t<option value=\"\" selected> {{category.name}} </option>
\t\t\t\t\t\t\t\t {% else %}
\t\t\t\t
\t\t\t\t\t\t\t\t\t<option value=\"{{category.url}}\" > {{category.name}} </option>
\t\t\t\t
\t\t\t\t\t\t\t\t {% endif %}
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t{% endfor %}
\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<option value=\"all\" > {{\"All\" |trans}} </option>
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<button
\t\t\t\t\t\t\t class=\"primary-button button-square has-animation\"
\t\t\t\t\t\t\t style=\"width: 100%\"
\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t Search
\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t </form>
\t\t\t\t\t\t\t{% set image = ''%}
\t\t\t\t\t\t\t{% if blog.bannerImage %}
\t\t\t\t\t\t\t\t{% set image = blog.bannerImage %}
\t\t\t\t\t\t\t{% elseif blog.category and blog.category.image %}
\t\t\t\t\t\t\t\t{% set image = blog.category.image %}
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t{% set image = '/assets/images/blog-aside.png'%}
\t\t\t\t\t\t\t{% endif %}
{% include \"Blog/__banner_sidebar.html.twig\" with {
\t\t\t\t\t\t'image': image,
\t\t\t\t\t\t'alt':'Design Retainer | Centric'
} %}
</aside>
\t\t </div>
\t\t</div>
\t\t<!--/Row -->
\t </div>
\t<!-- Contact Form Start -->
\t\t{% include \"includes/contact_us_new_c2_form.html.twig\" %}
\t<!-- Contact Form Start -->
\t</div>
\t<!--/Main Page Content -->
\t
</div>
<!--/Main Content -->
{% endblock %}
", "Blog/blogDetail.html.twig", "/var/www/html/templates/Blog/blogDetail.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 5, "if" => 7, "for" => 102, "include" => 180);
static $filters = array("escape" => 17, "date" => 35, "raw" => 91, "length" => 93, "trans" => 160);
static $functions = array();
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for', 'include'],
['escape', 'date', 'raw', 'length', 'trans'],
[],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}