<?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;
/* movie/movies-detail.html.twig */
class __TwigTemplate_31348f03065753d3682826ba6b744976 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layouts/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "movie/movies-detail.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "movie/movies-detail.html.twig"));
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "movie/movies-detail.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 3
echo "<div class=\"movie-info\">
<div class=\"row\" style=\"display: flex; justify-content: center;\">
<div class=\"d-flex flex-wrap\" align=\"center\" style=\"justify-content:center\">
<div class=\"movie-text\">
<h2>";
// line 7
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["movie"]) || array_key_exists("movie", $context) ? $context["movie"] : (function () { throw new RuntimeError('Variable "movie" does not exist.', 7, $this->source); })()), "title", [0 => "de"], "method", false, false, false, 7), "html", null, true);
echo "</h2>
<p>";
// line 8
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["movie"]) || array_key_exists("movie", $context) ? $context["movie"] : (function () { throw new RuntimeError('Variable "movie" does not exist.', 8, $this->source); })()), "description", [0 => "de"], "method", false, false, false, 8), "html", null, true);
echo "</p>
<p><b>";
// line 9
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("movie.detail.releaseYear"), "html", null, true);
echo ":</b></p>
<p>";
// line 10
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["movie"]) || array_key_exists("movie", $context) ? $context["movie"] : (function () { throw new RuntimeError('Variable "movie" does not exist.', 10, $this->source); })()), "releaseyear", [], "any", false, false, false, 10), "html", null, true);
echo "</p>
<p class=\"badge\">";
// line 11
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["movie"]) || array_key_exists("movie", $context) ? $context["movie"] : (function () { throw new RuntimeError('Variable "movie" does not exist.', 11, $this->source); })()), "genre", [], "any", false, false, false, 11), "html", null, true);
echo "</p>
</div>
<img src=\"";
// line 13
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["movie"]) || array_key_exists("movie", $context) ? $context["movie"] : (function () { throw new RuntimeError('Variable "movie" does not exist.', 13, $this->source); })()), "imageURL", [], "any", false, false, false, 13), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["movie"]) || array_key_exists("movie", $context) ? $context["movie"] : (function () { throw new RuntimeError('Variable "movie" does not exist.', 13, $this->source); })()), "title", [0 => "de"], "method", false, false, false, 13), "html", null, true);
echo " poster\">
</div>
";
// line 17
if ((twig_length_filter($this->env, (isset($context["actors"]) || array_key_exists("actors", $context) ? $context["actors"] : (function () { throw new RuntimeError('Variable "actors" does not exist.', 17, $this->source); })())) > 0)) {
// line 18
echo " <div class=\"actors\">
<h3 align=\"center\" ><b>Cast</b></h3>
<div class=\"row\" style=\"display: flex; justify-content: center;\">
<div class=\"d-flex flex-wrap\" align=\"center\" style=\"justify-content:center\">
";
// line 22
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["actors"]) || array_key_exists("actors", $context) ? $context["actors"] : (function () { throw new RuntimeError('Variable "actors" does not exist.', 22, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["actor"]) {
// line 23
echo " <a href=\"/actor-detail/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["actor"], "id", [], "any", false, false, false, 23), "html", null, true);
echo "\">
<div data-content=\"";
// line 24
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["actor"], "name", [], "any", false, false, false, 24), "html", null, true);
echo "\" class=\"image-cast\">
";
// line 25
if ((twig_get_attribute($this->env, $this->source, $context["actor"], "actorImage", [], "any", false, false, false, 25) != "")) {
echo " <img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["actor"], "actorImage", [], "any", false, false, false, 25), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["actor"], "name", [], "any", false, false, false, 25), "html", null, true);
echo "\"> ";
}
// line 26
echo " </div>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['actor'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 29
echo " </div>
</div>
</div>
";
}
// line 33
echo "
<div class=\"similar-movies\">
<h3 align=\"center\" ><b>Similar movies</b></h3>
<div class=\"row\" style=\"display: flex; justify-content: center;\">
<div class=\"d-flex flex-wrap\" style=\"justify-content:center\">
";
// line 38
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["similarmovies"]) || array_key_exists("similarmovies", $context) ? $context["similarmovies"] : (function () { throw new RuntimeError('Variable "similarmovies" does not exist.', 38, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["smovie"]) {
echo "
<a href=\"/movie-detail/";
// line 39
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["smovie"], "id", [], "any", false, false, false, 39), "html", null, true);
echo "\">
<div data-content=\"";
// line 40
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["smovie"], "title", [0 => "de"], "method", false, false, false, 40), "html", null, true);
echo "\" class=\"image\">
";
// line 42
echo " ";
if ($context["smovie"]) {
// line 43
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["smovie"], "getImageURL", [], "method", false, false, false, 43), "getUrl", [], "method", false, false, false, 43) != "")) {
// line 44
echo " ";
// line 45
echo " <img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["smovie"], "getImageURL", [], "method", false, false, false, 45), "getUrl", [], "method", false, false, false, 45), "html", null, true);
echo "\"/>
";
}
// line 46
echo "
";
}
// line 47
echo "
</div>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['smovie'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 52
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "movie/movies-detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 196 => 52, 186 => 47, 182 => 46, 176 => 45, 174 => 44, 171 => 43, 168 => 42, 164 => 40, 160 => 39, 154 => 38, 147 => 33, 141 => 29, 133 => 26, 125 => 25, 121 => 24, 116 => 23, 112 => 22, 106 => 18, 104 => 17, 95 => 13, 90 => 11, 86 => 10, 82 => 9, 78 => 8, 74 => 7, 68 => 3, 58 => 2, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layouts/layout.html.twig' %}
{% block content %}
<div class=\"movie-info\">
<div class=\"row\" style=\"display: flex; justify-content: center;\">
<div class=\"d-flex flex-wrap\" align=\"center\" style=\"justify-content:center\">
<div class=\"movie-text\">
<h2>{{ movie.title(\"de\") }}</h2>
<p>{{ movie.description(\"de\") }}</p>
<p><b>{{ 'movie.detail.releaseYear' |trans}}:</b></p>
<p>{{ movie.releaseyear }}</p>
<p class=\"badge\">{{ movie.genre }}</p>
</div>
<img src=\"{{ movie.imageURL }}\" alt=\"{{ movie.title(\"de\") }} poster\">
</div>
{% if actors|length > 0 %}
<div class=\"actors\">
<h3 align=\"center\" ><b>Cast</b></h3>
<div class=\"row\" style=\"display: flex; justify-content: center;\">
<div class=\"d-flex flex-wrap\" align=\"center\" style=\"justify-content:center\">
{% for actor in actors %}
<a href=\"/actor-detail/{{actor.id}}\">
<div data-content=\"{{actor.name}}\" class=\"image-cast\">
{% if actor.actorImage != \"\" %} <img src=\"{{ actor.actorImage }}\" alt=\"{{ actor.name }}\"> {% endif %}
</div>
</a>
{% endfor %}
</div>
</div>
</div>
{% endif %}
<div class=\"similar-movies\">
<h3 align=\"center\" ><b>Similar movies</b></h3>
<div class=\"row\" style=\"display: flex; justify-content: center;\">
<div class=\"d-flex flex-wrap\" style=\"justify-content:center\">
{% for smovie in similarmovies %}
<a href=\"/movie-detail/{{smovie.id}}\">
<div data-content=\"{{ smovie.title(\"de\")}}\" class=\"image\">
{# @var movies \\Pimcore\\Model\\DataObject\\Movies #}
{% if smovie %}
{% if smovie.getImageURL().getUrl() != \"\" %}
{# TODO get Image Thumbnail #}
<img src=\"{{ smovie.getImageURL().getUrl() }}\"/>
{% endif %}
{% endif %}
</div>
</a>
{% endfor %}
</div>
{% endblock %}
", "movie/movies-detail.html.twig", "/var/www/pimcore/MovieCollection/templates/movie/movies-detail.html.twig");
}
}