var/cache/dev/twig/2c/2c77f4d2faf03e577d11ae4470e5af7d.php line 40

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. /* @VisualMediaUnit/Unit/index.html.twig */
  14. class __TwigTemplate_c5a24a15751965748b2848638dbe8e58 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. 'breadcrumb' => [$this, 'block_breadcrumb'],
  25. 'content' => [$this, 'block_content'],
  26. ];
  27. }
  28. protected function doGetParent(array $context)
  29. {
  30. // line 1
  31. return "Layout/base.html.twig";
  32. }
  33. protected function doDisplay(array $context, array $blocks = [])
  34. {
  35. $macros = $this->macros;
  36. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@VisualMediaUnit/Unit/index.html.twig"));
  38. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@VisualMediaUnit/Unit/index.html.twig"));
  40. $this->parent = $this->loadTemplate("Layout/base.html.twig", "@VisualMediaUnit/Unit/index.html.twig", 1);
  41. $this->parent->display($context, array_merge($this->blocks, $blocks));
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44. }
  45. // line 3
  46. public function block_main($context, array $blocks = [])
  47. {
  48. $macros = $this->macros;
  49. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  53. // line 4
  54. echo " <article class=\"container-fluid content-width-medium content-padding\">
  55. ";
  56. // line 5
  57. $this->displayBlock('breadcrumb', $context, $blocks);
  58. // line 8
  59. echo "
  60. ";
  61. // line 9
  62. $this->displayBlock('content', $context, $blocks);
  63. // line 27
  64. echo " </article>
  65. ";
  66. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68. }
  69. // line 5
  70. public function block_breadcrumb($context, array $blocks = [])
  71. {
  72. $macros = $this->macros;
  73. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
  75. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
  77. // line 6
  78. echo " ";
  79. $this->loadTemplate("@VisualMediaBreadcrumb/Breadcrumb/breadcrumb.html.twig", "@VisualMediaUnit/Unit/index.html.twig", 6)->display($context);
  80. // line 7
  81. echo " ";
  82. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  83. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  84. }
  85. // line 9
  86. public function block_content($context, array $blocks = [])
  87. {
  88. $macros = $this->macros;
  89. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  90. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  91. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  92. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  93. // line 10
  94. echo " <div class=\"row\">
  95. ";
  96. // line 11
  97. $context['_parent'] = $context;
  98. $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); })()));
  99. $context['_iterated'] = false;
  100. foreach ($context['_seq'] as $context["_key"] => $context["unit"]) {
  101. // line 12
  102. echo " <div class=\"col-4\">
  103. <div class=\"card\">
  104. <img class=\"card-img-top\" src=\"";
  105. // line 14
  106. 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);
  107. echo "\">
  108. <div class=\"card-body\">
  109. <h5 class=\"card-title\">";
  110. // line 16
  111. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["unit"], "fullAddress", [], "any", false, false, false, 16), "html", null, true);
  112. echo "</h5>
  113. <p class=\"card-text\">";
  114. // line 17
  115. echo twig_get_attribute($this->env, $this->source, $context["unit"], "metaDescription", [], "any", false, false, false, 17);
  116. echo "</p>
  117. <a href=\"";
  118. // line 18
  119. 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);
  120. echo "\" class=\"btn btn-primary\">Bekijk</a>
  121. </div>
  122. </div>
  123. </div>
  124. ";
  125. $context['_iterated'] = true;
  126. }
  127. if (!$context['_iterated']) {
  128. // line 23
  129. echo " <li><em>no user found</em></li>
  130. ";
  131. }
  132. $_parent = $context['_parent'];
  133. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['unit'], $context['_parent'], $context['loop']);
  134. $context = array_intersect_key($context, $_parent) + $_parent;
  135. // line 25
  136. echo " </div>
  137. ";
  138. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  139. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  140. }
  141. public function getTemplateName()
  142. {
  143. return "@VisualMediaUnit/Unit/index.html.twig";
  144. }
  145. public function isTraitable()
  146. {
  147. return false;
  148. }
  149. public function getDebugInfo()
  150. {
  151. 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,);
  152. }
  153. public function getSourceContext()
  154. {
  155. return new Source("{% extends 'Layout/base.html.twig' %}
  156. {% block main %}
  157. <article class=\"container-fluid content-width-medium content-padding\">
  158. {% block breadcrumb %}
  159. {% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb.html.twig' %}
  160. {% endblock %}
  161. {% block content %}
  162. <div class=\"row\">
  163. {% for unit in units %}
  164. <div class=\"col-4\">
  165. <div class=\"card\">
  166. <img class=\"card-img-top\" src=\"{{ unit.photo.upload|default(null)|url() }}\">
  167. <div class=\"card-body\">
  168. <h5 class=\"card-title\">{{ unit.fullAddress }}</h5>
  169. <p class=\"card-text\">{{ unit.metaDescription|raw }}</p>
  170. <a href=\"{{ path('unit_view', { slug : unit.slug }) }}\" class=\"btn btn-primary\">Bekijk</a>
  171. </div>
  172. </div>
  173. </div>
  174. {% else %}
  175. <li><em>no user found</em></li>
  176. {% endfor %}
  177. </div>
  178. {% endblock %}
  179. </article>
  180. {% endblock %}
  181. ", "@VisualMediaUnit/Unit/index.html.twig", "/var/www/public_html/lib/composer/UnitBundle/src/VisualMedia/UnitBundle/Resources/views/Unit/index.html.twig");
  182. }
  183. }