<?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_d18053f56bd87f327f59bdb609970c56 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>";
// line 9
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.', 9, $this->source); })()), "releaseyear", [], "any", false, false, false, 9), "html", null, true);
echo "</p>
<p class=\"badge\">";
// 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); })()), "genre", [], "any", false, false, false, 10), "html", null, true);
echo "</p>
</div>
<img src=\"";
// line 12
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.', 12, $this->source); })()), "imageURL", [], "any", false, false, false, 12), "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.', 12, $this->source); })()), "title", [0 => "de"], "method", false, false, false, 12), "html", null, true);
echo " poster\">
</div>
";
// line 16
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.', 16, $this->source); })())) > 0)) {
// line 17
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 21
$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.', 21, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["actor"]) {
// line 22
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, 22), "html", null, true);
echo "\">
<div data-content=\"";
// line 23
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["actor"], "name", [], "any", false, false, false, 23), "html", null, true);
echo "\" class=\"image-cast\">
";
// line 24
if ((twig_get_attribute($this->env, $this->source, $context["actor"], "actorImage", [], "any", false, false, false, 24) != "")) {
echo " <img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["actor"], "actorImage", [], "any", false, false, false, 24), "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, 24), "html", null, true);
echo "\"> ";
}
// line 25
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 28
echo " </div>
</div>
</div>
";
}
// line 32
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 37
$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.', 37, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["smovie"]) {
echo "
<a href=\"/movie-detail/";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["smovie"], "id", [], "any", false, false, false, 38), "html", null, true);
echo "\">
<div data-content=\"";
// line 39
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["smovie"], "title", [0 => "de"], "method", false, false, false, 39), "html", null, true);
echo "\" class=\"image\">
";
// line 41
echo " ";
if ($context["smovie"]) {
// line 42
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["smovie"], "getImageURL", [], "method", false, false, false, 42), "getUrl", [], "method", false, false, false, 42) != "")) {
// line 43
echo " ";
// line 44
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, 44), "getUrl", [], "method", false, false, false, 44), "html", null, true);
echo "\"/>
";
}
// line 45
echo "
";
}
// line 46
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 51
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 ( 192 => 51, 182 => 46, 178 => 45, 172 => 44, 170 => 43, 167 => 42, 164 => 41, 160 => 39, 156 => 38, 150 => 37, 143 => 32, 137 => 28, 129 => 25, 121 => 24, 117 => 23, 112 => 22, 108 => 21, 102 => 17, 100 => 16, 91 => 12, 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>{{ 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");
}
}