<?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;
/* Includes/link-list.html.twig */
class __TwigTemplate_407c54a6b4966185aabddefbd3fd5ce1 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "Includes/link-list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Includes/link-list.html.twig"));
// line 1
$context["useLightTheme"] = ((array_key_exists("useLightTheme", $context)) ? (_twig_default_filter((isset($context["useLightTheme"]) || array_key_exists("useLightTheme", $context) ? $context["useLightTheme"] : (function () { throw new RuntimeError('Variable "useLightTheme" does not exist.', 1, $this->source); })()), false)) : (false));
// line 2
echo "<section class=\"slide ";
echo (((isset($context["useLightTheme"]) || array_key_exists("useLightTheme", $context) ? $context["useLightTheme"] : (function () { throw new RuntimeError('Variable "useLightTheme" does not exist.', 2, $this->source); })())) ? ("bg-light-bg") : ("bg-dark-bg "));
echo " content-block content-block--no-footer-margin ";
echo ((((array_key_exists("isSmall", $context)) ? (_twig_default_filter((isset($context["isSmall"]) || array_key_exists("isSmall", $context) ? $context["isSmall"] : (function () { throw new RuntimeError('Variable "isSmall" does not exist.', 2, $this->source); })()), false)) : (false))) ? ("quote-area--small") : (""));
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("styleModifier", $context)) ? (_twig_default_filter((isset($context["styleModifier"]) || array_key_exists("styleModifier", $context) ? $context["styleModifier"] : (function () { throw new RuntimeError('Variable "styleModifier" does not exist.', 2, $this->source); })()), null)) : (null)), "html", null, true);
echo "\">
<div class=\"container\">
<ul class=\"row row--same-height list-unstyled link-list ";
// line 4
echo (((isset($context["useLightTheme"]) || array_key_exists("useLightTheme", $context) ? $context["useLightTheme"] : (function () { throw new RuntimeError('Variable "useLightTheme" does not exist.', 4, $this->source); })())) ? ("link-list--light") : (""));
echo " vertical-gutter--default\">
";
// line 5
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["links"]) || array_key_exists("links", $context) ? $context["links"] : (function () { throw new RuntimeError('Variable "links" does not exist.', 5, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["link"]) {
// line 6
echo " <li class=\"link-list__item col-md-4 col-6 vertical-gutter__item\">
<a href=\"";
// line 7
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["link"], "href", [], "any", false, false, false, 7), "html", null, true);
echo "\" target=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["link"], "target", [], "any", false, false, false, 7), "html", null, true);
echo "\" class=\"link-list__item-link row--same-height__item js-fade-in\">
<span class=\"link-list__item-link__text\">
";
// line 9
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["link"], "text", [], "any", false, false, false, 9), "html", null, true);
echo "
";
// line 10
if ((twig_get_attribute($this->env, $this->source, $context["link"], "target", [], "any", false, false, false, 10) == "_blank")) {
// line 11
echo " <span class=\"icon icon-link-external link-list__item-icon\" aria-label=\"external link\" title=\"external link\"></span>
";
}
// line 13
echo " </span>
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['link'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 17
echo " </ul>
</div>
</section>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Includes/link-list.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 92 => 17, 83 => 13, 79 => 11, 77 => 10, 73 => 9, 66 => 7, 63 => 6, 59 => 5, 55 => 4, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set useLightTheme = useLightTheme|default(false) %}
<section class=\"slide {{ useLightTheme ? 'bg-light-bg' : 'bg-dark-bg ' }} content-block content-block--no-footer-margin {{ isSmall|default(false) ? 'quote-area--small' : '' }} {{ styleModifier | default(null) }}\">
<div class=\"container\">
<ul class=\"row row--same-height list-unstyled link-list {{ useLightTheme ? 'link-list--light' : '' }} vertical-gutter--default\">
{% for link in links %}
<li class=\"link-list__item col-md-4 col-6 vertical-gutter__item\">
<a href=\"{{ link.href }}\" target=\"{{ link.target }}\" class=\"link-list__item-link row--same-height__item js-fade-in\">
<span class=\"link-list__item-link__text\">
{{ link.text }}
{% if link.target == '_blank' %}
<span class=\"icon icon-link-external link-list__item-icon\" aria-label=\"external link\" title=\"external link\"></span>
{% endif %}
</span>
</a>
</li>
{% endfor %}
</ul>
</div>
</section>
", "Includes/link-list.html.twig", "/home/steiermark/www/templates/Includes/link-list.html.twig");
}
}