var/cache/te_dev/twig/cf/cf8319b114c7d7d7c57ab9366748d606aebae344d1cbd055ddafb3aff439edc2.php line 33

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. /* @Web/SVGIconsCode/chat.html.twig */
  14. class __TwigTemplate_a886f1d35993055d8c8b431b1bae82538fc9e98945e7a66f16eea5554c936f83 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  30.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Web/SVGIconsCode/chat.html.twig"));
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Web/SVGIconsCode/chat.html.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Web/SVGIconsCode/chat.html.twig"));
  35.         // line 1
  36.         $context["userEmail"] = (($this->extensions['WebBundle\Twig\AppExtension']->isLogged()) ? (twig_get_attribute($this->env$this->source, (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'1$this->source); })()), "email", [], "any"falsefalsefalse1)) : (""));
  37.         // line 2
  38.         $context["hideNotifications"] = false;
  39.         // line 3
  40.         if (twig_in_filter("@tile.expert", (isset($context["userEmail"]) || array_key_exists("userEmail"$context) ? $context["userEmail"] : (function () { throw new RuntimeError('Variable "userEmail" does not exist.'3$this->source); })()))) {
  41.             // line 4
  42.             echo "\t";
  43.             $context["hideNotifications"] = true;
  44.         }
  45.         // line 6
  46.         $context["isRTWidget"] = $this->extensions['WebBundle\Twig\AppExtension']->useRTWidget();
  47.         // line 7
  48.         $context["redCircleClass"] = "";
  49.         // line 8
  50.         echo "<svg
  51.     version=\"1.1\" id=\"chat-icon\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"
  52.     width=\"40\" height=\"30\" x=\"0px\" y=\"0px\" viewBox=\"0 0 41.1 28.8\" xml:space=\"preserve\"
  53.     ";
  54.         // line 11
  55.         if ((isset($context["userEmail"]) || array_key_exists("userEmail"$context) ? $context["userEmail"] : (function () { throw new RuntimeError('Variable "userEmail" does not exist.'11$this->source); })())) {
  56.             echo "data-user-email=\"";
  57.             echo twig_escape_filter($this->env, (isset($context["userEmail"]) || array_key_exists("userEmail"$context) ? $context["userEmail"] : (function () { throw new RuntimeError('Variable "userEmail" does not exist.'11$this->source); })()), "html"nulltrue);
  58.             echo "\"";
  59.         }
  60.         // line 12
  61.         echo "    ";
  62.         $context["unreadMessagesNumber"] = 0;
  63.         // line 13
  64.         echo "    ";
  65.         if ((( !(isset($context["hideNotifications"]) || array_key_exists("hideNotifications"$context) ? $context["hideNotifications"] : (function () { throw new RuntimeError('Variable "hideNotifications" does not exist.'13$this->source); })()) && array_key_exists("unreadAll"$context)) && ((isset($context["unreadAll"]) || array_key_exists("unreadAll"$context) ? $context["unreadAll"] : (function () { throw new RuntimeError('Variable "unreadAll" does not exist.'13$this->source); })()) > 0))) {
  66.             // line 14
  67.             echo "    \t";
  68.             if (((isset($context["unreadAll"]) || array_key_exists("unreadAll"$context) ? $context["unreadAll"] : (function () { throw new RuntimeError('Variable "unreadAll" does not exist.'14$this->source); })()) > 99)) {
  69.                 // line 15
  70.                 echo "    \t\t";
  71.                 $context["unreadMessagesNumber"] = "99+";
  72.                 // line 16
  73.                 echo "    \t";
  74.             } else {
  75.                 // line 17
  76.                 echo "    \t\t";
  77.                 $context["unreadMessagesNumber"] = (isset($context["unreadAll"]) || array_key_exists("unreadAll"$context) ? $context["unreadAll"] : (function () { throw new RuntimeError('Variable "unreadAll" does not exist.'17$this->source); })());
  78.                 // line 18
  79.                 echo "    \t";
  80.             }
  81.             // line 19
  82.             echo "    \t";
  83.             $context["redCircleClass"] = " red-circle";
  84.             // line 20
  85.             echo "    \tdata-new-messages-number=\"";
  86.             echo twig_escape_filter($this->env, (isset($context["unreadAll"]) || array_key_exists("unreadAll"$context) ? $context["unreadAll"] : (function () { throw new RuntimeError('Variable "unreadAll" does not exist.'20$this->source); })()), "html"nulltrue);
  87.             echo "\"
  88.     ";
  89.         }
  90.         // line 22
  91.         echo "    class=\"chat-btn";
  92.         echo twig_escape_filter($this->env, (isset($context["redCircleClass"]) || array_key_exists("redCircleClass"$context) ? $context["redCircleClass"] : (function () { throw new RuntimeError('Variable "redCircleClass" does not exist.'22$this->source); })()), "html"nulltrue);
  93.         echo "\" 
  94. >
  95.     <path class=\"chat-icon-el-0\" d=\"M1.2,15.9c0,2.7,1.7,5.2,4.6,6.9l0,0c0,1.9-0.8,4.1-1.5,4.9c3,0,6.1-1.5,7.6-2.9h1.5c6.7,0,12.2-4,12.2-8.8
  96.         s-5.4-8.8-12.2-8.8S1.2,11,1.2,15.9\" />
  97.         <circle class=\"chat-icon-el-1\" cx=\"31.3\" cy=\"9.8\" r=\"9.8\"/>
  98.         <circle class=\"chat-icon-el-2\" id=\"chat-icon-circle\" cx=\"31.2\" cy=\"9.8\" r=\"8.3\" />
  99.     <g>
  100.         <path class=\"chat-icon-el-4\" d=\"M7.4,17.4l-0.1,0.9c-0.4,0.1-0.8,0.1-1.1,0.1c-0.9,0-1.6-0.3-2.1-0.8s-0.7-1.1-0.7-1.8c0-0.7,0.3-1.4,0.8-2
  101.             S5.4,13,6.3,13c0.3,0,0.6,0,0.9,0.1l-0.2,1c-0.3-0.1-0.6-0.2-0.9-0.2c-0.5,0-0.9,0.2-1.2,0.5c-0.3,0.3-0.4,0.8-0.4,1.2
  102.             c0,0.5,0.2,0.9,0.5,1.3c0.3,0.4,0.8,0.6,1.3,0.6C6.6,17.6,7,17.5,7.4,17.4z\" />
  103.         <path class=\"chat-icon-el-4\" d=\"M12.4,18.4h-1.1c0-0.9,0-1.6,0-2.3h-2c0,0.6,0,1.3,0,2.3H8.2c0-0.9,0.1-1.8,0.1-2.7c0-0.9,0-1.8-0.1-2.5h1.1
  104.             c0,0.7,0,1.4,0,2.1h2c0-0.6,0-1.3,0-2.1h1.1c0,0.7-0.1,1.5-0.1,2.5S12.3,17.6,12.4,18.4z\" />
  105.         <path class=\"chat-icon-el-4\" d=\"M18.1,18.4h-1.3c0-0.2-0.1-0.7-0.4-1.5h-1.8c-0.3,0.8-0.4,1.3-0.4,1.5H13c0-0.1,0.3-1,0.9-2.6
  106.             c0.6-1.6,0.9-2.5,0.9-2.6h1.5c0,0.2,0.3,1,0.8,2.6C17.8,17.4,18.1,18.2,18.1,18.4z M16.2,16.1c-0.5-1.4-0.7-2.1-0.7-2.2h-0.1
  107.             c0,0.1-0.2,0.8-0.7,2.2H16.2z\" />
  108.         <path class=\"chat-icon-el-4\" d=\"M22.1,13.2v0.9c-0.5,0-1-0.1-1.5-0.1c0,0.5,0,1.1,0,1.7c0,1,0,1.9,0,2.7h-1.1c0-0.8,0.1-1.8,0.1-2.7
  109.             c0-0.6,0-1.2,0-1.7c-0.4,0-0.9,0-1.5,0.1v-0.9C18.1,13.2,22.1,13.2,22.1,13.2z\" />
  110.     </g>
  111.     <text class=\"chat-status-off chat-icon-text\" transform=\"translate(25, 13)\">off</text>
  112.     <text class=\"chat-status-on chat-icon-text\" transform=\"translate(26, 12)\">on</text>
  113.     ";
  114.         // line 42
  115.         $context["numTextTransformClass"] = " single-digit-unread-count";
  116.         // line 43
  117.         echo "    ";
  118.         if (((isset($context["unreadMessagesNumber"]) || array_key_exists("unreadMessagesNumber"$context) ? $context["unreadMessagesNumber"] : (function () { throw new RuntimeError('Variable "unreadMessagesNumber" does not exist.'43$this->source); })()) == "99+")) {
  119.             // line 44
  120.             echo "        ";
  121.             $context["numTextTransformClass"] = " multiple-digits-unread-count";
  122.             // line 45
  123.             echo "    ";
  124.         } elseif (((isset($context["unreadMessagesNumber"]) || array_key_exists("unreadMessagesNumber"$context) ? $context["unreadMessagesNumber"] : (function () { throw new RuntimeError('Variable "unreadMessagesNumber" does not exist.'45$this->source); })()) > 9)) {
  125.             // line 46
  126.             echo "        ";
  127.             $context["numTextTransformClass"] = " double-digits-unread-count";
  128.             // line 47
  129.             echo "    ";
  130.         }
  131.         // line 48
  132.         echo "    <text
  133.         id=\"chat-messages-count\"
  134.         class=\"chat-icon-text chat-btn-msgs-count";
  135.         // line 50
  136.         echo twig_escape_filter($this->env, (isset($context["numTextTransformClass"]) || array_key_exists("numTextTransformClass"$context) ? $context["numTextTransformClass"] : (function () { throw new RuntimeError('Variable "numTextTransformClass" does not exist.'50$this->source); })()), "html"nulltrue);
  137.         echo "\"
  138.         textLength=\"10px\"
  139.     >
  140.             ";
  141.         // line 53
  142.         echo twig_escape_filter($this->env, (isset($context["unreadMessagesNumber"]) || array_key_exists("unreadMessagesNumber"$context) ? $context["unreadMessagesNumber"] : (function () { throw new RuntimeError('Variable "unreadMessagesNumber" does not exist.'53$this->source); })()), "html"nulltrue);
  143.         echo "
  144.         </text>
  145. </svg>
  146. ";
  147.         
  148.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  149.         
  150.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  151.         
  152.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  153.     }
  154.     public function getTemplateName()
  155.     {
  156.         return "@Web/SVGIconsCode/chat.html.twig";
  157.     }
  158.     public function isTraitable()
  159.     {
  160.         return false;
  161.     }
  162.     public function getDebugInfo()
  163.     {
  164.         return array (  152 => 53,  146 => 50,  142 => 48,  139 => 47,  136 => 46,  133 => 45,  130 => 44,  127 => 43,  125 => 42,  101 => 22,  95 => 20,  92 => 19,  89 => 18,  86 => 17,  83 => 16,  80 => 15,  77 => 14,  74 => 13,  71 => 12,  65 => 11,  60 => 8,  58 => 7,  56 => 6,  52 => 4,  50 => 3,  48 => 2,  46 => 1,);
  165.     }
  166.     public function getSourceContext()
  167.     {
  168.         return new Source("{% set userEmail = isLogged() ? user.email : '' %}
  169. {% set hideNotifications = false %}
  170. {% if '@tile.expert' in userEmail %}
  171. \t{% set hideNotifications = true %}
  172. {% endif %}
  173. {% set isRTWidget = useRTWidget() %}
  174. {% set redCircleClass = '' %}
  175. <svg
  176.     version=\"1.1\" id=\"chat-icon\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"
  177.     width=\"40\" height=\"30\" x=\"0px\" y=\"0px\" viewBox=\"0 0 41.1 28.8\" xml:space=\"preserve\"
  178.     {% if userEmail %}data-user-email=\"{{ userEmail }}\"{% endif %}
  179.     {% set unreadMessagesNumber = 0 %}
  180.     {% if not hideNotifications and unreadAll is defined and unreadAll > 0 %}
  181.     \t{% if unreadAll > 99 %}
  182.     \t\t{% set unreadMessagesNumber = '99+' %}
  183.     \t{% else %}
  184.     \t\t{% set unreadMessagesNumber = unreadAll %}
  185.     \t{% endif %}
  186.     \t{% set redCircleClass = ' red-circle' %}
  187.     \tdata-new-messages-number=\"{{ unreadAll }}\"
  188.     {% endif %}
  189.     class=\"chat-btn{{ redCircleClass }}\" 
  190. >
  191.     <path class=\"chat-icon-el-0\" d=\"M1.2,15.9c0,2.7,1.7,5.2,4.6,6.9l0,0c0,1.9-0.8,4.1-1.5,4.9c3,0,6.1-1.5,7.6-2.9h1.5c6.7,0,12.2-4,12.2-8.8
  192.         s-5.4-8.8-12.2-8.8S1.2,11,1.2,15.9\" />
  193.         <circle class=\"chat-icon-el-1\" cx=\"31.3\" cy=\"9.8\" r=\"9.8\"/>
  194.         <circle class=\"chat-icon-el-2\" id=\"chat-icon-circle\" cx=\"31.2\" cy=\"9.8\" r=\"8.3\" />
  195.     <g>
  196.         <path class=\"chat-icon-el-4\" d=\"M7.4,17.4l-0.1,0.9c-0.4,0.1-0.8,0.1-1.1,0.1c-0.9,0-1.6-0.3-2.1-0.8s-0.7-1.1-0.7-1.8c0-0.7,0.3-1.4,0.8-2
  197.             S5.4,13,6.3,13c0.3,0,0.6,0,0.9,0.1l-0.2,1c-0.3-0.1-0.6-0.2-0.9-0.2c-0.5,0-0.9,0.2-1.2,0.5c-0.3,0.3-0.4,0.8-0.4,1.2
  198.             c0,0.5,0.2,0.9,0.5,1.3c0.3,0.4,0.8,0.6,1.3,0.6C6.6,17.6,7,17.5,7.4,17.4z\" />
  199.         <path class=\"chat-icon-el-4\" d=\"M12.4,18.4h-1.1c0-0.9,0-1.6,0-2.3h-2c0,0.6,0,1.3,0,2.3H8.2c0-0.9,0.1-1.8,0.1-2.7c0-0.9,0-1.8-0.1-2.5h1.1
  200.             c0,0.7,0,1.4,0,2.1h2c0-0.6,0-1.3,0-2.1h1.1c0,0.7-0.1,1.5-0.1,2.5S12.3,17.6,12.4,18.4z\" />
  201.         <path class=\"chat-icon-el-4\" d=\"M18.1,18.4h-1.3c0-0.2-0.1-0.7-0.4-1.5h-1.8c-0.3,0.8-0.4,1.3-0.4,1.5H13c0-0.1,0.3-1,0.9-2.6
  202.             c0.6-1.6,0.9-2.5,0.9-2.6h1.5c0,0.2,0.3,1,0.8,2.6C17.8,17.4,18.1,18.2,18.1,18.4z M16.2,16.1c-0.5-1.4-0.7-2.1-0.7-2.2h-0.1
  203.             c0,0.1-0.2,0.8-0.7,2.2H16.2z\" />
  204.         <path class=\"chat-icon-el-4\" d=\"M22.1,13.2v0.9c-0.5,0-1-0.1-1.5-0.1c0,0.5,0,1.1,0,1.7c0,1,0,1.9,0,2.7h-1.1c0-0.8,0.1-1.8,0.1-2.7
  205.             c0-0.6,0-1.2,0-1.7c-0.4,0-0.9,0-1.5,0.1v-0.9C18.1,13.2,22.1,13.2,22.1,13.2z\" />
  206.     </g>
  207.     <text class=\"chat-status-off chat-icon-text\" transform=\"translate(25, 13)\">off</text>
  208.     <text class=\"chat-status-on chat-icon-text\" transform=\"translate(26, 12)\">on</text>
  209.     {% set numTextTransformClass = ' single-digit-unread-count' %}
  210.     {% if unreadMessagesNumber == '99+' %}
  211.         {% set numTextTransformClass = ' multiple-digits-unread-count' %}
  212.     {% elseif unreadMessagesNumber > 9 %}
  213.         {% set numTextTransformClass = ' double-digits-unread-count' %}
  214.     {% endif %}
  215.     <text
  216.         id=\"chat-messages-count\"
  217.         class=\"chat-icon-text chat-btn-msgs-count{{ numTextTransformClass }}\"
  218.         textLength=\"10px\"
  219.     >
  220.             {{ unreadMessagesNumber }}
  221.         </text>
  222. </svg>
  223. ""@Web/SVGIconsCode/chat.html.twig""/var/www/dev5.tile.expert/src/WebBundle/Resources/views/SVGIconsCode/chat.html.twig");
  224.     }
  225. }