<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Profile/layout.html.twig */
class __TwigTemplate_78a01c16d389cd960ac8ae1ebaba2d35647aa530034ec4d5d510f6147c3ba42c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'whiplay_body_head' => [$this, 'block_whiplay_body_head'],
'whiplay_body_footer' => [$this, 'block_whiplay_body_footer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Profile/layout.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Profile/layout.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "Profile/layout.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_whiplay_body_head($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "whiplay_body_head"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "whiplay_body_head"));
// line 4
echo " ";
$this->displayParentBlock("whiplay_body_head", $context, $blocks);
echo "
";
// line 6
$this->loadTemplate("Modal/contact-musician.html.twig", "Profile/layout.html.twig", 6)->display($context);
// line 7
echo "
";
// line 8
$context["headerStyle"] = "";
// line 9
echo " ";
if (twig_get_attribute($this->env, $this->source, 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.', 9, $this->source); })()), "commonInformation", [], "any", false, false, false, 9), "coverPicture", [], "any", false, false, false, 9)) {
// line 10
echo " ";
ob_start();
// line 11
echo " style=\"background-image: url('";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 11, $this->source); })()), "commonInformation", [], "any", false, false, false, 11), "coverPicture", [], "any", false, false, false, 11), "webPath", [], "any", false, false, false, 11)), "html", null, true);
echo "')\"
";
$context["headerStyle"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 13
echo " ";
} else {
// line 14
echo " ";
ob_start();
// line 15
echo " style=\"background-image: url('";
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", null, true);
echo "')\"
";
$context["headerStyle"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 17
echo " ";
}
// line 18
echo "
<div id=\"croppie-container\">
<div class=\"croppie-container\">
</div>
<input type=\"button\" data-crop-route=\"";
// line 22
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("whiplay_upload_picture");
echo "\" class=\"valid-crop-button btn\" value=\"Valider\"/>
</div>
<div class=\"profile-header\" ";
// line 25
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", null, true);
echo ">
<div class=\"profile-header-left ";
// line 26
if ((0 === 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", false, false, false, 26)))) {
echo "self-profile";
}
echo "\">
";
// line 28
echo " <div class=\"user-profile-picture-container\">
<div class=\"my-gallery\" data-pswp-uid=\"1\">
<figure itemprop=\"associatedMedia\">
<a itemprop=\"contentUrl\" data-size=\"1000x950\" title=\"Cliquez pour consulter l'image en plein écran\"
href=\"";
// line 32
if (twig_get_attribute($this->env, $this->source, 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.', 32, $this->source); })()), "commonInformation", [], "any", false, false, false, 32), "profilePicture", [], "any", false, false, false, 32)) {
// line 33
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 33, $this->source); })()), "commonInformation", [], "any", false, false, false, 33), "profilePicture", [], "any", false, false, false, 33), "webPath", [], "any", false, false, false, 33)), "html", null, true);
echo "
";
} else {
// line 35
echo " ";
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", null, true);
echo "
";
}
// line 36
echo "\"
>
<img class=\"user-profile-picture-img\"
";
// line 39
if (((0 === 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", false, false, false, 39), "1")) || (0 === 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", false, false, false, 39), "2")))) {
// line 40
echo " style=\"border: 4px solid rgb(70, 82, 176);\"
";
} elseif (((0 === twig_compare(twig_get_attribute($this->env, $this->source, // line 41
(isset($context["profileUser"]) || array_key_exists("profileUser", $context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.', 41, $this->source); })()), "id", [], "any", false, false, false, 41), "3")) || (0 === 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", false, false, false, 41), "4")))) {
// line 42
echo " style=\"border: 4px solid rgb(74,82,158);\"
";
}
// line 44
echo " ";
if (twig_get_attribute($this->env, $this->source, 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.', 44, $this->source); })()), "commonInformation", [], "any", false, false, false, 44), "profilePicture", [], "any", false, false, false, 44)) {
// line 45
echo " src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 45, $this->source); })()), "commonInformation", [], "any", false, false, false, 45), "profilePicture", [], "any", false, false, false, 45), "webPath", [], "any", false, false, false, 45), "profile_head_thumb"), "html", null, true);
echo "\"
alt=\"";
// line 46
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 46, $this->source); })()), "commonInformation", [], "any", false, false, false, 46), "profilePicture", [], "any", false, false, false, 46), "alt", [], "any", false, false, false, 46), "html", null, true);
echo "\"
";
} else {
// line 48
echo " src=\"";
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", null, true);
echo "\"
alt=\"default profile picture\"
";
}
// line 51
echo " />
</a>
</figure>
</div>
";
// line 57
echo " ";
if ((0 === 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", false, false, false, 57)))) {
// line 58
echo " <div class=\"upload-picture-container profile-picture-container\">
<div class=\"progress-bar\">
<div class=\"progress-bar-value\"></div>
</div>
<div class=\"error-div\"></div>
<i class=\"material-icons\">add_a_photo</i>
<label for=\"profile-picture-input\">
Modifier
</label>
<input data-image-name=\"userProfile\" data-entity-id=\"";
// line 67
echo twig_escape_filter($this->env, 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.', 67, $this->source); })()), "id", [], "any", false, false, false, 67), "html", null, true);
echo "\" id=\"profile-picture-input\" class=\"upload-picture-button\" type=\"file\"/>
</div>
";
} else {
// line 70
echo " <form data-push-state=\"false\" action=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("user_profile_follow"), "html", null, true);
echo "\" class=\"form-follow-user\">
<input type=\"hidden\" name=\"user_source\" value=\"";
// line 71
echo twig_escape_filter($this->env, 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.', 71, $this->source); })()), "id", [], "any", false, false, false, 71), "html", null, true);
echo "\"/>
";
// line 72
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); })()))) {
// line 73
echo " <input class=\"unsubscribe\" type=\"submit\" value=\"Se désabonner\"/>
";
} else {
// line 75
echo " <input type=\"submit\" value=\"Suivre\"/>
";
}
// line 77
echo " </form>
";
}
// line 79
echo " </div>
<div class=\"profile-name-container\">
<h1>";
// line 81
echo twig_escape_filter($this->env, 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.', 81, $this->source); })()), "username", [], "any", false, false, false, 81), "html", null, true);
echo "</h1>
</div>
</div>
";
// line 86
echo " ";
if ((0 === 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", false, false, false, 86)))) {
// line 87
echo " <div class=\"upload-picture-container\">
<div class=\"progress-bar\">
<div class=\"progress-bar-value\"></div>
</div>
<div class=\"error-div\"></div>
<label for=\"cover-picture-input\">
Modifier la photo de couverture
</label>
<i class=\"material-icons\">add_a_photo</i>
<input data-image-name=\"userCover\" data-entity-id=\"";
// line 96
echo twig_escape_filter($this->env, 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.', 96, $this->source); })()), "id", [], "any", false, false, false, 96), "html", null, true);
echo "\" id=\"cover-picture-input\" class=\"upload-picture-button\" type=\"file\"/>
</div>
";
}
// line 99
echo " </div>
<nav class=\"actions-links";
// line 101
if ((0 === twig_compare(twig_get_attribute($this->env, $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.', 101, $this->source); })()), "request", [], "any", false, false, false, 101), "get", [0 => "_route"], "method", false, false, false, 101), "user_profile_edit"))) {
echo " hidden-box-container";
}
echo "\">
";
// line 102
$context["menuRoutes"] = [0 => ["route" => "user_profile_show", "label" => "Accueil"], 1 => ["route" => "whiplay_user_likes", "label" => "Favoris"], 2 => ["route" => "whiplay_user_subscriptions", "label" => "Abonnements"], 3 => ["route" => "whiplay_action_user", "label" => "Actualités"]];
// line 108
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["route"]) {
// line 109
echo " ";
$context["attr"] = (((0 === twig_compare(twig_get_attribute($this->env, $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.', 109, $this->source); })()), "request", [], "any", false, false, false, 109), "get", [0 => "_route"], "method", false, false, false, 109), twig_get_attribute($this->env, $this->source, $context["route"], "route", [], "any", false, false, false, 109)))) ? ("class=active") : (""));
// line 110
echo " <a ";
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", null, true);
echo " href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath(twig_get_attribute($this->env, $this->source, $context["route"], "route", [], "any", false, false, false, 110), ["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", false, false, false, 110)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["route"], "label", [], "any", false, false, false, 110), "html", null, true);
echo "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['route'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 112
echo " </nav>
<div class=\"container row profile-container\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 117
public function block_whiplay_body_footer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "whiplay_body_footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "whiplay_body_footer"));
// line 118
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Profile/layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"layout.html.twig\" %}
{% block whiplay_body_head %}
{{ parent() }}
{% include 'Modal/contact-musician.html.twig' %}
{% set headerStyle='' %}
{% if profileUser.commonInformation.coverPicture %}
{% set headerStyle %}
style=\"background-image: url('{{ asset(profileUser.commonInformation.coverPicture.webPath) }}')\"
{% endset %}
{% else %}
{% set headerStyle %}
style=\"background-image: url('{{ asset(no_picture_cover_user_path) }}')\"
{% endset %}
{% endif %}
<div id=\"croppie-container\">
<div class=\"croppie-container\">
</div>
<input type=\"button\" data-crop-route=\"{{ path('whiplay_upload_picture') }}\" class=\"valid-crop-button btn\" value=\"Valider\"/>
</div>
<div class=\"profile-header\" {{ headerStyle }}>
<div class=\"profile-header-left {% if profileUser == app.user %}self-profile{% endif %}\">
{# Profile Picture #}
<div class=\"user-profile-picture-container\">
<div class=\"my-gallery\" data-pswp-uid=\"1\">
<figure itemprop=\"associatedMedia\">
<a itemprop=\"contentUrl\" data-size=\"1000x950\" title=\"Cliquez pour consulter l'image en plein écran\"
href=\"{% if profileUser.commonInformation.profilePicture %}
{{ asset(profileUser.commonInformation.profilePicture.webPath) }}
{% else %}
{{asset(no_picture_img_path) }}
{% endif %}\"
>
<img class=\"user-profile-picture-img\"
{% if profileUser.id == '1' or profileUser.id == '2'%}
style=\"border: 4px solid rgb(70, 82, 176);\"
{% elseif profileUser.id == '3' or profileUser.id == '4' %}
style=\"border: 4px solid rgb(74,82,158);\"
{% endif %}
{% if profileUser.commonInformation.profilePicture %}
src=\"{{ profileUser.commonInformation.profilePicture.webPath | imagine_filter('profile_head_thumb') }}\"
alt=\"{{ profileUser.commonInformation.profilePicture.alt }}\"
{% else %}
src=\"{{ no_picture_img_path | imagine_filter('profile_head_thumb') }}\"
alt=\"default profile picture\"
{% endif %}
/>
</a>
</figure>
</div>
{# Profile Picture edition #}
{% if profileUser == app.user %}
<div class=\"upload-picture-container profile-picture-container\">
<div class=\"progress-bar\">
<div class=\"progress-bar-value\"></div>
</div>
<div class=\"error-div\"></div>
<i class=\"material-icons\">add_a_photo</i>
<label for=\"profile-picture-input\">
Modifier
</label>
<input data-image-name=\"userProfile\" data-entity-id=\"{{ profileUser.id }}\" id=\"profile-picture-input\" class=\"upload-picture-button\" type=\"file\"/>
</div>
{% else %}
<form data-push-state=\"false\" action=\"{{ 'user_profile_follow'|ajax_path }}\" class=\"form-follow-user\">
<input type=\"hidden\" name=\"user_source\" value=\"{{ profileUser.id }}\"/>
{% if current_user_is_following_user(profileUser) %}
<input class=\"unsubscribe\" type=\"submit\" value=\"Se désabonner\"/>
{% else %}
<input type=\"submit\" value=\"Suivre\"/>
{% endif %}
</form>
{% endif %}
</div>
<div class=\"profile-name-container\">
<h1>{{ profileUser.username }}</h1>
</div>
</div>
{# Cover Picture edition #}
{% if profileUser == app.user %}
<div class=\"upload-picture-container\">
<div class=\"progress-bar\">
<div class=\"progress-bar-value\"></div>
</div>
<div class=\"error-div\"></div>
<label for=\"cover-picture-input\">
Modifier la photo de couverture
</label>
<i class=\"material-icons\">add_a_photo</i>
<input data-image-name=\"userCover\" data-entity-id=\"{{ profileUser.id }}\" id=\"cover-picture-input\" class=\"upload-picture-button\" type=\"file\"/>
</div>
{% endif %}
</div>
<nav class=\"actions-links{% if app.request.get('_route') == 'user_profile_edit' %} hidden-box-container{% endif %}\">
{% set menuRoutes = {
0 : { 'route' : 'user_profile_show', 'label' : 'Accueil' },
1 : { 'route' : 'whiplay_user_likes', 'label' : 'Favoris' },
2 : { 'route' : 'whiplay_user_subscriptions', 'label' : 'Abonnements' },
3 : { 'route' : 'whiplay_action_user', 'label' : 'Actualités' }
} %}
{% for route in menuRoutes %}
{% set attr = app.request.get('_route') == route.route ? \"class=active\" : '' %}
<a {{ attr }} href=\"{{ route.route|ajax_path({ 'id' : profileUser.id }) }}\">{{ route.label }}</a>
{% endfor %}
</nav>
<div class=\"container row profile-container\">
{% endblock %}
{% block whiplay_body_footer %}
</div>
{% endblock %}
", "Profile/layout.html.twig", "/var/www/whiplay/whiplay/templates/Profile/layout.html.twig");
}
}