<?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;
/* areas/team/view.html.twig */
class __TwigTemplate_0060c4e2c3070fc4cead6d189818ce8a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "areas_shared/settings.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", "areas/team/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/team/view.html.twig"));
$this->parent = $this->loadTemplate("areas_shared/settings.html.twig", "areas/team/view.html.twig", 2);
$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_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 5
echo "
\t";
// line 7
echo "\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 7, $this->source); })()), "isEmpty", [], "method", false, false, false, 7)) {
// line 8
echo "\t\t";
twig_get_attribute($this->env, $this->source, (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 8, $this->source); })()), "setDataFromResource", [0 => "full-margin-bottom"], "method", false, false, false, 8);
// line 9
echo "\t";
}
// line 10
echo "
\t";
// line 12
echo "\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["backgroundColor"]) || array_key_exists("backgroundColor", $context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.', 12, $this->source); })()), "isEmpty", [], "method", false, false, false, 12)) {
// line 13
echo "\t\t";
twig_get_attribute($this->env, $this->source, (isset($context["backgroundColor"]) || array_key_exists("backgroundColor", $context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.', 13, $this->source); })()), "setDataFromResource", [0 => "background-white"], "method", false, false, false, 13);
// line 14
echo "\t";
}
// line 15
echo "
\t";
// line 17
echo "\t";
$context["title"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title", ["placeholder" => "Titel"]);
// line 20
echo "
\t";
// line 22
echo "\t";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 22, $this->source); })())) {
// line 23
echo "\t\t<div class=\"editmode\">
\t\t\t<div class=\"accordion-container\">
\t\t\t\t<div class=\"accordion-button\">
\t\t\t\t\t<span class=\"accordion-button-text\">Team</span>
\t\t\t\t\t";
// line 27
echo twig_include($this->env, $context, "svg/editmode/setting.html.twig");
echo "
\t\t\t\t</div>
\t\t\t\t<div class=\"panel\">
\t\t\t\t\t<div class=\"settings-container\">
\t\t\t\t\t\t<div class=\"setting input\">
\t\t\t\t\t\t\t<label>Anker:</label>
\t\t\t\t\t\t\t";
// line 34
echo (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 34, $this->source); })());
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"setting select\">
\t\t\t\t\t\t\t<label>Abstand unten:</label>
\t\t\t\t\t\t\t";
// line 39
echo (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 39, $this->source); })());
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t";
}
// line 47
echo "
\t<div
\t\tclass=\"team-brick brick-container ";
// line 49
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["backgroundColor"]) || array_key_exists("backgroundColor", $context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.', 49, $this->source); })()), "data", [], "any", false, false, false, 49), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 49, $this->source); })()), "data", [], "any", false, false, false, 49), "html", null, true);
echo "\">
\t\t";
// line 52
echo "\t\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 52, $this->source); })()), "data", [], "any", false, false, false, 52)) {
// line 53
echo "\t\t\t<div class=\"anchor\" id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 53, $this->source); })()), "data", [], "any", false, false, false, 53), "html", null, true);
echo "\"></div>
\t\t";
}
// line 55
echo "
\t\t<div
\t\t\tclass=\"container-1420\">
\t\t\t";
// line 60
echo "\t\t\t";
if (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 60, $this->source); })()) || twig_get_attribute($this->env, $this->source, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 60, $this->source); })()), "data", [], "any", false, false, false, 60))) {
// line 61
echo "\t\t\t\t<div class=\"title\">
\t\t\t\t\t<h2>
\t\t\t\t\t\t";
// line 63
echo (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 63, $this->source); })());
echo "
\t\t\t\t\t</h2>
\t\t\t\t</div>
\t\t\t";
}
// line 67
echo "
\t\t\t";
// line 69
echo "\t\t\t<div class=\"toggle-department-filter\" id=\"toggleDepartmentFilter\">
\t\t\t\t<div class=\"icon\">
\t\t\t\t\t<div class=\"vertical\">
\t\t\t\t\t\t";
// line 73
echo twig_include($this->env, $context, "svg/akkordeon/akkordeon-vertical-icon.html.twig");
echo "
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"horizontal\">
\t\t\t\t\t\t";
// line 77
echo twig_include($this->env, $context, "svg/akkordeon/akkordeon-horizontal-icon.html.twig");
echo "
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<span>";
// line 81
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("team.departments.mobile-filter"), "html", null, true);
echo "</span>
\t\t\t</div>
\t\t\t";
// line 86
echo "\t\t\t<div class=\"departments-container\">
\t\t\t\t<div class=\"departments hidden\" id=\"departments\">
\t\t\t\t\t";
// line 90
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["departments"]) || array_key_exists("departments", $context) ? $context["departments"] : (function () { throw new RuntimeError('Variable "departments" does not exist.', 90, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["department"]) {
// line 91
echo "
\t\t\t\t\t\t";
// line 93
echo "\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["department"], "hasPersons", [], "any", false, false, false, 93)) {
// line 94
echo "\t\t\t\t\t\t\t<div class=\"department\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["department"], "id", [], "any", false, false, false, 94), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t<span>";
// line 95
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["department"], "title", [], "any", false, false, false, 95), "html", null, true);
echo "</span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 98
echo "
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['department'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 100
echo "
\t\t\t\t</div>
\t\t\t</div>
\t\t\t";
// line 105
echo "\t\t\t<div class=\"persons\">
\t\t\t\t";
// line 107
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["persons"]) || array_key_exists("persons", $context) ? $context["persons"] : (function () { throw new RuntimeError('Variable "persons" does not exist.', 107, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["person"]) {
// line 108
echo "
\t\t\t\t\t";
// line 109
$context["departments"] = "";
// line 110
echo "
\t\t\t\t\t";
// line 111
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["person"], "departments", [], "any", false, false, false, 111));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["department"]) {
// line 112
echo "\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 112)) {
// line 113
echo "\t\t\t\t\t\t\t";
$context["departments"] = ((isset($context["departments"]) || array_key_exists("departments", $context) ? $context["departments"] : (function () { throw new RuntimeError('Variable "departments" does not exist.', 113, $this->source); })()) . twig_get_attribute($this->env, $this->source, $context["department"], "id", [], "any", false, false, false, 113));
// line 114
echo "\t\t\t\t\t\t";
} else {
// line 115
echo "\t\t\t\t\t\t\t";
$context["departments"] = (((isset($context["departments"]) || array_key_exists("departments", $context) ? $context["departments"] : (function () { throw new RuntimeError('Variable "departments" does not exist.', 115, $this->source); })()) . twig_get_attribute($this->env, $this->source, $context["department"], "id", [], "any", false, false, false, 115)) . ",");
// line 116
echo "\t\t\t\t\t\t";
}
// line 117
echo "\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['department'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 118
echo "
\t\t\t\t\t<div
\t\t\t\t\t\tclass=\"person active\" data-departments=\"";
// line 120
echo twig_escape_filter($this->env, (isset($context["departments"]) || array_key_exists("departments", $context) ? $context["departments"] : (function () { throw new RuntimeError('Variable "departments" does not exist.', 120, $this->source); })()), "html", null, true);
echo "\">
\t\t\t\t\t\t";
// line 123
echo "\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["person"], "image", [], "any", false, false, false, 123)) {
// line 124
echo "\t\t\t\t\t\t\t<div class=\"image\">
\t\t\t\t\t\t\t\t";
// line 125
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["person"], "image", [], "any", false, false, false, 125), "thumbnail", [0 => "team"], "method", false, false, false, 125), "html", [0 => ["alt" => "Alt hier"]], "method", false, false, false, 125);
echo "
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 128
echo "
\t\t\t\t\t\t";
// line 130
echo "\t\t\t\t\t\t<div class=\"name\">
\t\t\t\t\t\t\t<span>";
// line 131
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["person"], "firstname", [], "any", false, false, false, 131) . " ") . twig_get_attribute($this->env, $this->source, $context["person"], "lastname", [], "any", false, false, false, 131)), "html", null, true);
echo "</span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"text-wave\">
\t\t\t\t\t\t\t";
// line 135
echo twig_include($this->env, $context, "svg/text-wave/text-wave.html.twig");
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
// line 139
echo "\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["person"], "functions", [], "any", false, false, false, 139)) {
// line 140
echo "\t\t\t\t\t\t\t<div class=\"functions\">
\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t";
// line 142
echo twig_nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["person"], "functions", [], "any", false, false, false, 142), "html", null, true));
echo "
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 146
echo "
\t\t\t\t\t\t";
// line 148
echo "\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["person"], "email", [], "any", false, false, false, 148)) {
// line 149
echo "\t\t\t\t\t\t\t<div class=\"email\">
\t\t\t\t\t\t\t\t<a href=\"";
// line 150
echo $this->extensions['App\Twig\Extension\EncodeEmailExtension']->encodeEmail(("mailto:" . twig_get_attribute($this->env, $this->source, $context["person"], "email", [], "any", false, false, false, 150)));
echo "\" target=\"_blank\">";
echo $this->extensions['App\Twig\Extension\EncodeEmailExtension']->encodeEmail(twig_get_attribute($this->env, $this->source, $context["person"], "email", [], "any", false, false, false, 150));
echo "</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 153
echo "
\t\t\t\t\t</div>
\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['person'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 157
echo "
\t\t\t</div>
\t\t</div>
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "areas/team/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 412 => 157, 395 => 153, 387 => 150, 384 => 149, 381 => 148, 378 => 146, 371 => 142, 367 => 140, 364 => 139, 358 => 135, 351 => 131, 348 => 130, 345 => 128, 339 => 125, 336 => 124, 333 => 123, 328 => 120, 324 => 118, 310 => 117, 307 => 116, 304 => 115, 301 => 114, 298 => 113, 295 => 112, 278 => 111, 275 => 110, 273 => 109, 270 => 108, 253 => 107, 249 => 105, 243 => 100, 236 => 98, 230 => 95, 225 => 94, 222 => 93, 219 => 91, 215 => 90, 209 => 86, 202 => 81, 195 => 77, 188 => 73, 182 => 69, 179 => 67, 172 => 63, 168 => 61, 165 => 60, 159 => 55, 153 => 53, 150 => 52, 143 => 49, 139 => 47, 128 => 39, 120 => 34, 110 => 27, 104 => 23, 101 => 22, 98 => 20, 95 => 17, 92 => 15, 89 => 14, 86 => 13, 83 => 12, 80 => 10, 77 => 9, 74 => 8, 71 => 7, 68 => 5, 58 => 4, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{# settings #}
{% extends ('areas_shared/settings.html.twig') %}
{% block content %}
\t{# default margin #}
\t{% if marginBottom.isEmpty() %}
\t\t{% do marginBottom.setDataFromResource('full-margin-bottom') %}
\t{% endif %}
\t{# default background color #}
\t{% if backgroundColor.isEmpty() %}
\t\t{% do backgroundColor.setDataFromResource('background-white') %}
\t{% endif %}
\t{# title #}
\t{% set title = pimcore_input('title', {
'placeholder': 'Titel'
}) %}
\t{# editmode #}
\t{% if editmode %}
\t\t<div class=\"editmode\">
\t\t\t<div class=\"accordion-container\">
\t\t\t\t<div class=\"accordion-button\">
\t\t\t\t\t<span class=\"accordion-button-text\">Team</span>
\t\t\t\t\t{{ include('svg/editmode/setting.html.twig') }}
\t\t\t\t</div>
\t\t\t\t<div class=\"panel\">
\t\t\t\t\t<div class=\"settings-container\">
\t\t\t\t\t\t<div class=\"setting input\">
\t\t\t\t\t\t\t<label>Anker:</label>
\t\t\t\t\t\t\t{{ anchor|raw }}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"setting select\">
\t\t\t\t\t\t\t<label>Abstand unten:</label>
\t\t\t\t\t\t\t{{ marginBottom|raw }}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t{% endif %}
\t<div
\t\tclass=\"team-brick brick-container {{ backgroundColor.data }} {{ marginBottom.data }}\">
\t\t{# anchor #}
\t\t{% if anchor.data %}
\t\t\t<div class=\"anchor\" id=\"{{ anchor.data }}\"></div>
\t\t{% endif %}
\t\t<div
\t\t\tclass=\"container-1420\">
\t\t\t{# title #}
\t\t\t{% if editmode or title.data %}
\t\t\t\t<div class=\"title\">
\t\t\t\t\t<h2>
\t\t\t\t\t\t{{ title|raw }}
\t\t\t\t\t</h2>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t\t{# mobile toggle filter #}
\t\t\t<div class=\"toggle-department-filter\" id=\"toggleDepartmentFilter\">
\t\t\t\t<div class=\"icon\">
\t\t\t\t\t<div class=\"vertical\">
\t\t\t\t\t\t{{ include('svg/akkordeon/akkordeon-vertical-icon.html.twig') }}
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"horizontal\">
\t\t\t\t\t\t{{ include('svg/akkordeon/akkordeon-horizontal-icon.html.twig') }}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<span>{{ 'team.departments.mobile-filter'|trans }}</span>
\t\t\t</div>
\t\t\t{# departments #}
\t\t\t<div class=\"departments-container\">
\t\t\t\t<div class=\"departments hidden\" id=\"departments\">
\t\t\t\t\t{% for department in departments %}
\t\t\t\t\t\t{# only show departments with persons #}
\t\t\t\t\t\t{% if department.hasPersons %}
\t\t\t\t\t\t\t<div class=\"department\" data-id=\"{{ department.id }}\">
\t\t\t\t\t\t\t\t<span>{{ department.title }}</span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t</div>
\t\t\t</div>
\t\t\t{# persons #}
\t\t\t<div class=\"persons\">
\t\t\t\t{% for person in persons %}
\t\t\t\t\t{% set departments = '' %}
\t\t\t\t\t{% for department in person.departments %}
\t\t\t\t\t\t{% if loop.last %}
\t\t\t\t\t\t\t{% set departments = departments ~ department.id %}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t{% set departments = departments ~ department.id ~ ',' %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t\t<div
\t\t\t\t\t\tclass=\"person active\" data-departments=\"{{ departments }}\">
\t\t\t\t\t\t{# image #}
\t\t\t\t\t\t{% if person.image %}
\t\t\t\t\t\t\t<div class=\"image\">
\t\t\t\t\t\t\t\t{{ person.image.thumbnail('team').html({'alt': 'Alt hier'})|raw }}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{# name #}
\t\t\t\t\t\t<div class=\"name\">
\t\t\t\t\t\t\t<span>{{ person.firstname ~ ' ' ~ person.lastname }}</span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"text-wave\">
\t\t\t\t\t\t\t{{ include('svg/text-wave/text-wave.html.twig') }}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t{# functions #}
\t\t\t\t\t\t{% if person.functions %}
\t\t\t\t\t\t\t<div class=\"functions\">
\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t{{ person.functions|nl2br }}
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{# email #}
\t\t\t\t\t\t{% if person.email %}
\t\t\t\t\t\t\t<div class=\"email\">
\t\t\t\t\t\t\t\t<a href=\"{{ encodeEmail('mailto:' ~ person.email)|raw }}\" target=\"_blank\">{{ encodeEmail(person.email)|raw }}</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t</div>
\t</div>
{% endblock %}
", "areas/team/view.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/areas/team/view.html.twig");
}
}