var/cache/dev/twig/8c/8c94ca74c68a30335e777a61a6ca1390.php line 48

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* movie/actors-detail.html.twig */
  14. class __TwigTemplate_8f7d59ae40ea8c24c58b0c4bc18d36ea extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "layouts/layout.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""movie/actors-detail.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""movie/actors-detail.html.twig"));
  38.         $this->parent $this->loadTemplate("layouts/layout.html.twig""movie/actors-detail.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 2
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 3
  54.         echo "<div class=\"movie-info\">
  55. <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/css/flag-icon.min.css\">
  56.   <div class=\"row\" style=\"display: flex; justify-content: center;\">
  57.         <div class=\"d-flex flex-wrap\" align=\"center\" style=\"justify-content:center\">
  58.           <div class=\"movie-text\">
  59.             <h2>";
  60.         // line 8
  61.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse8), "html"nulltrue);
  62.         echo "</h2>
  63.             <p><b>";
  64.         // line 9
  65.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.biography"), "html"nulltrue);
  66.         echo ": </b></p>
  67.             <p>";
  68.         // line 10
  69.         echo twig_escape_filter($this->envtwig_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", [=> "de"], "method"falsefalsefalse10)), "html"nulltrue);
  70.         echo "</p>
  71.             <p><b>";
  72.         // line 11
  73.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.birthdate"), "html"nulltrue);
  74.         echo ":</b></p>
  75.             <p> ";
  76.         // line 12
  77.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse12), "d.m.Y"), "html"nulltrue);
  78.         echo "</p>
  79.             ";
  80.         // line 13
  81.         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"falsefalsefalse13)) {
  82.             // line 14
  83.             echo "                <span class=\"flag-icon flag-icon-";
  84.             echo twig_escape_filter($this->envtwig_lower_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse14), 0, [], "array"falsefalsefalse14)), "html"nulltrue);
  85.             echo "\"></span>
  86.             ";
  87.         }
  88.         // line 16
  89.         echo "            </div>
  90.             <img src=\"";
  91.         // line 17
  92.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse17), "html"nulltrue);
  93.         echo "\" alt=\"";
  94.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse17), "html"nulltrue);
  95.         echo " photo\">
  96. </div>
  97.   ";
  98.         // line 20
  99.         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)) {
  100.             // line 21
  101.             echo "  <div class=\"similar-movies\">
  102.    <h3 align=\"center\" ><b>Movies</b></h3>
  103.      <div class=\"row\" style=\"display: flex; justify-content: center;\">
  104.         <div class=\"d-flex flex-wrap\" align=\"center\" style=\"justify-content:center\">
  105.               ";
  106.             // line 25
  107.             $context['_parent'] = $context;
  108.             $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); })()));
  109.             foreach ($context['_seq'] as $context["_key"] => $context["movie"]) {
  110.                 // line 26
  111.                 echo "               <a href=\"/movie-detail/";
  112.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["movie"], "id", [], "any"falsefalsefalse26), "html"nulltrue);
  113.                 echo "\"> 
  114.                <div data-content=\"";
  115.                 // line 27
  116.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["movie"], "title", [=> "de"], "method"falsefalsefalse27), "html"nulltrue);
  117.                 echo "\" class=\"image\">
  118.                  ";
  119.                 // line 28
  120.                 if ((twig_get_attribute($this->env$this->source$context["movie"], "imageURL", [], "any"falsefalsefalse28) != "")) {
  121.                     echo " <img src=\"";
  122.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["movie"], "imageURL", [], "any"falsefalsefalse28), "html"nulltrue);
  123.                     echo "\" alt=\"";
  124.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["movie"], "title", [=> "de"], "method"falsefalsefalse28), "html"nulltrue);
  125.                     echo "\"> ";
  126.                 }
  127.                 // line 29
  128.                 echo "               </div>
  129.               </a>
  130.              ";
  131.             }
  132.             $_parent $context['_parent'];
  133.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['movie'], $context['_parent'], $context['loop']);
  134.             $context array_intersect_key($context$_parent) + $_parent;
  135.             // line 32
  136.             echo "       </div>
  137.       </div>
  138. </div>
  139. ";
  140.         }
  141.         // line 36
  142.         echo "
  143.  <div class=\"actors\">
  144.     <h3 align=\"center\" ><b>Similar Actors</b></h3>
  145.       <div class=\"row\" style=\"display: flex; justify-content: center;\">
  146.             <div class=\"d-flex flex-wrap\" style=\"justify-content:center\">
  147.                  ";
  148.         // line 41
  149.         $context['_parent'] = $context;
  150.         $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); })()));
  151.         foreach ($context['_seq'] as $context["_key"] => $context["sactor"]) {
  152.             echo "  
  153.                     <a href=\"/actor-detail/";
  154.             // line 42
  155.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["sactor"], "id", [], "any"falsefalsefalse42), "html"nulltrue);
  156.             echo "\">   
  157.                     <div data-content=\"";
  158.             // line 43
  159.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["sactor"], "name", [], "any"falsefalsefalse43), "html"nulltrue);
  160.             echo "\" class=\"image-cast\" >                
  161.                             ";
  162.             // line 45
  163.             echo "                                ";
  164.             if ($context["sactor"]) {
  165.                 // line 46
  166.                 echo "                                    ";
  167.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["sactor"], "actorImage", [], "method"falsefalsefalse46), "getUrl", [], "method"falsefalsefalse46) != "")) {
  168.                     // line 47
  169.                     echo "                                    <img src=\"";
  170.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["sactor"], "actorImage", [], "method"falsefalsefalse47), "getUrl", [], "method"falsefalsefalse47), "html"nulltrue);
  171.                     echo "\"/>
  172.                                     ";
  173.                 }
  174.                 // line 48
  175.                 echo "  
  176.                                 ";
  177.             }
  178.             // line 49
  179.             echo "                          
  180.                     </div>
  181.                     </a>
  182.                  
  183.                 ";
  184.         }
  185.         $_parent $context['_parent'];
  186.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sactor'], $context['_parent'], $context['loop']);
  187.         $context array_intersect_key($context$_parent) + $_parent;
  188.         // line 54
  189.         echo "            </div>
  190. ";
  191.         
  192.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  193.         
  194.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  195.     }
  196.     public function getTemplateName()
  197.     {
  198.         return "movie/actors-detail.html.twig";
  199.     }
  200.     public function isTraitable()
  201.     {
  202.         return false;
  203.     }
  204.     public function getDebugInfo()
  205.     {
  206.         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,);
  207.     }
  208.     public function getSourceContext()
  209.     {
  210.         return new Source("{% extends 'layouts/layout.html.twig' %}
  211. {% block content %}
  212. <div class=\"movie-info\">
  213. <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/css/flag-icon.min.css\">
  214.   <div class=\"row\" style=\"display: flex; justify-content: center;\">
  215.         <div class=\"d-flex flex-wrap\" align=\"center\" style=\"justify-content:center\">
  216.           <div class=\"movie-text\">
  217.             <h2>{{ actor.name }}</h2>
  218.             <p><b>{{ 'detail.biography' | trans }}: </b></p>
  219.             <p>{{ actor.biography(\"de\")|striptags }}</p>
  220.             <p><b>{{ 'detail.birthdate' | trans }}:</b></p>
  221.             <p> {{ actor.birthdate|date('d.m.Y') }}</p>
  222.             {% if actor.nationality %}
  223.                 <span class=\"flag-icon flag-icon-{{ actor.nationality[0]|lower }}\"></span>
  224.             {% endif %}
  225.             </div>
  226.             <img src=\"{{ actor.actorImage }}\" alt=\"{{ actor.name }} photo\">
  227. </div>
  228.   {% if movies|length > 0 %}
  229.   <div class=\"similar-movies\">
  230.    <h3 align=\"center\" ><b>Movies</b></h3>
  231.      <div class=\"row\" style=\"display: flex; justify-content: center;\">
  232.         <div class=\"d-flex flex-wrap\" align=\"center\" style=\"justify-content:center\">
  233.               {% for movie in movies %}
  234.                <a href=\"/movie-detail/{{movie.id}}\"> 
  235.                <div data-content=\"{{movie.title(\"de\")}}\" class=\"image\">
  236.                  {% if movie.imageURL != \"\" %} <img src=\"{{ movie.imageURL }}\" alt=\"{{ movie.title(\"de\") }}\"> {% endif %}
  237.                </div>
  238.               </a>
  239.              {% endfor %}
  240.        </div>
  241.       </div>
  242. </div>
  243. {% endif %}
  244.  <div class=\"actors\">
  245.     <h3 align=\"center\" ><b>Similar Actors</b></h3>
  246.       <div class=\"row\" style=\"display: flex; justify-content: center;\">
  247.             <div class=\"d-flex flex-wrap\" style=\"justify-content:center\">
  248.                  {%  for sactor in similarActors %}  
  249.                     <a href=\"/actor-detail/{{sactor.id}}\">   
  250.                     <div data-content=\"{{ sactor.name }}\" class=\"image-cast\" >                
  251.                             {# @var actors \\Pimcore\\Model\\DataObject\\Actors #}
  252.                                 {% if sactor %}
  253.                                     {% if sactor.actorImage().getUrl() != \"\"  %}
  254.                                     <img src=\"{{ sactor.actorImage().getUrl() }}\"/>
  255.                                     {% endif %}  
  256.                                 {% endif %}                          
  257.                     </div>
  258.                     </a>
  259.                  
  260.                 {% endfor %}
  261.             </div>
  262. {%  endblock %}""movie/actors-detail.html.twig""/var/www/pimcore/MovieCollection/templates/movie/actors-detail.html.twig");
  263.     }
  264. }