var/cache/dev/twig/c3/c36f149274ea4ac5e7e2836232b3b6b0.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* blog/overview.html.twig */
  14. class __TwigTemplate_7310805aff5497212c9d057081f81032 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "blog/overview.html.twig"1);
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blog/overview.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blog/overview.html.twig"));
  40.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_content($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         // line 4
  55.         echo "\t<div
  56. \t\tclass=\"section section-default bg-white pt-5 pb-0\">
  57. \t\t";
  58.         // line 20
  59.         echo "
  60. \t\t<div class=\"container\">
  61. \t\t\t<div class=\"row\">
  62. \t\t\t\t<div
  63. \t\t\t\t\tclass=\"col-12\">
  64. \t\t\t\t\t";
  65.         // line 49
  66.         echo "
  67. \t\t\t\t\t<div class=\"text-center text-black mb-5\">
  68. \t\t\t\t\t\t<h1>
  69. \t\t\t\t\t\t\t";
  70.         // line 52
  71.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""heading_blogs", ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("page title")]);
  72.         // line 54
  73.         echo "
  74. \t\t\t\t\t\t</h1>
  75. \t\t\t\t\t</div>
  76. \t\t\t\t\t<div class=\"content py-2\">
  77. \t\t\t\t\t\t";
  78.         // line 59
  79.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""blogContent");
  80.         echo "
  81. \t\t\t\t\t</div>
  82. \t\t\t\t\t";
  83.         // line 62
  84.         if (array_key_exists("blogfilters"$context)) {
  85.             // line 63
  86.             echo "\t\t\t\t\t\t";
  87.             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)) {
  88.                 // line 64
  89.                 echo "\t\t\t\t\t\t\t<div class=\"row filters my-3 text-center\">
  90. \t\t\t\t\t\t\t\t<div class=\"col-sm-12\">
  91. \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\">
  92. \t\t\t\t\t\t\t\t\t\t<span class=\"text-white\">
  93. \t\t\t\t\t\t\t\t\t\t\t";
  94.                 // line 68
  95.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Alle"), "html"nulltrue);
  96.                 echo "
  97. \t\t\t\t\t\t\t\t\t\t</span>
  98. \t\t\t\t\t\t\t\t\t</a>
  99. \t\t\t\t\t\t\t\t\t";
  100.                 // line 72
  101.                 $context['_parent'] = $context;
  102.                 $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); })()));
  103.                 foreach ($context['_seq'] as $context["_key"] => $context["blogfilter"]) {
  104.                     // line 73
  105.                     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=\"";
  106.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blogfilter"], "getId", [], "method"falsefalsetrue73), 73$this->source), "html"nulltrue);
  107.                     echo "\">
  108. \t\t\t\t\t\t\t\t\t\t\t<span class=\"text-white\">
  109. \t\t\t\t\t\t\t\t\t\t\t\t";
  110.                     // line 75
  111.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blogfilter"], "getFilterName", [], "method"falsefalsetrue75), 75$this->source), "html"nulltrue);
  112.                     echo "
  113. \t\t\t\t\t\t\t\t\t\t\t</span>
  114. \t\t\t\t\t\t\t\t\t\t</a>
  115. \t\t\t\t\t\t\t\t\t";
  116.                 }
  117.                 $_parent $context['_parent'];
  118.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blogfilter'], $context['_parent'], $context['loop']);
  119.                 $context array_intersect_key($context$_parent) + $_parent;
  120.                 // line 79
  121.                 echo "\t\t\t\t\t\t\t\t</div>
  122. \t\t\t\t\t\t\t</div>
  123. \t\t\t\t\t\t";
  124.             }
  125.             // line 82
  126.             echo "\t\t\t\t\t";
  127.         }
  128.         // line 83
  129.         echo "
  130. \t\t\t\t\t";
  131.         // line 85
  132.         if (array_key_exists("articles"$context)) {
  133.             // line 86
  134.             echo "\t\t\t\t\t\t<div class=\"articles row py-2\">
  135. \t\t\t\t\t\t\t";
  136.             // line 87
  137.             echo twig_include($this->env$context"includes/blog/article.html.twig", ["articles" =>             // line 88
  138. (isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'88$this->source); })())]);
  139.             // line 89
  140.             echo "
  141. \t\t\t\t\t\t</div>
  142. \t\t\t\t\t\t<div class=\"load-more-items py-3\">
  143. \t\t\t\t\t\t\t<div class=\"aligner\">
  144. \t\t\t\t\t\t\t\t<div class=\"loading-circle loading-bar-primary loading-bg-default mx-auto\"></div>
  145. \t\t\t\t\t\t\t</div>
  146. \t\t\t\t\t\t\t<input type=\"hidden\" class=\"pageCounter\" value=\"1\">
  147. \t\t\t\t\t\t</div>
  148. \t\t\t\t\t";
  149.         }
  150.         // line 100
  151.         echo "
  152. \t\t\t\t</div>
  153. \t\t\t</div>
  154. \t\t</div>
  155. \t</div>
  156. \t<script>
  157. \t\t\$('.btn-filter').click(function (e) {
  158. var filter = \$(this).data('filter');
  159. var fetchUrl = \$(location).attr('href');
  160. \$(\".btn-filter\").each(function (index) {
  161. \$(this).removeClass('active');
  162. });
  163. \$(this).addClass('active');
  164. \$.ajax({
  165. url: fetchUrl,
  166. type: 'GET',
  167. data: {
  168. filter: filter
  169. },
  170. success: function (result) {
  171. if (result.result) {
  172. \$(\".articles\").html(result.result);
  173. \$('.pageCounter').val(1);
  174. } else if (result.noresult) {
  175. \$(\".articles\").html(result.noresult);
  176. \$('.pageCounter').val(1);
  177. }
  178. }
  179. });
  180. });
  181. \t</script>
  182. ";
  183.         
  184.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  185.         
  186.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  187.     }
  188.     public function getTemplateName()
  189.     {
  190.         return "blog/overview.html.twig";
  191.     }
  192.     public function isTraitable()
  193.     {
  194.         return false;
  195.     }
  196.     public function getDebugInfo()
  197.     {
  198.         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,);
  199.     }
  200.     public function getSourceContext()
  201.     {
  202.         return new Source("{% extends base_layout() %}
  203. {% block content %}
  204. \t<div
  205. \t\tclass=\"section section-default bg-white pt-5 pb-0\">
  206. \t\t{#
  207. \t\t        {% if not editmode and not pimcore_image('publicationHeader').isEmpty() %}
  208. \t\t            <div class=\"blog-image-header position-relative mb-5\" style=\"display: flex;\">
  209. \t\t                <img src=\"{{ pimcore_image('publicationHeader').getThumbnail('blog-thumb') }}\" class=\"blog-image bg-cover img-fluid w-100\">
  210. \t\t
  211. \t\t                {% if not pimcore_input(\"publicationHeaderTitle\").isEmpty() %}
  212. \t\t                    <div class=\"d-flex overlay text-center h-100\">
  213. \t\t                        <span class=\"m-auto\">{{ pimcore_input(\"publicationHeaderTitle\") }}</span>
  214. \t\t                    </div>
  215. \t\t                {% endif %}
  216. \t\t            </div>
  217. \t\t        {% endif %}
  218. \t\t        #}
  219. \t\t<div class=\"container\">
  220. \t\t\t<div class=\"row\">
  221. \t\t\t\t<div
  222. \t\t\t\t\tclass=\"col-12\">
  223. \t\t\t\t\t{#
  224. \t\t\t\t\t                    {% if editmode %}
  225. \t\t\t\t\t                        <div class=\"alert alert-info\" role=\"alert\">
  226. \t\t\t\t\t                            {% if editmode %}
  227. \t\t\t\t\t                                {% set message = 'Afbeelding' %}
  228. \t\t\t\t\t                                {% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
  229. \t\t\t\t\t                            {% endif %}
  230. \t\t\t\t\t
  231. \t\t\t\t\t                            {{ pimcore_image('publicationHeader', {
  232. \t\t\t\t\t                                \"width\": 800,
  233. \t\t\t\t\t                                \"height\": 200,
  234. \t\t\t\t\t                                \"thumbnail\": \"blog-header\",
  235. \t\t\t\t\t                                \"class\": \"img-fluid w-100\"
  236. \t\t\t\t\t                            }) }}
  237. \t\t\t\t\t
  238. \t\t\t\t\t                            {% if editmode %}
  239. \t\t\t\t\t                                {% set message = 'Titel op afbeelding' %}
  240. \t\t\t\t\t                                {% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
  241. \t\t\t\t\t                            {% endif %}
  242. \t\t\t\t\t
  243. \t\t\t\t\t                            {{ pimcore_input(\"publicationHeaderTitle\") }}
  244. \t\t\t\t\t                        </div>
  245. \t\t\t\t\t                    {% endif %}
  246. \t\t\t\t\t                    #}
  247. \t\t\t\t\t<div class=\"text-center text-black mb-5\">
  248. \t\t\t\t\t\t<h1>
  249. \t\t\t\t\t\t\t{{ pimcore_input('heading_blogs', {
  250.                                 \"placeholder\" : 'page title'|trans
  251.                             }) }}
  252. \t\t\t\t\t\t</h1>
  253. \t\t\t\t\t</div>
  254. \t\t\t\t\t<div class=\"content py-2\">
  255. \t\t\t\t\t\t{{ pimcore_wysiwyg('blogContent') }}
  256. \t\t\t\t\t</div>
  257. \t\t\t\t\t{% if blogfilters is defined %}
  258. \t\t\t\t\t\t{% if blogfilters|length > 0 %}
  259. \t\t\t\t\t\t\t<div class=\"row filters my-3 text-center\">
  260. \t\t\t\t\t\t\t\t<div class=\"col-sm-12\">
  261. \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\">
  262. \t\t\t\t\t\t\t\t\t\t<span class=\"text-white\">
  263. \t\t\t\t\t\t\t\t\t\t\t{{ 'Alle'|trans }}
  264. \t\t\t\t\t\t\t\t\t\t</span>
  265. \t\t\t\t\t\t\t\t\t</a>
  266. \t\t\t\t\t\t\t\t\t{% for blogfilter in blogfilters %}
  267. \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() }}\">
  268. \t\t\t\t\t\t\t\t\t\t\t<span class=\"text-white\">
  269. \t\t\t\t\t\t\t\t\t\t\t\t{{ blogfilter.getFilterName() }}
  270. \t\t\t\t\t\t\t\t\t\t\t</span>
  271. \t\t\t\t\t\t\t\t\t\t</a>
  272. \t\t\t\t\t\t\t\t\t{% endfor %}
  273. \t\t\t\t\t\t\t\t</div>
  274. \t\t\t\t\t\t\t</div>
  275. \t\t\t\t\t\t{% endif %}
  276. \t\t\t\t\t{% endif %}
  277. \t\t\t\t\t{% if articles is defined %}
  278. \t\t\t\t\t\t<div class=\"articles row py-2\">
  279. \t\t\t\t\t\t\t{{ include('includes/blog/article.html.twig', {
  280.                                 'articles': articles
  281.                             }) }}
  282. \t\t\t\t\t\t</div>
  283. \t\t\t\t\t\t<div class=\"load-more-items py-3\">
  284. \t\t\t\t\t\t\t<div class=\"aligner\">
  285. \t\t\t\t\t\t\t\t<div class=\"loading-circle loading-bar-primary loading-bg-default mx-auto\"></div>
  286. \t\t\t\t\t\t\t</div>
  287. \t\t\t\t\t\t\t<input type=\"hidden\" class=\"pageCounter\" value=\"1\">
  288. \t\t\t\t\t\t</div>
  289. \t\t\t\t\t{% endif %}
  290. \t\t\t\t</div>
  291. \t\t\t</div>
  292. \t\t</div>
  293. \t</div>
  294. \t<script>
  295. \t\t\$('.btn-filter').click(function (e) {
  296. var filter = \$(this).data('filter');
  297. var fetchUrl = \$(location).attr('href');
  298. \$(\".btn-filter\").each(function (index) {
  299. \$(this).removeClass('active');
  300. });
  301. \$(this).addClass('active');
  302. \$.ajax({
  303. url: fetchUrl,
  304. type: 'GET',
  305. data: {
  306. filter: filter
  307. },
  308. success: function (result) {
  309. if (result.result) {
  310. \$(\".articles\").html(result.result);
  311. \$('.pageCounter').val(1);
  312. } else if (result.noresult) {
  313. \$(\".articles\").html(result.noresult);
  314. \$('.pageCounter').val(1);
  315. }
  316. }
  317. });
  318. });
  319. \t</script>
  320. {% endblock %}
  321. ""blog/overview.html.twig""/var/www/clients/client2/web45/web/pc/templates/blog/overview.html.twig");
  322.     }
  323.     
  324.     public function checkSecurity()
  325.     {
  326.         static $tags = array("if" => 62"for" => 72);
  327.         static $filters = array("trans" => 53"length" => 63"escape" => 68);
  328.         static $functions = array("pimcore_input" => 52"pimcore_wysiwyg" => 59"include" => 87"base_layout" => 1);
  329.         try {
  330.             $this->sandbox->checkSecurity(
  331.                 ['if''for'],
  332.                 ['trans''length''escape'],
  333.                 ['pimcore_input''pimcore_wysiwyg''include''base_layout']
  334.             );
  335.         } catch (SecurityError $e) {
  336.             $e->setSourceContext($this->source);
  337.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  338.                 $e->setTemplateLine($tags[$e->getTagName()]);
  339.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  340.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  341.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  342.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  343.             }
  344.             throw $e;
  345.         }
  346.     }
  347. }