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