<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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/overview.html.twig */
class __TwigTemplate_7310805aff5497212c9d057081f81032 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('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "blog/overview.html.twig", 1);
}
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/overview.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/overview.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
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 4
echo "\t<div
\t\tclass=\"section section-default bg-white pt-5 pb-0\">
\t\t";
// line 20
echo "
\t\t<div class=\"container\">
\t\t\t<div class=\"row\">
\t\t\t\t<div
\t\t\t\t\tclass=\"col-12\">
\t\t\t\t\t";
// line 49
echo "
\t\t\t\t\t<div class=\"text-center text-black mb-5\">
\t\t\t\t\t\t<h1>
\t\t\t\t\t\t\t";
// line 52
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "heading_blogs", ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("page title")]);
// line 54
echo "
\t\t\t\t\t\t</h1>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"content py-2\">
\t\t\t\t\t\t";
// line 59
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "blogContent");
echo "
\t\t\t\t\t</div>
\t\t\t\t\t";
// line 62
if (array_key_exists("blogfilters", $context)) {
// line 63
echo "\t\t\t\t\t\t";
if ((twig_length_filter($this->env, (isset($context["blogfilters"]) || array_key_exists("blogfilters", $context) ? $context["blogfilters"] : (function () { throw new RuntimeError('Variable "blogfilters" does not exist.', 63, $this->source); })())) > 0)) {
// line 64
echo "\t\t\t\t\t\t\t<div class=\"row filters my-3 text-center\">
\t\t\t\t\t\t\t\t<div class=\"col-sm-12\">
\t\t\t\t\t\t\t\t\t<a class=\"btn btn-primary text-uppercase font-weight-bold btn-filter mb-1 active\" data-filter=\"all\">
\t\t\t\t\t\t\t\t\t\t<span class=\"text-white\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 68
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Alle"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t";
// line 72
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["blogfilters"]) || array_key_exists("blogfilters", $context) ? $context["blogfilters"] : (function () { throw new RuntimeError('Variable "blogfilters" does not exist.', 72, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["blogfilter"]) {
// line 73
echo "\t\t\t\t\t\t\t\t\t\t<a class=\"btn btn-primary text-uppercase font-weight-bold btn-filter mb-1\" data-filter=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blogfilter"], "getId", [], "method", false, false, true, 73), 73, $this->source), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-white\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 75
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blogfilter"], "getFilterName", [], "method", false, false, true, 75), 75, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blogfilter'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 79
echo "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 82
echo "\t\t\t\t\t";
}
// line 83
echo "
\t\t\t\t\t";
// line 85
if (array_key_exists("articles", $context)) {
// line 86
echo "\t\t\t\t\t\t<div class=\"articles row py-2\">
\t\t\t\t\t\t\t";
// line 87
echo twig_include($this->env, $context, "includes/blog/article.html.twig", ["articles" => // line 88
(isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 88, $this->source); })())]);
// line 89
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"load-more-items py-3\">
\t\t\t\t\t\t\t<div class=\"aligner\">
\t\t\t\t\t\t\t\t<div class=\"loading-circle loading-bar-primary loading-bg-default mx-auto\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<input type=\"hidden\" class=\"pageCounter\" value=\"1\">
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 100
echo "
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t<script>
\t\t\$('.btn-filter').click(function (e) {
var filter = \$(this).data('filter');
var fetchUrl = \$(location).attr('href');
\$(\".btn-filter\").each(function (index) {
\$(this).removeClass('active');
});
\$(this).addClass('active');
\$.ajax({
url: fetchUrl,
type: 'GET',
data: {
filter: filter
},
success: function (result) {
if (result.result) {
\$(\".articles\").html(result.result);
\$('.pageCounter').val(1);
} else if (result.noresult) {
\$(\".articles\").html(result.noresult);
\$('.pageCounter').val(1);
}
}
});
});
\t</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "blog/overview.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 172 => 100, 159 => 89, 157 => 88, 156 => 87, 153 => 86, 151 => 85, 147 => 83, 144 => 82, 139 => 79, 129 => 75, 123 => 73, 119 => 72, 112 => 68, 106 => 64, 103 => 63, 101 => 62, 95 => 59, 88 => 54, 86 => 52, 81 => 49, 74 => 20, 69 => 4, 59 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% block content %}
\t<div
\t\tclass=\"section section-default bg-white pt-5 pb-0\">
\t\t{#
\t\t {% if not editmode and not pimcore_image('publicationHeader').isEmpty() %}
\t\t <div class=\"blog-image-header position-relative mb-5\" style=\"display: flex;\">
\t\t <img src=\"{{ pimcore_image('publicationHeader').getThumbnail('blog-thumb') }}\" class=\"blog-image bg-cover img-fluid w-100\">
\t\t
\t\t {% if not pimcore_input(\"publicationHeaderTitle\").isEmpty() %}
\t\t <div class=\"d-flex overlay text-center h-100\">
\t\t <span class=\"m-auto\">{{ pimcore_input(\"publicationHeaderTitle\") }}</span>
\t\t </div>
\t\t {% endif %}
\t\t </div>
\t\t {% endif %}
\t\t #}
\t\t<div class=\"container\">
\t\t\t<div class=\"row\">
\t\t\t\t<div
\t\t\t\t\tclass=\"col-12\">
\t\t\t\t\t{#
\t\t\t\t\t {% if editmode %}
\t\t\t\t\t <div class=\"alert alert-info\" role=\"alert\">
\t\t\t\t\t {% if editmode %}
\t\t\t\t\t {% set message = 'Afbeelding' %}
\t\t\t\t\t {% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
\t\t\t\t\t {% endif %}
\t\t\t\t\t
\t\t\t\t\t {{ pimcore_image('publicationHeader', {
\t\t\t\t\t \"width\": 800,
\t\t\t\t\t \"height\": 200,
\t\t\t\t\t \"thumbnail\": \"blog-header\",
\t\t\t\t\t \"class\": \"img-fluid w-100\"
\t\t\t\t\t }) }}
\t\t\t\t\t
\t\t\t\t\t {% if editmode %}
\t\t\t\t\t {% set message = 'Titel op afbeelding' %}
\t\t\t\t\t {% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
\t\t\t\t\t {% endif %}
\t\t\t\t\t
\t\t\t\t\t {{ pimcore_input(\"publicationHeaderTitle\") }}
\t\t\t\t\t </div>
\t\t\t\t\t {% endif %}
\t\t\t\t\t #}
\t\t\t\t\t<div class=\"text-center text-black mb-5\">
\t\t\t\t\t\t<h1>
\t\t\t\t\t\t\t{{ pimcore_input('heading_blogs', {
\"placeholder\" : 'page title'|trans
}) }}
\t\t\t\t\t\t</h1>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"content py-2\">
\t\t\t\t\t\t{{ pimcore_wysiwyg('blogContent') }}
\t\t\t\t\t</div>
\t\t\t\t\t{% if blogfilters is defined %}
\t\t\t\t\t\t{% if blogfilters|length > 0 %}
\t\t\t\t\t\t\t<div class=\"row filters my-3 text-center\">
\t\t\t\t\t\t\t\t<div class=\"col-sm-12\">
\t\t\t\t\t\t\t\t\t<a class=\"btn btn-primary text-uppercase font-weight-bold btn-filter mb-1 active\" data-filter=\"all\">
\t\t\t\t\t\t\t\t\t\t<span class=\"text-white\">
\t\t\t\t\t\t\t\t\t\t\t{{ 'Alle'|trans }}
\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t{% for blogfilter in blogfilters %}
\t\t\t\t\t\t\t\t\t\t<a class=\"btn btn-primary text-uppercase font-weight-bold btn-filter mb-1\" data-filter=\"{{ blogfilter.getId() }}\">
\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-white\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ blogfilter.getFilterName() }}
\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if articles is defined %}
\t\t\t\t\t\t<div class=\"articles row py-2\">
\t\t\t\t\t\t\t{{ include('includes/blog/article.html.twig', {
'articles': articles
}) }}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"load-more-items py-3\">
\t\t\t\t\t\t\t<div class=\"aligner\">
\t\t\t\t\t\t\t\t<div class=\"loading-circle loading-bar-primary loading-bg-default mx-auto\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<input type=\"hidden\" class=\"pageCounter\" value=\"1\">
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t<script>
\t\t\$('.btn-filter').click(function (e) {
var filter = \$(this).data('filter');
var fetchUrl = \$(location).attr('href');
\$(\".btn-filter\").each(function (index) {
\$(this).removeClass('active');
});
\$(this).addClass('active');
\$.ajax({
url: fetchUrl,
type: 'GET',
data: {
filter: filter
},
success: function (result) {
if (result.result) {
\$(\".articles\").html(result.result);
\$('.pageCounter').val(1);
} else if (result.noresult) {
\$(\".articles\").html(result.noresult);
\$('.pageCounter').val(1);
}
}
});
});
\t</script>
{% endblock %}
", "blog/overview.html.twig", "/var/www/clients/client2/web45/web/pc/templates/blog/overview.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 62, "for" => 72);
static $filters = array("trans" => 53, "length" => 63, "escape" => 68);
static $functions = array("pimcore_input" => 52, "pimcore_wysiwyg" => 59, "include" => 87, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['if', 'for'],
['trans', 'length', 'escape'],
['pimcore_input', 'pimcore_wysiwyg', 'include', 'base_layout']
);
} 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;
}
}
}