var/cache/dev/twig/59/598097e89055bfdb9e0cf78cb3e34001.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. /* flashmessages/flashmessages.html.twig */
  14. class __TwigTemplate_2ea878612030ab253ff03ccd6c51a469 extends 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""flashmessages/flashmessages.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""flashmessages/flashmessages.html.twig"));
  33.         // line 1
  34.         $context['_parent'] = $context;
  35.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1$this->source); })()), "flashes", ["primary"], "method"falsefalsefalse1));
  36.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  37.             // line 2
  38.             echo "    <div class=\"alert alert-primary alert-dismissible fade show\" role=\"alert\">
  39.         <span class=\"alert-inner--icon\"><i class=\"fas fa-trophy\"></i></span>
  40.         <span class=\"alert-inner--text\"><strong>Succès</strong> ";
  41.             // line 4
  42.             echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  43.             echo "</span>
  44.         <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  45.             <span aria-hidden=\"true\">&times;</span>
  46.         </button>
  47.     </div>
  48. ";
  49.         }
  50.         $_parent $context['_parent'];
  51.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  52.         $context array_intersect_key($context$_parent) + $_parent;
  53.         // line 10
  54.         echo "    ";
  55.         $context['_parent'] = $context;
  56.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'10$this->source); })()), "flashes", ["secondary"], "method"falsefalsefalse10));
  57.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  58.             // line 11
  59.             echo "        <div class=\"alert alert-secondary alert-dismissible fade show\" role=\"alert\">
  60.             <span class=\"alert-inner--icon\"><i class=\"fas fa-check\"></i></span>
  61.             <span class=\"alert-inner--text\"><strong>Succès</strong> ";
  62.             // line 13
  63.             echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  64.             echo "</span>
  65.             <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  66.                 <span aria-hidden=\"true\">&times;</span>
  67.             </button>
  68.         </div>
  69.     ";
  70.         }
  71.         $_parent $context['_parent'];
  72.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  73.         $context array_intersect_key($context$_parent) + $_parent;
  74.         // line 19
  75.         echo "    ";
  76.         $context['_parent'] = $context;
  77.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'19$this->source); })()), "flashes", ["success"], "method"falsefalsefalse19));
  78.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  79.             // line 20
  80.             echo "        <div class=\"alert alert-success alert-dismissible fade show\" role=\"alert\">
  81.             <span class=\"alert-inner--icon\"><i class=\"far fa-thumbs-up\"></i></span>
  82.             <span class=\"alert-inner--text\"><strong>Succès</strong> ";
  83.             // line 22
  84.             echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  85.             echo "</span>
  86.             <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  87.                 <span aria-hidden=\"true\">&times;</span>
  88.             </button>
  89.         </div>
  90.     ";
  91.         }
  92.         $_parent $context['_parent'];
  93.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  94.         $context array_intersect_key($context$_parent) + $_parent;
  95.         // line 28
  96.         echo "    ";
  97.         $context['_parent'] = $context;
  98.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'28$this->source); })()), "flashes", ["info"], "method"falsefalsefalse28));
  99.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  100.             // line 29
  101.             echo "        <div class=\"alert alert-info alert-dismissible fade show\" role=\"alert\">
  102.             <span class=\"alert-inner--icon\"><i class=\"far fa-bell\"></i></span>
  103.             <span class=\"alert-inner--text\"><strong>Information</strong> ";
  104.             // line 31
  105.             echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  106.             echo "</span>
  107.             <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  108.                 <span aria-hidden=\"true\">&times;</span>
  109.             </button>
  110.         </div>
  111.     ";
  112.         }
  113.         $_parent $context['_parent'];
  114.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  115.         $context array_intersect_key($context$_parent) + $_parent;
  116.         // line 37
  117.         echo "    ";
  118.         $context['_parent'] = $context;
  119.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'37$this->source); })()), "flashes", ["warning"], "method"falsefalsefalse37));
  120.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  121.             // line 38
  122.             echo "        <div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
  123.             <span class=\"alert-inner--icon\"><i class=\"fas fa-exclamation-circle\"></i></span>
  124.             <span class=\"alert-inner--text\"><strong>Attention!</strong> ";
  125.             // line 40
  126.             echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  127.             echo "</span>
  128.             <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  129.                 <span aria-hidden=\"true\">&times;</span>
  130.             </button>
  131.         </div>
  132.     ";
  133.         }
  134.         $_parent $context['_parent'];
  135.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  136.         $context array_intersect_key($context$_parent) + $_parent;
  137.         // line 46
  138.         echo "    ";
  139.         $context['_parent'] = $context;
  140.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'46$this->source); })()), "flashes", ["danger"], "method"falsefalsefalse46));
  141.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  142.             // line 47
  143.             echo "        <div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
  144.             <strong>Holy guacamole!</strong> You should check in on some of those fields below.
  145.             <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  146.                 <span aria-hidden=\"true\">&times;</span>
  147.             </button>
  148.         </div>
  149.         ";
  150.             // line 60
  151.             echo "    ";
  152.         }
  153.         $_parent $context['_parent'];
  154.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  155.         $context array_intersect_key($context$_parent) + $_parent;
  156.         
  157.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  158.         
  159.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  160.     }
  161.     public function getTemplateName()
  162.     {
  163.         return "flashmessages/flashmessages.html.twig";
  164.     }
  165.     public function isTraitable()
  166.     {
  167.         return false;
  168.     }
  169.     public function getDebugInfo()
  170.     {
  171.         return array (  160 => 60,  152 => 47,  147 => 46,  135 => 40,  131 => 38,  126 => 37,  114 => 31,  110 => 29,  105 => 28,  93 => 22,  89 => 20,  84 => 19,  72 => 13,  68 => 11,  63 => 10,  51 => 4,  47 => 2,  43 => 1,);
  172.     }
  173.     public function getSourceContext()
  174.     {
  175.         return new Source("{% for message in app.flashes('primary') %}
  176.     <div class=\"alert alert-primary alert-dismissible fade show\" role=\"alert\">
  177.         <span class=\"alert-inner--icon\"><i class=\"fas fa-trophy\"></i></span>
  178.         <span class=\"alert-inner--text\"><strong>Succès</strong> {{ message }}</span>
  179.         <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  180.             <span aria-hidden=\"true\">&times;</span>
  181.         </button>
  182.     </div>
  183. {% endfor %}
  184.     {% for message in app.flashes('secondary') %}
  185.         <div class=\"alert alert-secondary alert-dismissible fade show\" role=\"alert\">
  186.             <span class=\"alert-inner--icon\"><i class=\"fas fa-check\"></i></span>
  187.             <span class=\"alert-inner--text\"><strong>Succès</strong> {{ message }}</span>
  188.             <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  189.                 <span aria-hidden=\"true\">&times;</span>
  190.             </button>
  191.         </div>
  192.     {% endfor %}
  193.     {% for message in app.flashes('success') %}
  194.         <div class=\"alert alert-success alert-dismissible fade show\" role=\"alert\">
  195.             <span class=\"alert-inner--icon\"><i class=\"far fa-thumbs-up\"></i></span>
  196.             <span class=\"alert-inner--text\"><strong>Succès</strong> {{ message }}</span>
  197.             <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  198.                 <span aria-hidden=\"true\">&times;</span>
  199.             </button>
  200.         </div>
  201.     {% endfor %}
  202.     {% for message in app.flashes('info') %}
  203.         <div class=\"alert alert-info alert-dismissible fade show\" role=\"alert\">
  204.             <span class=\"alert-inner--icon\"><i class=\"far fa-bell\"></i></span>
  205.             <span class=\"alert-inner--text\"><strong>Information</strong> {{ message }}</span>
  206.             <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  207.                 <span aria-hidden=\"true\">&times;</span>
  208.             </button>
  209.         </div>
  210.     {% endfor %}
  211.     {% for message in app.flashes('warning') %}
  212.         <div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
  213.             <span class=\"alert-inner--icon\"><i class=\"fas fa-exclamation-circle\"></i></span>
  214.             <span class=\"alert-inner--text\"><strong>Attention!</strong> {{ message }}</span>
  215.             <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  216.                 <span aria-hidden=\"true\">&times;</span>
  217.             </button>
  218.         </div>
  219.     {% endfor %}
  220.     {% for message in app.flashes('danger') %}
  221.         <div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
  222.             <strong>Holy guacamole!</strong> You should check in on some of those fields below.
  223.             <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  224.                 <span aria-hidden=\"true\">&times;</span>
  225.             </button>
  226.         </div>
  227.         {#<div class=\"alert alert-danger alert-dismissible fade show\" role=\"alert\">
  228.             <span class=\"alert-inner--icon\"><i class=\"fas fa-hand-paper\"></i></span>
  229.             <span class=\"alert-inner--text\"><strong>Erreur</strong> {{ message }}</span>
  230.             <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  231.                 <span aria-hidden=\"true\">&times;</span>
  232.             </button>
  233.         </div>#}
  234.     {% endfor %}
  235. ""flashmessages/flashmessages.html.twig""/home/maixmebouz/www/dev/cbrc/templates/flashmessages/flashmessages.html.twig");
  236.     }
  237. }