<?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;
/* content/structure/show.html.twig */
class __TwigTemplate_5161a4e7500241860e4eefc1f979bce2d550d81d995afea2c18a91eaa79f21ef extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "content/baseImmemory.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", "content/structure/show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/structure/show.html.twig"));
$this->parent = $this->loadTemplate("content/baseImmemory.html.twig", "content/structure/show.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 4
public function block_title($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", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 4, $this->source); })()), "nom", [], "any", false, false, false, 4), "html", null, true);
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 6
public function block_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", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 7
echo " <div class=\"col-12 menuShow\">
";
// line 8
$this->loadTemplate("content/structure/breadcrumb.html.twig", "content/structure/show.html.twig", 8)->display($context);
// line 9
echo " </div>
<div class=\"container-fluid\">
<div class=\"row fondintro\">
<div class=\"col-12 titreCard\">
<h1>
";
// line 17
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 17, $this->source); })()), "nom", [], "any", false, false, false, 17), "html", null, true);
echo "
</h1>
</div>
<div class=\"col-12 col-md-6 showAdmin\">
<div class=\"zonesImg";
// line 22
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 22, $this->source); })()), "id", [], "any", false, false, false, 22), "html", null, true);
echo "\" style=\"position:relative; \">
<img src=\"";
// line 23
echo twig_escape_filter($this->env, (isset($context["pathLocal"]) || array_key_exists("pathLocal", $context) ? $context["pathLocal"] : (function () { throw new RuntimeError('Variable "pathLocal" does not exist.', 23, $this->source); })()), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 23, $this->source); })()), "urlImage", [], "any", false, false, false, 23), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 23, $this->source); })()), "urlImage", [], "any", false, false, false, 23), "html", null, true);
echo "\" class=\" img-fluid\">
";
// line 24
$this->loadTemplate("content/structure/zonesActives.html.twig", "content/structure/show.html.twig", 24)->display($context);
// line 25
echo " </div>
</div>
<div class=\"col-12 col-md-6\">
<div class=\"col-12 details\">
<ul>
<li>Id : <span class=\"categorie_details\">";
// line 32
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 32, $this->source); })()), "id", [], "any", false, false, false, 32), "html", null, true);
echo "</span></li>
<li>Catégorie : <span class=\"categorie_details\">";
// line 33
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 33, $this->source); })()), "Scategorie", [], "any", false, false, false, 33), "nom", [], "any", false, false, false, 33), "html", null, true);
echo "</span></li>
<li>Séquence : <span class=\"categorie_details\">";
// line 34
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 34, $this->source); })()), "Ssequence", [], "any", false, false, false, 34), "nom", [], "any", false, false, false, 34), "html", null, true);
echo "</span></li>
<li>Card : <span class=\"categorie_details\">";
// line 35
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 35, $this->source); })()), "nom", [], "any", false, false, false, 35), "html", null, true);
echo "</span></li>
</ul>
</div>
<div class=\"col-12 showBtns\">
<a class=\"btn btnImmemory\" href=\"";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_cdrom_900_ciblebif", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 40, $this->source); })()), "id", [], "any", false, false, false, 40)]), "html", null, true);
echo "\" target=\"_blank\">
voir dans CDRom
</a>
";
// line 44
if ( !(null === 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.', 44, $this->source); })()), "user", [], "any", false, false, false, 44))) {
// line 45
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 45, $this->source); })()), "user", [], "any", false, false, false, 45), "roles", [], "any", false, false, false, 45));
foreach ($context['_seq'] as $context["_key"] => $context["role"]) {
// line 46
echo " ";
if ((0 === twig_compare($context["role"], "ROLE_ADMIN"))) {
// line 47
echo " <a class=\"btn btnImmemory\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_stacks_edit", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 47, $this->source); })()), "id", [], "any", false, false, false, 47)]), "html", null, true);
echo "\">
Modifier
</a>
<a class=\"btn btnImmemory\" href=\"";
// line 50
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_stacks_delete", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 50, $this->source); })()), "id", [], "any", false, false, false, 50)]), "html", null, true);
echo "\">
Supprimer
</a>
";
} else {
// line 54
echo " ";
}
// line 55
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['role'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 56
echo " ";
}
// line 57
echo "
";
// line 58
if ((0 === twig_compare((isset($context["recherche"]) || array_key_exists("recherche", $context) ? $context["recherche"] : (function () { throw new RuntimeError('Variable "recherche" does not exist.', 58, $this->source); })()), 0))) {
// line 59
echo " <a class=\"btn btnImmemory rouge\" href=\"";
echo twig_escape_filter($this->env, (isset($context["urlBack"]) || array_key_exists("urlBack", $context) ? $context["urlBack"] : (function () { throw new RuntimeError('Variable "urlBack" does not exist.', 59, $this->source); })()), "html", null, true);
echo "\">
";
} else {
// line 61
echo " <a class=\"btn btnImmemory rouge\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("webSite_stacks_sequence_recherche", ["page" => 1, "search" => (isset($context["recherche"]) || array_key_exists("recherche", $context) ? $context["recherche"] : (function () { throw new RuntimeError('Variable "recherche" does not exist.', 61, $this->source); })())]), "html", null, true);
echo "\">
";
}
// line 63
echo " Retour
</a>
</div>
<div class=\"listNav\">
<h3>Navigation :</h3>
<div id=\"navigationImmemory\" class=\"\">
";
// line 70
$this->loadTemplate("content/structure/menuZonesActives.html.twig", "content/structure/show.html.twig", 70)->display($context);
// line 71
echo " </div>
</div>
";
// line 74
if ( !(null === 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.', 74, $this->source); })()), "user", [], "any", false, false, false, 74))) {
// line 75
echo " <h3>Commentaires :</h3>
";
// line 76
if ((0 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 76, $this->source); })()), "commentaires", [], "any", false, false, false, 76)), 0))) {
// line 77
echo " Pas de Commentaire
";
} else {
// line 79
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 79, $this->source); })()), "commentaires", [], "any", false, false, false, 79));
foreach ($context['_seq'] as $context["_key"] => $context["comm"]) {
// line 80
echo " <div class=\"commentaire\" style=\"background-color:beige; padding:7px 7px 0 7px;border: 1px solid grey;\">
";
// line 81
echo twig_get_attribute($this->env, $this->source, $context["comm"], "texte", [], "any", false, false, false, 81);
echo "
<div class=\"row\" style=\"padding:4px 0; border-top:1px solid grey; \">
<div class=\"col-6\" style=\"text-align: left;\">
<small> ";
// line 85
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["comm"], "userCrea", [], "any", false, false, false, 85), 0, [], "array", false, false, false, 85), "username", [], "any", false, false, false, 85), 0, 1)), "html", null, true);
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, $context["comm"], "userCrea", [], "any", false, false, false, 85), 0, [], "array", false, false, false, 85), "id", [], "any", false, false, false, 85), "html", null, true);
echo " le ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["comm"], "dateModif", [], "any", false, false, false, 85), "d m Y"), "html", null, true);
echo " à ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["comm"], "dateModif", [], "any", false, false, false, 85), "H:i:s"), "html", null, true);
echo " </small>
</div>
<div class=\"col-6\" style=\"text-align:right;\">
";
// line 89
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.', 89, $this->source); })()), "user", [], "any", false, false, false, 89), "id", [], "any", false, false, false, 89), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["comm"], "userCrea", [], "any", false, false, false, 89), 0, [], "array", false, false, false, 89), "id", [], "any", false, false, false, 89))) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 89, $this->source); })()), "user", [], "any", false, false, false, 89), "roles", [], "any", false, false, false, 89), 0, [], "array", false, false, false, 89), "ROLE_ADMIN")))) {
// line 90
echo " <a id=\"btnModifComm_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["comm"], "id", [], "any", false, false, false, 90), "html", null, true);
echo "\" href=\"#ligne_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 90, $this->source); })()), "id", [], "any", false, false, false, 90), "html", null, true);
echo "\" class=\"btn btn-sm btn-warning\" title=\"Modifier\">
<i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i>
</a>
<a id=\"btnSupprComm_";
// line 93
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["comm"], "id", [], "any", false, false, false, 93), "html", null, true);
echo "\" href=\"#ligne_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 93, $this->source); })()), "id", [], "any", false, false, false, 93), "html", null, true);
echo "\" class=\"btn btn-sm btn-danger\" title=\"Effacer\">
<i class=\"fa fa-trash\" aria-hidden=\"true\"></i>
</a>
";
}
// line 97
echo " </div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comm'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 102
echo " ";
}
// line 103
echo " ";
} else {
// line 104
echo " ";
}
// line 105
echo " <br><br>
<h3>Médias :</h3>
";
// line 109
if ((((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["stack"] ?? null), "film", [], "any", false, true, false, 109), "nom", [], "any", true, true, false, 109) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 109, $this->source); })()), "film", [], "any", false, false, false, 109), "nom", [], "any", false, false, false, 109), "-"))) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 109, $this->source); })()), "film", [], "any", false, false, false, 109), "nom", [], "any", false, false, false, 109), "Vide"))) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 109, $this->source); })()), "film", [], "any", false, false, false, 109), "id", [], "any", false, false, false, 109), 1)))) {
// line 110
echo " <!-- film -->
<h3>Movies :</h3>
<h5> ";
// line 112
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 112, $this->source); })()), "film", [], "any", false, false, false, 112), "id", [], "any", false, false, false, 112), "html", null, true);
echo ". ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 112, $this->source); })()), "film", [], "any", false, false, false, 112), "nom", [], "any", false, false, false, 112), "html", null, true);
echo " </h5>
";
} else {
// line 114
echo " <i> No clip</i> <br>
";
}
// line 116
echo " <br><br>
";
// line 119
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["stack"] ?? null), "transitIn", [], "any", false, true, false, 119), "son0", [], "any", true, true, false, 119) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 119, $this->source); })()), "transitIn", [], "any", false, false, false, 119), "son0", [], "any", false, false, false, 119)))) {
// line 120
echo " <!-- Son -->
<h3>Sound :</h3>
<h5> ";
// line 122
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 122, $this->source); })()), "transitIn", [], "any", false, false, false, 122), "son0", [], "any", false, false, false, 122), "html", null, true);
echo " </h5>
";
} else {
// line 124
echo " <i>No sound </i><br>
";
}
// line 126
echo "
</div>
<div id=\"txt\" class=\" col-12 textShowAdmin\">
";
// line 130
if ((twig_get_attribute($this->env, $this->source, ($context["stack"] ?? null), "texte", [], "any", true, true, false, 130) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 130, $this->source); })()), "texte", [], "any", false, false, false, 130)))) {
// line 131
echo " <!-- Texte -->
<h3>Text :</h3>
<p> ";
// line 133
echo twig_get_attribute($this->env, $this->source, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 133, $this->source); })()), "texte", [], "any", false, false, false, 133);
echo " </p>
";
} else {
// line 135
echo " <i> No text</i> <br>
";
}
// line 137
echo " </div>
</div>
</div>
<div id=\"fondForm\" class=\"fondForm\" style=\"
background-color: black;
position: fixed;
display: none;
width: 100%;
height: 100%; color:white;
top:0; left:0; z-index:200; opacity:1;\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div id=\"contenuForm\" class=\"col-12\">
</div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 165
public function block_javascripts($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", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 166
echo "<script type=\"text/javascript\">
\$(function(){
// ---------------------------------------
// gestion du bouton ajouter un commentaire
\$('[id ^= \"btnAjouteComm_\"]').click(function(){
// recup code
monid = \$(this).attr('id').substr(14);
console.log( monid );
// affiche le fond du formulaire
\$(\"#fondForm\").show(145);
// charge le formulaire d'ajout de commentaire dans le fond du formulaire
\$.ajax({
type: \"POST\",
url: \"";
// line 184
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("membre_stacks_commentaire_formAjoute");
echo "\",
data: {
cardId: \$(this).attr('id').substr(14),
},
success: function(msg)
{
// affiche le code de la stack
\$( \"#contenuForm\" ).html( msg );
\$(\"#btnCloseForm\").click(function(){
\$(\"#fondForm\").hide(145);
});
\$(\"#btnCloseForm2\").click(function(){
\$(\"#fondForm\").hide(145);
});
\$('[name ^= \"form\"]').submit(function(evt){
evt.preventDefault();
// recup données
texte = CKEDITOR.instances['form_texte'].getData()
\$.ajax({
type: \"POST\",
url: \"";
// line 209
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("membre_stacks_commentaire_formTraitement");
echo "\",
data: {
texte: texte,
monid: monid,
},
success: function(msg2)
{
console.log(\"formTraitement \" + msg2['ok']);
\$(\"#fondForm\").hide(145);
location.reload(true);
}
});
console.log(\"submit form \" + texte);
});
}
});
});
// gestion du bouton ajouter un commentaire
\$('[id ^= \"btnModifComm_\"]').click(function(){
// recup code
monid = \$(this).attr('id').substr(13);
console.log( monid );
// affiche le fond du formulaire
\$(\"#fondForm\").show(145);
// charge le formulaire d'ajout de commentaire dans le fond du formulaire
\$.ajax({
type: \"POST\",
url: \"";
// line 242
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("membre_stacks_commentaire_formModif");
echo "\",
data: {
commId: monid,
},
success: function(msg)
{
// affiche le code de la stack
\$( \"#contenuForm\" ).html( msg );
\$(\"#btnCloseForm\").click(function(){
\$(\"#fondForm\").hide(145);
\$( \"#contenuForm\" ).html( \"\" );
});
\$(\"#btnCloseForm2\").click(function(){
\$(\"#fondForm\").hide(145);
\$( \"#contenuForm\" ).html( \"\" );
});
//
\$('[name ^= \"form\"]').submit(function(evt){
evt.preventDefault();
// recup données
texte = CKEDITOR.instances['form_texte'].getData()
\$.ajax({
type: \"POST\",
url: \"";
// line 270
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("membre_stacks_commentaire_formModifTraitement");
echo "\",
data: {
texte: texte,
monid: monid,
},
/*
*/
success: function(msg2)
{
console.log(\"formModifTraitement \" + msg2['ok']);
\$(\"#fondForm\").hide(145);
\$( \"#contenuForm\" ).html( \"\" );
location.reload(true);
}
});
console.log(\"submit form \" + texte);
});
}
});
});
// gestion du bouton ajouter un commentaire
\$('[id ^= \"btnSupprComm_\"]').click(function(){
// recup code
monid = \$(this).attr('id').substr(13);
console.log( monid );
// affiche le fond du formulaire
\$(\"#fondForm\").show(145);
// charge le formulaire d'ajout de commentaire dans le fond du formulaire
\$.ajax({
type: \"POST\",
url: \"";
// line 306
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("membre_stacks_commentaire_formSuppr");
echo "\",
data: {
commId: monid,
},
success: function(msg)
{
// affiche le code de la stack
\$( \"#contenuForm\" ).html( msg );
\$(\"#btnCloseForm\").click(function(){
\$(\"#fondForm\").hide(145);
\$( \"#contenuForm\" ).html( \"\" );
});
\$(\"#btnCloseForm2\").click(function(){
\$(\"#fondForm\").hide(145);
\$( \"#contenuForm\" ).html( \"\" );
});
//
\$('[id ^= \"btnSuppCommOui_\"]').click(function(){
console.log(\"oui\");
\$.ajax({
type: \"POST\",
url: \"";
// line 331
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("membre_stacks_commentaire_formSupprTraitement");
echo "\",
data: {
monid: monid,
},
success: function(msg2)
{
console.log(\"formSupprTraitement \" + msg2['ok']);
\$(\"#fondForm\").hide(145);
\$( \"#contenuForm\" ).html( \"\" );
location.reload(true);
}
/*
*/
});
});
}
});
});
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "content/structure/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 600 => 331, 572 => 306, 533 => 270, 502 => 242, 466 => 209, 438 => 184, 418 => 166, 408 => 165, 373 => 137, 369 => 135, 364 => 133, 360 => 131, 358 => 130, 352 => 126, 348 => 124, 343 => 122, 339 => 120, 337 => 119, 332 => 116, 328 => 114, 321 => 112, 317 => 110, 315 => 109, 309 => 105, 306 => 104, 303 => 103, 300 => 102, 290 => 97, 281 => 93, 272 => 90, 270 => 89, 258 => 85, 251 => 81, 248 => 80, 243 => 79, 239 => 77, 237 => 76, 234 => 75, 232 => 74, 227 => 71, 225 => 70, 216 => 63, 210 => 61, 204 => 59, 202 => 58, 199 => 57, 196 => 56, 190 => 55, 187 => 54, 180 => 50, 173 => 47, 170 => 46, 165 => 45, 163 => 44, 156 => 40, 148 => 35, 144 => 34, 140 => 33, 136 => 32, 127 => 25, 125 => 24, 117 => 23, 113 => 22, 105 => 17, 95 => 9, 93 => 8, 90 => 7, 80 => 6, 60 => 4, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'content/baseImmemory.html.twig' %}
{# extends 'realisations/immemory/base.html.twig' #}
{% block title %}{{ stack.nom }} {% endblock %}
{% block body %}
<div class=\"col-12 menuShow\">
{% include \"content/structure/breadcrumb.html.twig\" %}
</div>
<div class=\"container-fluid\">
<div class=\"row fondintro\">
<div class=\"col-12 titreCard\">
<h1>
{{ stack.nom }}
</h1>
</div>
<div class=\"col-12 col-md-6 showAdmin\">
<div class=\"zonesImg{{ stack.id }}\" style=\"position:relative; \">
<img src=\"{{ pathLocal }}/{{ stack.urlImage }}\" alt=\"{{ stack.urlImage }}\" class=\" img-fluid\">
{% include \"content/structure/zonesActives.html.twig\" %}
</div>
</div>
<div class=\"col-12 col-md-6\">
<div class=\"col-12 details\">
<ul>
<li>Id : <span class=\"categorie_details\">{{ stack.id }}</span></li>
<li>Catégorie : <span class=\"categorie_details\">{{ stack.Scategorie.nom }}</span></li>
<li>Séquence : <span class=\"categorie_details\">{{ stack.Ssequence.nom }}</span></li>
<li>Card : <span class=\"categorie_details\">{{ stack.nom }}</span></li>
</ul>
</div>
<div class=\"col-12 showBtns\">
<a class=\"btn btnImmemory\" href=\"{{ path('front_cdrom_900_ciblebif', {'id': stack.id}) }}\" target=\"_blank\">
voir dans CDRom
</a>
{% if app.user is not null %}
{% for role in app.user.roles %}
{% if role == \"ROLE_ADMIN\" %}
<a class=\"btn btnImmemory\" href=\"{{ path('admin_stacks_edit', {'id': stack.id}) }}\">
Modifier
</a>
<a class=\"btn btnImmemory\" href=\"{{ path('admin_stacks_delete', {'id': stack.id}) }}\">
Supprimer
</a>
{% else %}
{% endif %}
{% endfor %}
{% endif %}
{% if recherche == 0 %}
<a class=\"btn btnImmemory rouge\" href=\"{{ urlBack }}\">
{% else %}
<a class=\"btn btnImmemory rouge\" href=\"{{ path('webSite_stacks_sequence_recherche', {'page': 1, 'search': recherche }) }}\">
{% endif %}
Retour
</a>
</div>
<div class=\"listNav\">
<h3>Navigation :</h3>
<div id=\"navigationImmemory\" class=\"\">
{% include \"content/structure/menuZonesActives.html.twig\" %}
</div>
</div>
{% if app.user is not null %}
<h3>Commentaires :</h3>
{% if stack.commentaires|length == 0 %}
Pas de Commentaire
{% else %}
{% for comm in stack.commentaires %}
<div class=\"commentaire\" style=\"background-color:beige; padding:7px 7px 0 7px;border: 1px solid grey;\">
{{ comm.texte|raw }}
<div class=\"row\" style=\"padding:4px 0; border-top:1px solid grey; \">
<div class=\"col-6\" style=\"text-align: left;\">
<small> {{ comm.userCrea[0].username|slice(0, 1) | capitalize }}{{ comm.userCrea[0].id }} le {{ comm.dateModif|date(\"d m Y\") }} à {{ comm.dateModif|date(\"H:i:s\") }} </small>
</div>
<div class=\"col-6\" style=\"text-align:right;\">
{% if app.user.id == comm.userCrea[0].id or app.user.roles[0] == \"ROLE_ADMIN\" %}
<a id=\"btnModifComm_{{ comm.id }}\" href=\"#ligne_{{ stack.id }}\" class=\"btn btn-sm btn-warning\" title=\"Modifier\">
<i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i>
</a>
<a id=\"btnSupprComm_{{ comm.id }}\" href=\"#ligne_{{ stack.id }}\" class=\"btn btn-sm btn-danger\" title=\"Effacer\">
<i class=\"fa fa-trash\" aria-hidden=\"true\"></i>
</a>
{% endif %}
</div>
</div>
</div>
{% endfor %}
{% endif %}
{% else %}
{% endif %}
<br><br>
<h3>Médias :</h3>
{% if stack.film.nom is defined and stack.film.nom != \"-\" and stack.film.nom != \"Vide\" and stack.film.id != 1 %}
<!-- film -->
<h3>Movies :</h3>
<h5> {{ stack.film.id }}. {{ stack.film.nom }} </h5>
{% else %}
<i> No clip</i> <br>
{% endif %}
<br><br>
{% if stack.transitIn.son0 is defined and stack.transitIn.son0 is not null %}
<!-- Son -->
<h3>Sound :</h3>
<h5> {{ stack.transitIn.son0 }} </h5>
{% else %}
<i>No sound </i><br>
{% endif %}
</div>
<div id=\"txt\" class=\" col-12 textShowAdmin\">
{% if stack.texte is defined and stack.texte is not null %}
<!-- Texte -->
<h3>Text :</h3>
<p> {{ stack.texte|raw }} </p>
{% else %}
<i> No text</i> <br>
{% endif %}
</div>
</div>
</div>
<div id=\"fondForm\" class=\"fondForm\" style=\"
background-color: black;
position: fixed;
display: none;
width: 100%;
height: 100%; color:white;
top:0; left:0; z-index:200; opacity:1;\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div id=\"contenuForm\" class=\"col-12\">
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
<script type=\"text/javascript\">
\$(function(){
// ---------------------------------------
// gestion du bouton ajouter un commentaire
\$('[id ^= \"btnAjouteComm_\"]').click(function(){
// recup code
monid = \$(this).attr('id').substr(14);
console.log( monid );
// affiche le fond du formulaire
\$(\"#fondForm\").show(145);
// charge le formulaire d'ajout de commentaire dans le fond du formulaire
\$.ajax({
type: \"POST\",
url: \"{{ path('membre_stacks_commentaire_formAjoute') }}\",
data: {
cardId: \$(this).attr('id').substr(14),
},
success: function(msg)
{
// affiche le code de la stack
\$( \"#contenuForm\" ).html( msg );
\$(\"#btnCloseForm\").click(function(){
\$(\"#fondForm\").hide(145);
});
\$(\"#btnCloseForm2\").click(function(){
\$(\"#fondForm\").hide(145);
});
\$('[name ^= \"form\"]').submit(function(evt){
evt.preventDefault();
// recup données
texte = CKEDITOR.instances['form_texte'].getData()
\$.ajax({
type: \"POST\",
url: \"{{ path('membre_stacks_commentaire_formTraitement') }}\",
data: {
texte: texte,
monid: monid,
},
success: function(msg2)
{
console.log(\"formTraitement \" + msg2['ok']);
\$(\"#fondForm\").hide(145);
location.reload(true);
}
});
console.log(\"submit form \" + texte);
});
}
});
});
// gestion du bouton ajouter un commentaire
\$('[id ^= \"btnModifComm_\"]').click(function(){
// recup code
monid = \$(this).attr('id').substr(13);
console.log( monid );
// affiche le fond du formulaire
\$(\"#fondForm\").show(145);
// charge le formulaire d'ajout de commentaire dans le fond du formulaire
\$.ajax({
type: \"POST\",
url: \"{{ path('membre_stacks_commentaire_formModif') }}\",
data: {
commId: monid,
},
success: function(msg)
{
// affiche le code de la stack
\$( \"#contenuForm\" ).html( msg );
\$(\"#btnCloseForm\").click(function(){
\$(\"#fondForm\").hide(145);
\$( \"#contenuForm\" ).html( \"\" );
});
\$(\"#btnCloseForm2\").click(function(){
\$(\"#fondForm\").hide(145);
\$( \"#contenuForm\" ).html( \"\" );
});
//
\$('[name ^= \"form\"]').submit(function(evt){
evt.preventDefault();
// recup données
texte = CKEDITOR.instances['form_texte'].getData()
\$.ajax({
type: \"POST\",
url: \"{{ path('membre_stacks_commentaire_formModifTraitement') }}\",
data: {
texte: texte,
monid: monid,
},
/*
*/
success: function(msg2)
{
console.log(\"formModifTraitement \" + msg2['ok']);
\$(\"#fondForm\").hide(145);
\$( \"#contenuForm\" ).html( \"\" );
location.reload(true);
}
});
console.log(\"submit form \" + texte);
});
}
});
});
// gestion du bouton ajouter un commentaire
\$('[id ^= \"btnSupprComm_\"]').click(function(){
// recup code
monid = \$(this).attr('id').substr(13);
console.log( monid );
// affiche le fond du formulaire
\$(\"#fondForm\").show(145);
// charge le formulaire d'ajout de commentaire dans le fond du formulaire
\$.ajax({
type: \"POST\",
url: \"{{ path('membre_stacks_commentaire_formSuppr') }}\",
data: {
commId: monid,
},
success: function(msg)
{
// affiche le code de la stack
\$( \"#contenuForm\" ).html( msg );
\$(\"#btnCloseForm\").click(function(){
\$(\"#fondForm\").hide(145);
\$( \"#contenuForm\" ).html( \"\" );
});
\$(\"#btnCloseForm2\").click(function(){
\$(\"#fondForm\").hide(145);
\$( \"#contenuForm\" ).html( \"\" );
});
//
\$('[id ^= \"btnSuppCommOui_\"]').click(function(){
console.log(\"oui\");
\$.ajax({
type: \"POST\",
url: \"{{ path('membre_stacks_commentaire_formSupprTraitement') }}\",
data: {
monid: monid,
},
success: function(msg2)
{
console.log(\"formSupprTraitement \" + msg2['ok']);
\$(\"#fondForm\").hide(145);
\$( \"#contenuForm\" ).html( \"\" );
location.reload(true);
}
/*
*/
});
});
}
});
});
});
</script>
{% endblock %}
", "content/structure/show.html.twig", "/var/www/clients/client2/web14/web/templates/content/structure/show.html.twig");
}
}