var/cache/dev/twig/d7/d7b97919baeec4f4e4d5f7eef62296ecfd1a1f482333ef8b9b964948ed500e25.php line 49

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/layout.html.twig */
  14. class __TwigTemplate_78a01c16d389cd960ac8ae1ebaba2d35647aa530034ec4d5d510f6147c3ba42c 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.             'whiplay_body_footer' => [$this'block_whiplay_body_footer'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "layout.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Profile/layout.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Profile/layout.html.twig"));
  39.         $this->parent $this->loadTemplate("layout.html.twig""Profile/layout.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_whiplay_body_head($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""whiplay_body_head"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""whiplay_body_head"));
  54.         // line 4
  55.         echo "    ";
  56.         $this->displayParentBlock("whiplay_body_head"$context$blocks);
  57.         echo "
  58.     ";
  59.         // line 6
  60.         $this->loadTemplate("Modal/contact-musician.html.twig""Profile/layout.html.twig"6)->display($context);
  61.         // line 7
  62.         echo "
  63.     ";
  64.         // line 8
  65.         $context["headerStyle"] = "";
  66.         // line 9
  67.         echo "    ";
  68.         if (twig_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.'9$this->source); })()), "commonInformation", [], "any"falsefalsefalse9), "coverPicture", [], "any"falsefalsefalse9)) {
  69.             // line 10
  70.             echo "        ";
  71.             ob_start();
  72.             // line 11
  73.             echo "            style=\"background-image: url('";
  74.             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->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'11$this->source); })()), "commonInformation", [], "any"falsefalsefalse11), "coverPicture", [], "any"falsefalsefalse11), "webPath", [], "any"falsefalsefalse11)), "html"nulltrue);
  75.             echo "')\"
  76.         ";
  77.             $context["headerStyle"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  78.             // line 13
  79.             echo "    ";
  80.         } else {
  81.             // line 14
  82.             echo "        ";
  83.             ob_start();
  84.             // line 15
  85.             echo "            style=\"background-image: url('";
  86.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["no_picture_cover_user_path"]) || array_key_exists("no_picture_cover_user_path"$context) ? $context["no_picture_cover_user_path"] : (function () { throw new RuntimeError('Variable "no_picture_cover_user_path" does not exist.'15$this->source); })())), "html"nulltrue);
  87.             echo "')\"
  88.         ";
  89.             $context["headerStyle"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  90.             // line 17
  91.             echo "    ";
  92.         }
  93.         // line 18
  94.         echo "
  95.     <div id=\"croppie-container\">
  96.         <div class=\"croppie-container\">
  97.         </div>
  98.         <input type=\"button\" data-crop-route=\"";
  99.         // line 22
  100.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("whiplay_upload_picture");
  101.         echo "\" class=\"valid-crop-button btn\" value=\"Valider\"/>
  102.     </div>
  103.     <div class=\"profile-header\" ";
  104.         // line 25
  105.         echo twig_escape_filter($this->env, (isset($context["headerStyle"]) || array_key_exists("headerStyle"$context) ? $context["headerStyle"] : (function () { throw new RuntimeError('Variable "headerStyle" does not exist.'25$this->source); })()), "html"nulltrue);
  106.         echo ">
  107.         <div class=\"profile-header-left ";
  108.         // line 26
  109.         if ((=== twig_compare((isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'26$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.'26$this->source); })()), "user", [], "any"falsefalsefalse26)))) {
  110.             echo "self-profile";
  111.         }
  112.         echo "\">
  113.             ";
  114.         // line 28
  115.         echo "            <div class=\"user-profile-picture-container\">
  116.                  <div class=\"my-gallery\" data-pswp-uid=\"1\">
  117.                     <figure itemprop=\"associatedMedia\">
  118.                         <a itemprop=\"contentUrl\" data-size=\"1000x950\" title=\"Cliquez pour consulter l'image en plein écran\"
  119.                            href=\"";
  120.         // line 32
  121.         if (twig_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.'32$this->source); })()), "commonInformation", [], "any"falsefalsefalse32), "profilePicture", [], "any"falsefalsefalse32)) {
  122.             // line 33
  123.             echo "                                    ";
  124.             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->source, (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'33$this->source); })()), "commonInformation", [], "any"falsefalsefalse33), "profilePicture", [], "any"falsefalsefalse33), "webPath", [], "any"falsefalsefalse33)), "html"nulltrue);
  125.             echo "
  126.                                 ";
  127.         } else {
  128.             // line 35
  129.             echo "                                    ";
  130.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["no_picture_img_path"]) || array_key_exists("no_picture_img_path"$context) ? $context["no_picture_img_path"] : (function () { throw new RuntimeError('Variable "no_picture_img_path" does not exist.'35$this->source); })())), "html"nulltrue);
  131.             echo "
  132.                                 ";
  133.         }
  134.         // line 36
  135.         echo "\"
  136.                         >
  137.                             <img class=\"user-profile-picture-img\"
  138.                                 ";
  139.         // line 39
  140.         if (((=== twig_compare(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.'39$this->source); })()), "id", [], "any"falsefalsefalse39), "1")) || (=== twig_compare(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.'39$this->source); })()), "id", [], "any"falsefalsefalse39), "2")))) {
  141.             // line 40
  142.             echo "                                    style=\"border: 4px solid rgb(70, 82, 176);\"
  143.                                 ";
  144.         } elseif (((=== twig_compare(twig_get_attribute($this->env$this->source,         // line 41
  145. (isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'41$this->source); })()), "id", [], "any"falsefalsefalse41), "3")) || (=== twig_compare(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); })()), "id", [], "any"falsefalsefalse41), "4")))) {
  146.             // line 42
  147.             echo "                                    style=\"border: 4px solid rgb(74,82,158);\"
  148.                                 ";
  149.         }
  150.         // line 44
  151.         echo "                                ";
  152.         if (twig_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.'44$this->source); })()), "commonInformation", [], "any"falsefalsefalse44), "profilePicture", [], "any"falsefalsefalse44)) {
  153.             // line 45
  154.             echo "                                    src=\"";
  155.             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["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'45$this->source); })()), "commonInformation", [], "any"falsefalsefalse45), "profilePicture", [], "any"falsefalsefalse45), "webPath", [], "any"falsefalsefalse45), "profile_head_thumb"), "html"nulltrue);
  156.             echo "\"
  157.                                     alt=\"";
  158.             // line 46
  159.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'46$this->source); })()), "commonInformation", [], "any"falsefalsefalse46), "profilePicture", [], "any"falsefalsefalse46), "alt", [], "any"falsefalsefalse46), "html"nulltrue);
  160.             echo "\"
  161.                                 ";
  162.         } else {
  163.             // line 48
  164.             echo "                                    src=\"";
  165.             echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter((isset($context["no_picture_img_path"]) || array_key_exists("no_picture_img_path"$context) ? $context["no_picture_img_path"] : (function () { throw new RuntimeError('Variable "no_picture_img_path" does not exist.'48$this->source); })()), "profile_head_thumb"), "html"nulltrue);
  166.             echo "\"
  167.                                     alt=\"default profile picture\"
  168.                                 ";
  169.         }
  170.         // line 51
  171.         echo "                            />
  172.                         </a>
  173.                     </figure>
  174.                  </div>
  175.                 ";
  176.         // line 57
  177.         echo "                ";
  178.         if ((=== twig_compare((isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'57$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.'57$this->source); })()), "user", [], "any"falsefalsefalse57)))) {
  179.             // line 58
  180.             echo "                    <div class=\"upload-picture-container profile-picture-container\">
  181.                         <div class=\"progress-bar\">
  182.                             <div class=\"progress-bar-value\"></div>
  183.                         </div>
  184.                         <div class=\"error-div\"></div>
  185.                         <i class=\"material-icons\">add_a_photo</i>
  186.                         <label for=\"profile-picture-input\">
  187.                             Modifier
  188.                         </label>
  189.                         <input data-image-name=\"userProfile\" data-entity-id=\"";
  190.             // line 67
  191.             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.'67$this->source); })()), "id", [], "any"falsefalsefalse67), "html"nulltrue);
  192.             echo "\" id=\"profile-picture-input\" class=\"upload-picture-button\" type=\"file\"/>
  193.                     </div>
  194.                 ";
  195.         } else {
  196.             // line 70
  197.             echo "                    <form data-push-state=\"false\" action=\"";
  198.             echo twig_escape_filter($this->env$this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("user_profile_follow"), "html"nulltrue);
  199.             echo "\" class=\"form-follow-user\">
  200.                         <input type=\"hidden\" name=\"user_source\" value=\"";
  201.             // line 71
  202.             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.'71$this->source); })()), "id", [], "any"falsefalsefalse71), "html"nulltrue);
  203.             echo "\"/>
  204.                         ";
  205.             // line 72
  206.             if ($this->extensions['App\Extensions\UtilsExtension']->currentUserIsFollowingUser((isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'72$this->source); })()))) {
  207.                 // line 73
  208.                 echo "                            <input class=\"unsubscribe\" type=\"submit\" value=\"Se désabonner\"/>
  209.                         ";
  210.             } else {
  211.                 // line 75
  212.                 echo "                            <input type=\"submit\" value=\"Suivre\"/>
  213.                         ";
  214.             }
  215.             // line 77
  216.             echo "                    </form>
  217.                 ";
  218.         }
  219.         // line 79
  220.         echo "            </div>
  221.             <div class=\"profile-name-container\">
  222.                 <h1>";
  223.         // line 81
  224.         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.'81$this->source); })()), "username", [], "any"falsefalsefalse81), "html"nulltrue);
  225.         echo "</h1>
  226.             </div>
  227.         </div>
  228.         ";
  229.         // line 86
  230.         echo "        ";
  231.         if ((=== twig_compare((isset($context["profileUser"]) || array_key_exists("profileUser"$context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.'86$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.'86$this->source); })()), "user", [], "any"falsefalsefalse86)))) {
  232.             // line 87
  233.             echo "            <div class=\"upload-picture-container\">
  234.                 <div class=\"progress-bar\">
  235.                     <div class=\"progress-bar-value\"></div>
  236.                 </div>
  237.                 <div class=\"error-div\"></div>
  238.                 <label for=\"cover-picture-input\">
  239.                     Modifier la photo de couverture
  240.                 </label>
  241.                 <i class=\"material-icons\">add_a_photo</i>
  242.                 <input data-image-name=\"userCover\" data-entity-id=\"";
  243.             // line 96
  244.             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.'96$this->source); })()), "id", [], "any"falsefalsefalse96), "html"nulltrue);
  245.             echo "\" id=\"cover-picture-input\" class=\"upload-picture-button\" type=\"file\"/>
  246.             </div>
  247.         ";
  248.         }
  249.         // line 99
  250.         echo "    </div>
  251.     <nav class=\"actions-links";
  252.         // line 101
  253.         if ((=== twig_compare(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.'101$this->source); })()), "request", [], "any"falsefalsefalse101), "get", [=> "_route"], "method"falsefalsefalse101), "user_profile_edit"))) {
  254.             echo " hidden-box-container";
  255.         }
  256.         echo "\">
  257.         ";
  258.         // line 102
  259.         $context["menuRoutes"] = [=> ["route" => "user_profile_show""label" => "Accueil"], => ["route" => "whiplay_user_likes""label" => "Favoris"], => ["route" => "whiplay_user_subscriptions""label" => "Abonnements"], => ["route" => "whiplay_action_user""label" => "Actualités"]];
  260.         // line 108
  261.         echo "        ";
  262.         $context['_parent'] = $context;
  263.         $context['_seq'] = twig_ensure_traversable((isset($context["menuRoutes"]) || array_key_exists("menuRoutes"$context) ? $context["menuRoutes"] : (function () { throw new RuntimeError('Variable "menuRoutes" does not exist.'108$this->source); })()));
  264.         foreach ($context['_seq'] as $context["_key"] => $context["route"]) {
  265.             // line 109
  266.             echo "            ";
  267.             $context["attr"] = (((=== twig_compare(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.'109$this->source); })()), "request", [], "any"falsefalsefalse109), "get", [=> "_route"], "method"falsefalsefalse109), twig_get_attribute($this->env$this->source$context["route"], "route", [], "any"falsefalsefalse109)))) ? ("class=active") : (""));
  268.             // line 110
  269.             echo "            <a ";
  270.             echo twig_escape_filter($this->env, (isset($context["attr"]) || array_key_exists("attr"$context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.'110$this->source); })()), "html"nulltrue);
  271.             echo " href=\"";
  272.             echo twig_escape_filter($this->env$this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath(twig_get_attribute($this->env$this->source$context["route"], "route", [], "any"falsefalsefalse110), ["id" => 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.'110$this->source); })()), "id", [], "any"falsefalsefalse110)]), "html"nulltrue);
  273.             echo "\">";
  274.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["route"], "label", [], "any"falsefalsefalse110), "html"nulltrue);
  275.             echo "</a>
  276.         ";
  277.         }
  278.         $_parent $context['_parent'];
  279.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['route'], $context['_parent'], $context['loop']);
  280.         $context array_intersect_key($context$_parent) + $_parent;
  281.         // line 112
  282.         echo "    </nav>
  283.     <div class=\"container row profile-container\">
  284. ";
  285.         
  286.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  287.         
  288.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  289.     }
  290.     // line 117
  291.     public function block_whiplay_body_footer($context, array $blocks = [])
  292.     {
  293.         $macros $this->macros;
  294.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  295.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""whiplay_body_footer"));
  296.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  297.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""whiplay_body_footer"));
  298.         // line 118
  299.         echo "    </div>
  300. ";
  301.         
  302.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  303.         
  304.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  305.     }
  306.     public function getTemplateName()
  307.     {
  308.         return "Profile/layout.html.twig";
  309.     }
  310.     public function isTraitable()
  311.     {
  312.         return false;
  313.     }
  314.     public function getDebugInfo()
  315.     {
  316.         return array (  324 => 118,  314 => 117,  301 => 112,  288 => 110,  285 => 109,  280 => 108,  278 => 102,  272 => 101,  268 => 99,  262 => 96,  251 => 87,  248 => 86,  241 => 81,  237 => 79,  233 => 77,  229 => 75,  225 => 73,  223 => 72,  219 => 71,  214 => 70,  208 => 67,  197 => 58,  194 => 57,  187 => 51,  180 => 48,  175 => 46,  170 => 45,  167 => 44,  163 => 42,  161 => 41,  158 => 40,  156 => 39,  151 => 36,  145 => 35,  139 => 33,  137 => 32,  131 => 28,  125 => 26,  121 => 25,  115 => 22,  109 => 18,  106 => 17,  100 => 15,  97 => 14,  94 => 13,  88 => 11,  85 => 10,  82 => 9,  80 => 8,  77 => 7,  75 => 6,  69 => 4,  59 => 3,  36 => 1,);
  317.     }
  318.     public function getSourceContext()
  319.     {
  320.         return new Source("{% extends \"layout.html.twig\" %}
  321. {% block whiplay_body_head %}
  322.     {{ parent() }}
  323.     {% include 'Modal/contact-musician.html.twig' %}
  324.     {% set headerStyle='' %}
  325.     {% if profileUser.commonInformation.coverPicture %}
  326.         {% set headerStyle %}
  327.             style=\"background-image: url('{{ asset(profileUser.commonInformation.coverPicture.webPath) }}')\"
  328.         {% endset %}
  329.     {% else %}
  330.         {% set headerStyle %}
  331.             style=\"background-image: url('{{ asset(no_picture_cover_user_path) }}')\"
  332.         {% endset %}
  333.     {% endif %}
  334.     <div id=\"croppie-container\">
  335.         <div class=\"croppie-container\">
  336.         </div>
  337.         <input type=\"button\" data-crop-route=\"{{ path('whiplay_upload_picture') }}\" class=\"valid-crop-button btn\" value=\"Valider\"/>
  338.     </div>
  339.     <div class=\"profile-header\" {{ headerStyle }}>
  340.         <div class=\"profile-header-left {% if profileUser == app.user %}self-profile{% endif %}\">
  341.             {# Profile Picture #}
  342.             <div class=\"user-profile-picture-container\">
  343.                  <div class=\"my-gallery\" data-pswp-uid=\"1\">
  344.                     <figure itemprop=\"associatedMedia\">
  345.                         <a itemprop=\"contentUrl\" data-size=\"1000x950\" title=\"Cliquez pour consulter l'image en plein écran\"
  346.                            href=\"{% if profileUser.commonInformation.profilePicture %}
  347.                                     {{ asset(profileUser.commonInformation.profilePicture.webPath) }}
  348.                                 {% else %}
  349.                                     {{asset(no_picture_img_path) }}
  350.                                 {% endif %}\"
  351.                         >
  352.                             <img class=\"user-profile-picture-img\"
  353.                                 {% if profileUser.id == '1' or profileUser.id == '2'%}
  354.                                     style=\"border: 4px solid rgb(70, 82, 176);\"
  355.                                 {% elseif profileUser.id == '3' or profileUser.id == '4' %}
  356.                                     style=\"border: 4px solid rgb(74,82,158);\"
  357.                                 {% endif %}
  358.                                 {% if profileUser.commonInformation.profilePicture %}
  359.                                     src=\"{{ profileUser.commonInformation.profilePicture.webPath | imagine_filter('profile_head_thumb') }}\"
  360.                                     alt=\"{{ profileUser.commonInformation.profilePicture.alt }}\"
  361.                                 {% else %}
  362.                                     src=\"{{ no_picture_img_path | imagine_filter('profile_head_thumb') }}\"
  363.                                     alt=\"default profile picture\"
  364.                                 {% endif %}
  365.                             />
  366.                         </a>
  367.                     </figure>
  368.                  </div>
  369.                 {# Profile Picture edition #}
  370.                 {% if profileUser == app.user %}
  371.                     <div class=\"upload-picture-container profile-picture-container\">
  372.                         <div class=\"progress-bar\">
  373.                             <div class=\"progress-bar-value\"></div>
  374.                         </div>
  375.                         <div class=\"error-div\"></div>
  376.                         <i class=\"material-icons\">add_a_photo</i>
  377.                         <label for=\"profile-picture-input\">
  378.                             Modifier
  379.                         </label>
  380.                         <input data-image-name=\"userProfile\" data-entity-id=\"{{ profileUser.id }}\" id=\"profile-picture-input\" class=\"upload-picture-button\" type=\"file\"/>
  381.                     </div>
  382.                 {% else %}
  383.                     <form data-push-state=\"false\" action=\"{{ 'user_profile_follow'|ajax_path }}\" class=\"form-follow-user\">
  384.                         <input type=\"hidden\" name=\"user_source\" value=\"{{ profileUser.id }}\"/>
  385.                         {% if current_user_is_following_user(profileUser) %}
  386.                             <input class=\"unsubscribe\" type=\"submit\" value=\"Se désabonner\"/>
  387.                         {% else %}
  388.                             <input type=\"submit\" value=\"Suivre\"/>
  389.                         {% endif %}
  390.                     </form>
  391.                 {% endif %}
  392.             </div>
  393.             <div class=\"profile-name-container\">
  394.                 <h1>{{ profileUser.username }}</h1>
  395.             </div>
  396.         </div>
  397.         {# Cover Picture edition #}
  398.         {% if profileUser == app.user %}
  399.             <div class=\"upload-picture-container\">
  400.                 <div class=\"progress-bar\">
  401.                     <div class=\"progress-bar-value\"></div>
  402.                 </div>
  403.                 <div class=\"error-div\"></div>
  404.                 <label for=\"cover-picture-input\">
  405.                     Modifier la photo de couverture
  406.                 </label>
  407.                 <i class=\"material-icons\">add_a_photo</i>
  408.                 <input data-image-name=\"userCover\" data-entity-id=\"{{ profileUser.id }}\" id=\"cover-picture-input\" class=\"upload-picture-button\" type=\"file\"/>
  409.             </div>
  410.         {% endif %}
  411.     </div>
  412.     <nav class=\"actions-links{% if app.request.get('_route') == 'user_profile_edit' %} hidden-box-container{% endif %}\">
  413.         {% set menuRoutes = {
  414.             0 : { 'route' : 'user_profile_show', 'label' :  'Accueil' },
  415.             1 : { 'route' : 'whiplay_user_likes', 'label' :  'Favoris' },
  416.             2 : { 'route' : 'whiplay_user_subscriptions', 'label' :  'Abonnements' },
  417.             3 : { 'route' : 'whiplay_action_user', 'label' :  'Actualités' }
  418.         } %}
  419.         {% for route in menuRoutes %}
  420.             {% set attr = app.request.get('_route') == route.route ? \"class=active\" : '' %}
  421.             <a {{ attr }} href=\"{{ route.route|ajax_path({ 'id' : profileUser.id }) }}\">{{ route.label }}</a>
  422.         {% endfor %}
  423.     </nav>
  424.     <div class=\"container row profile-container\">
  425. {% endblock %}
  426. {% block whiplay_body_footer %}
  427.     </div>
  428. {% endblock %}
  429. ""Profile/layout.html.twig""/var/www/whiplay/whiplay/templates/Profile/layout.html.twig");
  430.     }
  431. }