<?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/subscriptions.html.twig */
class __TwigTemplate_c7f2c63ca105236dcd06dedf1671218be79564ca7ab63d2ae9df4b7ed923e3d2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'whiplay_body' => [$this, 'block_whiplay_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Profile/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/subscriptions.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/subscriptions.html.twig"));
$this->parent = $this->loadTemplate("Profile/layout.html.twig", "Profile/subscriptions.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 2
public function block_whiplay_body($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"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "whiplay_body"));
// line 3
echo " <div class=\"fixed-menu-container\">
<div class=\"container-left-info-more\">
";
// line 5
if ((0 === 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", false, false, false, 5)))) {
// line 6
echo " <div class=\"edit-user-profile global-menu-left\">
<a href=\"";
// line 7
echo twig_escape_filter($this->env, $this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("user_profile_edit"), "html", null, true);
echo "\" class=\"btn\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("profile.show.edit"), "html", null, true);
echo "</a>
</div>
";
} elseif (twig_get_attribute($this->env, $this->source, // line 9
(isset($context["profileUser"]) || array_key_exists("profileUser", $context) ? $context["profileUser"] : (function () { throw new RuntimeError('Variable "profileUser" does not exist.', 9, $this->source); })()), "availableToCollaborate", [], "any", false, false, false, 9)) {
// line 10
echo " <span
data-modal-id=\"contact-musician\"
data-modal-options='{\"user-id\": ";
// line 12
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.', 12, $this->source); })()), "id", [], "any", false, false, false, 12), "html", null, true);
echo "}'
class=\"btn link-message\">
<img alt=\"Contacter\" src=\"";
// line 14
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", null, true);
echo "images/icons/heroicons/chat.svg\" class=\"material-icons white\">
Contacter
</span>
";
}
// line 18
echo "
";
// line 20
echo " <div class=\"global-menu-left\">
<div class=\"title-container-left-info-more\">
<h3>Statistiques</h3>
</div>
<div class=\"txt-info-more\">
";
// line 25
$context["nbFollow"] = twig_length_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.', 25, $this->source); })()), "subscribers", [], "any", false, false, false, 25));
// line 26
echo " ";
$context["nbBandFollow"] = twig_length_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.', 26, $this->source); })()), "bandsSubscriptions", [], "any", false, false, false, 26));
// line 27
echo " ";
$context["nbUserFollow"] = twig_length_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.', 27, $this->source); })()), "usersSubscriptions", [], "any", false, false, false, 27));
// line 28
echo " <div>";
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", null, true);
echo " abonnés</div>
<div>";
// line 29
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", null, true);
echo " utilisateurs suivis</div>
<div>";
// line 30
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", null, true);
echo " groupes suivis</div>
<div>";
// line 31
echo twig_escape_filter($this->env, twig_length_filter($this->env, 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.', 31, $this->source); })()), "commonInformation", [], "any", false, false, false, 31), "visits", [], "any", false, false, false, 31)), "html", null, true);
echo " visites</div>
</div>
</div>
";
// line 36
echo " ";
if ((0 !== twig_compare(twig_length_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.', 36, $this->source); })()), "bands", [], "any", false, false, false, 36)), 0))) {
// line 37
echo " <div class=\"global-menu-left\">
<div class=\"title-container-left-info-more\">
<h3>";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("profile.show.bands"), "html", null, true);
echo "</h3>
</div>
";
// line 41
$context['_parent'] = $context;
$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", false, false, false, 41));
foreach ($context['_seq'] as $context["_key"] => $context["bandMember"]) {
// line 42
echo " <div class=\"container-txt-band-box-left\">
<a href=\"";
// line 43
echo twig_escape_filter($this->env, $this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("whiplay_band_files", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["bandMember"], "band", [], "any", false, false, false, 43), "id", [], "any", false, false, false, 43), "type" => twig_constant("App\\Constant\\FileTypeConstant::MUSIC")]), "html", null, true);
echo "\">
";
// line 44
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["bandMember"], "band", [], "any", false, false, false, 44), "commonInformation", [], "any", false, false, false, 44), "profilePicture", [], "any", false, false, false, 44))) {
// line 45
echo " <img alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["bandMember"], "band", [], "any", false, false, false, 45), "name", [], "any", false, false, false, 45), "html", null, true);
echo " profile picture\" class=\"picture-band-box-left-container\"
src=\"";
// line 46
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, twig_get_attribute($this->env, $this->source, $context["bandMember"], "band", [], "any", false, false, false, 46), "commonInformation", [], "any", false, false, false, 46), "profilePicture", [], "any", false, false, false, 46), "webPath", [], "any", false, false, false, 46)), "html", null, true);
echo "\"/>
";
} else {
// line 48
echo " <img alt=\"default profile picture\" class=\"picture-band-box-left-container\"
src=\"";
// line 49
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/wallpapers/computer/register-user.jpg"), "html", null, true);
echo "\"/>
";
}
// line 51
echo " </a>
<div class=\"title-band-user-box-left\">
<a href=\"";
// line 53
echo twig_escape_filter($this->env, $this->extensions['App\Extensions\AjaxPathExtension']->ajaxPath("whiplay_band_files", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["bandMember"], "band", [], "any", false, false, false, 53), "id", [], "any", false, false, false, 53), "type" => twig_constant("App\\Constant\\FileTypeConstant::MUSIC")]), "html", null, true);
echo "\">
";
// line 54
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["bandMember"], "band", [], "any", false, false, false, 54), "name", [], "any", false, false, false, 54), "html", null, true);
echo "
</a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bandMember'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 59
echo " </div>
";
}
// line 61
echo " </div>
</div>
<div class=\"container-right-info\">
<div class=\"container-box-right-info\">
";
// line 67
echo " <div class=\"title-container-left-info-more\" style=\"border-bottom: 0;padding:0 10px 0 10px;\">
<h3>";
// line 68
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("profile.show.bandsSubscriptions"), "html", null, true);
echo "</h3>
</div>
<div class=\"container-band-user-info container-follow-info\">
";
// line 71
if ((0 === twig_compare(twig_length_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); })()), "bandsSubscriptions", [], "any", false, false, false, 71)), 0))) {
// line 72
echo " Aucun abonnement à un groupe
";
}
// line 74
echo "
";
// line 75
$context['_parent'] = $context;
$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", false, false, false, 75));
foreach ($context['_seq'] as $context["_key"] => $context["followAction"]) {
// line 76
echo " <div class=\"content-boxes-container\" style=\" flex-direction: column;\">
";
// line 77
$context["band"] = twig_get_attribute($this->env, $this->source, $context["followAction"], "bandPeople", [], "any", false, false, false, 77);
// line 78
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, 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.', 78, $this->source); })()), "commonInformation", [], "any", false, false, false, 78), "profilePicture", [], "any", false, false, false, 78))) {
// line 79
echo " <div class=\"picture\" style=\"background-image: url(";
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["band"]) || array_key_exists("band", $context) ? $context["band"] : (function () { throw new RuntimeError('Variable "band" does not exist.', 79, $this->source); })()), "commonInformation", [], "any", false, false, false, 79), "profilePicture", [], "any", false, false, false, 79), "webPath", [], "any", false, false, false, 79), "thumb150x150"), "html", null, true);
echo ")\"></div>
";
} else {
// line 81
echo " <div class=\"picture\" style=\"background-image: url(";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter("images/wallpapers/computer/register-user.jpg", "thumb150x150"), "html", null, true);
echo ")\"></div>
";
}
// line 83
echo " <span>";
echo twig_escape_filter($this->env, 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.', 83, $this->source); })()), "name", [], "any", false, false, false, 83), "html", null, true);
echo "</span>
<a href=\"";
// line 84
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", false, false, false, 84), "type" => twig_constant("App\\Constant\\FileTypeConstant::MUSIC")]), "html", null, true);
echo "\"> Voir le profil </a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['followAction'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 87
echo " </div>
";
// line 90
echo " <div class=\"title-container-left-info-more\" style=\"border-bottom: 0;padding:0 10px 0 10px;\">
<h3>";
// line 91
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("profile.show.usersSubscriptions"), "html", null, true);
echo "</h3>
</div>
<div class=\"container-band-user-info container-follow-info\">
";
// line 94
if ((0 === twig_compare(twig_length_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.', 94, $this->source); })()), "usersSubscriptions", [], "any", false, false, false, 94)), 0))) {
// line 95
echo " Aucun abonnement à un autre utilisateur
";
}
// line 97
echo "
";
// line 98
$context['_parent'] = $context;
$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", false, false, false, 98));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["followAction"]) {
// line 99
echo " <div class=\"follow-container-user\">
<div class=\"content-boxes-container\" style=\"flex-direction: column;\">
";
// line 101
$context["user"] = twig_get_attribute($this->env, $this->source, $context["followAction"], "userPeople", [], "any", false, false, false, 101);
// line 102
echo " ";
$this->loadTemplate("Item/user.html.twig", "Profile/subscriptions.html.twig", 102)->display($context);
// line 103
echo " </div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['followAction'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 106
echo " </div>
<div class=\"separtor-info-profile-user\"></div>
";
// line 109
echo " <div class=\"title-container-left-info-more\" style=\"border-bottom: 0;padding:0 10px 0 10px;\">
<h3>";
// line 110
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("profile.show.followers"), "html", null, true);
echo "</h3>
</div>
<div class=\"container-band-user-info container-follow-info\">
";
// line 113
if ((0 === twig_compare(twig_length_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.', 113, $this->source); })()), "subscribers", [], "any", false, false, false, 113)), 0))) {
// line 114
echo " Aucun follower pour le moment
";
}
// line 116
echo " ";
$context['_parent'] = $context;
$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", false, false, false, 116));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["followAction"]) {
// line 117
echo " <div class=\"follow-container-user\">
<div class=\"content-boxes-container\" style=\"flex-direction: column;\">
";
// line 119
$context["user"] = twig_get_attribute($this->env, $this->source, $context["followAction"], "user", [], "any", false, false, false, 119);
// line 120
echo " ";
$this->loadTemplate("Item/user.html.twig", "Profile/subscriptions.html.twig", 120)->display($context);
// line 121
echo " </div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['followAction'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 124
echo " </div>
<div class=\"separtor-info-profile-user\"></div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Profile/subscriptions.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"Profile/layout.html.twig\" %}
{% block whiplay_body %}
<div class=\"fixed-menu-container\">
<div class=\"container-left-info-more\">
{% if profileUser == app.user %}
<div class=\"edit-user-profile global-menu-left\">
<a href=\"{{ 'user_profile_edit'|ajax_path }}\" class=\"btn\">{{ 'profile.show.edit'|trans }}</a>
</div>
{% elseif profileUser.availableToCollaborate %}
<span
data-modal-id=\"contact-musician\"
data-modal-options='{\"user-id\": {{ profileUser.id }}}'
class=\"btn link-message\">
<img alt=\"Contacter\" src=\"{{ global_url }}images/icons/heroicons/chat.svg\" class=\"material-icons white\">
Contacter
</span>
{% endif %}
{#STAT INFO FOLLOW#}
<div class=\"global-menu-left\">
<div class=\"title-container-left-info-more\">
<h3>Statistiques</h3>
</div>
<div class=\"txt-info-more\">
{% set nbFollow = profileUser.subscribers|length %}
{% set nbBandFollow = profileUser.bandsSubscriptions|length %}
{% set nbUserFollow = profileUser.usersSubscriptions|length %}
<div>{{ nbUserFollow }} abonnés</div>
<div>{{ nbFollow }} utilisateurs suivis</div>
<div>{{ nbBandFollow }} groupes suivis</div>
<div>{{ profileUser.commonInformation.visits|length }} visites</div>
</div>
</div>
{#BAND #}
{% if profileUser.bands|length != 0 %}
<div class=\"global-menu-left\">
<div class=\"title-container-left-info-more\">
<h3>{{ 'profile.show.bands'|trans }}</h3>
</div>
{% for bandMember in profileUser.publicBands %}
<div class=\"container-txt-band-box-left\">
<a href=\"{{ 'whiplay_band_files'|ajax_path({ 'id' : bandMember.band.id, 'type' : constant('App\\\\Constant\\\\FileTypeConstant::MUSIC') }) }}\">
{% if not bandMember.band.commonInformation.profilePicture is null %}
<img alt=\"{{ bandMember.band.name }} profile picture\" class=\"picture-band-box-left-container\"
src=\"{{ asset(bandMember.band.commonInformation.profilePicture.webPath) }}\"/>
{% else %}
<img alt=\"default profile picture\" class=\"picture-band-box-left-container\"
src=\"{{ asset('images/wallpapers/computer/register-user.jpg') }}\"/>
{% endif %}
</a>
<div class=\"title-band-user-box-left\">
<a href=\"{{ 'whiplay_band_files'|ajax_path({ 'id' : bandMember.band.id, 'type' : constant('App\\\\Constant\\\\FileTypeConstant::MUSIC') }) }}\">
{{ bandMember.band.name }}
</a>
</div>
</div>
{% endfor %}
</div>
{% endif %}
</div>
</div>
<div class=\"container-right-info\">
<div class=\"container-box-right-info\">
{#VOS ABO GROUPE#}
<div class=\"title-container-left-info-more\" style=\"border-bottom: 0;padding:0 10px 0 10px;\">
<h3>{{ 'profile.show.bandsSubscriptions'|trans }}</h3>
</div>
<div class=\"container-band-user-info container-follow-info\">
{% if profileUser.bandsSubscriptions|length == 0 %}
Aucun abonnement à un groupe
{% endif %}
{% for followAction in profileUser.bandsSubscriptions %}
<div class=\"content-boxes-container\" style=\" flex-direction: column;\">
{% set band = followAction.bandPeople %}
{% if not band.commonInformation.profilePicture is null %}
<div class=\"picture\" style=\"background-image: url({{ band.commonInformation.profilePicture.webPath|imagine_filter('thumb150x150') }})\"></div>
{% else %}
<div class=\"picture\" style=\"background-image: url({{ ('images/wallpapers/computer/register-user.jpg')|imagine_filter('thumb150x150') }})\"></div>
{% endif %}
<span>{{ band.name }}</span>
<a href=\"{{ 'whiplay_band_files'|ajax_path({ 'id' : band.id, 'type' : constant('App\\\\Constant\\\\FileTypeConstant::MUSIC') }) }}\"> Voir le profil </a>
</div>
{% endfor %}
</div>
{#VOS ABO UTILISATEUR#}
<div class=\"title-container-left-info-more\" style=\"border-bottom: 0;padding:0 10px 0 10px;\">
<h3>{{ 'profile.show.usersSubscriptions'|trans }}</h3>
</div>
<div class=\"container-band-user-info container-follow-info\">
{% if profileUser.usersSubscriptions|length == 0 %}
Aucun abonnement à un autre utilisateur
{% endif %}
{% for followAction in profileUser.usersSubscriptions %}
<div class=\"follow-container-user\">
<div class=\"content-boxes-container\" style=\"flex-direction: column;\">
{% set user = followAction.userPeople %}
{% include 'Item/user.html.twig' %}
</div>
</div>
{% endfor %}
</div>
<div class=\"separtor-info-profile-user\"></div>
{# ILS VOUS SUIVENT #}
<div class=\"title-container-left-info-more\" style=\"border-bottom: 0;padding:0 10px 0 10px;\">
<h3>{{ 'profile.show.followers'|trans }}</h3>
</div>
<div class=\"container-band-user-info container-follow-info\">
{% if profileUser.subscribers|length == 0 %}
Aucun follower pour le moment
{% endif %}
{% for followAction in profileUser.subscribers %}
<div class=\"follow-container-user\">
<div class=\"content-boxes-container\" style=\"flex-direction: column;\">
{% set user = followAction.user %}
{% include 'Item/user.html.twig' %}
</div>
</div>
{% endfor %}
</div>
<div class=\"separtor-info-profile-user\"></div>
</div>
</div>
{% endblock %}
", "Profile/subscriptions.html.twig", "/var/www/whiplay/whiplay/templates/Profile/subscriptions.html.twig");
}
}