var/cache/dev/twig/2a/2a3fb0ae03dc4f573380170130668abb.php line 211

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.html.twig */
  14. class __TwigTemplate_f14cc17bc09ef471d01fdc179e9ae660 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.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.html.twig"));
  38.         $this->parent $this->loadTemplate("layouts/layout.html.twig""movie/movies.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 "
  55.     <div id=\"main-content\" class=\"main-content\">
  56.         ";
  57.         // line 6
  58.         if (twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'6$this->source); })()), "getTitle", [], "method"falsefalsefalse6))) {
  59.             // line 7
  60.             echo "            ";
  61.             $this->env->getFunction('pimcore_head_title')->getCallable()(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline"), "getData", [], "method"falsefalsefalse7), "PREPEND");
  62.             // line 8
  63.             echo "        ";
  64.         }
  65.         // line 9
  66.         echo "
  67.         <div class=\"page-header\">
  68.             <h1>";
  69.         // line 11
  70.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline", ["placeholder" => "Headline"]);
  71.         echo "</h1>
  72.         </div>
  73.         ";
  74.         // line 14
  75.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content", ["allowed" => [=> "headlines"=> "hero-teaser"=> "horizontal-line"=> "wysiwyg"]]);
  76.         // line 23
  77.         echo "
  78.         ";
  79.         // line 25
  80.         if (twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'25$this->source); })()), "getTitle", [], "method"falsefalsefalse25))) {
  81.             // line 26
  82.             echo "            ";
  83.             $this->env->getFunction('pimcore_head_title')->getCallable()(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline"), "getData", [], "method"falsefalsefalse26), "PREPEND");
  84.             // line 27
  85.             echo "        ";
  86.         }
  87.         // line 28
  88.         echo "
  89.         ";
  90.         // line 29
  91.         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.'29$this->source); })())) > 0)) {
  92.             echo 
  93.           <div>
  94.             ";
  95.             // line 31
  96.             if ((isset($context["searchTerm"]) || array_key_exists("searchTerm"$context) ? $context["searchTerm"] : (function () { throw new RuntimeError('Variable "searchTerm" does not exist.'31$this->source); })())) {
  97.                 // line 32
  98.                 echo "            <h1 class=\"d-flex justify-content-center\">Suchergebnisse für \"";
  99.                 echo twig_escape_filter($this->env, (isset($context["searchTerm"]) || array_key_exists("searchTerm"$context) ? $context["searchTerm"] : (function () { throw new RuntimeError('Variable "searchTerm" does not exist.'32$this->source); })()), "html"nulltrue);
  100.                 echo "\" </h1>
  101.             ";
  102.             } else {
  103.                 // line 34
  104.                 echo "            <h1 class=\"d-flex justify-content-center\">All Movies </h1>
  105.             ";
  106.             }
  107.             // line 36
  108.             echo "        </div> 
  109.         <div class=\"row\">
  110.             <div class=\"d-flex flex-wrap\">
  111.                  ";
  112.             // line 39
  113.             $context['_parent'] = $context;
  114.             $context['_seq'] = twig_ensure_traversable((isset($context["movies"]) || array_key_exists("movies"$context) ? $context["movies"] : (function () { throw new RuntimeError('Variable "movies" does not exist.'39$this->source); })()));
  115.             foreach ($context['_seq'] as $context["_key"] => $context["movie"]) {
  116.                 echo "  
  117.                  <a href=\"/movie-detail/";
  118.                 // line 40
  119.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["movie"], "id", [], "any"falsefalsefalse40), "html"nulltrue);
  120.                 echo "\">  
  121.                  ";
  122.                 // line 41
  123.                 if (twig_in_filter("Not Owned"twig_join_filter(twig_get_attribute($this->env$this->source$context["movie"], "status", [], "any"falsefalsefalse41), ", "))) {
  124.                     // line 42
  125.                     echo "                    <div class=\"badge\">";
  126.                     echo twig_escape_filter($this->envtwig_join_filter(twig_get_attribute($this->env$this->source$context["movie"], "status", [], "any"falsefalsefalse42), ", "), "html"nulltrue);
  127.                     echo "</div>
  128.                  ";
  129.                 } elseif (twig_in_filter("Ordered"twig_join_filter(twig_get_attribute($this->env$this->source,                 // line 43
  130. $context["movie"], "status", [], "any"falsefalsefalse43), ", "))) {
  131.                     // line 44
  132.                     echo "                    <div class=\"badge\">";
  133.                     echo twig_escape_filter($this->envtwig_join_filter(twig_get_attribute($this->env$this->source$context["movie"], "status", [], "any"falsefalsefalse44), ", "), "html"nulltrue);
  134.                     echo "</div>
  135.                 ";
  136.                 } elseif (twig_test_empty(twig_get_attribute($this->env$this->source,                 // line 45
  137. $context["movie"], "status", [], "any"falsefalsefalse45))) {
  138.                     // line 46
  139.                     echo "                    <div class=\"badge\">Not owned</div>
  140.                  ";
  141.                 } else {
  142.                     // line 48
  143.                     echo "                    
  144.                  ";
  145.                 }
  146.                 // line 50
  147.                 echo "                 <div data-content=\"";
  148.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["movie"], "title", [=> "de"], "method"falsefalsefalse50), "html"nulltrue);
  149.                 echo "\" class=\"image\">                
  150.                          ";
  151.                 // line 52
  152.                 echo "                            ";
  153.                 if ($context["movie"]) {
  154.                     // line 53
  155.                     echo "                                ";
  156.                     if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["movie"], "getImageURL", [], "method"falsefalsefalse53), "getUrl", [], "method"falsefalsefalse53) != "")) {
  157.                         // line 54
  158.                         echo "                                ";
  159.                         // line 55
  160.                         echo "                                <img class\"img-fluid\" src=\"";
  161.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["movie"], "getImageURL", [], "method"falsefalsefalse55), "getUrl", [], "method"falsefalsefalse55), "html"nulltrue);
  162.                         echo "\"/>
  163.                                 ";
  164.                     } else {
  165.                         // line 57
  166.                         echo "                                <img class\"img-fluid\" style=\"margin-right: 25px; margin-bottom: 15px;\" src=\"";
  167.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["fallbackImage"]) || array_key_exists("fallbackImage"$context) ? $context["fallbackImage"] : (function () { throw new RuntimeError('Variable "fallbackImage" does not exist.'57$this->source); })()), "getThumbnail", [=> "MovieGrid"], "method"falsefalsefalse57), "html"nulltrue);
  168.                         echo "\" />
  169.                                 ";
  170.                     }
  171.                     // line 59
  172.                     echo "                            ";
  173.                 }
  174.                 // line 60
  175.                 echo "                            
  176.                  </div>
  177.                  </a>
  178.                  
  179.                 ";
  180.             }
  181.             $_parent $context['_parent'];
  182.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['movie'], $context['_parent'], $context['loop']);
  183.             $context array_intersect_key($context$_parent) + $_parent;
  184.             // line 65
  185.             echo "
  186.                 
  187.             </div>
  188.         </div>
  189.           <div class=\"pt-5\">
  190.             ";
  191.             // line 72
  192.             $this->loadTemplate("includes/pagination.html.twig""movie/movies.html.twig"72)->display($context);
  193.             // line 73
  194.             echo "
  195.         </div>
  196.         ";
  197.         } else {
  198.             // line 77
  199.             echo "            <h1 class=\"d-flex justify-content-center\">Keine Suchergebnisse für \"";
  200.             echo twig_escape_filter($this->env, (isset($context["searchTerm"]) || array_key_exists("searchTerm"$context) ? $context["searchTerm"] : (function () { throw new RuntimeError('Variable "searchTerm" does not exist.'77$this->source); })()), "html"nulltrue);
  201.             echo "\" </h1>
  202.         ";
  203.         }
  204.         // line 80
  205.         echo "
  206.     </div> 
  207. ";
  208.         
  209.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  210.         
  211.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  212.     }
  213.     public function getTemplateName()
  214.     {
  215.         return "movie/movies.html.twig";
  216.     }
  217.     public function isTraitable()
  218.     {
  219.         return false;
  220.     }
  221.     public function getDebugInfo()
  222.     {
  223.         return array (  226 => 80,  219 => 77,  213 => 73,  211 => 72,  202 => 65,  192 => 60,  189 => 59,  183 => 57,  177 => 55,  175 => 54,  172 => 53,  169 => 52,  164 => 50,  160 => 48,  156 => 46,  154 => 45,  149 => 44,  147 => 43,  142 => 42,  140 => 41,  136 => 40,  130 => 39,  125 => 36,  121 => 34,  115 => 32,  113 => 31,  108 => 29,  105 => 28,  102 => 27,  99 => 26,  97 => 25,  93 => 23,  91 => 14,  85 => 11,  81 => 9,  78 => 8,  75 => 7,  73 => 6,  68 => 3,  58 => 2,  35 => 1,);
  224.     }
  225.     public function getSourceContext()
  226.     {
  227.         return new Source("{% extends 'layouts/layout.html.twig' %}
  228. {% block content %}
  229.     <div id=\"main-content\" class=\"main-content\">
  230.         {% if document.getTitle() is empty %}
  231.             {% do pimcore_head_title(pimcore_input('headline').getData(), 'PREPEND') %}
  232.         {% endif %}
  233.         <div class=\"page-header\">
  234.             <h1>{{ pimcore_input('headline', {'placeholder':'Headline'}) }}</h1>
  235.         </div>
  236.         {{
  237.             pimcore_areablock('content', {
  238.                 'allowed': [
  239.                     'headlines',
  240.                     'hero-teaser',
  241.                     'horizontal-line',
  242.                     'wysiwyg'
  243.                 ]
  244.             })
  245.         }}
  246.         {% if document.getTitle() is empty %}
  247.             {% do pimcore_head_title(pimcore_input('headline').getData(), 'PREPEND') %}
  248.         {% endif %}
  249.         {% if movies|length > 0 %} 
  250.           <div>
  251.             {% if searchTerm %}
  252.             <h1 class=\"d-flex justify-content-center\">Suchergebnisse für \"{{searchTerm}}\" </h1>
  253.             {% else %}
  254.             <h1 class=\"d-flex justify-content-center\">All Movies </h1>
  255.             {% endif %}
  256.         </div> 
  257.         <div class=\"row\">
  258.             <div class=\"d-flex flex-wrap\">
  259.                  {%  for movie in movies %}  
  260.                  <a href=\"/movie-detail/{{movie.id}}\">  
  261.                  {% if \"Not Owned\" in movie.status|join(', ') %}
  262.                     <div class=\"badge\">{{movie.status|join(', ')}}</div>
  263.                  {% elseif \"Ordered\" in movie.status|join(', ')  %}
  264.                     <div class=\"badge\">{{movie.status|join(', ')}}</div>
  265.                 {% elseif movie.status is empty %}
  266.                     <div class=\"badge\">Not owned</div>
  267.                  {% else %}
  268.                     
  269.                  {% endif %}
  270.                  <div data-content=\"{{ movie.title(\"de\")}}\" class=\"image\">                
  271.                          {# @var movies \\Pimcore\\Model\\DataObject\\Movies #}
  272.                             {% if movie %}
  273.                                 {% if movie.getImageURL().getUrl() != \"\"  %}
  274.                                 {# TODO get Image Thumbnail #}
  275.                                 <img class\"img-fluid\" src=\"{{ movie.getImageURL().getUrl() }}\"/>
  276.                                 {% else %}
  277.                                 <img class\"img-fluid\" style=\"margin-right: 25px; margin-bottom: 15px;\" src=\"{{fallbackImage.getThumbnail(\"MovieGrid\") }}\" />
  278.                                 {% endif %}
  279.                             {% endif %}
  280.                             
  281.                  </div>
  282.                  </a>
  283.                  
  284.                 {% endfor %}
  285.                 
  286.             </div>
  287.         </div>
  288.           <div class=\"pt-5\">
  289.             {% include 'includes/pagination.html.twig' %}
  290.         </div>
  291.         {% else %}
  292.             <h1 class=\"d-flex justify-content-center\">Keine Suchergebnisse für \"{{searchTerm}}\" </h1>
  293.         {% endif %}
  294.     </div> 
  295. {%  endblock %}
  296. ""movie/movies.html.twig""/var/www/pimcore/MovieCollection/templates/movie/movies.html.twig");
  297.     }
  298. }