<?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/actors-detail.html.twig */
class __TwigTemplate_8f7d59ae40ea8c24c58b0c4bc18d36ea 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/actors-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/actors-detail.html.twig"));
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "movie/actors-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\">
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/css/flag-icon.min.css\">
<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 8
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["actor"]) || array_key_exists("actor", $context) ? $context["actor"] : (function () { throw new RuntimeError('Variable "actor" does not exist.', 8, $this->source); })()), "name", [], "any", false, false, false, 8), "html", null, true);
echo "</h2>
<p><b>";
// line 9
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.biography"), "html", null, true);
echo ": </b></p>
<p>";
// line 10
echo twig_escape_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, (isset($context["actor"]) || array_key_exists("actor", $context) ? $context["actor"] : (function () { throw new RuntimeError('Variable "actor" does not exist.', 10, $this->source); })()), "biography", [0 => "de"], "method", false, false, false, 10)), "html", null, true);
echo "</p>
<p><b>";
// line 11
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.birthdate"), "html", null, true);
echo ":</b></p>
<p> ";
// line 12
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["actor"]) || array_key_exists("actor", $context) ? $context["actor"] : (function () { throw new RuntimeError('Variable "actor" does not exist.', 12, $this->source); })()), "birthdate", [], "any", false, false, false, 12), "d.m.Y"), "html", null, true);
echo "</p>
";
// line 13
if (twig_get_attribute($this->env, $this->source, (isset($context["actor"]) || array_key_exists("actor", $context) ? $context["actor"] : (function () { throw new RuntimeError('Variable "actor" does not exist.', 13, $this->source); })()), "nationality", [], "any", false, false, false, 13)) {
// line 14
echo " <span class=\"flag-icon flag-icon-";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["actor"]) || array_key_exists("actor", $context) ? $context["actor"] : (function () { throw new RuntimeError('Variable "actor" does not exist.', 14, $this->source); })()), "nationality", [], "any", false, false, false, 14), 0, [], "array", false, false, false, 14)), "html", null, true);
echo "\"></span>
";
}
// line 16
echo " </div>
<img src=\"";
// line 17
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["actor"]) || array_key_exists("actor", $context) ? $context["actor"] : (function () { throw new RuntimeError('Variable "actor" does not exist.', 17, $this->source); })()), "actorImage", [], "any", false, false, false, 17), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["actor"]) || array_key_exists("actor", $context) ? $context["actor"] : (function () { throw new RuntimeError('Variable "actor" does not exist.', 17, $this->source); })()), "name", [], "any", false, false, false, 17), "html", null, true);
echo " photo\">
</div>
";
// line 20
if ((twig_length_filter($this->env, (isset($context["movies"]) || array_key_exists("movies", $context) ? $context["movies"] : (function () { throw new RuntimeError('Variable "movies" does not exist.', 20, $this->source); })())) > 0)) {
// line 21
echo " <div class=\"similar-movies\">
<h3 align=\"center\" ><b>Movies</b></h3>
<div class=\"row\" style=\"display: flex; justify-content: center;\">
<div class=\"d-flex flex-wrap\" align=\"center\" style=\"justify-content:center\">
";
// line 25
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["movies"]) || array_key_exists("movies", $context) ? $context["movies"] : (function () { throw new RuntimeError('Variable "movies" does not exist.', 25, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["movie"]) {
// line 26
echo " <a href=\"/movie-detail/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["movie"], "id", [], "any", false, false, false, 26), "html", null, true);
echo "\">
<div data-content=\"";
// line 27
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["movie"], "title", [0 => "de"], "method", false, false, false, 27), "html", null, true);
echo "\" class=\"image\">
";
// line 28
if ((twig_get_attribute($this->env, $this->source, $context["movie"], "imageURL", [], "any", false, false, false, 28) != "")) {
echo " <img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["movie"], "imageURL", [], "any", false, false, false, 28), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["movie"], "title", [0 => "de"], "method", false, false, false, 28), "html", null, true);
echo "\"> ";
}
// line 29
echo " </div>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['movie'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 32
echo " </div>
</div>
</div>
";
}
// line 36
echo "
<div class=\"actors\">
<h3 align=\"center\" ><b>Similar Actors</b></h3>
<div class=\"row\" style=\"display: flex; justify-content: center;\">
<div class=\"d-flex flex-wrap\" style=\"justify-content:center\">
";
// line 41
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["similarActors"]) || array_key_exists("similarActors", $context) ? $context["similarActors"] : (function () { throw new RuntimeError('Variable "similarActors" does not exist.', 41, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["sactor"]) {
echo "
<a href=\"/actor-detail/";
// line 42
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sactor"], "id", [], "any", false, false, false, 42), "html", null, true);
echo "\">
<div data-content=\"";
// line 43
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sactor"], "name", [], "any", false, false, false, 43), "html", null, true);
echo "\" class=\"image-cast\" >
";
// line 45
echo " ";
if ($context["sactor"]) {
// line 46
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["sactor"], "actorImage", [], "method", false, false, false, 46), "getUrl", [], "method", false, false, false, 46) != "")) {
// line 47
echo " <img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["sactor"], "actorImage", [], "method", false, false, false, 47), "getUrl", [], "method", false, false, false, 47), "html", null, true);
echo "\"/>
";
}
// line 48
echo "
";
}
// line 49
echo "
</div>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sactor'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 54
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "movie/actors-detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 204 => 54, 194 => 49, 190 => 48, 184 => 47, 181 => 46, 178 => 45, 174 => 43, 170 => 42, 164 => 41, 157 => 36, 151 => 32, 143 => 29, 135 => 28, 131 => 27, 126 => 26, 122 => 25, 116 => 21, 114 => 20, 106 => 17, 103 => 16, 97 => 14, 95 => 13, 91 => 12, 87 => 11, 83 => 10, 79 => 9, 75 => 8, 68 => 3, 58 => 2, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layouts/layout.html.twig' %}
{% block content %}
<div class=\"movie-info\">
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/css/flag-icon.min.css\">
<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>{{ actor.name }}</h2>
<p><b>{{ 'detail.biography' | trans }}: </b></p>
<p>{{ actor.biography(\"de\")|striptags }}</p>
<p><b>{{ 'detail.birthdate' | trans }}:</b></p>
<p> {{ actor.birthdate|date('d.m.Y') }}</p>
{% if actor.nationality %}
<span class=\"flag-icon flag-icon-{{ actor.nationality[0]|lower }}\"></span>
{% endif %}
</div>
<img src=\"{{ actor.actorImage }}\" alt=\"{{ actor.name }} photo\">
</div>
{% if movies|length > 0 %}
<div class=\"similar-movies\">
<h3 align=\"center\" ><b>Movies</b></h3>
<div class=\"row\" style=\"display: flex; justify-content: center;\">
<div class=\"d-flex flex-wrap\" align=\"center\" style=\"justify-content:center\">
{% for movie in movies %}
<a href=\"/movie-detail/{{movie.id}}\">
<div data-content=\"{{movie.title(\"de\")}}\" class=\"image\">
{% if movie.imageURL != \"\" %} <img src=\"{{ movie.imageURL }}\" alt=\"{{ movie.title(\"de\") }}\"> {% endif %}
</div>
</a>
{% endfor %}
</div>
</div>
</div>
{% endif %}
<div class=\"actors\">
<h3 align=\"center\" ><b>Similar Actors</b></h3>
<div class=\"row\" style=\"display: flex; justify-content: center;\">
<div class=\"d-flex flex-wrap\" style=\"justify-content:center\">
{% for sactor in similarActors %}
<a href=\"/actor-detail/{{sactor.id}}\">
<div data-content=\"{{ sactor.name }}\" class=\"image-cast\" >
{# @var actors \\Pimcore\\Model\\DataObject\\Actors #}
{% if sactor %}
{% if sactor.actorImage().getUrl() != \"\" %}
<img src=\"{{ sactor.actorImage().getUrl() }}\"/>
{% endif %}
{% endif %}
</div>
</a>
{% endfor %}
</div>
{% endblock %}", "movie/actors-detail.html.twig", "/var/www/pimcore/MovieCollection/templates/movie/actors-detail.html.twig");
}
}