var/cache/dev/twig/e5/e5d6917d4a67bb683ef91134618652ac.php line 34

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* services/messages/all_users_who_read.html.twig */
  15. class __TwigTemplate_5c920e209cd22b6e2750b762faabacb4 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""services/messages/all_users_who_read.html.twig"));
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""services/messages/all_users_who_read.html.twig"));
  34.         // line 1
  35.         yield "<div id='last-user-read-message'>
  36.     <div class=\"container_user_who_read\">
  37.        
  38.                 ";
  39.         // line 4
  40.         $context['_parent'] = $context;
  41.         $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); })()));
  42.         foreach ($context['_seq'] as $context["_key"] => $context["user_who_read"]) {
  43.             // line 5
  44.             yield "                ";
  45.             // line 6
  46.             yield "                        ";
  47.             if ((((CoreExtension::getAttribute($this->env$this->source$context["user_who_read"], "id", [], "any"falsefalsefalse6) != CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse6), "id", [], "any"falsefalsefalse6)) && (CoreExtension::getAttribute($this->env$this->source$context["user_who_read"], "id", [], "any"falsefalsefalse6) != "Lgnf7jJqniYmij9aMn6xZy")) && (CoreExtension::getAttribute($this->env$this->source$context["user_who_read"], "id", [], "any"falsefalsefalse6) != "HfzEmaAsjiAViv7goXGsst"))) {
  48.                 // line 7
  49.                 yield "                                <div class=\"container_image_user_who_read user-";
  50.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["user_who_read"], "id", [], "any"falsefalsefalse7), "html"nulltrue);
  51.                 yield "\" title=\"";
  52.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["user_who_read"], "fullname", [], "any"falsefalsefalse7), "html"nulltrue);
  53.                 yield "\" style=\"background-image:url(";
  54.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset($context["user_who_read"], "picture"), "html"nulltrue);
  55.                 yield ")\">
  56.                                             ";
  57.                 // line 8
  58.                 if (($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset($context["user_who_read"], "picture") == "")) {
  59.                     // line 9
  60.                     yield "                                                            <p>";
  61.                     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"falsefalsefalse9), 01), "html"nulltrue);
  62.                     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"falsefalsefalse9), 01), "html"nulltrue);
  63.                     yield "</p>
  64.                                             ";
  65.                 }
  66.                 // line 11
  67.                 yield "                                </div>
  68.                         ";
  69.             }
  70.             // line 13
  71.             yield "                ";
  72.         }
  73.         $_parent $context['_parent'];
  74.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['user_who_read'], $context['_parent'], $context['loop']);
  75.         $context array_intersect_key($context$_parent) + $_parent;
  76.         yield "   
  77.     </div>
  78. </div>";
  79.         
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81.         
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  83.         return; yield '';
  84.     }
  85.     /**
  86.      * @codeCoverageIgnore
  87.      */
  88.     public function getTemplateName()
  89.     {
  90.         return "services/messages/all_users_who_read.html.twig";
  91.     }
  92.     /**
  93.      * @codeCoverageIgnore
  94.      */
  95.     public function isTraitable()
  96.     {
  97.         return false;
  98.     }
  99.     /**
  100.      * @codeCoverageIgnore
  101.      */
  102.     public function getDebugInfo()
  103.     {
  104.         return array (  80 => 13,  76 => 11,  69 => 9,  67 => 8,  58 => 7,  55 => 6,  53 => 5,  49 => 4,  44 => 1,);
  105.     }
  106.     public function getSourceContext()
  107.     {
  108.         return new Source("<div id='last-user-read-message'>
  109.     <div class=\"container_user_who_read\">
  110.        
  111.                 {% for user_who_read in user_list %}
  112.                 {# Lgnf7jJqniYmij9aMn6xZy  for softibox HfzEmaAsjiAViv7goXGsst for reda  #}
  113.                         {% if user_who_read.id != app.user.id and user_who_read.id !=\"Lgnf7jJqniYmij9aMn6xZy\" and user_who_read.id !=\"HfzEmaAsjiAViv7goXGsst\" %}
  114.                                 <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')}})\">
  115.                                             {% if vich_uploader_asset(user_who_read, 'picture')==\"\" %}
  116.                                                             <p>{{user_who_read.firstname|slice(0,1) }}{{user_who_read.lastname|slice(0,1) }}</p>
  117.                                             {% endif %}
  118.                                 </div>
  119.                         {% endif %}
  120.                 {% endfor %}   
  121.     </div>
  122. </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");
  123.     }
  124. }