var/cache/dev/twig/ac/ac79dd954d3da91f5684da87cc733cd6770af4916247b392d09114cd3d48b9a7.php line 50

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. /* layout.html.twig */
  14. class __TwigTemplate_bbef7d9a5a9be5aea65d2ac342d1e12db2c4d95f01a0f54272b5497e44ccdb0b 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->blocks = [
  23.             'whiplay_body_head' => [$this'block_whiplay_body_head'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 2
  29.         return $this->loadTemplate((((isset($context["isAjax"]) || array_key_exists("isAjax"$context) ? $context["isAjax"] : (function () { throw new RuntimeError('Variable "isAjax" does not exist.'2$this->source); })())) ? ("with_ajax_layout.html.twig") : ("no_ajax_layout.html.twig")), "layout.html.twig"2);
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layout.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layout.html.twig"));
  38.         // line 1
  39.         $context["isAjax"] = $this->extensions['App\Extensions\UtilsExtension']->isAjaxRequest();
  40.         // line 2
  41.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 4
  48.     public function block_whiplay_body_head($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""whiplay_body_head"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""whiplay_body_head"));
  55.         // line 5
  56.         echo "    <div class=\"flash-messages\">
  57.         ";
  58.         // line 6
  59.         $context['_parent'] = $context;
  60.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'6$this->source); })()), "session", [], "any"falsefalsefalse6), "flashBag", [], "any"falsefalsefalse6), "get", [=> "notice"], "method"falsefalsefalse6));
  61.         foreach ($context['_seq'] as $context["_key"] => $context["flash_message"]) {
  62.             // line 7
  63.             echo "            <div class=\"notice\">
  64.                 ";
  65.             // line 8
  66.             echo twig_escape_filter($this->env$context["flash_message"], "html"nulltrue);
  67.             echo "
  68.                 <div class=\"timer\"></div>
  69.                 <div class=\"close\" title=\"Fermer\">X</div>
  70.             </div>
  71.         ";
  72.         }
  73.         $_parent $context['_parent'];
  74.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash_message'], $context['_parent'], $context['loop']);
  75.         $context array_intersect_key($context$_parent) + $_parent;
  76.         // line 13
  77.         echo "        ";
  78.         $context['_parent'] = $context;
  79.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'13$this->source); })()), "session", [], "any"falsefalsefalse13), "flashBag", [], "any"falsefalsefalse13), "get", [=> "error"], "method"falsefalsefalse13));
  80.         foreach ($context['_seq'] as $context["_key"] => $context["flash_message"]) {
  81.             // line 14
  82.             echo "            <div class=\"error\">
  83.                 ";
  84.             // line 15
  85.             echo twig_escape_filter($this->env$context["flash_message"], "html"nulltrue);
  86.             echo "
  87.                 <div class=\"timer\"></div>
  88.                 <div class=\"close\" title=\"Fermer\">X</div>
  89.             </div>
  90.         ";
  91.         }
  92.         $_parent $context['_parent'];
  93.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash_message'], $context['_parent'], $context['loop']);
  94.         $context array_intersect_key($context$_parent) + $_parent;
  95.         // line 20
  96.         echo "    </div>
  97.     ";
  98.         // line 22
  99.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  100.             // line 23
  101.             echo "        <div id=\"container-header-user\">
  102.             <h2>";
  103.             // line 24
  104.             echo $this->extensions['Sonata\SeoBundle\Twig\Extension\SeoExtension']->getTitleText();
  105.             echo "</h2>
  106.             <div class=\"container-menu-user\">
  107.                 <div class=\"user-infos\" id=\"user-box\">
  108.                     <div class=\"container-icons\">
  109.                         <a class=\"left-menu-item\" href=\"";
  110.             // line 28
  111.             echo twig_escape_filter($this->env$this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("whiplay_user_likes", ["id" => twig_get_attribute($this->env$this->sourcetwig_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); })()), "user", [], "any"falsefalsefalse28), "id", [], "any"falsefalsefalse28)]), "html"nulltrue);
  112.             echo "\">
  113.                             <img alt=\"Mes favoris\" src=\"";
  114.             // line 29
  115.             echo twig_escape_filter($this->env, (isset($context["global_url"]) || array_key_exists("global_url"$context) ? $context["global_url"] : (function () { throw new RuntimeError('Variable "global_url" does not exist.'29$this->source); })()), "html"nulltrue);
  116.             echo "images/icons/heroicons/heart-primary-color.svg\" class=\"material-icons\">
  117.                         </a>
  118.                     </div>
  119.                     <div class=\"container-icons\">
  120.                         <a class=\"left-menu-item\" href=\"";
  121.             // line 33
  122.             echo twig_escape_filter($this->env$this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("whiplay_action_subscriptions"), "html"nulltrue);
  123.             echo "\">
  124.                             <img alt=\"Notification\" src=\"";
  125.             // line 34
  126.             echo twig_escape_filter($this->env, (isset($context["global_url"]) || array_key_exists("global_url"$context) ? $context["global_url"] : (function () { throw new RuntimeError('Variable "global_url" does not exist.'34$this->source); })()), "html"nulltrue);
  127.             echo "images/icons/heroicons/bell.svg\" class=\"material-icons\">
  128.                             <span class=\"notifications-number ";
  129.             // line 35
  130.             echo (($this->extensions['App\Extensions\NotificationsExtension']->notificationNumber()) ? ("") : ("zero"));
  131.             echo "\">";
  132.             echo twig_escape_filter($this->env$this->extensions['App\Extensions\NotificationsExtension']->notificationNumber(), "html"nulltrue);
  133.             echo "</span>
  134.                         </a>
  135.                     </div>
  136.                     <div class=\"container-user-picture\">
  137.                         <img class=\"user-profile-picture-img\"
  138.                                 ";
  139.             // line 41
  140.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'41$this->source); })()), "user", [], "any"falsefalsefalse41), "commonInformation", [], "any"falsefalsefalse41), "profilePicture", [], "any"falsefalsefalse41)) {
  141.                 // line 42
  142.                 echo "                                    src=\"";
  143.                 echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'42$this->source); })()), "user", [], "any"falsefalsefalse42), "commonInformation", [], "any"falsefalsefalse42), "profilePicture", [], "any"falsefalsefalse42), "webPath", [], "any"falsefalsefalse42), "thumb30x30"), "html"nulltrue);
  144.                 echo "\"
  145.                                     alt=\"";
  146.                 // line 43
  147.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'43$this->source); })()), "user", [], "any"falsefalsefalse43), "commonInformation", [], "any"falsefalsefalse43), "profilePicture", [], "any"falsefalsefalse43), "alt", [], "any"falsefalsefalse43), "html"nulltrue);
  148.                 echo "\"
  149.                                 ";
  150.             } else {
  151.                 // line 45
  152.                 echo "                                    id=\"left-menu-default-picture\"
  153.                                     src=\"";
  154.                 // line 46
  155.                 echo twig_escape_filter($this->env, (isset($context["global_url"]) || array_key_exists("global_url"$context) ? $context["global_url"] : (function () { throw new RuntimeError('Variable "global_url" does not exist.'46$this->source); })()), "html"nulltrue);
  156.                 echo "images/icons/heroicons/user-circle.svg\"
  157.                                     alt=\"default profile picture\"
  158.                                     class=\"material-icons white\"
  159.                                 ";
  160.             }
  161.             // line 50
  162.             echo "                        />
  163.                     </div>
  164.                     ";
  165.             // line 55
  166.             echo "                </div>
  167.             </div>
  168.         </div>
  169.         ";
  170.             // line 62
  171.             echo "        <div id=\"user-menu\">
  172.             <div class=\"return-menu-mobile\"><i class=\"material-icons\">arrow_back</i> Retour</div>
  173.             <a class=\"left-menu-item\" href=\"";
  174.             // line 64
  175.             echo twig_escape_filter($this->env$this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("user_profile_show"), "html"nulltrue);
  176.             echo "\">
  177.                 <div>";
  178.             // line 65
  179.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'65$this->source); })()), "user", [], "any"falsefalsefalse65), "username", [], "any"falsefalsefalse65), "html"nulltrue);
  180.             echo "</div>
  181.             </a>
  182.             <div class=\"separator\"></div>
  183.             <a class=\"left-menu-item\" href=\"";
  184.             // line 68
  185.             echo twig_escape_filter($this->env$this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("user_profile_edit"), "html"nulltrue);
  186.             echo "\">
  187.                 <div>";
  188.             // line 69
  189.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.user.edit_profile"), "html"nulltrue);
  190.             echo "</div>
  191.             </a>
  192.             <a class=\"left-menu-item\" href=\"";
  193.             // line 72
  194.             echo twig_escape_filter($this->env$this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("whiplay_collaboration_show"), "html"nulltrue);
  195.             echo "\">
  196.                 <div>";
  197.             // line 73
  198.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.user.collaboration"), "html"nulltrue);
  199.             echo "</div>
  200.             </a>
  201.             <div class=\"separator\"></div>
  202.             <a class=\"left-menu-item\" href=\"";
  203.             // line 76
  204.             echo twig_escape_filter($this->env$this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("whiplay_management_legal_notice"), "html"nulltrue);
  205.             echo "\">
  206.                 <div>";
  207.             // line 77
  208.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.global.about"), "html"nulltrue);
  209.             echo "</div>
  210.             </a>
  211.             <a class=\"left-menu-item logout-link\" href=\"";
  212.             // line 79
  213.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  214.             echo "\"
  215.                title=\"";
  216.             // line 80
  217.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.logout", [], "users"), "html"nulltrue);
  218.             echo "\">
  219.                 <div>";
  220.             // line 81
  221.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.logout", [], "users"), "html"nulltrue);
  222.             echo "</div>
  223.             </a>
  224.         </div>
  225.     ";
  226.         }
  227.         // line 85
  228.         echo "
  229. ";
  230.         
  231.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  232.         
  233.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  234.     }
  235.     public function getTemplateName()
  236.     {
  237.         return "layout.html.twig";
  238.     }
  239.     public function isTraitable()
  240.     {
  241.         return false;
  242.     }
  243.     public function getDebugInfo()
  244.     {
  245.         return array (  248 => 85,  241 => 81,  237 => 80,  233 => 79,  228 => 77,  224 => 76,  218 => 73,  214 => 72,  208 => 69,  204 => 68,  198 => 65,  194 => 64,  190 => 62,  182 => 55,  178 => 50,  171 => 46,  168 => 45,  163 => 43,  158 => 42,  156 => 41,  145 => 35,  141 => 34,  137 => 33,  130 => 29,  126 => 28,  119 => 24,  116 => 23,  114 => 22,  110 => 20,  99 => 15,  96 => 14,  91 => 13,  80 => 8,  77 => 7,  73 => 6,  70 => 5,  60 => 4,  50 => 2,  48 => 1,  35 => 2,);
  246.     }
  247.     public function getSourceContext()
  248.     {
  249.         return new Source("{% set isAjax = is_ajax_request() %}
  250. {% extends isAjax ? \"with_ajax_layout.html.twig\" : \"no_ajax_layout.html.twig\" %}
  251. {% block whiplay_body_head %}
  252.     <div class=\"flash-messages\">
  253.         {% for flash_message in app.session.flashBag.get('notice') %}
  254.             <div class=\"notice\">
  255.                 {{ flash_message }}
  256.                 <div class=\"timer\"></div>
  257.                 <div class=\"close\" title=\"Fermer\">X</div>
  258.             </div>
  259.         {% endfor %}
  260.         {% for flash_message in app.session.flashBag.get('error') %}
  261.             <div class=\"error\">
  262.                 {{ flash_message }}
  263.                 <div class=\"timer\"></div>
  264.                 <div class=\"close\" title=\"Fermer\">X</div>
  265.             </div>
  266.         {% endfor %}
  267.     </div>
  268.     {% if is_granted(\"IS_AUTHENTICATED_REMEMBERED\") %}
  269.         <div id=\"container-header-user\">
  270.             <h2>{{ sonata_seo_title_text() }}</h2>
  271.             <div class=\"container-menu-user\">
  272.                 <div class=\"user-infos\" id=\"user-box\">
  273.                     <div class=\"container-icons\">
  274.                         <a class=\"left-menu-item\" href=\"{{ 'whiplay_user_likes'|ajax_path( { 'id' :  app.user.id }) }}\">
  275.                             <img alt=\"Mes favoris\" src=\"{{ global_url }}images/icons/heroicons/heart-primary-color.svg\" class=\"material-icons\">
  276.                         </a>
  277.                     </div>
  278.                     <div class=\"container-icons\">
  279.                         <a class=\"left-menu-item\" href=\"{{ 'whiplay_action_subscriptions'|ajax_path }}\">
  280.                             <img alt=\"Notification\" src=\"{{ global_url }}images/icons/heroicons/bell.svg\" class=\"material-icons\">
  281.                             <span class=\"notifications-number {{ user_notifications_number() ? '' : 'zero' }}\">{{ user_notifications_number() }}</span>
  282.                         </a>
  283.                     </div>
  284.                     <div class=\"container-user-picture\">
  285.                         <img class=\"user-profile-picture-img\"
  286.                                 {% if app.user.commonInformation.profilePicture %}
  287.                                     src=\"{{ app.user.commonInformation.profilePicture.webPath|imagine_filter('thumb30x30') }}\"
  288.                                     alt=\"{{ app.user.commonInformation.profilePicture.alt }}\"
  289.                                 {% else %}
  290.                                     id=\"left-menu-default-picture\"
  291.                                     src=\"{{ global_url }}images/icons/heroicons/user-circle.svg\"
  292.                                     alt=\"default profile picture\"
  293.                                     class=\"material-icons white\"
  294.                                 {% endif %}
  295.                         />
  296.                     </div>
  297.                     {# <span class=\"messages-number {{ user_messages_number() ? '' : 'zero' }}\">
  298.                         <i class=\"material-icons\">notifications_active</i>
  299.                     </span> #}
  300.                 </div>
  301.             </div>
  302.         </div>
  303.         {#USER SUBMENU #}
  304.         <div id=\"user-menu\">
  305.             <div class=\"return-menu-mobile\"><i class=\"material-icons\">arrow_back</i> Retour</div>
  306.             <a class=\"left-menu-item\" href=\"{{ 'user_profile_show'|ajax_path }}\">
  307.                 <div>{{ app.user.username }}</div>
  308.             </a>
  309.             <div class=\"separator\"></div>
  310.             <a class=\"left-menu-item\" href=\"{{ 'user_profile_edit'|ajax_path }}\">
  311.                 <div>{{ 'menu.user.edit_profile'|trans }}</div>
  312.             </a>
  313.             <a class=\"left-menu-item\" href=\"{{ 'whiplay_collaboration_show'|ajax_path }}\">
  314.                 <div>{{ 'menu.user.collaboration'|trans }}</div>
  315.             </a>
  316.             <div class=\"separator\"></div>
  317.             <a class=\"left-menu-item\" href=\"{{ 'whiplay_management_legal_notice'|ajax_path }}\">
  318.                 <div>{{ 'menu.global.about'|trans }}</div>
  319.             </a>
  320.             <a class=\"left-menu-item logout-link\" href=\"{{ path('app_logout') }}\"
  321.                title=\"{{ 'layout.logout'|trans({}, 'users') }}\">
  322.                 <div>{{ 'layout.logout'|trans({}, 'users') }}</div>
  323.             </a>
  324.         </div>
  325.     {% endif %}
  326. {% endblock %}
  327. ""layout.html.twig""/var/www/whiplay/whiplay/templates/layout.html.twig");
  328.     }
  329. }