<?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;
/* @VisualMediaEmployee/Employee/index.html.twig */
class __TwigTemplate_630b6efa1f0d1f9e1d88830a8a4d88b8 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'],
'breadcrumb' => [$this, 'block_breadcrumb'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Layout/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@VisualMediaEmployee/Employee/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@VisualMediaEmployee/Employee/index.html.twig"));
$this->parent = $this->loadTemplate("Layout/base.html.twig", "@VisualMediaEmployee/Employee/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 5
echo "<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
";
// line 8
$this->displayBlock('breadcrumb', $context, $blocks);
// line 11
echo " </div>
</div>
</div>
<section class=\"employee-index\">
<div class=\"container\">
<div class=\"row\">
";
// line 17
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["employee"]) {
// line 18
echo " <div class=\"col-12 col-md-6 col-lg-4 mb-5\">
<div class=\"employee-index_image\">
<a href=\"";
// line 20
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);
echo "\">
<img src=\"";
// line 21
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);
echo "\" alt=\"\" class=\"img-fluid\" />
</a>
</div>
<div class=\"employee-index_name\">";
// line 24
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["employee"], "firstName", [], "any", false, false, false, 24), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["employee"], "lastName", [], "any", false, false, false, 24), "html", null, true);
echo "</div>
<div class=\"employee-index_content\">
<p>";
// line 26
echo twig_truncate_filter($this->env, twig_get_attribute($this->env, $this->source, $context["employee"], "htmlContent", [], "any", false, false, false, 26), 150);
echo "</p>
<a href=\"";
// line 27
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);
echo "\" class=\"btn btn-primary\" >";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("employee.index.read_more", [], "frontend"), "html", null, true);
echo " <i class=\"fas fa-chevron-right\"></i></a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['employee'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 31
echo " </div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 8
public function block_breadcrumb($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
// line 9
echo " ";
$this->loadTemplate("@VisualMediaBreadcrumb/Breadcrumb/breadcrumb.html.twig", "@VisualMediaEmployee/Employee/index.html.twig", 9)->display($context);
// line 10
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@VisualMediaEmployee/Employee/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'Layout/base.html.twig' %}
{% block main %}
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
{% block breadcrumb %}
{% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb.html.twig' %}
{% endblock %}
</div>
</div>
</div>
<section class=\"employee-index\">
<div class=\"container\">
<div class=\"row\">
{% for employee in employees %}
<div class=\"col-12 col-md-6 col-lg-4 mb-5\">
<div class=\"employee-index_image\">
<a href=\"{{ path('employee_view', { slug : employee.slug }) }}\">
<img src=\"{{ employee.upload|url() }}\" alt=\"\" class=\"img-fluid\" />
</a>
</div>
<div class=\"employee-index_name\">{{ employee.firstName }} {{ employee.lastName }}</div>
<div class=\"employee-index_content\">
<p>{{ employee.htmlContent|truncate(150)|raw }}</p>
<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>
</div>
</div>
{% endfor %}
</div>
</div>
</section>
{% endblock %}
", "@VisualMediaEmployee/Employee/index.html.twig", "/var/www/public_html/lib/composer/EmployeeBundle/src/VisualMedia/EmployeeBundle/Resources/views/Employee/index.html.twig");
}
}