<?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/blog_category.html.twig */
class __TwigTemplate_08abd6937bd679788b51816f5fa30caa extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension(SandboxExtension::class);
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
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/blog_category.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/blog_category.html.twig"));
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "Blog/blog_category.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
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 3
yield "
";
// line 4
$context["bannerImage"] = "";
// line 5
yield "
";
// line 7
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["blogcategory"]) || array_key_exists("blogcategory", $context) ? $context["blogcategory"] : (function () { throw new RuntimeError('Variable "blogcategory" does not exist.', 7, $this->source); })()), "bannerImage", [], "any", false, false, true, 7)) {
// line 8
yield "\t";
$context["bannerImage"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["blogcategory"]) || array_key_exists("blogcategory", $context) ? $context["blogcategory"] : (function () { throw new RuntimeError('Variable "blogcategory" does not exist.', 8, $this->source); })()), "bannerImage", [], "any", false, false, true, 8);
} else {
// line 10
yield "\t";
$context["bannerImage"] = "/insights/insight_banner_image_general.jpg";
}
// line 12
yield "
<!--Hero Section -->
<div id=\"hero\" class=\"has-image has-logo\">
<div id=\"hero-styles\">
<div id=\"hero-caption\" class=\"content-max-width\">
<div class=\"inner\">
<div class=\"hero-title-wrapper\">
<div class=\"one_half\">
<div class=\"inner\">
<div
class=\"hero-title hero-title-small\"
style=\"margin-bottom: 1rem\"
>
<h1 class=\"h1-banner-heading\">
<span>";
// line 26
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, (isset($context["blogcategory"]) || array_key_exists("blogcategory", $context) ? $context["blogcategory"] : (function () { throw new RuntimeError('Variable "blogcategory" does not exist.', 26, $this->source); })()), "name", [], "any", false, false, true, 26), 26, $this->source), "html", null, true);
yield "</span>
</h1>
</div>
<div class=\"hero-text\">
<span>
";
// line 31
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, (isset($context["blogcategory"]) || array_key_exists("blogcategory", $context) ? $context["blogcategory"] : (function () { throw new RuntimeError('Variable "blogcategory" does not exist.', 31, $this->source); })()), "description", [], "any", false, false, true, 31), 31, $this->source), "html", null, true);
yield "
</span>
</div>
</div>
</div>
<div class=\"one_half last\"></div>
</div>
</div>
</div>
<div id=\"hero-footer\">
<div class=\"hero-footer-right\">
<div class=\"button-wrap right scroll-down\">
<div class=\"icon-wrap parallax-wrap\">
<div class=\"button-icon parallax-element\">
<i class=\"fa fa-angle-down\"></i>
</div>
</div>
<div class=\"button-text sticky right\">
<span data-hover=\"Scroll to navigate\"
>Scroll to navigate</span
>
</div>
</div>
</div>
</div>
</div>
</div>
<div id=\"hero-image-wrapper\">
<div id=\"hero-background-layer\" class=\"parallax-scroll-image\">
<div
id=\"hero-bg-image\"
style=\"
background-image: url(";
// line 63
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.', 63, $this->source); })()), 63, $this->source), "html", null, true);
yield ");
\"
></div>
</div>
</div>
<!--/Hero Section -->
<!-- Main Content -->
<div id=\"main-content\">
<!-- Main Page Content -->
<div id=\"main-page-content\" class=\"content-max-width\">
<div class=\"content-row light-section\" data-bgcolor=\"#fff\">
<!-- Row -->
<div
class=\"content-row row_padding_top row_padding_bottom light-section change-header-color\"
data-bgcolor=\"#fff\"
>
<div class=\"one_half\">
";
// line 84
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 84, $this->source); })())) {
// line 85
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "HeadlineOne", ["placeholder" => "heading two"]);
yield "
";
// line 86
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "HeadlineTwo", ["placeholder" => "heading two"]);
yield "
";
} else {
// line 88
yield " <h2 class=\"has-mask-fill our-product-N no-margins\">";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "HeadlineOne");
yield "</h2>
<h2 class=\"has-mask-fill our-product-N\"> ";
// line 89
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "HeadlineTwo");
yield "</h2>
";
}
// line 92
yield "
<hr />
<p class=\"has-animation\" data-delay=\"0\">
";
// line 96
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "description", ["nl2br" => false, "height" => 100, "placeholder" => "content"]);
// line 100
yield "
</p>
</div>
<div class=\"one_half last\"></div>
</div>
<!-- blogs grid -->
<div class=\"\">
<!-- Row -->
<div class=\"content-row row_padding_bottom light-section change-header-color\" data-bgcolor=\"#fff\">
<div class=\"blogs-layout\">
<div class=\"blogs-main change-header\" id='blog-category'>
";
// line 114
$context["catUrl"] = "";
// line 115
yield " ";
$context["catId"] = "";
// line 116
yield " ";
$context["image"] = "/assets/images/blog-aside.png";
// line 117
yield " ";
$context["altTag"] = "Design Retainer | Centric";
// line 118
yield "
";
// line 119
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["blogs"]) || array_key_exists("blogs", $context) ? $context["blogs"] : (function () { throw new RuntimeError('Variable "blogs" does not exist.', 119, $this->source); })())) > 0)) {
// line 120
yield "
";
// line 121
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["blogs"]) || array_key_exists("blogs", $context) ? $context["blogs"] : (function () { throw new RuntimeError('Variable "blogs" does not exist.', 121, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
// line 122
yield "
";
// line 123
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["blog"], "category", [], "any", false, false, true, 123), "image", [], "any", false, false, true, 123)) {
// line 124
yield " ";
$context["image"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["blog"], "category", [], "any", false, false, true, 124), "image", [], "any", false, false, true, 124);
// line 125
yield " ";
$context["altTag"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["blog"], "category", [], "any", false, false, true, 125), "imageAltTag", [], "any", false, false, true, 125);
// line 126
yield "
";
}
// line 128
yield "
";
// line 129
$context["catUrl"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["blog"], "category", [], "any", false, false, true, 129), "url", [], "any", false, false, true, 129);
// line 130
yield " ";
$context["catId"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["blog"], "category", [], "any", false, false, true, 130), "id", [], "any", false, false, true, 130);
// line 131
yield "
";
// line 132
yield from $this->loadTemplate("Blog/blog_category_teaser.html.twig", "Blog/blog_category.html.twig", 132)->unwrap()->yield($context);
// line 133
yield "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 135
yield "
";
}
// line 137
yield "
</div>
<aside class=\"blogs-aside\">
<img
src=\"/assets/images/icons/filter-icon.svg\"
alt=\"Icon\"
class=\"filter-icon\"
/>
<form action=\"/insights-search\" method =\"GET\" class=\"blog-aside-form\">
<div class=\"search-input\">
<input type=\"text\" placeholder=\"Search\" name=\"name\"/>
<span class=\"search-input-icon\">
<i class=\"fa-solid fa-magnifying-glass\"></i>
</span>
</div>
<select name=\"category\" class=\"primary-select\">
";
// line 153
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.', 153, $this->source); })())) > 0)) {
// line 154
yield " ";
$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.', 154, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 155
yield "
";
// line 156
if ((CoreExtension::getAttribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, true, 156) == (isset($context["catId"]) || array_key_exists("catId", $context) ? $context["catId"] : (function () { throw new RuntimeError('Variable "catId" does not exist.', 156, $this->source); })()))) {
// line 157
yield "
<option value=\"\" selected> ";
// line 158
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, true, 158), 158, $this->source), "html", null, true);
yield " </option>
";
} else {
// line 160
yield "
<option value=\"";
// line 161
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "url", [], "any", false, false, true, 161), 161, $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, 161), 161, $this->source), "html", null, true);
yield " </option>
";
}
// line 164
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 166
yield "
";
}
// line 168
yield " <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>
</select>
<button
class=\"primary-button button-square has-animation\"
style=\"width: 100%\"
>
Search
</button>
</form>
";
// line 179
yield from $this->loadTemplate("Blog/__banner_sidebar.html.twig", "Blog/blog_category.html.twig", 179)->unwrap()->yield(CoreExtension::merge($context, ["image" => // line 180
(isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 180, $this->source); })()), "alt" => // line 181
(isset($context["altTag"]) || array_key_exists("altTag", $context) ? $context["altTag"] : (function () { throw new RuntimeError('Variable "altTag" does not exist.', 181, $this->source); })())]));
// line 184
yield "\t\t\t\t
\t\t\t
</aside>
</div>
<!-- blog pagination starts -->
<div class=\"blog-pagination\" id=\"paginate\" data-url=\"/insights-";
// line 191
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["catUrl"]) || array_key_exists("catUrl", $context) ? $context["catUrl"] : (function () { throw new RuntimeError('Variable "catUrl" does not exist.', 191, $this->source); })()), 191, $this->source), "html", null, true);
yield "-listing?page=\">
";
// line 193
yield from $this->loadTemplate("Blog/pagination.html.twig", "Blog/blog_category.html.twig", 193)->unwrap()->yield(CoreExtension::merge($context, ["paginationVariables" => // line 194
(isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 194, $this->source); })()), "catUrl" => // line 195
(isset($context["catUrl"]) || array_key_exists("catUrl", $context) ? $context["catUrl"] : (function () { throw new RuntimeError('Variable "catUrl" does not exist.', 195, $this->source); })())]));
// line 197
yield " </div>
<!-- blog pagination ends -->
</div>
<!--/Row -->
</div>
<!-- /blogs grid -->
<!--/Row -->
</div>
</div>
<!--/Main Page Content -->
</div>
<!--/Main Content -->
<script src=\"/assets/js/jquery.min.js\"></script>
<script>
\$(document).ready(function () {
function blogList( page) {
let postUrl = \$(this).data('url');
console.log(postUrl);
\$.ajax({
url: postUrl,
type: 'POST',
data: {
page: page
},
success: function (response) {
\$('#blog-category').html('');
\$('#blog-category').html(response.html);
\$('#paginate').empty()
\$('#paginate').html(response.pagination);
}
});
}
function handleFilterChange(event) {
var page = \$(event.target).data('value') || \$(event.target).parent().data('value');
console.log(page)
blogList(page);
}
\$('#paginate').on('click', handleFilterChange);
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Blog/blog_category.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 399 => 197, 397 => 195, 396 => 194, 395 => 193, 391 => 191, 382 => 184, 380 => 181, 379 => 180, 378 => 179, 363 => 168, 359 => 166, 352 => 164, 344 => 161, 341 => 160, 336 => 158, 333 => 157, 331 => 156, 328 => 155, 323 => 154, 321 => 153, 303 => 137, 299 => 135, 284 => 133, 282 => 132, 279 => 131, 276 => 130, 274 => 129, 271 => 128, 267 => 126, 264 => 125, 261 => 124, 259 => 123, 256 => 122, 239 => 121, 236 => 120, 234 => 119, 231 => 118, 228 => 117, 225 => 116, 222 => 115, 220 => 114, 204 => 100, 202 => 96, 196 => 92, 190 => 89, 185 => 88, 180 => 86, 175 => 85, 173 => 84, 149 => 63, 114 => 31, 106 => 26, 90 => 12, 86 => 10, 82 => 8, 80 => 7, 76 => 5, 74 => 4, 71 => 3, 61 => 2, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layouts/layout.html.twig' %}
{% block content %}
{% set bannerImage = ''%}
{% if blogcategory.bannerImage %}
\t{% set bannerImage = blogcategory.bannerImage %}
{% else %}
\t{% set bannerImage = '/insights/insight_banner_image_general.jpg' %}
{% endif %}
<!--Hero Section -->
<div id=\"hero\" class=\"has-image has-logo\">
<div id=\"hero-styles\">
<div id=\"hero-caption\" class=\"content-max-width\">
<div class=\"inner\">
<div class=\"hero-title-wrapper\">
<div class=\"one_half\">
<div class=\"inner\">
<div
class=\"hero-title hero-title-small\"
style=\"margin-bottom: 1rem\"
>
<h1 class=\"h1-banner-heading\">
<span>{{blogcategory.name}}</span>
</h1>
</div>
<div class=\"hero-text\">
<span>
{{blogcategory.description}}
</span>
</div>
</div>
</div>
<div class=\"one_half last\"></div>
</div>
</div>
</div>
<div id=\"hero-footer\">
<div class=\"hero-footer-right\">
<div class=\"button-wrap right scroll-down\">
<div class=\"icon-wrap parallax-wrap\">
<div class=\"button-icon parallax-element\">
<i class=\"fa fa-angle-down\"></i>
</div>
</div>
<div class=\"button-text sticky right\">
<span data-hover=\"Scroll to navigate\"
>Scroll to navigate</span
>
</div>
</div>
</div>
</div>
</div>
</div>
<div id=\"hero-image-wrapper\">
<div id=\"hero-background-layer\" class=\"parallax-scroll-image\">
<div
id=\"hero-bg-image\"
style=\"
background-image: url({{bannerImage}});
\"
></div>
</div>
</div>
<!--/Hero Section -->
<!-- Main Content -->
<div id=\"main-content\">
<!-- Main Page Content -->
<div id=\"main-page-content\" class=\"content-max-width\">
<div class=\"content-row light-section\" data-bgcolor=\"#fff\">
<!-- Row -->
<div
class=\"content-row row_padding_top row_padding_bottom light-section change-header-color\"
data-bgcolor=\"#fff\"
>
<div class=\"one_half\">
{% if editmode %}
{{ pimcore_input(\"HeadlineOne\", {\"placeholder\": \"heading two\"}) }}
{{ pimcore_input(\"HeadlineTwo\", {\"placeholder\": \"heading two\"}) }}
{% else %}
<h2 class=\"has-mask-fill our-product-N no-margins\">{{ pimcore_input(\"HeadlineOne\") }}</h2>
<h2 class=\"has-mask-fill our-product-N\"> {{ pimcore_input(\"HeadlineTwo\") }}</h2>
{% endif %}
<hr />
<p class=\"has-animation\" data-delay=\"0\">
{{ pimcore_textarea(\"description\",{
\"nl2br\": false,
\"height\": 100,
\"placeholder\": \"content\"
}) }}
</p>
</div>
<div class=\"one_half last\"></div>
</div>
<!-- blogs grid -->
<div class=\"\">
<!-- Row -->
<div class=\"content-row row_padding_bottom light-section change-header-color\" data-bgcolor=\"#fff\">
<div class=\"blogs-layout\">
<div class=\"blogs-main change-header\" id='blog-category'>
{% set catUrl = ''%}
{% set catId = ''%}
{% set image = '/assets/images/blog-aside.png'%}
{% set altTag = 'Design Retainer | Centric' %}
{% if blogs|length > 0 %}
{% for blog in blogs %}
{% if blog.category.image %}
{% set image = blog.category.image %}
{% set altTag = blog.category.imageAltTag %}
{% endif %}
{% set catUrl = blog.category.url %}
{% set catId = blog.category.id %}
{% include \"Blog/blog_category_teaser.html.twig\" %}
{% endfor %}
{% endif %}
</div>
<aside class=\"blogs-aside\">
<img
src=\"/assets/images/icons/filter-icon.svg\"
alt=\"Icon\"
class=\"filter-icon\"
/>
<form action=\"/insights-search\" method =\"GET\" class=\"blog-aside-form\">
<div class=\"search-input\">
<input type=\"text\" placeholder=\"Search\" name=\"name\"/>
<span class=\"search-input-icon\">
<i class=\"fa-solid fa-magnifying-glass\"></i>
</span>
</div>
<select name=\"category\" class=\"primary-select\">
{% if categories|length > 0 %}
{% for category in categories %}
{% if category.id == catId %}
<option value=\"\" selected> {{category.name}} </option>
{% else %}
<option value=\"{{category.url}}\" > {{category.name}} </option>
{% endif %}
{% endfor %}
{% endif %}
<option value=\"all\" > {{\"All\" |trans}} </option>
</select>
<button
class=\"primary-button button-square has-animation\"
style=\"width: 100%\"
>
Search
</button>
</form>
{% include \"Blog/__banner_sidebar.html.twig\" with {
\t\t\t\t\t\t'image': image,
'alt':altTag
} %}
\t\t\t\t
\t\t\t
</aside>
</div>
<!-- blog pagination starts -->
<div class=\"blog-pagination\" id=\"paginate\" data-url=\"/insights-{{catUrl}}-listing?page=\">
{%
include \"Blog/pagination.html.twig\" with {
'paginationVariables': pagination,
'catUrl':catUrl }
%}
</div>
<!-- blog pagination ends -->
</div>
<!--/Row -->
</div>
<!-- /blogs grid -->
<!--/Row -->
</div>
</div>
<!--/Main Page Content -->
</div>
<!--/Main Content -->
<script src=\"/assets/js/jquery.min.js\"></script>
<script>
\$(document).ready(function () {
function blogList( page) {
let postUrl = \$(this).data('url');
console.log(postUrl);
\$.ajax({
url: postUrl,
type: 'POST',
data: {
page: page
},
success: function (response) {
\$('#blog-category').html('');
\$('#blog-category').html(response.html);
\$('#paginate').empty()
\$('#paginate').html(response.pagination);
}
});
}
function handleFilterChange(event) {
var page = \$(event.target).data('value') || \$(event.target).parent().data('value');
console.log(page)
blogList(page);
}
\$('#paginate').on('click', handleFilterChange);
});
</script>
{% endblock %}", "Blog/blog_category.html.twig", "/var/www/html/templates/Blog/blog_category.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 4, "if" => 7, "for" => 121, "include" => 132);
static $filters = array("escape" => 26, "length" => 119, "trans" => 168);
static $functions = array("pimcore_input" => 85, "pimcore_textarea" => 96);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for', 'include'],
['escape', 'length', 'trans'],
['pimcore_input', 'pimcore_textarea'],
$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;
}
}
}