<?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;
/* @VisualMediaProject/ProjectLayout/view.html.twig */
class __TwigTemplate_f65df9b1a4ee128ae65718db5220a9b562a709e3c3265943cd1dc11bc1b3394b 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'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Layout/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@VisualMediaProject/ProjectLayout/view.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@VisualMediaProject/ProjectLayout/view.html.twig"));
// line 3
$context["breadcrumbs"] = [0 => ["title" => "Projecten", "path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("project_index")], 1 => ["title" => twig_get_attribute($this->env, $this->source, // line 5
(isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 5, $this->source); })()), "title", [], "any", false, false, false, 5)]];
// line 1
$this->parent = $this->loadTemplate("Layout/base.html.twig", "@VisualMediaProject/ProjectLayout/view.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 8
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 9
echo " ";
$this->loadTemplate("@VisualMediaVisual/Visual/projectvisual.html.twig", "@VisualMediaProject/ProjectLayout/view.html.twig", 9)->display(twig_array_merge($context, ["visuals" => twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 9, $this->source); })()), "photos", [], "any", false, false, false, 9)]));
// line 10
echo "
<section class=\"section section-page\">
<div class=\"page-stripes\"></div>
<div class=\"breadcrumb\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
";
// line 19
$this->loadTemplate("@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig", "@VisualMediaProject/ProjectLayout/view.html.twig", 19)->display(twig_array_merge($context, ["breadcrumbs" => (isset($context["breadcrumbs"]) || array_key_exists("breadcrumbs", $context) ? $context["breadcrumbs"] : (function () { throw new RuntimeError('Variable "breadcrumbs" does not exist.', 19, $this->source); })())]));
// line 20
echo " </div>
</div>
</div>
</div>
<div class=\"container project-detail_container\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"project-slider\" id=\"project\">
";
// line 30
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 30, $this->source); })()), "photos", [], "any", false, false, false, 30));
$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["photo"]) {
// line 31
echo " ";
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 31)) {
// line 32
echo " <div class=\"project-slide\">
<a href=\"";
// line 33
echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigUploadUrl']->url(twig_get_attribute($this->env, $this->source, $context["photo"], "upload", [], "any", false, false, false, 33)), "html", null, true);
echo "\" target=\"_blank\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 33, $this->source); })()), "title", [], "any", false, false, false, 33), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 33, $this->source); })()), "title", [], "any", false, false, false, 33), "html", null, true);
echo "\" class=\"thumbnail\">
<img src=\"";
// line 34
echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigUploadUrl']->url(twig_get_attribute($this->env, $this->source, $context["photo"], "upload", [], "any", false, false, false, 34), []), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["photo"], "imageAlt", [], "any", false, false, false, 34), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["photo"], "imageTitle", [], "any", false, false, false, 34), "html", null, true);
echo "\" class=\"img-fluid\">
</a>
</div>
";
}
// line 38
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['photo'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 39
echo "
</div>
</div>
<div class=\"col-12 col-lg-8 offset-lg-2\">
<div class=\"project-detail_content\">
<i class=\"fal fa-digging\"></i>
";
// line 47
echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigContentScan']->scan(twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 47, $this->source); })()), "htmlContent", [], "any", false, false, false, 47)), "html", null, true);
echo "
";
// line 48
if ( !(null === (isset($context["projects"]) || array_key_exists("projects", $context) ? $context["projects"] : (function () { throw new RuntimeError('Variable "projects" does not exist.', 48, $this->source); })()))) {
// line 49
echo " <div class=\"projecten-buttons\">
";
// line 50
if ( !(null === (isset($context["previous_project"]) || array_key_exists("previous_project", $context) ? $context["previous_project"] : (function () { throw new RuntimeError('Variable "previous_project" does not exist.', 50, $this->source); })()))) {
// line 51
echo " <div class=\"project-previous\">
<a href=\"";
// line 52
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("project_view", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["previous_project"]) || array_key_exists("previous_project", $context) ? $context["previous_project"] : (function () { throw new RuntimeError('Variable "previous_project" does not exist.', 52, $this->source); })()), "slug", [], "any", false, false, false, 52)]), "html", null, true);
echo "\" class=\"btn btn-secondary\"><i class=\"fas fa-arrow-left\"></i></a>
</div>
";
}
// line 55
echo "
";
// line 56
if ( !(null === (isset($context["next_project"]) || array_key_exists("next_project", $context) ? $context["next_project"] : (function () { throw new RuntimeError('Variable "next_project" does not exist.', 56, $this->source); })()))) {
// line 57
echo " <div class=\"project-next\">
<a href=\"";
// line 58
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("project_view", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["next_project"]) || array_key_exists("next_project", $context) ? $context["next_project"] : (function () { throw new RuntimeError('Variable "next_project" does not exist.', 58, $this->source); })()), "slug", [], "any", false, false, false, 58)]), "html", null, true);
echo "\" class=\"btn btn-secondary\"><i class=\"fas fa-arrow-right\"></i></a>
</div>
";
}
// line 61
echo " </div>
";
}
// line 63
echo " </div>
</div>
</div>
";
// line 67
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 67, $this->source); })()), "employee", [], "any", false, false, false, 67))) {
// line 68
echo " <div class=\"container\">
<div class=\"row\">
<div class=\"col-12 col-lg-10 offset-lg-1\">
";
// line 71
$this->loadTemplate("Employee/view.html.twig", "@VisualMediaProject/ProjectLayout/view.html.twig", 71)->display(twig_array_merge($context, ["employee" => twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 71, $this->source); })()), "employee", [], "any", false, false, false, 71)]));
// line 72
echo " </div>
</div>
</div>
";
}
// line 76
echo "
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@VisualMediaProject/ProjectLayout/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 225 => 76, 219 => 72, 217 => 71, 212 => 68, 210 => 67, 204 => 63, 200 => 61, 194 => 58, 191 => 57, 189 => 56, 186 => 55, 180 => 52, 177 => 51, 175 => 50, 172 => 49, 170 => 48, 166 => 47, 156 => 39, 142 => 38, 131 => 34, 123 => 33, 120 => 32, 117 => 31, 100 => 30, 88 => 20, 86 => 19, 75 => 10, 72 => 9, 62 => 8, 51 => 1, 49 => 5, 48 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'Layout/base.html.twig' %}
{% set breadcrumbs = [
{ title: 'Projecten', path: path('project_index') },
{ title: project.title },
] %}
{% block main %}
{% include '@VisualMediaVisual/Visual/projectvisual.html.twig' with { visuals: project.photos } %}
<section class=\"section section-page\">
<div class=\"page-stripes\"></div>
<div class=\"breadcrumb\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
{% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig' with { 'breadcrumbs': breadcrumbs } %}
</div>
</div>
</div>
</div>
<div class=\"container project-detail_container\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"project-slider\" id=\"project\">
{% for photo in project.photos %}
{% if not loop.first %}
<div class=\"project-slide\">
<a href=\"{{ photo.upload|url }}\" target=\"_blank\" title=\"{{ project.title }}\" alt=\"{{ project.title }}\" class=\"thumbnail\">
<img src=\"{{ photo.upload|url({}) }}\" alt=\"{{ photo.imageAlt }}\" title=\"{{ photo.imageTitle }}\" class=\"img-fluid\">
</a>
</div>
{% endif %}
{% endfor %}
</div>
</div>
<div class=\"col-12 col-lg-8 offset-lg-2\">
<div class=\"project-detail_content\">
<i class=\"fal fa-digging\"></i>
{{ project.htmlContent|scan }}
{% if projects is not null %}
<div class=\"projecten-buttons\">
{% if previous_project is not null %}
<div class=\"project-previous\">
<a href=\"{{ path('project_view', { slug : previous_project.slug }) }}\" class=\"btn btn-secondary\"><i class=\"fas fa-arrow-left\"></i></a>
</div>
{% endif %}
{% if next_project is not null %}
<div class=\"project-next\">
<a href=\"{{ path('project_view', { slug : next_project.slug }) }}\" class=\"btn btn-secondary\"><i class=\"fas fa-arrow-right\"></i></a>
</div>
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
{% if project.employee is not null %}
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12 col-lg-10 offset-lg-1\">
{% include 'Employee/view.html.twig' with { 'employee': project.employee } %}
</div>
</div>
</div>
{% endif %}
</div>
</section>
{% endblock %}
", "@VisualMediaProject/ProjectLayout/view.html.twig", "/var/www/vhosts/localhost/html/templates/VisualMediaProjectBundle/views/ProjectLayout/view.html.twig");
}
}