var/cache/dev/twig/b1/b1384373653e79f94b117f237b3ffdea.php line 48

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. /* @VisualMediaEmployee/EmployeeLayout/view.html.twig */
  14. class __TwigTemplate_9249c46b62eb5c11536fa2a16dda7853 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@VisualMediaEmployee/EmployeeLayout/view.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@VisualMediaEmployee/EmployeeLayout/view.html.twig"));
  38. $this->parent = $this->loadTemplate("Layout/base.html.twig", "@VisualMediaEmployee/EmployeeLayout/view.html.twig", 1);
  39. $this->parent->display($context, array_merge($this->blocks, $blocks));
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  42. }
  43. // line 4
  44. public function block_main($context, array $blocks = [])
  45. {
  46. $macros = $this->macros;
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  50. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  51. // line 5
  52. echo "<div class=\"container\">
  53. <div class=\"row\">
  54. <div class=\"col-12\">
  55. ";
  56. // line 8
  57. $context["breadcrumbs"] = [0 => ["path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("employee_index"), "title" => "Medewerkers"], 1 => ["title" => twig_get_attribute($this->env, $this->source, // line 10
  58. (isset($context["employee"]) || array_key_exists("employee", $context) ? $context["employee"] : (function () { throw new RuntimeError('Variable "employee" does not exist.', 10, $this->source); })()), "name", [], "any", false, false, false, 10)]];
  59. // line 12
  60. echo " ";
  61. $this->loadTemplate("@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig", "@VisualMediaEmployee/EmployeeLayout/view.html.twig", 12)->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.', 12, $this->source); })())]));
  62. // line 13
  63. echo " </div>
  64. </div>
  65. </div>
  66. <section class=\"employee-view\">
  67. <div class=\"container\">
  68. <div class=\"row\">
  69. <div class=\"col-12 col-lg-6\">
  70. <div class=\"employee-view_image\">
  71. <img src=\"";
  72. // line 21
  73. echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigUploadUrl']->url(twig_get_attribute($this->env, $this->source, (isset($context["employee"]) || array_key_exists("employee", $context) ? $context["employee"] : (function () { throw new RuntimeError('Variable "employee" does not exist.', 21, $this->source); })()), "upload", [], "any", false, false, false, 21)), "html", null, true);
  74. echo "\" alt=\"\" class=\"img-fluid\" />
  75. </div>
  76. </div>
  77. <div class=\"col-12 col-lg-6\">
  78. <div class=\"employee-view_name\">
  79. <h3>";
  80. // line 26
  81. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["employee"]) || array_key_exists("employee", $context) ? $context["employee"] : (function () { throw new RuntimeError('Variable "employee" does not exist.', 26, $this->source); })()), "firstName", [], "any", false, false, false, 26), "html", null, true);
  82. echo " ";
  83. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["employee"]) || array_key_exists("employee", $context) ? $context["employee"] : (function () { throw new RuntimeError('Variable "employee" does not exist.', 26, $this->source); })()), "lastName", [], "any", false, false, false, 26), "html", null, true);
  84. echo "</h3>
  85. </div>
  86. <div class=\"employee-view_content\">
  87. ";
  88. // line 29
  89. echo twig_get_attribute($this->env, $this->source, (isset($context["employee"]) || array_key_exists("employee", $context) ? $context["employee"] : (function () { throw new RuntimeError('Variable "employee" does not exist.', 29, $this->source); })()), "htmlContent", [], "any", false, false, false, 29);
  90. echo "
  91. </div>
  92. </div>
  93. <div class=\"col-12 mt-5\">
  94. <a href=\"";
  95. // line 33
  96. echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("employee_index");
  97. echo "\" class=\"btn btn-primary\" ><i class=\"fas fa-chevron-left\"></i> ";
  98. echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("employee.view.back_to_index", [], "frontend"), "html", null, true);
  99. echo "</a>
  100. </div>
  101. </div>
  102. </div>
  103. </section>
  104. ";
  105. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  106. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  107. }
  108. public function getTemplateName()
  109. {
  110. return "@VisualMediaEmployee/EmployeeLayout/view.html.twig";
  111. }
  112. public function isTraitable()
  113. {
  114. return false;
  115. }
  116. public function getDebugInfo()
  117. {
  118. return array ( 112 => 33, 105 => 29, 97 => 26, 89 => 21, 79 => 13, 76 => 12, 74 => 10, 73 => 8, 68 => 5, 58 => 4, 35 => 1,);
  119. }
  120. public function getSourceContext()
  121. {
  122. return new Source("{% extends 'Layout/base.html.twig' %}
  123. {% block main %}
  124. <div class=\"container\">
  125. <div class=\"row\">
  126. <div class=\"col-12\">
  127. {% set breadcrumbs = [
  128. { path: path('employee_index'), title: 'Medewerkers' },
  129. { title: employee.name }
  130. ] %}
  131. {% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig' with { 'breadcrumbs': breadcrumbs } %}
  132. </div>
  133. </div>
  134. </div>
  135. <section class=\"employee-view\">
  136. <div class=\"container\">
  137. <div class=\"row\">
  138. <div class=\"col-12 col-lg-6\">
  139. <div class=\"employee-view_image\">
  140. <img src=\"{{ employee.upload|url() }}\" alt=\"\" class=\"img-fluid\" />
  141. </div>
  142. </div>
  143. <div class=\"col-12 col-lg-6\">
  144. <div class=\"employee-view_name\">
  145. <h3>{{ employee.firstName }} {{ employee.lastName }}</h3>
  146. </div>
  147. <div class=\"employee-view_content\">
  148. {{ employee.htmlContent|raw }}
  149. </div>
  150. </div>
  151. <div class=\"col-12 mt-5\">
  152. <a href=\"{{ path('employee_index') }}\" class=\"btn btn-primary\" ><i class=\"fas fa-chevron-left\"></i> {{ 'employee.view.back_to_index'|trans({}, 'frontend') }}</a>
  153. </div>
  154. </div>
  155. </div>
  156. </section>
  157. {% endblock %}
  158. ", "@VisualMediaEmployee/EmployeeLayout/view.html.twig", "/var/www/public_html/lib/composer/EmployeeBundle/src/VisualMedia/EmployeeBundle/Resources/views/EmployeeLayout/view.html.twig");
  159. }
  160. }