<?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;
/* @VisualMediaUnit/Unit/index.html.twig */
class __TwigTemplate_c5a24a15751965748b2848638dbe8e58 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'main' => [$this, 'block_main'],
'breadcrumb' => [$this, 'block_breadcrumb'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Layout/base.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", "@VisualMediaUnit/Unit/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", "@VisualMediaUnit/Unit/index.html.twig"));
$this->parent = $this->loadTemplate("Layout/base.html.twig", "@VisualMediaUnit/Unit/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_main($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", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 4
echo " <article class=\"container-fluid content-width-medium content-padding\">
";
// line 5
$this->displayBlock('breadcrumb', $context, $blocks);
// line 8
echo "
";
// line 9
$this->displayBlock('content', $context, $blocks);
// line 27
echo " </article>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
public function block_breadcrumb($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", "breadcrumb"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
// line 6
echo " ";
$this->loadTemplate("@VisualMediaBreadcrumb/Breadcrumb/breadcrumb.html.twig", "@VisualMediaUnit/Unit/index.html.twig", 6)->display($context);
// line 7
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 9
public function block_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 10
echo " <div class=\"row\">
";
// line 11
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["units"]) || array_key_exists("units", $context) ? $context["units"] : (function () { throw new RuntimeError('Variable "units" does not exist.', 11, $this->source); })()));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["unit"]) {
// line 12
echo " <div class=\"col-4\">
<div class=\"card\">
<img class=\"card-img-top\" src=\"";
// line 14
echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigUploadUrl']->url(((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["unit"], "photo", [], "any", false, true, false, 14), "upload", [], "any", true, true, false, 14)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["unit"], "photo", [], "any", false, true, false, 14), "upload", [], "any", false, false, false, 14), null)) : (null))), "html", null, true);
echo "\">
<div class=\"card-body\">
<h5 class=\"card-title\">";
// line 16
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["unit"], "fullAddress", [], "any", false, false, false, 16), "html", null, true);
echo "</h5>
<p class=\"card-text\">";
// line 17
echo twig_get_attribute($this->env, $this->source, $context["unit"], "metaDescription", [], "any", false, false, false, 17);
echo "</p>
<a href=\"";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("unit_view", ["slug" => twig_get_attribute($this->env, $this->source, $context["unit"], "slug", [], "any", false, false, false, 18)]), "html", null, true);
echo "\" class=\"btn btn-primary\">Bekijk</a>
</div>
</div>
</div>
";
$context['_iterated'] = true;
}
if (!$context['_iterated']) {
// line 23
echo " <li><em>no user found</em></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['unit'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@VisualMediaUnit/Unit/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 166 => 25, 159 => 23, 149 => 18, 145 => 17, 141 => 16, 136 => 14, 132 => 12, 127 => 11, 124 => 10, 114 => 9, 104 => 7, 101 => 6, 91 => 5, 80 => 27, 78 => 9, 75 => 8, 73 => 5, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'Layout/base.html.twig' %}
{% block main %}
<article class=\"container-fluid content-width-medium content-padding\">
{% block breadcrumb %}
{% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb.html.twig' %}
{% endblock %}
{% block content %}
<div class=\"row\">
{% for unit in units %}
<div class=\"col-4\">
<div class=\"card\">
<img class=\"card-img-top\" src=\"{{ unit.photo.upload|default(null)|url() }}\">
<div class=\"card-body\">
<h5 class=\"card-title\">{{ unit.fullAddress }}</h5>
<p class=\"card-text\">{{ unit.metaDescription|raw }}</p>
<a href=\"{{ path('unit_view', { slug : unit.slug }) }}\" class=\"btn btn-primary\">Bekijk</a>
</div>
</div>
</div>
{% else %}
<li><em>no user found</em></li>
{% endfor %}
</div>
{% endblock %}
</article>
{% endblock %}
", "@VisualMediaUnit/Unit/index.html.twig", "/var/www/public_html/lib/composer/UnitBundle/src/VisualMedia/UnitBundle/Resources/views/Unit/index.html.twig");
}
}