var/cache/dev/twig/cc/cc8cc8db704a9aa44cd6916640c3ae986270f863e454e4f5c36f8a4835088667.php line 52

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. /* @VisualMediaProject/ProjectLayout/view.html.twig */
  14. class __TwigTemplate_f65df9b1a4ee128ae65718db5220a9b562a709e3c3265943cd1dc11bc1b3394b 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->blocks = [
  23.             'main' => [$this'block_main'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "Layout/base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@VisualMediaProject/ProjectLayout/view.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@VisualMediaProject/ProjectLayout/view.html.twig"));
  38.         // line 3
  39.         $context["breadcrumbs"] = [=> ["title" => "Projecten""path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("project_index")], => ["title" => twig_get_attribute($this->env$this->source,         // line 5
  40. (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'5$this->source); })()), "title", [], "any"falsefalsefalse5)]];
  41.         // line 1
  42.         $this->parent $this->loadTemplate("Layout/base.html.twig""@VisualMediaProject/ProjectLayout/view.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 8
  50.     public function block_main($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  57.         // line 9
  58.         echo "    ";
  59.         $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"falsefalsefalse9)]));
  60.         // line 10
  61.         echo "
  62.     <section class=\"section section-page\">
  63.         <div class=\"page-stripes\"></div>
  64.         <div class=\"breadcrumb\">
  65.             <div class=\"container\">
  66.                 <div class=\"row\">
  67.                     <div class=\"col-12\">
  68.                         ";
  69.         // line 19
  70.         $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); })())]));
  71.         // line 20
  72.         echo "                    </div>
  73.                 </div>
  74.             </div>
  75.         </div>
  76.         <div class=\"container project-detail_container\">
  77.             <div class=\"row\">
  78.                 <div class=\"col-12\">
  79.                     <div class=\"project-slider\" id=\"project\">
  80.                         ";
  81.         // line 30
  82.         $context['_parent'] = $context;
  83.         $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"falsefalsefalse30));
  84.         $context['loop'] = [
  85.           'parent' => $context['_parent'],
  86.           'index0' => 0,
  87.           'index'  => 1,
  88.           'first'  => true,
  89.         ];
  90.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  91.             $length count($context['_seq']);
  92.             $context['loop']['revindex0'] = $length 1;
  93.             $context['loop']['revindex'] = $length;
  94.             $context['loop']['length'] = $length;
  95.             $context['loop']['last'] = === $length;
  96.         }
  97.         foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
  98.             // line 31
  99.             echo "                            ";
  100.             if ( !twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse31)) {
  101.                 // line 32
  102.                 echo "                                <div class=\"project-slide\">
  103.                                     <a href=\"";
  104.                 // line 33
  105.                 echo twig_escape_filter($this->env$this->extensions['VisualMedia\LisaBundle\Twig\TwigUploadUrl']->url(twig_get_attribute($this->env$this->source$context["photo"], "upload", [], "any"falsefalsefalse33)), "html"nulltrue);
  106.                 echo "\" target=\"_blank\" title=\"";
  107.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse33), "html"nulltrue);
  108.                 echo "\" alt=\"";
  109.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse33), "html"nulltrue);
  110.                 echo "\" class=\"thumbnail\">
  111.                                         <img src=\"";
  112.                 // line 34
  113.                 echo twig_escape_filter($this->env$this->extensions['VisualMedia\LisaBundle\Twig\TwigUploadUrl']->url(twig_get_attribute($this->env$this->source$context["photo"], "upload", [], "any"falsefalsefalse34), []), "html"nulltrue);
  114.                 echo "\" alt=\"";
  115.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["photo"], "imageAlt", [], "any"falsefalsefalse34), "html"nulltrue);
  116.                 echo "\" title=\"";
  117.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["photo"], "imageTitle", [], "any"falsefalsefalse34), "html"nulltrue);
  118.                 echo "\" class=\"img-fluid\">
  119.                                     </a>
  120.                                 </div>
  121.                             ";
  122.             }
  123.             // line 38
  124.             echo "                        ";
  125.             ++$context['loop']['index0'];
  126.             ++$context['loop']['index'];
  127.             $context['loop']['first'] = false;
  128.             if (isset($context['loop']['length'])) {
  129.                 --$context['loop']['revindex0'];
  130.                 --$context['loop']['revindex'];
  131.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  132.             }
  133.         }
  134.         $_parent $context['_parent'];
  135.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
  136.         $context array_intersect_key($context$_parent) + $_parent;
  137.         // line 39
  138.         echo "
  139.                     </div>
  140.                 </div>
  141.                 <div class=\"col-12 col-lg-8 offset-lg-2\">
  142.                     <div class=\"project-detail_content\">
  143.                         <i class=\"fal fa-digging\"></i>
  144.                         ";
  145.         // line 47
  146.         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"falsefalsefalse47)), "html"nulltrue);
  147.         echo "
  148.                         ";
  149.         // line 48
  150.         if ( !(null === (isset($context["projects"]) || array_key_exists("projects"$context) ? $context["projects"] : (function () { throw new RuntimeError('Variable "projects" does not exist.'48$this->source); })()))) {
  151.             // line 49
  152.             echo "                            <div class=\"projecten-buttons\">
  153.                                 ";
  154.             // line 50
  155.             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); })()))) {
  156.                 // line 51
  157.                 echo "                                    <div class=\"project-previous\">
  158.                                         <a href=\"";
  159.                 // line 52
  160.                 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"falsefalsefalse52)]), "html"nulltrue);
  161.                 echo "\" class=\"btn btn-secondary\"><i class=\"fas fa-arrow-left\"></i></a>
  162.                                     </div>
  163.                                 ";
  164.             }
  165.             // line 55
  166.             echo "
  167.                                 ";
  168.             // line 56
  169.             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); })()))) {
  170.                 // line 57
  171.                 echo "                                    <div class=\"project-next\">
  172.                                         <a href=\"";
  173.                 // line 58
  174.                 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"falsefalsefalse58)]), "html"nulltrue);
  175.                 echo "\" class=\"btn btn-secondary\"><i class=\"fas fa-arrow-right\"></i></a>
  176.                                     </div>
  177.                                 ";
  178.             }
  179.             // line 61
  180.             echo "                            </div>
  181.                         ";
  182.         }
  183.         // line 63
  184.         echo "                    </div>
  185.                 </div>
  186.             </div>
  187.             ";
  188.         // line 67
  189.         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"falsefalsefalse67))) {
  190.             // line 68
  191.             echo "            <div class=\"container\">
  192.                 <div class=\"row\">
  193.                     <div class=\"col-12 col-lg-10 offset-lg-1\">
  194.                         ";
  195.             // line 71
  196.             $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"falsefalsefalse71)]));
  197.             // line 72
  198.             echo "                    </div>
  199.                 </div>
  200.             </div>
  201.             ";
  202.         }
  203.         // line 76
  204.         echo "
  205.         </div>
  206.     </section>
  207. ";
  208.         
  209.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  210.         
  211.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  212.     }
  213.     public function getTemplateName()
  214.     {
  215.         return "@VisualMediaProject/ProjectLayout/view.html.twig";
  216.     }
  217.     public function isTraitable()
  218.     {
  219.         return false;
  220.     }
  221.     public function getDebugInfo()
  222.     {
  223.         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,);
  224.     }
  225.     public function getSourceContext()
  226.     {
  227.         return new Source("{% extends 'Layout/base.html.twig' %}
  228. {% set breadcrumbs = [
  229.     { title: 'Projecten', path: path('project_index') },
  230.     { title: project.title },
  231. ] %}
  232. {% block main %}
  233.     {% include '@VisualMediaVisual/Visual/projectvisual.html.twig' with { visuals: project.photos } %}
  234.     <section class=\"section section-page\">
  235.         <div class=\"page-stripes\"></div>
  236.         <div class=\"breadcrumb\">
  237.             <div class=\"container\">
  238.                 <div class=\"row\">
  239.                     <div class=\"col-12\">
  240.                         {% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig' with { 'breadcrumbs': breadcrumbs } %}
  241.                     </div>
  242.                 </div>
  243.             </div>
  244.         </div>
  245.         <div class=\"container project-detail_container\">
  246.             <div class=\"row\">
  247.                 <div class=\"col-12\">
  248.                     <div class=\"project-slider\" id=\"project\">
  249.                         {% for photo in project.photos %}
  250.                             {% if not loop.first %}
  251.                                 <div class=\"project-slide\">
  252.                                     <a href=\"{{ photo.upload|url }}\" target=\"_blank\" title=\"{{ project.title }}\" alt=\"{{ project.title }}\" class=\"thumbnail\">
  253.                                         <img src=\"{{ photo.upload|url({}) }}\" alt=\"{{ photo.imageAlt }}\" title=\"{{ photo.imageTitle }}\" class=\"img-fluid\">
  254.                                     </a>
  255.                                 </div>
  256.                             {% endif %}
  257.                         {% endfor %}
  258.                     </div>
  259.                 </div>
  260.                 <div class=\"col-12 col-lg-8 offset-lg-2\">
  261.                     <div class=\"project-detail_content\">
  262.                         <i class=\"fal fa-digging\"></i>
  263.                         {{ project.htmlContent|scan }}
  264.                         {% if projects is not null %}
  265.                             <div class=\"projecten-buttons\">
  266.                                 {% if previous_project is not null %}
  267.                                     <div class=\"project-previous\">
  268.                                         <a href=\"{{ path('project_view', { slug : previous_project.slug }) }}\" class=\"btn btn-secondary\"><i class=\"fas fa-arrow-left\"></i></a>
  269.                                     </div>
  270.                                 {% endif %}
  271.                                 {% if next_project is not null %}
  272.                                     <div class=\"project-next\">
  273.                                         <a href=\"{{ path('project_view', { slug : next_project.slug }) }}\" class=\"btn btn-secondary\"><i class=\"fas fa-arrow-right\"></i></a>
  274.                                     </div>
  275.                                 {% endif %}
  276.                             </div>
  277.                         {% endif %}
  278.                     </div>
  279.                 </div>
  280.             </div>
  281.             {% if project.employee is not null %}
  282.             <div class=\"container\">
  283.                 <div class=\"row\">
  284.                     <div class=\"col-12 col-lg-10 offset-lg-1\">
  285.                         {% include 'Employee/view.html.twig' with { 'employee': project.employee } %}
  286.                     </div>
  287.                 </div>
  288.             </div>
  289.             {% endif %}
  290.         </div>
  291.     </section>
  292. {% endblock %}
  293. ""@VisualMediaProject/ProjectLayout/view.html.twig""/var/www/vhosts/localhost/html/templates/VisualMediaProjectBundle/views/ProjectLayout/view.html.twig");
  294.     }
  295. }