var/cache/dev/twig/e1/e1d75bca7e7b84e459298ce3d66ff36f4344967dad978d4b983c94545e2084ec.php line 115

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. /* Profile/subscriptions.html.twig */
  14. class __TwigTemplate_c7f2c63ca105236dcd06dedf1671218be79564ca7ab63d2ae9df4b7ed923e3d2 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' => [$this'block_whiplay_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "Profile/layout.html.twig";
  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""Profile/subscriptions.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""Profile/subscriptions.html.twig"));
  38.         $this->parent $this->loadTemplate("Profile/layout.html.twig""Profile/subscriptions.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 2
  46.     public function block_whiplay_body($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""whiplay_body"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""whiplay_body"));
  53.         // line 3
  54.         echo "    <div class=\"fixed-menu-container\">
  55.         <div class=\"container-left-info-more\">
  56.             ";
  57.         // line 5
  58.         if ((=== twig_compare((isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'5$this->source); })()), 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.'5$this->source); })()), "user", [], "any"falsefalsefalse5)))) {
  59.             // line 6
  60.             echo "                <div class=\"edit-user-profile global-menu-left\">
  61.                     <a href=\"";
  62.             // line 7
  63.             echo twig_escape_filter($this->env$this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("user_profile_edit"), "html"nulltrue);
  64.             echo "\" class=\"btn\">";
  65.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("profile.show.edit"), "html"nulltrue);
  66.             echo "</a>
  67.                 </div>
  68.             ";
  69.         } elseif (twig_get_attribute($this->env$this->source,         // line 9
  70. (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'9$this->source); })()), "availableToCollaborate", [], "any"falsefalsefalse9)) {
  71.             // line 10
  72.             echo "                <span
  73.                         data-modal-id=\"contact-musician\"
  74.                         data-modal-options='{\"user-id\": ";
  75.             // line 12
  76.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'12$this->source); })()), "id", [], "any"falsefalsefalse12), "html"nulltrue);
  77.             echo "}'
  78.                         class=\"btn link-message\">
  79.                     <img alt=\"Contacter\" src=\"";
  80.             // line 14
  81.             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.'14$this->source); })()), "html"nulltrue);
  82.             echo "images/icons/heroicons/chat.svg\" class=\"material-icons white\">
  83.                     Contacter
  84.                 </span>
  85.             ";
  86.         }
  87.         // line 18
  88.         echo "
  89.             ";
  90.         // line 20
  91.         echo "            <div class=\"global-menu-left\">
  92.                 <div class=\"title-container-left-info-more\">
  93.                     <h3>Statistiques</h3>
  94.                 </div>
  95.                 <div class=\"txt-info-more\">
  96.                     ";
  97.         // line 25
  98.         $context["nbFollow"] = twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'25$this->source); })()), "subscribers", [], "any"falsefalsefalse25));
  99.         // line 26
  100.         echo "                    ";
  101.         $context["nbBandFollow"] = twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'26$this->source); })()), "bandsSubscriptions", [], "any"falsefalsefalse26));
  102.         // line 27
  103.         echo "                    ";
  104.         $context["nbUserFollow"] = twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'27$this->source); })()), "usersSubscriptions", [], "any"falsefalsefalse27));
  105.         // line 28
  106.         echo "                    <div>";
  107.         echo twig_escape_filter($this->env, (isset($context["nbUserFollow"]) || array_key_exists("nbUserFollow"$context) ? $context["nbUserFollow"] : (function () { throw new RuntimeError('Variable "nbUserFollow" does not exist.'28$this->source); })()), "html"nulltrue);
  108.         echo " abonnés</div>
  109.                     <div>";
  110.         // line 29
  111.         echo twig_escape_filter($this->env, (isset($context["nbFollow"]) || array_key_exists("nbFollow"$context) ? $context["nbFollow"] : (function () { throw new RuntimeError('Variable "nbFollow" does not exist.'29$this->source); })()), "html"nulltrue);
  112.         echo " utilisateurs suivis</div>
  113.                     <div>";
  114.         // line 30
  115.         echo twig_escape_filter($this->env, (isset($context["nbBandFollow"]) || array_key_exists("nbBandFollow"$context) ? $context["nbBandFollow"] : (function () { throw new RuntimeError('Variable "nbBandFollow" does not exist.'30$this->source); })()), "html"nulltrue);
  116.         echo " groupes suivis</div>
  117.                     <div>";
  118.         // line 31
  119.         echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'31$this->source); })()), "commonInformation", [], "any"falsefalsefalse31), "visits", [], "any"falsefalsefalse31)), "html"nulltrue);
  120.         echo " visites</div>
  121.                 </div>
  122.             </div>
  123.             ";
  124.         // line 36
  125.         echo "            ";
  126.         if ((!== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'36$this->source); })()), "bands", [], "any"falsefalsefalse36)), 0))) {
  127.             // line 37
  128.             echo "                <div class=\"global-menu-left\">
  129.                     <div class=\"title-container-left-info-more\">
  130.                         <h3>";
  131.             // line 39
  132.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("profile.show.bands"), "html"nulltrue);
  133.             echo "</h3>
  134.                     </div>
  135.                     ";
  136.             // line 41
  137.             $context['_parent'] = $context;
  138.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'41$this->source); })()), "publicBands", [], "any"falsefalsefalse41));
  139.             foreach ($context['_seq'] as $context["_key"] => $context["bandMember"]) {
  140.                 // line 42
  141.                 echo "                        <div class=\"container-txt-band-box-left\">
  142.                             <a href=\"";
  143.                 // line 43
  144.                 echo twig_escape_filter($this->env$this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("whiplay_band_files", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["bandMember"], "band", [], "any"falsefalsefalse43), "id", [], "any"falsefalsefalse43), "type" => twig_constant("App\\Constant\\FileTypeConstant::MUSIC")]), "html"nulltrue);
  145.                 echo "\">
  146.                                 ";
  147.                 // line 44
  148.                 if ( !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["bandMember"], "band", [], "any"falsefalsefalse44), "commonInformation", [], "any"falsefalsefalse44), "profilePicture", [], "any"falsefalsefalse44))) {
  149.                     // line 45
  150.                     echo "                                    <img alt=\"";
  151.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["bandMember"], "band", [], "any"falsefalsefalse45), "name", [], "any"falsefalsefalse45), "html"nulltrue);
  152.                     echo " profile picture\" class=\"picture-band-box-left-container\"
  153.                                          src=\"";
  154.                     // line 46
  155.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(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$context["bandMember"], "band", [], "any"falsefalsefalse46), "commonInformation", [], "any"falsefalsefalse46), "profilePicture", [], "any"falsefalsefalse46), "webPath", [], "any"falsefalsefalse46)), "html"nulltrue);
  156.                     echo "\"/>
  157.                                 ";
  158.                 } else {
  159.                     // line 48
  160.                     echo "                                    <img alt=\"default profile picture\" class=\"picture-band-box-left-container\"
  161.                                          src=\"";
  162.                     // line 49
  163.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/wallpapers/computer/register-user.jpg"), "html"nulltrue);
  164.                     echo "\"/>
  165.                                 ";
  166.                 }
  167.                 // line 51
  168.                 echo "                            </a>
  169.                             <div class=\"title-band-user-box-left\">
  170.                                 <a href=\"";
  171.                 // line 53
  172.                 echo twig_escape_filter($this->env$this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("whiplay_band_files", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["bandMember"], "band", [], "any"falsefalsefalse53), "id", [], "any"falsefalsefalse53), "type" => twig_constant("App\\Constant\\FileTypeConstant::MUSIC")]), "html"nulltrue);
  173.                 echo "\">
  174.                                     ";
  175.                 // line 54
  176.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["bandMember"], "band", [], "any"falsefalsefalse54), "name", [], "any"falsefalsefalse54), "html"nulltrue);
  177.                 echo "
  178.                                 </a>
  179.                             </div>
  180.                         </div>
  181.                     ";
  182.             }
  183.             $_parent $context['_parent'];
  184.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bandMember'], $context['_parent'], $context['loop']);
  185.             $context array_intersect_key($context$_parent) + $_parent;
  186.             // line 59
  187.             echo "                </div>
  188.             ";
  189.         }
  190.         // line 61
  191.         echo "        </div>
  192.     </div>
  193.     <div class=\"container-right-info\">
  194.         <div class=\"container-box-right-info\">
  195.             ";
  196.         // line 67
  197.         echo "            <div class=\"title-container-left-info-more\" style=\"border-bottom: 0;padding:0 10px 0 10px;\">
  198.                 <h3>";
  199.         // line 68
  200.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("profile.show.bandsSubscriptions"), "html"nulltrue);
  201.         echo "</h3>
  202.             </div>
  203.             <div class=\"container-band-user-info container-follow-info\">
  204.                 ";
  205.         // line 71
  206.         if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'71$this->source); })()), "bandsSubscriptions", [], "any"falsefalsefalse71)), 0))) {
  207.             // line 72
  208.             echo "                    Aucun abonnement à un groupe
  209.                 ";
  210.         }
  211.         // line 74
  212.         echo "
  213.                 ";
  214.         // line 75
  215.         $context['_parent'] = $context;
  216.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'75$this->source); })()), "bandsSubscriptions", [], "any"falsefalsefalse75));
  217.         foreach ($context['_seq'] as $context["_key"] => $context["followAction"]) {
  218.             // line 76
  219.             echo "                    <div class=\"content-boxes-container\" style=\" flex-direction: column;\">
  220.                         ";
  221.             // line 77
  222.             $context["band"] = twig_get_attribute($this->env$this->source$context["followAction"], "bandPeople", [], "any"falsefalsefalse77);
  223.             // line 78
  224.             echo "                        ";
  225.             if ( !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["band"]) || array_key_exists("band"$context) ? $context["band"] : (function () { throw new RuntimeError('Variable "band" does not exist.'78$this->source); })()), "commonInformation", [], "any"falsefalsefalse78), "profilePicture", [], "any"falsefalsefalse78))) {
  226.                 // line 79
  227.                 echo "                            <div class=\"picture\" style=\"background-image: url(";
  228.                 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->source, (isset($context["band"]) || array_key_exists("band"$context) ? $context["band"] : (function () { throw new RuntimeError('Variable "band" does not exist.'79$this->source); })()), "commonInformation", [], "any"falsefalsefalse79), "profilePicture", [], "any"falsefalsefalse79), "webPath", [], "any"falsefalsefalse79), "thumb150x150"), "html"nulltrue);
  229.                 echo ")\"></div>
  230.                         ";
  231.             } else {
  232.                 // line 81
  233.                 echo "                            <div class=\"picture\" style=\"background-image: url(";
  234.                 echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter("images/wallpapers/computer/register-user.jpg""thumb150x150"), "html"nulltrue);
  235.                 echo ")\"></div>
  236.                         ";
  237.             }
  238.             // line 83
  239.             echo "                            <span>";
  240.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["band"]) || array_key_exists("band"$context) ? $context["band"] : (function () { throw new RuntimeError('Variable "band" does not exist.'83$this->source); })()), "name", [], "any"falsefalsefalse83), "html"nulltrue);
  241.             echo "</span>
  242.                             <a href=\"";
  243.             // line 84
  244.             echo twig_escape_filter($this->env$this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("whiplay_band_files", ["id" => twig_get_attribute($this->env$this->source, (isset($context["band"]) || array_key_exists("band"$context) ? $context["band"] : (function () { throw new RuntimeError('Variable "band" does not exist.'84$this->source); })()), "id", [], "any"falsefalsefalse84), "type" => twig_constant("App\\Constant\\FileTypeConstant::MUSIC")]), "html"nulltrue);
  245.             echo "\"> Voir le profil </a>
  246.                     </div>
  247.                 ";
  248.         }
  249.         $_parent $context['_parent'];
  250.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['followAction'], $context['_parent'], $context['loop']);
  251.         $context array_intersect_key($context$_parent) + $_parent;
  252.         // line 87
  253.         echo "            </div>
  254.             ";
  255.         // line 90
  256.         echo "            <div class=\"title-container-left-info-more\" style=\"border-bottom: 0;padding:0 10px 0 10px;\">
  257.                 <h3>";
  258.         // line 91
  259.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("profile.show.usersSubscriptions"), "html"nulltrue);
  260.         echo "</h3>
  261.             </div>
  262.             <div class=\"container-band-user-info container-follow-info\">
  263.                 ";
  264.         // line 94
  265.         if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'94$this->source); })()), "usersSubscriptions", [], "any"falsefalsefalse94)), 0))) {
  266.             // line 95
  267.             echo "                    Aucun abonnement à un autre utilisateur
  268.                 ";
  269.         }
  270.         // line 97
  271.         echo "
  272.                 ";
  273.         // line 98
  274.         $context['_parent'] = $context;
  275.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'98$this->source); })()), "usersSubscriptions", [], "any"falsefalsefalse98));
  276.         $context['loop'] = [
  277.           'parent' => $context['_parent'],
  278.           'index0' => 0,
  279.           'index'  => 1,
  280.           'first'  => true,
  281.         ];
  282.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  283.             $length count($context['_seq']);
  284.             $context['loop']['revindex0'] = $length 1;
  285.             $context['loop']['revindex'] = $length;
  286.             $context['loop']['length'] = $length;
  287.             $context['loop']['last'] = === $length;
  288.         }
  289.         foreach ($context['_seq'] as $context["_key"] => $context["followAction"]) {
  290.             // line 99
  291.             echo "                    <div class=\"follow-container-user\">
  292.                         <div class=\"content-boxes-container\" style=\"flex-direction: column;\">
  293.                             ";
  294.             // line 101
  295.             $context["user"] = twig_get_attribute($this->env$this->source$context["followAction"], "userPeople", [], "any"falsefalsefalse101);
  296.             // line 102
  297.             echo "                            ";
  298.             $this->loadTemplate("Item/user.html.twig""Profile/subscriptions.html.twig"102)->display($context);
  299.             // line 103
  300.             echo "                        </div>
  301.                     </div>
  302.                 ";
  303.             ++$context['loop']['index0'];
  304.             ++$context['loop']['index'];
  305.             $context['loop']['first'] = false;
  306.             if (isset($context['loop']['length'])) {
  307.                 --$context['loop']['revindex0'];
  308.                 --$context['loop']['revindex'];
  309.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  310.             }
  311.         }
  312.         $_parent $context['_parent'];
  313.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['followAction'], $context['_parent'], $context['loop']);
  314.         $context array_intersect_key($context$_parent) + $_parent;
  315.         // line 106
  316.         echo "            </div>
  317.             <div class=\"separtor-info-profile-user\"></div>
  318.             ";
  319.         // line 109
  320.         echo "            <div class=\"title-container-left-info-more\" style=\"border-bottom: 0;padding:0 10px 0 10px;\">
  321.                 <h3>";
  322.         // line 110
  323.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("profile.show.followers"), "html"nulltrue);
  324.         echo "</h3>
  325.             </div>
  326.             <div class=\"container-band-user-info container-follow-info\">
  327.                 ";
  328.         // line 113
  329.         if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'113$this->source); })()), "subscribers", [], "any"falsefalsefalse113)), 0))) {
  330.             // line 114
  331.             echo "                    Aucun follower pour le moment
  332.                 ";
  333.         }
  334.         // line 116
  335.         echo "                ";
  336.         $context['_parent'] = $context;
  337.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'116$this->source); })()), "subscribers", [], "any"falsefalsefalse116));
  338.         $context['loop'] = [
  339.           'parent' => $context['_parent'],
  340.           'index0' => 0,
  341.           'index'  => 1,
  342.           'first'  => true,
  343.         ];
  344.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  345.             $length count($context['_seq']);
  346.             $context['loop']['revindex0'] = $length 1;
  347.             $context['loop']['revindex'] = $length;
  348.             $context['loop']['length'] = $length;
  349.             $context['loop']['last'] = === $length;
  350.         }
  351.         foreach ($context['_seq'] as $context["_key"] => $context["followAction"]) {
  352.             // line 117
  353.             echo "                    <div class=\"follow-container-user\">
  354.                         <div class=\"content-boxes-container\" style=\"flex-direction: column;\">
  355.                             ";
  356.             // line 119
  357.             $context["user"] = twig_get_attribute($this->env$this->source$context["followAction"], "user", [], "any"falsefalsefalse119);
  358.             // line 120
  359.             echo "                            ";
  360.             $this->loadTemplate("Item/user.html.twig""Profile/subscriptions.html.twig"120)->display($context);
  361.             // line 121
  362.             echo "                        </div>
  363.                     </div>
  364.                 ";
  365.             ++$context['loop']['index0'];
  366.             ++$context['loop']['index'];
  367.             $context['loop']['first'] = false;
  368.             if (isset($context['loop']['length'])) {
  369.                 --$context['loop']['revindex0'];
  370.                 --$context['loop']['revindex'];
  371.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  372.             }
  373.         }
  374.         $_parent $context['_parent'];
  375.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['followAction'], $context['_parent'], $context['loop']);
  376.         $context array_intersect_key($context$_parent) + $_parent;
  377.         // line 124
  378.         echo "            </div>
  379.             <div class=\"separtor-info-profile-user\"></div>
  380.         </div>
  381.     </div>
  382. ";
  383.         
  384.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  385.         
  386.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  387.     }
  388.     public function getTemplateName()
  389.     {
  390.         return "Profile/subscriptions.html.twig";
  391.     }
  392.     public function isTraitable()
  393.     {
  394.         return false;
  395.     }
  396.     public function getDebugInfo()
  397.     {
  398.         return array (  395 => 124,  379 => 121,  376 => 120,  374 => 119,  370 => 117,  352 => 116,  348 => 114,  346 => 113,  340 => 110,  337 => 109,  333 => 106,  317 => 103,  314 => 102,  312 => 101,  308 => 99,  291 => 98,  288 => 97,  284 => 95,  282 => 94,  276 => 91,  273 => 90,  269 => 87,  260 => 84,  255 => 83,  249 => 81,  243 => 79,  240 => 78,  238 => 77,  235 => 76,  231 => 75,  228 => 74,  224 => 72,  222 => 71,  216 => 68,  213 => 67,  206 => 61,  202 => 59,  191 => 54,  187 => 53,  183 => 51,  178 => 49,  175 => 48,  170 => 46,  165 => 45,  163 => 44,  159 => 43,  156 => 42,  152 => 41,  147 => 39,  143 => 37,  140 => 36,  133 => 31,  129 => 30,  125 => 29,  120 => 28,  117 => 27,  114 => 26,  112 => 25,  105 => 20,  102 => 18,  95 => 14,  90 => 12,  86 => 10,  84 => 9,  77 => 7,  74 => 6,  72 => 5,  68 => 3,  58 => 2,  35 => 1,);
  399.     }
  400.     public function getSourceContext()
  401.     {
  402.         return new Source("{% extends \"Profile/layout.html.twig\" %}
  403. {% block whiplay_body %}
  404.     <div class=\"fixed-menu-container\">
  405.         <div class=\"container-left-info-more\">
  406.             {% if profileUser == app.user %}
  407.                 <div class=\"edit-user-profile global-menu-left\">
  408.                     <a href=\"{{ 'user_profile_edit'|ajax_path }}\" class=\"btn\">{{ 'profile.show.edit'|trans }}</a>
  409.                 </div>
  410.             {% elseif profileUser.availableToCollaborate %}
  411.                 <span
  412.                         data-modal-id=\"contact-musician\"
  413.                         data-modal-options='{\"user-id\": {{ profileUser.id }}}'
  414.                         class=\"btn link-message\">
  415.                     <img alt=\"Contacter\" src=\"{{ global_url }}images/icons/heroicons/chat.svg\" class=\"material-icons white\">
  416.                     Contacter
  417.                 </span>
  418.             {% endif %}
  419.             {#STAT INFO FOLLOW#}
  420.             <div class=\"global-menu-left\">
  421.                 <div class=\"title-container-left-info-more\">
  422.                     <h3>Statistiques</h3>
  423.                 </div>
  424.                 <div class=\"txt-info-more\">
  425.                     {% set nbFollow = profileUser.subscribers|length %}
  426.                     {% set nbBandFollow = profileUser.bandsSubscriptions|length %}
  427.                     {% set nbUserFollow = profileUser.usersSubscriptions|length %}
  428.                     <div>{{ nbUserFollow }} abonnés</div>
  429.                     <div>{{ nbFollow }} utilisateurs suivis</div>
  430.                     <div>{{ nbBandFollow }} groupes suivis</div>
  431.                     <div>{{ profileUser.commonInformation.visits|length }} visites</div>
  432.                 </div>
  433.             </div>
  434.             {#BAND #}
  435.             {% if profileUser.bands|length != 0 %}
  436.                 <div class=\"global-menu-left\">
  437.                     <div class=\"title-container-left-info-more\">
  438.                         <h3>{{ 'profile.show.bands'|trans }}</h3>
  439.                     </div>
  440.                     {% for bandMember in profileUser.publicBands %}
  441.                         <div class=\"container-txt-band-box-left\">
  442.                             <a href=\"{{ 'whiplay_band_files'|ajax_path({ 'id' : bandMember.band.id, 'type' : constant('App\\\\Constant\\\\FileTypeConstant::MUSIC') }) }}\">
  443.                                 {% if not bandMember.band.commonInformation.profilePicture is null %}
  444.                                     <img alt=\"{{ bandMember.band.name }} profile picture\" class=\"picture-band-box-left-container\"
  445.                                          src=\"{{ asset(bandMember.band.commonInformation.profilePicture.webPath) }}\"/>
  446.                                 {% else %}
  447.                                     <img alt=\"default profile picture\" class=\"picture-band-box-left-container\"
  448.                                          src=\"{{ asset('images/wallpapers/computer/register-user.jpg') }}\"/>
  449.                                 {% endif %}
  450.                             </a>
  451.                             <div class=\"title-band-user-box-left\">
  452.                                 <a href=\"{{ 'whiplay_band_files'|ajax_path({ 'id' : bandMember.band.id, 'type' : constant('App\\\\Constant\\\\FileTypeConstant::MUSIC') }) }}\">
  453.                                     {{ bandMember.band.name }}
  454.                                 </a>
  455.                             </div>
  456.                         </div>
  457.                     {% endfor %}
  458.                 </div>
  459.             {% endif %}
  460.         </div>
  461.     </div>
  462.     <div class=\"container-right-info\">
  463.         <div class=\"container-box-right-info\">
  464.             {#VOS ABO GROUPE#}
  465.             <div class=\"title-container-left-info-more\" style=\"border-bottom: 0;padding:0 10px 0 10px;\">
  466.                 <h3>{{ 'profile.show.bandsSubscriptions'|trans }}</h3>
  467.             </div>
  468.             <div class=\"container-band-user-info container-follow-info\">
  469.                 {% if profileUser.bandsSubscriptions|length == 0 %}
  470.                     Aucun abonnement à un groupe
  471.                 {% endif %}
  472.                 {% for followAction in profileUser.bandsSubscriptions %}
  473.                     <div class=\"content-boxes-container\" style=\" flex-direction: column;\">
  474.                         {% set band = followAction.bandPeople %}
  475.                         {% if not band.commonInformation.profilePicture is null %}
  476.                             <div class=\"picture\" style=\"background-image: url({{ band.commonInformation.profilePicture.webPath|imagine_filter('thumb150x150') }})\"></div>
  477.                         {% else %}
  478.                             <div class=\"picture\" style=\"background-image: url({{ ('images/wallpapers/computer/register-user.jpg')|imagine_filter('thumb150x150') }})\"></div>
  479.                         {% endif %}
  480.                             <span>{{ band.name }}</span>
  481.                             <a href=\"{{ 'whiplay_band_files'|ajax_path({ 'id' : band.id, 'type' : constant('App\\\\Constant\\\\FileTypeConstant::MUSIC') }) }}\"> Voir le profil </a>
  482.                     </div>
  483.                 {% endfor %}
  484.             </div>
  485.             {#VOS ABO UTILISATEUR#}
  486.             <div class=\"title-container-left-info-more\" style=\"border-bottom: 0;padding:0 10px 0 10px;\">
  487.                 <h3>{{ 'profile.show.usersSubscriptions'|trans }}</h3>
  488.             </div>
  489.             <div class=\"container-band-user-info container-follow-info\">
  490.                 {% if profileUser.usersSubscriptions|length == 0 %}
  491.                     Aucun abonnement à un autre utilisateur
  492.                 {% endif %}
  493.                 {% for followAction in profileUser.usersSubscriptions %}
  494.                     <div class=\"follow-container-user\">
  495.                         <div class=\"content-boxes-container\" style=\"flex-direction: column;\">
  496.                             {% set user = followAction.userPeople  %}
  497.                             {% include 'Item/user.html.twig' %}
  498.                         </div>
  499.                     </div>
  500.                 {% endfor %}
  501.             </div>
  502.             <div class=\"separtor-info-profile-user\"></div>
  503.             {# ILS VOUS SUIVENT #}
  504.             <div class=\"title-container-left-info-more\" style=\"border-bottom: 0;padding:0 10px 0 10px;\">
  505.                 <h3>{{ 'profile.show.followers'|trans }}</h3>
  506.             </div>
  507.             <div class=\"container-band-user-info container-follow-info\">
  508.                 {% if profileUser.subscribers|length == 0 %}
  509.                     Aucun follower pour le moment
  510.                 {% endif %}
  511.                 {% for followAction in profileUser.subscribers %}
  512.                     <div class=\"follow-container-user\">
  513.                         <div class=\"content-boxes-container\" style=\"flex-direction: column;\">
  514.                             {% set user = followAction.user  %}
  515.                             {% include 'Item/user.html.twig' %}
  516.                         </div>
  517.                     </div>
  518.                 {% endfor %}
  519.             </div>
  520.             <div class=\"separtor-info-profile-user\"></div>
  521.         </div>
  522.     </div>
  523. {% endblock %}
  524. ""Profile/subscriptions.html.twig""/var/www/whiplay/whiplay/templates/Profile/subscriptions.html.twig");
  525.     }
  526. }