var/cache/dev/twig/05/0508233394e5ed5d74cade667254656e.php line 163

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. /* @NotarisFrontend/module/mod_subsubmenu.html.twig */
  14. class __TwigTemplate_cbd1c389bd28cbdb4a631b118fb466ca extends \Twig\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->parent = false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros = $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NotarisFrontend/module/mod_subsubmenu.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NotarisFrontend/module/mod_subsubmenu.html.twig"));
  33.         // line 2
  34.         echo "<div class=\"c-nav--subsubnav c-subsubnav u-color-white js-subsubnav\" data-bgcolor=\"";
  35.         echo twig_escape_filter($this->env, (isset($context["color"]) || array_key_exists("color", $context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.', 2, $this->source); })()), "html", null, true);
  36.         echo "\">
  37.     <div class=\"c-subsubnav__left u-1/3 u-bg-white o-flex o-flex--stretch-items\">
  38.         <div class=\"c-subsubnav--meta u-bg-";
  39.         // line 4
  40.         echo twig_escape_filter($this->env, (isset($context["color"]) || array_key_exists("color", $context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.', 4, $this->source); })()), "html", null, true);
  41.         echo "--opacity80 u-padding-top-small u-padding-horizontal-large u-padding-horizontal-small@tablet u-text-left\">
  42.             ";
  43.         // line 5
  44.         if ((((isset($context["lastPart"]) || array_key_exists("lastPart", $context) ? $context["lastPart"] : (function () { throw new RuntimeError('Variable "lastPart" does not exist.', 5, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 5, $this->source); })()), "slug", [], "any", false, false, false, 5)) &&  !array_key_exists("section", $context))) {
  45.             // line 6
  46.             echo "                <h2 class=\"u-padding-top-tiny u-text-lineheight-normal u-h2@desktop\">";
  47.             echo twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 6, $this->source); })()), "oneliner", [], "any", false, false, false, 6);
  48.             echo "</h2>
  49.             ";
  50.         } else {
  51.             // line 8
  52.             echo "                <div class=\"u-padding-top-tiny u-text-lineheight-normal u-h2@desktop c-h2\" style=\"letter-spacing: 0; margin-bottom: 22px;\">";
  53.             echo twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 8, $this->source); })()), "oneliner", [], "any", false, false, false, 8);
  54.             echo "</div>
  55.             ";
  56.         }
  57.         // line 10
  58.         echo "            <a href=\"";
  59.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_subsite", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 10, $this->source); })()), "slug", [], "any", false, false, false, 10)]), "html", null, true);
  60.         echo "\" class=\"c-btn c-btn--small c-btn--subsubnav o-flex u-text-left u-bg-";
  61.         echo twig_escape_filter($this->env, (isset($context["color"]) || array_key_exists("color", $context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.', 10, $this->source); })()), "html", null, true);
  62.         echo " u-margin-bottom-tiny\">
  63.                 <span class=\"u-h3 u-text-bold\">";
  64.         // line 11
  65.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("md_start"), "html", null, true);
  66.         echo "</span>
  67.                 <span class=\"c-btn c-btn__next c-btn__next--white c-btn--empty\"></span>
  68.             </a>
  69.             <ul class=\"o-list-bare\">
  70.                 <li class=\"o-list-bare__item c-subsubnav__item c-subsubnav__item-full";
  71.         // line 15
  72.         if (twig_in_filter("notaris_frontend_subsite_news", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 15, $this->source); })()), "request", [], "any", false, false, false, 15), "get", [0 => "_route"], "method", false, false, false, 15))) {
  73.             echo " active";
  74.         }
  75.         echo "\">
  76.                     <a href=\"";
  77.         // line 16
  78.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_subsite_news", ["subsiteslug" => twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 16, $this->source); })()), "slug", [], "any", false, false, false, 16)]), "html", null, true);
  79.         echo "\" class=\"c-subsubnav__link u-padding-left-none\" title=\"";
  80.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sn_actueel");
  81.         echo "\">
  82.                         ";
  83.         // line 17
  84.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sn_actueel");
  85.         echo "
  86.                     </a>
  87.                 </li>
  88.                 <li class=\"o-list-bare__item c-subsubnav__item c-subsubnav__item-full";
  89.         // line 20
  90.         if (twig_in_filter("notaris_frontend_faq_subsite", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 20, $this->source); })()), "request", [], "any", false, false, false, 20), "get", [0 => "_route"], "method", false, false, false, 20))) {
  91.             echo " active";
  92.         }
  93.         echo "\">
  94.                     <a href=\"";
  95.         // line 21
  96.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_faq_subsite", ["subsiteSlug" => twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 21, $this->source); })()), "slug", [], "any", false, false, false, 21)]), "html", null, true);
  97.         echo "\" class=\"c-subsubnav__link u-padding-left-none\" title=\"";
  98.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sn_vragenenantwoorden");
  99.         echo "\">
  100.                         ";
  101.         // line 22
  102.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sn_vragenenantwoorden");
  103.         echo "
  104.                     </a>
  105.                 </li>
  106.                 <li class=\"o-list-bare__item c-subsubnav__item c-subsubnav__item-full";
  107.         // line 25
  108.         if (twig_in_filter("notaris_frontend_brochures", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "request", [], "any", false, false, false, 25), "get", [0 => "_route"], "method", false, false, false, 25))) {
  109.             echo " active";
  110.         }
  111.         echo "\">
  112.                     <a href=\"";
  113.         // line 26
  114.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_brochures", ["subsiteSlug" => twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 26, $this->source); })()), "slug", [], "any", false, false, false, 26)]), "html", null, true);
  115.         echo "\" class=\"c-subsubnav__link u-padding-left-none\" title=\"";
  116.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("md_publi");
  117.         echo "\">
  118.                         ";
  119.         // line 27
  120.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("md_publi");
  121.         echo "
  122.                     </a>
  123.                 </li>
  124.                 <li class=\"o-list-bare__item c-subsubnav__item c-subsubnav__item-full";
  125.         // line 30
  126.         if (twig_in_filter("notaris_frontend_tv_detail", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 30, $this->source); })()), "request", [], "any", false, false, false, 30), "get", [0 => "_route"], "method", false, false, false, 30))) {
  127.             echo " active";
  128.         }
  129.         echo "\">
  130.                     <a href=\"";
  131.         // line 31
  132.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tv_detail", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 31, $this->source); })()), "slug", [], "any", false, false, false, 31)]), "html", null, true);
  133.         echo "\" class=\"c-subsubnav__link u-padding-left-none\" title=\"";
  134.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sv_notaristv");
  135.         echo "\">
  136.                         ";
  137.         // line 32
  138.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sv_notaristv");
  139.         echo "
  140.                     </a>
  141.                 </li>
  142.             </ul>
  143.         </div>
  144.     </div>
  145.     <div class=\"c-subsubnav__right u-2/3 u-bg-";
  146.         // line 39
  147.         echo twig_escape_filter($this->env, (isset($context["color"]) || array_key_exists("color", $context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.', 39, $this->source); })()), "html", null, true);
  148.         echo "\">
  149.         <ul class=\"o-list-bare o-flex o-flex--wrap u-padding-top-small u-padding-horizontal-large u-padding-horizontal-small@tablet\">
  150.             ";
  151.         // line 41
  152.         $context['_parent'] = $context;
  153.         $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 41, $this->source); })()), "sections", [], "any", false, false, false, 41), function ($__section__) use ($context, $macros) { $context["section"] = $__section__; return (((null === twig_get_attribute($this->env, $this->source, $context["section"], "parent", [], "any", false, false, false, 41)) && twig_get_attribute($this->env, $this->source, $context["section"], "isActive", [], "any", false, false, false, 41)) && twig_get_attribute($this->env, $this->source, $context["section"], "showNavigation", [], "any", false, false, false, 41)); }));
  154.         foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
  155.             // line 42
  156.             echo "            <li class=\"o-list-bare__item c-subsubnav__item";
  157.             if (array_key_exists("currentslug", $context)) {
  158.                 if (((isset($context["currentslug"]) || array_key_exists("currentslug", $context) ? $context["currentslug"] : (function () { throw new RuntimeError('Variable "currentslug" does not exist.', 42, $this->source); })()) == twig_get_attribute($this->env, $this->source, $context["section"], "slug", [], "any", false, false, false, 42))) {
  159.                     echo " active";
  160.                 }
  161.             }
  162.             echo "\">
  163.                 <a href=\"";
  164.             // line 43
  165.             if (twig_get_attribute($this->env, $this->source, $context["section"], "redirectUrl", [], "any", false, false, false, 43)) {
  166.                 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["section"], "redirectUrl", [], "any", false, false, false, 43), "html", null, true);
  167.             } else {
  168.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_subsite_detail", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 43, $this->source); })()), "slug", [], "any", false, false, false, 43), "slugdetail" => twig_get_attribute($this->env, $this->source, $context["section"], "slug", [], "any", false, false, false, 43)]), "html", null, true);
  169.             }
  170.             echo "\" class=\"c-subsubnav__link\" title=\"";
  171.             echo twig_get_attribute($this->env, $this->source, $context["section"], "navigation", [], "any", false, false, false, 43);
  172.             echo "\">";
  173.             echo twig_get_attribute($this->env, $this->source, $context["section"], "navigation", [], "any", false, false, false, 43);
  174.             echo "</a>
  175.             </li>
  176.             ";
  177.         }
  178.         $_parent = $context['_parent'];
  179.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
  180.         $context = array_intersect_key($context, $_parent) + $_parent;
  181.         // line 46
  182.         echo "        </ul>
  183.     </div>
  184. </div>
  185. ";
  186.         
  187.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  188.         
  189.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  190.     }
  191.     public function getTemplateName()
  192.     {
  193.         return "@NotarisFrontend/module/mod_subsubmenu.html.twig";
  194.     }
  195.     public function isTraitable()
  196.     {
  197.         return false;
  198.     }
  199.     public function getDebugInfo()
  200.     {
  201.         return array (  192 => 46,  175 => 43,  166 => 42,  162 => 41,  157 => 39,  147 => 32,  141 => 31,  135 => 30,  129 => 27,  123 => 26,  117 => 25,  111 => 22,  105 => 21,  99 => 20,  93 => 17,  87 => 16,  81 => 15,  74 => 11,  67 => 10,  61 => 8,  55 => 6,  53 => 5,  49 => 4,  43 => 2,);
  202.     }
  203.     public function getSourceContext()
  204.     {
  205.         return new Source("{# SubSubmenu #}
  206. <div class=\"c-nav--subsubnav c-subsubnav u-color-white js-subsubnav\" data-bgcolor=\"{{ color }}\">
  207.     <div class=\"c-subsubnav__left u-1/3 u-bg-white o-flex o-flex--stretch-items\">
  208.         <div class=\"c-subsubnav--meta u-bg-{{ color }}--opacity80 u-padding-top-small u-padding-horizontal-large u-padding-horizontal-small@tablet u-text-left\">
  209.             {% if lastPart == subsite.slug and section is not defined %}
  210.                 <h2 class=\"u-padding-top-tiny u-text-lineheight-normal u-h2@desktop\">{{ subsite.oneliner | raw }}</h2>
  211.             {% else %}
  212.                 <div class=\"u-padding-top-tiny u-text-lineheight-normal u-h2@desktop c-h2\" style=\"letter-spacing: 0; margin-bottom: 22px;\">{{ subsite.oneliner | raw }}</div>
  213.             {% endif %}
  214.             <a href=\"{{ path('notaris_frontend_subsite', {'slug': subsite.slug}) }}\" class=\"c-btn c-btn--small c-btn--subsubnav o-flex u-text-left u-bg-{{ color }} u-margin-bottom-tiny\">
  215.                 <span class=\"u-h3 u-text-bold\">{{ \"md_start\" | trans }}</span>
  216.                 <span class=\"c-btn c-btn__next c-btn__next--white c-btn--empty\"></span>
  217.             </a>
  218.             <ul class=\"o-list-bare\">
  219.                 <li class=\"o-list-bare__item c-subsubnav__item c-subsubnav__item-full{% if 'notaris_frontend_subsite_news' in app.request.get('_route') %} active{% endif %}\">
  220.                     <a href=\"{{ path('notaris_frontend_subsite_news', {'subsiteslug': subsite.slug}) }}\" class=\"c-subsubnav__link u-padding-left-none\" title=\"{{ \"sn_actueel\" | trans | raw }}\">
  221.                         {{ \"sn_actueel\" | trans | raw }}
  222.                     </a>
  223.                 </li>
  224.                 <li class=\"o-list-bare__item c-subsubnav__item c-subsubnav__item-full{% if 'notaris_frontend_faq_subsite' in app.request.get('_route') %} active{% endif %}\">
  225.                     <a href=\"{{ path('notaris_frontend_faq_subsite',{ 'subsiteSlug': subsite.slug}) }}\" class=\"c-subsubnav__link u-padding-left-none\" title=\"{{ \"sn_vragenenantwoorden\" | trans | raw }}\">
  226.                         {{ \"sn_vragenenantwoorden\" | trans | raw }}
  227.                     </a>
  228.                 </li>
  229.                 <li class=\"o-list-bare__item c-subsubnav__item c-subsubnav__item-full{% if 'notaris_frontend_brochures' in app.request.get('_route') %} active{% endif %}\">
  230.                     <a href=\"{{ path('notaris_frontend_brochures',{'subsiteSlug': subsite.slug}) }}\" class=\"c-subsubnav__link u-padding-left-none\" title=\"{{ \"md_publi\" | trans | raw }}\">
  231.                         {{ \"md_publi\" | trans | raw }}
  232.                     </a>
  233.                 </li>
  234.                 <li class=\"o-list-bare__item c-subsubnav__item c-subsubnav__item-full{% if 'notaris_frontend_tv_detail' in app.request.get('_route') %} active{% endif %}\">
  235.                     <a href=\"{{ path('notaris_frontend_tv_detail', {'slug': subsite.slug}) }}\" class=\"c-subsubnav__link u-padding-left-none\" title=\"{{ \"sv_notaristv\" | trans | raw }}\">
  236.                         {{ \"sv_notaristv\" | trans | raw }}
  237.                     </a>
  238.                 </li>
  239.             </ul>
  240.         </div>
  241.     </div>
  242.     <div class=\"c-subsubnav__right u-2/3 u-bg-{{ color }}\">
  243.         <ul class=\"o-list-bare o-flex o-flex--wrap u-padding-top-small u-padding-horizontal-large u-padding-horizontal-small@tablet\">
  244.             {% for section in subsite.sections|filter(section => section.parent is null and section.isActive and section.showNavigation) %}
  245.             <li class=\"o-list-bare__item c-subsubnav__item{% if currentslug is defined %}{% if currentslug == section.slug %} active{% endif %}{% endif %}\">
  246.                 <a href=\"{% if section.redirectUrl %}{{ section.redirectUrl }}{% else %}{{ path('notaris_frontend_subsite_detail', {'slug': subsite.slug, 'slugdetail': section.slug }) }}{% endif %}\" class=\"c-subsubnav__link\" title=\"{{ section.navigation | raw  }}\">{{ section.navigation | raw }}</a>
  247.             </li>
  248.             {% endfor %}
  249.         </ul>
  250.     </div>
  251. </div>
  252. ", "@NotarisFrontend/module/mod_subsubmenu.html.twig", "/data/sites/web/notarisdc-projectsbe/subsites/apps/default/releases/7/src/Notaris/FrontendBundle/Resources/views/module/mod_subsubmenu.html.twig");
  253.     }
  254. }