var/cache/dev/twig/ef/ef3c13c78afb320aab4546fb3261a641.php line 49

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/Employee/index.html.twig */
  14. class __TwigTemplate_630b6efa1f0d1f9e1d88830a8a4d88b8 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. ];
  26. }
  27. protected function doGetParent(array $context)
  28. {
  29. // line 1
  30. return "Layout/base.html.twig";
  31. }
  32. protected function doDisplay(array $context, array $blocks = [])
  33. {
  34. $macros = $this->macros;
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@VisualMediaEmployee/Employee/index.html.twig"));
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@VisualMediaEmployee/Employee/index.html.twig"));
  39. $this->parent = $this->loadTemplate("Layout/base.html.twig", "@VisualMediaEmployee/Employee/index.html.twig", 1);
  40. $this->parent->display($context, array_merge($this->blocks, $blocks));
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  43. }
  44. // line 4
  45. public function block_main($context, array $blocks = [])
  46. {
  47. $macros = $this->macros;
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  49. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  50. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  52. // line 5
  53. echo "<div class=\"container\">
  54. <div class=\"row\">
  55. <div class=\"col-12\">
  56. ";
  57. // line 8
  58. $this->displayBlock('breadcrumb', $context, $blocks);
  59. // line 11
  60. echo " </div>
  61. </div>
  62. </div>
  63. <section class=\"employee-index\">
  64. <div class=\"container\">
  65. <div class=\"row\">
  66. ";
  67. // line 17
  68. $context['_parent'] = $context;
  69. $context['_seq'] = twig_ensure_traversable((isset($context["employees"]) || array_key_exists("employees", $context) ? $context["employees"] : (function () { throw new RuntimeError('Variable "employees" does not exist.', 17, $this->source); })()));
  70. foreach ($context['_seq'] as $context["_key"] => $context["employee"]) {
  71. // line 18
  72. echo " <div class=\"col-12 col-md-6 col-lg-4 mb-5\">
  73. <div class=\"employee-index_image\">
  74. <a href=\"";
  75. // line 20
  76. echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("employee_view", ["slug" => twig_get_attribute($this->env, $this->source, $context["employee"], "slug", [], "any", false, false, false, 20)]), "html", null, true);
  77. echo "\">
  78. <img src=\"";
  79. // line 21
  80. echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigUploadUrl']->url(twig_get_attribute($this->env, $this->source, $context["employee"], "upload", [], "any", false, false, false, 21)), "html", null, true);
  81. echo "\" alt=\"\" class=\"img-fluid\" />
  82. </a>
  83. </div>
  84. <div class=\"employee-index_name\">";
  85. // line 24
  86. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["employee"], "firstName", [], "any", false, false, false, 24), "html", null, true);
  87. echo " ";
  88. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["employee"], "lastName", [], "any", false, false, false, 24), "html", null, true);
  89. echo "</div>
  90. <div class=\"employee-index_content\">
  91. <p>";
  92. // line 26
  93. echo twig_truncate_filter($this->env, twig_get_attribute($this->env, $this->source, $context["employee"], "htmlContent", [], "any", false, false, false, 26), 150);
  94. echo "</p>
  95. <a href=\"";
  96. // line 27
  97. echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("employee_view", ["slug" => twig_get_attribute($this->env, $this->source, $context["employee"], "slug", [], "any", false, false, false, 27)]), "html", null, true);
  98. echo "\" class=\"btn btn-primary\" >";
  99. echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("employee.index.read_more", [], "frontend"), "html", null, true);
  100. echo " <i class=\"fas fa-chevron-right\"></i></a>
  101. </div>
  102. </div>
  103. ";
  104. }
  105. $_parent = $context['_parent'];
  106. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['employee'], $context['_parent'], $context['loop']);
  107. $context = array_intersect_key($context, $_parent) + $_parent;
  108. // line 31
  109. echo " </div>
  110. </div>
  111. </section>
  112. ";
  113. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  114. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  115. }
  116. // line 8
  117. public function block_breadcrumb($context, array $blocks = [])
  118. {
  119. $macros = $this->macros;
  120. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  121. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
  122. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  123. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
  124. // line 9
  125. echo " ";
  126. $this->loadTemplate("@VisualMediaBreadcrumb/Breadcrumb/breadcrumb.html.twig", "@VisualMediaEmployee/Employee/index.html.twig", 9)->display($context);
  127. // line 10
  128. echo " ";
  129. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  130. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  131. }
  132. public function getTemplateName()
  133. {
  134. return "@VisualMediaEmployee/Employee/index.html.twig";
  135. }
  136. public function isTraitable()
  137. {
  138. return false;
  139. }
  140. public function getDebugInfo()
  141. {
  142. return array ( 152 => 10, 149 => 9, 139 => 8, 125 => 31, 113 => 27, 109 => 26, 102 => 24, 96 => 21, 92 => 20, 88 => 18, 84 => 17, 76 => 11, 74 => 8, 69 => 5, 59 => 4, 36 => 1,);
  143. }
  144. public function getSourceContext()
  145. {
  146. return new Source("{% extends 'Layout/base.html.twig' %}
  147. {% block main %}
  148. <div class=\"container\">
  149. <div class=\"row\">
  150. <div class=\"col-12\">
  151. {% block breadcrumb %}
  152. {% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb.html.twig' %}
  153. {% endblock %}
  154. </div>
  155. </div>
  156. </div>
  157. <section class=\"employee-index\">
  158. <div class=\"container\">
  159. <div class=\"row\">
  160. {% for employee in employees %}
  161. <div class=\"col-12 col-md-6 col-lg-4 mb-5\">
  162. <div class=\"employee-index_image\">
  163. <a href=\"{{ path('employee_view', { slug : employee.slug }) }}\">
  164. <img src=\"{{ employee.upload|url() }}\" alt=\"\" class=\"img-fluid\" />
  165. </a>
  166. </div>
  167. <div class=\"employee-index_name\">{{ employee.firstName }} {{ employee.lastName }}</div>
  168. <div class=\"employee-index_content\">
  169. <p>{{ employee.htmlContent|truncate(150)|raw }}</p>
  170. <a href=\"{{ path('employee_view', { slug : employee.slug }) }}\" class=\"btn btn-primary\" >{{ 'employee.index.read_more'|trans({}, 'frontend') }} <i class=\"fas fa-chevron-right\"></i></a>
  171. </div>
  172. </div>
  173. {% endfor %}
  174. </div>
  175. </div>
  176. </section>
  177. {% endblock %}
  178. ", "@VisualMediaEmployee/Employee/index.html.twig", "/var/www/public_html/lib/composer/EmployeeBundle/src/VisualMedia/EmployeeBundle/Resources/views/Employee/index.html.twig");
  179. }
  180. }