<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* services/messages/all_users_who_read.html.twig */
class __TwigTemplate_5c920e209cd22b6e2750b762faabacb4 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "services/messages/all_users_who_read.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "services/messages/all_users_who_read.html.twig"));
// line 1
yield "<div id='last-user-read-message'>
<div class=\"container_user_who_read\">
";
// line 4
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["user_list"]) || array_key_exists("user_list", $context) ? $context["user_list"] : (function () { throw new RuntimeError('Variable "user_list" does not exist.', 4, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["user_who_read"]) {
// line 5
yield " ";
// line 6
yield " ";
if ((((CoreExtension::getAttribute($this->env, $this->source, $context["user_who_read"], "id", [], "any", false, false, false, 6) != CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 6, $this->source); })()), "user", [], "any", false, false, false, 6), "id", [], "any", false, false, false, 6)) && (CoreExtension::getAttribute($this->env, $this->source, $context["user_who_read"], "id", [], "any", false, false, false, 6) != "Lgnf7jJqniYmij9aMn6xZy")) && (CoreExtension::getAttribute($this->env, $this->source, $context["user_who_read"], "id", [], "any", false, false, false, 6) != "HfzEmaAsjiAViv7goXGsst"))) {
// line 7
yield " <div class=\"container_image_user_who_read user-";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["user_who_read"], "id", [], "any", false, false, false, 7), "html", null, true);
yield "\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["user_who_read"], "fullname", [], "any", false, false, false, 7), "html", null, true);
yield "\" style=\"background-image:url(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset($context["user_who_read"], "picture"), "html", null, true);
yield ")\">
";
// line 8
if (($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset($context["user_who_read"], "picture") == "")) {
// line 9
yield " <p>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["user_who_read"], "firstname", [], "any", false, false, false, 9), 0, 1), "html", null, true);
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["user_who_read"], "lastname", [], "any", false, false, false, 9), 0, 1), "html", null, true);
yield "</p>
";
}
// line 11
yield " </div>
";
}
// line 13
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['user_who_read'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
yield "
</div>
</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "services/messages/all_users_who_read.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 80 => 13, 76 => 11, 69 => 9, 67 => 8, 58 => 7, 55 => 6, 53 => 5, 49 => 4, 44 => 1,);
}
public function getSourceContext()
{
return new Source("<div id='last-user-read-message'>
<div class=\"container_user_who_read\">
{% for user_who_read in user_list %}
{# Lgnf7jJqniYmij9aMn6xZy for softibox HfzEmaAsjiAViv7goXGsst for reda #}
{% if user_who_read.id != app.user.id and user_who_read.id !=\"Lgnf7jJqniYmij9aMn6xZy\" and user_who_read.id !=\"HfzEmaAsjiAViv7goXGsst\" %}
<div class=\"container_image_user_who_read user-{{user_who_read.id}}\" title=\"{{user_who_read.fullname}}\" style=\"background-image:url({{vich_uploader_asset(user_who_read, 'picture')}})\">
{% if vich_uploader_asset(user_who_read, 'picture')==\"\" %}
<p>{{user_who_read.firstname|slice(0,1) }}{{user_who_read.lastname|slice(0,1) }}</p>
{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
</div>", "services/messages/all_users_who_read.html.twig", "/var/www/vhosts/my-flow.fr/app.dev.my-flow.fr/templates/services/messages/all_users_who_read.html.twig");
}
}