<?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;
/* news/content/NewsLinks.html.twig */
class __TwigTemplate_a765b5069958398f9a38887bbd694a2b 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", "news/content/NewsLinks.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "news/content/NewsLinks.html.twig"));
// line 1
if (twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 1, $this->source); })()), "links", [], "any", false, false, false, 1)) {
// line 2
echo " <div class=\"row mt-5\">
";
// line 3
if (twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 3, $this->source); })()), "title", [], "any", false, false, false, 3)) {
// line 4
echo " <h6 class=\"col-12\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 4, $this->source); })()), "title", [], "any", false, false, false, 4), "html", null, true);
echo "</h6>
";
}
// line 6
echo "
<div class=\"col-12\">
<ul class=\"list-group\">
";
// line 10
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 10, $this->source); })()), "links", [], "any", false, false, false, 10));
foreach ($context['_seq'] as $context["_key"] => $context["linkBlock"]) {
// line 11
echo "
<li class=\"list-group-item\">";
// line 12
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["linkBlock"], "link", [], "any", false, false, false, 12), "data", [], "any", false, false, false, 12);
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['linkBlock'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 15
echo "
</ul>
</div>
</div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "news/content/NewsLinks.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 78 => 15, 69 => 12, 66 => 11, 62 => 10, 56 => 6, 50 => 4, 48 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% if item.links %}
<div class=\"row mt-5\">
{% if item.title %}
<h6 class=\"col-12\">{{ item.title }}</h6>
{% endif %}
<div class=\"col-12\">
<ul class=\"list-group\">
{% for linkBlock in item.links %}
<li class=\"list-group-item\">{{ linkBlock.link.data | raw }}</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
", "news/content/NewsLinks.html.twig", "/home/pimcore/pim10cars/templates/news/content/NewsLinks.html.twig");
}
}