<?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;
/* @NotarisFrontend/tag/index.html.twig */
class __TwigTemplate_7cabba77e2ffc21a0bf0b18208409454 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'extralinks' => [$this, 'block_extralinks'],
'body' => [$this, 'block_body'],
'footer' => [$this, 'block_footer'],
'extrajs' => [$this, 'block_extrajs'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@NotarisFrontend/layout2017.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", "@NotarisFrontend/tag/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NotarisFrontend/tag/index.html.twig"));
$this->parent = $this->loadTemplate("@NotarisFrontend/layout2017.html.twig", "@NotarisFrontend/tag/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($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", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 4
echo " ";
if (array_key_exists("notaryId", $context)) {
// line 5
echo " <title>";
echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 5, $this->source); })()), "header1", [], "any", false, false, false, 5), ["<BR />" => " "]), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 5, $this->source); })()), "name", [], "any", false, false, false, 5), "html", null, true);
echo "</title>
";
} else {
// line 7
echo " <title>Context | ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 7, $this->source); })()), "name", [], "any", false, false, false, 7), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("alg_basetitle"), "html", null, true);
echo " </title>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 11
public function block_extralinks($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", "extralinks"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extralinks"));
// line 12
echo " <link rel=\"canonical\" href=\"";
echo twig_escape_filter($this->env, ((((isset($context["url_scheme"]) || array_key_exists("url_scheme", $context) ? $context["url_scheme"] : (function () { throw new RuntimeError('Variable "url_scheme" does not exist.', 12, $this->source); })()) . "://www.") . twig_get_attribute($this->env, $this->source, $context, ("url_" . (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 12, $this->source); })())), [], "array", false, false, false, 12)) . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag", ["tagSlug" => twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 12, $this->source); })()), "slug", [], "any", false, false, false, 12)])), "html", null, true);
echo "\" />
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 16
public function block_body($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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 17
echo " <!-- content -->
<section class=\"content u-padding-top-large\">
<aside id=\"content-left\" class=\"content-left-small hidesmartphone\">
<nav class=\"standard-nav\">
<ul class=\"u-margin-left-none u-padding-left-none\">
<li class=\"active\">
<div class=\"activestate\"> </div>
<a href=\"#\" title=\"Context\" class=\"hi\">Context</a>
</li>
</ul>
</nav>
</aside>
<div id=\"content-center\" class=\"content-right content-center-large notaris\">
<div id=\"content-center-header\">
<article class=\"niveau1\">
<div class=\"article-header u-padding-small u-word-wrap u-word-wrap-hyphens@mobile\">
<h1 class=\"u-text-lineheight-semilarge u-h2@desktop\">";
// line 35
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 35, $this->source); })()), "name", [], "any", false, false, false, 35)), "html", null, true);
echo "</h1>
</div>
";
// line 37
if (twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 37, $this->source); })()), "description", [], "any", false, false, false, 37)) {
// line 38
echo " <div class=\"article-content\">
";
// line 39
echo twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 39, $this->source); })()), "description", [], "any", false, false, false, 39);
echo "
<div class=\"cleaner\"> </div>
</div>
";
}
// line 43
echo " </article>
<article class=\"niveau3 fillcolor u-margin-top-large\">
<div class=\"article-content\">
<h2 class=\"u-text-lineheight-semilarge u-h2-small\">";
// line 46
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tag_artikelsgevonden1");
echo " \"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 46, $this->source); })()), "name", [], "any", false, false, false, 46), "html", null, true);
echo "\" ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tag_artikelsgevonden2");
echo " ";
echo twig_escape_filter($this->env, (isset($context["total"]) || array_key_exists("total", $context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.', 46, $this->source); })()), "html", null, true);
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tag_artikelsgevonden3");
echo ".</h2>
</div>
</article>
</div>
";
// line 52
if (((isset($context["totalpages"]) || array_key_exists("totalpages", $context) ? $context["totalpages"] : (function () { throw new RuntimeError('Variable "totalpages" does not exist.', 52, $this->source); })()) > 1)) {
// line 53
echo " <div class=\"prevnext-pages border-bottom\">
";
// line 54
if ((((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 54, $this->source); })()) + 1) != 1)) {
// line 55
echo " ";
if (((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 55, $this->source); })()) == 1)) {
// line 56
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag", ["tagSlug" => twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 56, $this->source); })()), "slug", [], "any", false, false, false, 56)]), "html", null, true);
echo "\">";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vorige");
echo "</a>
";
} else {
// line 58
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag_page", ["page" => ((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 58, $this->source); })()) - 1), "tagSlug" => twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 58, $this->source); })()), "slug", [], "any", false, false, false, 58)]), "html", null, true);
echo "\">";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vorige");
echo "</a>
";
}
// line 60
echo " ";
} else {
// line 61
echo " <span>";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vorige");
echo "</span>
";
}
// line 63
echo "
";
// line 64
$context["count"] = 0;
// line 65
echo " ";
$context["vispages"] = 4;
// line 66
echo " ";
$context["index"] = 0;
// line 67
echo "
";
// line 68
if ((((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 68, $this->source); })()) + 1) <= 2)) {
// line 69
echo " ";
$context["start"] = 1;
// line 70
echo " ";
} else {
// line 71
echo " ";
$context["start"] = (((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 71, $this->source); })()) + 1) - 2);
// line 72
echo " ";
$context["vispages"] = ((isset($context["vispages"]) || array_key_exists("vispages", $context) ? $context["vispages"] : (function () { throw new RuntimeError('Variable "vispages" does not exist.', 72, $this->source); })()) + 1);
// line 73
echo " ";
}
// line 74
echo "
";
// line 75
if ((((isset($context["start"]) || array_key_exists("start", $context) ? $context["start"] : (function () { throw new RuntimeError('Variable "start" does not exist.', 75, $this->source); })()) + 4) > (isset($context["totalpages"]) || array_key_exists("totalpages", $context) ? $context["totalpages"] : (function () { throw new RuntimeError('Variable "totalpages" does not exist.', 75, $this->source); })()))) {
// line 76
echo " ";
$context["start"] = ((isset($context["totalpages"]) || array_key_exists("totalpages", $context) ? $context["totalpages"] : (function () { throw new RuntimeError('Variable "totalpages" does not exist.', 76, $this->source); })()) - 3);
// line 77
echo " ";
}
// line 78
echo "
";
// line 79
if (((isset($context["start"]) || array_key_exists("start", $context) ? $context["start"] : (function () { throw new RuntimeError('Variable "start" does not exist.', 79, $this->source); })()) < 1)) {
// line 80
echo " ";
$context["start"] = 1;
// line 81
echo " ";
}
// line 82
echo "
";
// line 83
if (((isset($context["start"]) || array_key_exists("start", $context) ? $context["start"] : (function () { throw new RuntimeError('Variable "start" does not exist.', 83, $this->source); })()) != 1)) {
// line 84
echo " <span>...</span>
";
}
// line 86
echo "
";
// line 87
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range((isset($context["start"]) || array_key_exists("start", $context) ? $context["start"] : (function () { throw new RuntimeError('Variable "start" does not exist.', 87, $this->source); })()), (isset($context["totalpages"]) || array_key_exists("totalpages", $context) ? $context["totalpages"] : (function () { throw new RuntimeError('Variable "totalpages" does not exist.', 87, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 88
echo " ";
$context["count"] = ((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 88, $this->source); })()) + 1);
// line 89
echo " ";
if (((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 89, $this->source); })()) <= (isset($context["vispages"]) || array_key_exists("vispages", $context) ? $context["vispages"] : (function () { throw new RuntimeError('Variable "vispages" does not exist.', 89, $this->source); })()))) {
// line 90
echo " ";
$context["index"] = $context["i"];
// line 91
echo " ";
if (($context["i"] == ((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 91, $this->source); })()) + 1))) {
// line 92
echo " <span class=\"current\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</span>
";
} else {
// line 94
echo "
";
// line 95
if (($context["i"] == 1)) {
// line 96
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag", ["tagSlug" => twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 96, $this->source); })()), "slug", [], "any", false, false, false, 96)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</a>
";
} else {
// line 98
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag_page", ["page" => ($context["i"] - 1), "tagSlug" => twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 98, $this->source); })()), "slug", [], "any", false, false, false, 98)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</a>
";
}
// line 100
echo "
";
}
// line 102
echo " ";
}
// line 103
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 105
echo " ";
if (((isset($context["index"]) || array_key_exists("index", $context) ? $context["index"] : (function () { throw new RuntimeError('Variable "index" does not exist.', 105, $this->source); })()) != (isset($context["totalpages"]) || array_key_exists("totalpages", $context) ? $context["totalpages"] : (function () { throw new RuntimeError('Variable "totalpages" does not exist.', 105, $this->source); })()))) {
// line 106
echo " <span>...</span>
";
}
// line 108
echo "
";
// line 109
if ((((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 109, $this->source); })()) + 1) != (isset($context["totalpages"]) || array_key_exists("totalpages", $context) ? $context["totalpages"] : (function () { throw new RuntimeError('Variable "totalpages" does not exist.', 109, $this->source); })()))) {
// line 110
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag_page", ["page" => ((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 110, $this->source); })()) + 1), "tagSlug" => twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 110, $this->source); })()), "slug", [], "any", false, false, false, 110)]), "html", null, true);
echo "\">";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("volgende");
echo "</a>
";
} else {
// line 114
echo " <span>";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("volgende");
echo "</span>
";
}
// line 116
echo " </div>
";
}
// line 118
echo "
<section id=\"info\" class=\"no-margin\">
<div id=\"info-content\" class=\"niveau1 info-news-content\">
";
// line 122
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["tagresults"]) || array_key_exists("tagresults", $context) ? $context["tagresults"] : (function () { throw new RuntimeError('Variable "tagresults" does not exist.', 122, $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["tagresult"]) {
// line 123
echo " ";
$context["index"] = (twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 123) + ((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 123, $this->source); })()) * 25));
// line 124
echo "
<a class=\"info-content-blocklink\" href=\"";
// line 125
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tagresult"], "urlpath", [], "any", false, false, false, 125), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tagresult"], "title", [], "any", false, false, false, 125), "html", null, true);
echo "\">
<h2 class=\"u-text-lineheight-semilarge u-h2-small-bold ";
// line 126
if ( !twig_get_attribute($this->env, $this->source, $context["tagresult"], "description", [], "any", false, false, false, 126)) {
echo " u-h2-margin ";
} else {
echo " u-h2-no-margin";
}
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tagresult"], "title", [], "any", false, false, false, 126), "html", null, true);
echo "</h2>
";
// line 127
if (twig_get_attribute($this->env, $this->source, $context["tagresult"], "description", [], "any", false, false, false, 127)) {
// line 128
echo " <p class=\"no-top-padding\">
";
// line 129
$context["words"] = twig_split_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, $context["tagresult"], "description", [], "any", false, false, false, 129)), " ");
// line 130
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, (isset($context["words"]) || array_key_exists("words", $context) ? $context["words"] : (function () { throw new RuntimeError('Variable "words" does not exist.', 130, $this->source); })()), 0, 22));
$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["word"]) {
// line 131
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 131) && (twig_length_filter($this->env, (isset($context["words"]) || array_key_exists("words", $context) ? $context["words"] : (function () { throw new RuntimeError('Variable "words" does not exist.', 131, $this->source); })())) > 22))) {
// line 132
echo " ";
echo twig_replace_filter($context["word"], ["." => ""]);
echo "...
";
} else {
// line 134
echo " ";
echo $context["word"];
echo "
";
}
// line 136
echo " ";
++$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['word'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 137
echo " </p>
";
}
// line 139
echo " </a>
";
++$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['tagresult'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 141
echo "
</div>
</section>
";
// line 146
if (((isset($context["totalpages"]) || array_key_exists("totalpages", $context) ? $context["totalpages"] : (function () { throw new RuntimeError('Variable "totalpages" does not exist.', 146, $this->source); })()) > 1)) {
// line 147
echo " <div class=\"prevnext-pages\">
";
// line 148
if ((((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 148, $this->source); })()) + 1) != 1)) {
// line 149
echo " ";
if (((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 149, $this->source); })()) == 1)) {
// line 150
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag", ["tagSlug" => twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 150, $this->source); })()), "slug", [], "any", false, false, false, 150)]), "html", null, true);
echo "\">";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vorige");
echo "</a>
";
} else {
// line 152
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag_page", ["page" => ((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 152, $this->source); })()) - 1), "tagSlug" => twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 152, $this->source); })()), "slug", [], "any", false, false, false, 152)]), "html", null, true);
echo "\">";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vorige");
echo "</a>
";
}
// line 154
echo " ";
} else {
// line 155
echo " <span>";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vorige");
echo "</span>
";
}
// line 157
echo "
";
// line 158
$context["count"] = 0;
// line 159
echo " ";
$context["vispages"] = 4;
// line 160
echo " ";
$context["index"] = 0;
// line 161
echo "
";
// line 162
if ((((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 162, $this->source); })()) + 1) <= 2)) {
// line 163
echo " ";
$context["start"] = 1;
// line 164
echo " ";
} else {
// line 165
echo " ";
$context["start"] = (((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 165, $this->source); })()) + 1) - 2);
// line 166
echo " ";
$context["vispages"] = ((isset($context["vispages"]) || array_key_exists("vispages", $context) ? $context["vispages"] : (function () { throw new RuntimeError('Variable "vispages" does not exist.', 166, $this->source); })()) + 1);
// line 167
echo " ";
}
// line 168
echo "
";
// line 169
if ((((isset($context["start"]) || array_key_exists("start", $context) ? $context["start"] : (function () { throw new RuntimeError('Variable "start" does not exist.', 169, $this->source); })()) + 4) > (isset($context["totalpages"]) || array_key_exists("totalpages", $context) ? $context["totalpages"] : (function () { throw new RuntimeError('Variable "totalpages" does not exist.', 169, $this->source); })()))) {
// line 170
echo " ";
$context["start"] = ((isset($context["totalpages"]) || array_key_exists("totalpages", $context) ? $context["totalpages"] : (function () { throw new RuntimeError('Variable "totalpages" does not exist.', 170, $this->source); })()) - 3);
// line 171
echo " ";
}
// line 172
echo "
";
// line 173
if (((isset($context["start"]) || array_key_exists("start", $context) ? $context["start"] : (function () { throw new RuntimeError('Variable "start" does not exist.', 173, $this->source); })()) < 1)) {
// line 174
echo " ";
$context["start"] = 1;
// line 175
echo " ";
}
// line 176
echo "
";
// line 177
if (((isset($context["start"]) || array_key_exists("start", $context) ? $context["start"] : (function () { throw new RuntimeError('Variable "start" does not exist.', 177, $this->source); })()) != 1)) {
// line 178
echo " <span>...</span>
";
}
// line 180
echo "
";
// line 181
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range((isset($context["start"]) || array_key_exists("start", $context) ? $context["start"] : (function () { throw new RuntimeError('Variable "start" does not exist.', 181, $this->source); })()), (isset($context["totalpages"]) || array_key_exists("totalpages", $context) ? $context["totalpages"] : (function () { throw new RuntimeError('Variable "totalpages" does not exist.', 181, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 182
echo " ";
$context["count"] = ((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 182, $this->source); })()) + 1);
// line 183
echo " ";
if (((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 183, $this->source); })()) <= (isset($context["vispages"]) || array_key_exists("vispages", $context) ? $context["vispages"] : (function () { throw new RuntimeError('Variable "vispages" does not exist.', 183, $this->source); })()))) {
// line 184
echo " ";
$context["index"] = $context["i"];
// line 185
echo " ";
if (($context["i"] == ((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 185, $this->source); })()) + 1))) {
// line 186
echo " <span class=\"current\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</span>
";
} else {
// line 188
echo "
";
// line 189
if (($context["i"] == 1)) {
// line 190
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag", ["tagSlug" => twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 190, $this->source); })()), "slug", [], "any", false, false, false, 190)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</a>
";
} else {
// line 192
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag_page", ["page" => ($context["i"] - 1), "tagSlug" => twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 192, $this->source); })()), "slug", [], "any", false, false, false, 192)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</a>
";
}
// line 194
echo "
";
}
// line 196
echo " ";
}
// line 197
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 199
echo " ";
if (((isset($context["index"]) || array_key_exists("index", $context) ? $context["index"] : (function () { throw new RuntimeError('Variable "index" does not exist.', 199, $this->source); })()) != (isset($context["totalpages"]) || array_key_exists("totalpages", $context) ? $context["totalpages"] : (function () { throw new RuntimeError('Variable "totalpages" does not exist.', 199, $this->source); })()))) {
// line 200
echo " <span>...</span>
";
}
// line 202
echo "
";
// line 203
if ((((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 203, $this->source); })()) + 1) != (isset($context["totalpages"]) || array_key_exists("totalpages", $context) ? $context["totalpages"] : (function () { throw new RuntimeError('Variable "totalpages" does not exist.', 203, $this->source); })()))) {
// line 204
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag_page", ["page" => ((isset($context["currentpage"]) || array_key_exists("currentpage", $context) ? $context["currentpage"] : (function () { throw new RuntimeError('Variable "currentpage" does not exist.', 204, $this->source); })()) + 1), "tagSlug" => twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 204, $this->source); })()), "slug", [], "any", false, false, false, 204)]), "html", null, true);
echo "\">";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("volgende");
echo "</a>
";
} else {
// line 208
echo " <span>";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("volgende");
echo "</span>
";
}
// line 210
echo " </div>
";
}
// line 212
echo "
</div>
<div class=\"cleaner hidedesktop\"> </div>
";
// line 229
echo "
";
// line 230
$this->loadTemplate("@NotarisFrontend/navigation/mobilesubnav.html.twig", "@NotarisFrontend/tag/index.html.twig", 230)->display(twig_array_merge($context, ["websiteSlug" => "", "isSven" => false, "isHome" => false, "subsite" => ""]));
// line 231
echo " </section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 239
public function block_footer($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", "footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 240
echo " <div class=\"u-bg-off-white u-padding-top-small u-padding-bottom-large\">
<div class=\"o-wrapper\">
<div class=\"o-layout\">
";
// line 243
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['Notaris\FrontendBundle\Twig\SubsitenavExtension']->getSubsites((isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 243, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["subsite"]) {
// line 244
echo " <div class=\"o-layout__item u-1/1 u-1/2@mobile u-1/3@tablet u-1/4@desktop c-tags u-padding-top-small js-tags\">
<p class=\"u-margin-bottom-tiny u-color-";
// line 245
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subsite"], "stylesheet", [], "any", false, false, false, 245), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subsite"], "name", [], "any", false, false, false, 245), "html", null, true);
echo "</p>
";
// line 246
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['Notaris\FrontendBundle\Twig\TagExtension']->getTags($context["subsite"]));
foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
// line 247
echo " <div class=\"u-clearfix\">
<a data-slug=\"";
// line 248
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tag"], "slug", [], "any", false, false, false, 248), "html", null, true);
echo "\" data-tag-clicked=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag_clicked");
echo "\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag", ["tagSlug" => twig_get_attribute($this->env, $this->source, $context["tag"], "slug", [], "any", false, false, false, 248)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tag"], "name", [], "any", false, false, false, 248), "html", null, true);
echo "\" class=\"c-tags__item c-tags__item--block c-tags__item--showonhover c-tags__item--footer u-text-small\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tag"], "name", [], "any", false, false, false, 248), "html", null, true);
echo "</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 251
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subsite'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 253
echo " </div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 259
public function block_extrajs($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", "extrajs"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extrajs"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@NotarisFrontend/tag/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 795 => 259, 782 => 253, 775 => 251, 758 => 248, 755 => 247, 751 => 246, 745 => 245, 742 => 244, 738 => 243, 733 => 240, 723 => 239, 708 => 231, 706 => 230, 703 => 229, 694 => 212, 690 => 210, 684 => 208, 674 => 204, 672 => 203, 669 => 202, 665 => 200, 662 => 199, 655 => 197, 652 => 196, 648 => 194, 640 => 192, 632 => 190, 630 => 189, 627 => 188, 621 => 186, 618 => 185, 615 => 184, 612 => 183, 609 => 182, 605 => 181, 602 => 180, 598 => 178, 596 => 177, 593 => 176, 590 => 175, 587 => 174, 585 => 173, 582 => 172, 579 => 171, 576 => 170, 574 => 169, 571 => 168, 568 => 167, 565 => 166, 562 => 165, 559 => 164, 556 => 163, 554 => 162, 551 => 161, 548 => 160, 545 => 159, 543 => 158, 540 => 157, 534 => 155, 531 => 154, 523 => 152, 515 => 150, 512 => 149, 510 => 148, 507 => 147, 505 => 146, 498 => 141, 483 => 139, 479 => 137, 465 => 136, 459 => 134, 453 => 132, 450 => 131, 432 => 130, 430 => 129, 427 => 128, 425 => 127, 415 => 126, 409 => 125, 406 => 124, 403 => 123, 386 => 122, 380 => 118, 376 => 116, 370 => 114, 360 => 110, 358 => 109, 355 => 108, 351 => 106, 348 => 105, 341 => 103, 338 => 102, 334 => 100, 326 => 98, 318 => 96, 316 => 95, 313 => 94, 307 => 92, 304 => 91, 301 => 90, 298 => 89, 295 => 88, 291 => 87, 288 => 86, 284 => 84, 282 => 83, 279 => 82, 276 => 81, 273 => 80, 271 => 79, 268 => 78, 265 => 77, 262 => 76, 260 => 75, 257 => 74, 254 => 73, 251 => 72, 248 => 71, 245 => 70, 242 => 69, 240 => 68, 237 => 67, 234 => 66, 231 => 65, 229 => 64, 226 => 63, 220 => 61, 217 => 60, 209 => 58, 201 => 56, 198 => 55, 196 => 54, 193 => 53, 191 => 52, 174 => 46, 169 => 43, 162 => 39, 159 => 38, 157 => 37, 152 => 35, 132 => 17, 122 => 16, 109 => 12, 99 => 11, 83 => 7, 75 => 5, 72 => 4, 62 => 3, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@NotarisFrontend/layout2017.html.twig' %}
{% block title %}
{% if notaryId is defined %}
<title>{{ info.header1 | replace({\"<BR />\":\" \"}) }} - {{ tag.name }}</title>
{% else %}
<title>Context | {{ tag.name }} {{ 'alg_basetitle' | trans }} </title>
{% endif %}
{% endblock %}
{% block extralinks %}
<link rel=\"canonical\" href=\"{{ url_scheme ~ '://www.' ~ _context['url_' ~ locale] ~ path('notaris_frontend_tag', {tagSlug: tag.slug}) }}\" />
{% endblock %}
{% block body %}
<!-- content -->
<section class=\"content u-padding-top-large\">
<aside id=\"content-left\" class=\"content-left-small hidesmartphone\">
<nav class=\"standard-nav\">
<ul class=\"u-margin-left-none u-padding-left-none\">
<li class=\"active\">
<div class=\"activestate\"> </div>
<a href=\"#\" title=\"Context\" class=\"hi\">Context</a>
</li>
</ul>
</nav>
</aside>
<div id=\"content-center\" class=\"content-right content-center-large notaris\">
<div id=\"content-center-header\">
<article class=\"niveau1\">
<div class=\"article-header u-padding-small u-word-wrap u-word-wrap-hyphens@mobile\">
<h1 class=\"u-text-lineheight-semilarge u-h2@desktop\">{{ tag.name | capitalize }}</h1>
</div>
{% if tag.description %}
<div class=\"article-content\">
{{ tag.description | raw }}
<div class=\"cleaner\"> </div>
</div>
{% endif %}
</article>
<article class=\"niveau3 fillcolor u-margin-top-large\">
<div class=\"article-content\">
<h2 class=\"u-text-lineheight-semilarge u-h2-small\">{{ 'tag_artikelsgevonden1' | trans | raw }} \"{{ tag.name }}\" {{ 'tag_artikelsgevonden2' | trans | raw }} {{ total }} {{ 'tag_artikelsgevonden3' | trans | raw }}.</h2>
</div>
</article>
</div>
{% if totalpages > 1 %}
<div class=\"prevnext-pages border-bottom\">
{% if currentpage + 1 != 1 %}
{% if currentpage == 1 %}
<a href=\"{{ path('notaris_frontend_tag', {'tagSlug': tag.slug}) }}\">{{ 'vorige' | trans | raw }}</a>
{% else %}
<a href=\"{{ path('notaris_frontend_tag_page', {'page': currentpage - 1, 'tagSlug': tag.slug}) }}\">{{ 'vorige' | trans | raw }}</a>
{% endif %}
{% else %}
<span>{{ 'vorige' | trans | raw }}</span>
{% endif %}
{% set count = 0 %}
{% set vispages = 4 %}
{% set index = 0 %}
{% if currentpage + 1 <= 2 %}
{% set start = 1 %}
{% else %}
{% set start = currentpage + 1 - 2 %}
{% set vispages = vispages + 1 %}
{% endif %}
{% if start + 4> totalpages %}
{% set start = totalpages - 3 %}
{% endif %}
{% if start < 1 %}
{% set start = 1 %}
{% endif %}
{% if start != 1 %}
<span>...</span>
{% endif %}
{% for i in start..totalpages %}
{% set count = count + 1 %}
{% if count <= vispages %}
{% set index = i %}
{% if i == currentpage + 1 %}
<span class=\"current\">{{ i }}</span>
{% else %}
{% if i == 1 %}
<a href=\"{{ path('notaris_frontend_tag', {'tagSlug': tag.slug}) }}\">{{ i }}</a>
{% else %}
<a href=\"{{ path('notaris_frontend_tag_page', {'page': i - 1, 'tagSlug': tag.slug}) }}\">{{ i }}</a>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% if index != totalpages %}
<span>...</span>
{% endif %}
{% if currentpage + 1 != totalpages %}
<a href=\"{{ path('notaris_frontend_tag_page', {'page': currentpage + 1, 'tagSlug': tag.slug}) }}\">{{ 'volgende' | trans | raw }}</a>
{% else %}
<span>{{ 'volgende' | trans | raw }}</span>
{% endif %}
</div>
{% endif %}
<section id=\"info\" class=\"no-margin\">
<div id=\"info-content\" class=\"niveau1 info-news-content\">
{% for tagresult in tagresults %}
{% set index = loop.index + (currentpage * 25) %}
<a class=\"info-content-blocklink\" href=\"{{ tagresult.urlpath }}\" title=\"{{ tagresult.title }}\">
<h2 class=\"u-text-lineheight-semilarge u-h2-small-bold {% if not tagresult.description %} u-h2-margin {% else %} u-h2-no-margin{% endif %}\">{{ tagresult.title }}</h2>
{% if tagresult.description %}
<p class=\"no-top-padding\">
{% set words = tagresult.description | striptags | split(' ') %}
{% for word in words|slice(0, 22) %}
{% if loop.last and words|length > 22 %}
{{ word | replace({'.':''}) | raw }}...
{% else %}
{{ word | raw }}
{% endif %}
{% endfor %}
</p>
{% endif %}
</a>
{% endfor %}
</div>
</section>
{% if totalpages > 1 %}
<div class=\"prevnext-pages\">
{% if currentpage + 1 != 1 %}
{% if currentpage == 1 %}
<a href=\"{{ path('notaris_frontend_tag', {'tagSlug': tag.slug}) }}\">{{ 'vorige' | trans | raw }}</a>
{% else %}
<a href=\"{{ path('notaris_frontend_tag_page', {'page': currentpage - 1, 'tagSlug': tag.slug}) }}\">{{ 'vorige' | trans | raw }}</a>
{% endif %}
{% else %}
<span>{{ 'vorige' | trans | raw }}</span>
{% endif %}
{% set count = 0 %}
{% set vispages = 4 %}
{% set index = 0 %}
{% if currentpage + 1 <= 2 %}
{% set start = 1 %}
{% else %}
{% set start = currentpage + 1 - 2 %}
{% set vispages = vispages + 1 %}
{% endif %}
{% if start + 4> totalpages %}
{% set start = totalpages - 3 %}
{% endif %}
{% if start < 1 %}
{% set start = 1 %}
{% endif %}
{% if start != 1 %}
<span>...</span>
{% endif %}
{% for i in start..totalpages %}
{% set count = count + 1 %}
{% if count <= vispages %}
{% set index = i %}
{% if i == currentpage + 1 %}
<span class=\"current\">{{ i }}</span>
{% else %}
{% if i == 1 %}
<a href=\"{{ path('notaris_frontend_tag', {'tagSlug': tag.slug}) }}\">{{ i }}</a>
{% else %}
<a href=\"{{ path('notaris_frontend_tag_page', {'page': i - 1, 'tagSlug': tag.slug}) }}\">{{ i }}</a>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% if index != totalpages %}
<span>...</span>
{% endif %}
{% if currentpage + 1 != totalpages %}
<a href=\"{{ path('notaris_frontend_tag_page', {'page': currentpage + 1, 'tagSlug': tag.slug}) }}\">{{ 'volgende' | trans | raw }}</a>
{% else %}
<span>{{ 'volgende' | trans | raw }}</span>
{% endif %}
</div>
{% endif %}
</div>
<div class=\"cleaner hidedesktop\"> </div>
{#
<aside id=\"content-right\">
{% if notaryId is defined %}
{{ include('@NotarisFrontend/Sven/_sven_address.html.twig') }}
{% else %}
{{ include('@NotarisFrontend/Module/notsearch_module.html.twig') }}
{% endif %}
</aside>
#}
{% include '@NotarisFrontend/navigation/mobilesubnav.html.twig' with {'websiteSlug': '', 'isSven':false, 'isHome':false, 'subsite': ''} %}
</section>
{% endblock %}
{% block footer %}
<div class=\"u-bg-off-white u-padding-top-small u-padding-bottom-large\">
<div class=\"o-wrapper\">
<div class=\"o-layout\">
{% for subsite in getSubsites(locale) %}
<div class=\"o-layout__item u-1/1 u-1/2@mobile u-1/3@tablet u-1/4@desktop c-tags u-padding-top-small js-tags\">
<p class=\"u-margin-bottom-tiny u-color-{{ subsite.stylesheet }}\">{{ subsite.name }}</p>
{% for tag in getTags(subsite) %}
<div class=\"u-clearfix\">
<a data-slug=\"{{ tag.slug }}\" data-tag-clicked=\"{{ path('notaris_frontend_tag_clicked') }}\" href=\"{{ path('notaris_frontend_tag', {'tagSlug': tag.slug }) }}\" title=\"{{ tag.name }}\" class=\"c-tags__item c-tags__item--block c-tags__item--showonhover c-tags__item--footer u-text-small\">{{ tag.name }}</a>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
</div>
{% endblock %}
{% block extrajs %}
{% endblock %}
", "@NotarisFrontend/tag/index.html.twig", "/data/sites/web/notarisdc-projectsbe/subsites/apps/default/releases/7/src/Notaris/FrontendBundle/Resources/views/tag/index.html.twig");
}
}