var/cache/dev/twig/b8/b845434e5c169107ef60d66f129289e4.php line 38

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/movies-detail.html.twig */
  14. class __TwigTemplate_31348f03065753d3682826ba6b744976 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/movies-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/movies-detail.html.twig"));
  38.         $this->parent $this->loadTemplate("layouts/layout.html.twig""movie/movies-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.   <div class=\"row\" style=\"display: flex; justify-content: center;\">
  56.         <div class=\"d-flex flex-wrap\" align=\"center\" style=\"justify-content:center\">
  57.           <div class=\"movie-text\">
  58.             <h2>";
  59.         // line 7
  60.         echo twig_escape_filter($this->envtwig_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", [=> "de"], "method"falsefalsefalse7), "html"nulltrue);
  61.         echo "</h2>
  62.             <p>";
  63.         // line 8
  64.         echo twig_escape_filter($this->envtwig_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", [=> "de"], "method"falsefalsefalse8), "html"nulltrue);
  65.         echo "</p>
  66.             <p><b>";
  67.         // line 9
  68.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("movie.detail.releaseYear"), "html"nulltrue);
  69.         echo ":</b></p>
  70.             <p>";
  71.         // line 10
  72.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse10), "html"nulltrue);
  73.         echo "</p>
  74.             <p class=\"badge\">";
  75.         // line 11
  76.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse11), "html"nulltrue);
  77.         echo "</p>
  78.             </div>
  79.             <img src=\"";
  80.         // line 13
  81.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse13), "html"nulltrue);
  82.         echo "\" alt=\"";
  83.         echo twig_escape_filter($this->envtwig_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", [=> "de"], "method"falsefalsefalse13), "html"nulltrue);
  84.         echo " poster\">
  85. </div>
  86.  
  87.   ";
  88.         // line 17
  89.         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)) {
  90.             // line 18
  91.             echo "  <div class=\"actors\">
  92.    <h3 align=\"center\" ><b>Cast</b></h3>
  93.      <div class=\"row\" style=\"display: flex; justify-content: center;\">
  94.         <div class=\"d-flex flex-wrap\" align=\"center\" style=\"justify-content:center\">
  95.               ";
  96.             // line 22
  97.             $context['_parent'] = $context;
  98.             $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); })()));
  99.             foreach ($context['_seq'] as $context["_key"] => $context["actor"]) {
  100.                 // line 23
  101.                 echo "               <a href=\"/actor-detail/";
  102.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["actor"], "id", [], "any"falsefalsefalse23), "html"nulltrue);
  103.                 echo "\"> 
  104.                <div data-content=\"";
  105.                 // line 24
  106.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["actor"], "name", [], "any"falsefalsefalse24), "html"nulltrue);
  107.                 echo "\" class=\"image-cast\">
  108.                  ";
  109.                 // line 25
  110.                 if ((twig_get_attribute($this->env$this->source$context["actor"], "actorImage", [], "any"falsefalsefalse25) != "")) {
  111.                     echo " <img src=\"";
  112.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["actor"], "actorImage", [], "any"falsefalsefalse25), "html"nulltrue);
  113.                     echo "\" alt=\"";
  114.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["actor"], "name", [], "any"falsefalsefalse25), "html"nulltrue);
  115.                     echo "\"> ";
  116.                 }
  117.                 // line 26
  118.                 echo "               </div>
  119.               </a>
  120.              ";
  121.             }
  122.             $_parent $context['_parent'];
  123.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['actor'], $context['_parent'], $context['loop']);
  124.             $context array_intersect_key($context$_parent) + $_parent;
  125.             // line 29
  126.             echo "       </div>
  127.       </div>
  128. </div>
  129. ";
  130.         }
  131.         // line 33
  132.         echo "
  133.  <div class=\"similar-movies\">
  134.     <h3 align=\"center\" ><b>Similar movies</b></h3>
  135.       <div class=\"row\" style=\"display: flex; justify-content: center;\">
  136.             <div class=\"d-flex flex-wrap\" style=\"justify-content:center\">
  137.                  ";
  138.         // line 38
  139.         $context['_parent'] = $context;
  140.         $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); })()));
  141.         foreach ($context['_seq'] as $context["_key"] => $context["smovie"]) {
  142.             echo "  
  143.                     <a href=\"/movie-detail/";
  144.             // line 39
  145.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["smovie"], "id", [], "any"falsefalsefalse39), "html"nulltrue);
  146.             echo "\">   
  147.                     <div data-content=\"";
  148.             // line 40
  149.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["smovie"], "title", [=> "de"], "method"falsefalsefalse40), "html"nulltrue);
  150.             echo "\" class=\"image\">                
  151.                             ";
  152.             // line 42
  153.             echo "                                ";
  154.             if ($context["smovie"]) {
  155.                 // line 43
  156.                 echo "                                    ";
  157.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["smovie"], "getImageURL", [], "method"falsefalsefalse43), "getUrl", [], "method"falsefalsefalse43) != "")) {
  158.                     // line 44
  159.                     echo "                                    ";
  160.                     // line 45
  161.                     echo "                                    <img src=\"";
  162.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["smovie"], "getImageURL", [], "method"falsefalsefalse45), "getUrl", [], "method"falsefalsefalse45), "html"nulltrue);
  163.                     echo "\"/>
  164.                                     ";
  165.                 }
  166.                 // line 46
  167.                 echo "  
  168.                                 ";
  169.             }
  170.             // line 47
  171.             echo "                          
  172.                     </div>
  173.                     </a>
  174.                  
  175.                 ";
  176.         }
  177.         $_parent $context['_parent'];
  178.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['smovie'], $context['_parent'], $context['loop']);
  179.         $context array_intersect_key($context$_parent) + $_parent;
  180.         // line 52
  181.         echo "
  182.                 
  183.             </div>
  184.     
  185. ";
  186.         
  187.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  188.         
  189.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  190.     }
  191.     public function getTemplateName()
  192.     {
  193.         return "movie/movies-detail.html.twig";
  194.     }
  195.     public function isTraitable()
  196.     {
  197.         return false;
  198.     }
  199.     public function getDebugInfo()
  200.     {
  201.         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,);
  202.     }
  203.     public function getSourceContext()
  204.     {
  205.         return new Source("{% extends 'layouts/layout.html.twig' %}
  206. {% block content %}
  207. <div class=\"movie-info\">
  208.   <div class=\"row\" style=\"display: flex; justify-content: center;\">
  209.         <div class=\"d-flex flex-wrap\" align=\"center\" style=\"justify-content:center\">
  210.           <div class=\"movie-text\">
  211.             <h2>{{ movie.title(\"de\") }}</h2>
  212.             <p>{{ movie.description(\"de\") }}</p>
  213.             <p><b>{{ 'movie.detail.releaseYear' |trans}}:</b></p>
  214.             <p>{{ movie.releaseyear }}</p>
  215.             <p class=\"badge\">{{ movie.genre }}</p>
  216.             </div>
  217.             <img src=\"{{ movie.imageURL }}\" alt=\"{{ movie.title(\"de\") }} poster\">
  218. </div>
  219.  
  220.   {% if actors|length > 0 %}
  221.   <div class=\"actors\">
  222.    <h3 align=\"center\" ><b>Cast</b></h3>
  223.      <div class=\"row\" style=\"display: flex; justify-content: center;\">
  224.         <div class=\"d-flex flex-wrap\" align=\"center\" style=\"justify-content:center\">
  225.               {% for actor in actors %}
  226.                <a href=\"/actor-detail/{{actor.id}}\"> 
  227.                <div data-content=\"{{actor.name}}\" class=\"image-cast\">
  228.                  {% if actor.actorImage != \"\" %} <img src=\"{{ actor.actorImage }}\" alt=\"{{ actor.name }}\"> {% endif %}
  229.                </div>
  230.               </a>
  231.              {% endfor %}
  232.        </div>
  233.       </div>
  234. </div>
  235. {% endif %}
  236.  <div class=\"similar-movies\">
  237.     <h3 align=\"center\" ><b>Similar movies</b></h3>
  238.       <div class=\"row\" style=\"display: flex; justify-content: center;\">
  239.             <div class=\"d-flex flex-wrap\" style=\"justify-content:center\">
  240.                  {%  for smovie in similarmovies %}  
  241.                     <a href=\"/movie-detail/{{smovie.id}}\">   
  242.                     <div data-content=\"{{ smovie.title(\"de\")}}\" class=\"image\">                
  243.                             {# @var movies \\Pimcore\\Model\\DataObject\\Movies #}
  244.                                 {% if smovie %}
  245.                                     {% if smovie.getImageURL().getUrl() != \"\"  %}
  246.                                     {# TODO get Image Thumbnail #}
  247.                                     <img src=\"{{ smovie.getImageURL().getUrl() }}\"/>
  248.                                     {% endif %}  
  249.                                 {% endif %}                          
  250.                     </div>
  251.                     </a>
  252.                  
  253.                 {% endfor %}
  254.                 
  255.             </div>
  256.     
  257. {%  endblock %}
  258. ""movie/movies-detail.html.twig""/var/www/pimcore/MovieCollection/templates/movie/movies-detail.html.twig");
  259.     }
  260. }