var/cache/dev/twig/d1/d18cb8c7b3c620605731168b4d6792cd.php line 49

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. /* global_feed/index.html.twig */
  14. class __TwigTemplate_70ea69ca0ac0c9cd92443c83cf3dc520 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.             'title_suffix' => [$this'block_title_suffix'],
  24.             'body' => [$this'block_body'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return $this->loadTemplate($this->extensions['App\Twig\MiscExtension']->getBaseTemplateName(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1$this->source); })()), "request", [], "any"falsefalsefalse1)), "global_feed/index.html.twig"1);
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""global_feed/index.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""global_feed/index.html.twig"));
  40.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 2
  47.     public function block_title_suffix($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title_suffix"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title_suffix"));
  54.         echo "Home";
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.     }
  60.     // line 4
  61.     public function block_body($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         // line 5
  69.         echo "    
  70. <h1>Das ist los hier auf Frivol.com</h1>
  71. <div class=\"resultlist row timeline-container\">
  72.     ";
  73.         // line 8
  74.         $context['_parent'] = $context;
  75.         $context['_seq'] = twig_ensure_traversable((isset($context["timeline"]) || array_key_exists("timeline"$context) ? $context["timeline"] : (function () { throw new RuntimeError('Variable "timeline" does not exist.'8$this->source); })()));
  76.         $context['loop'] = [
  77.           'parent' => $context['_parent'],
  78.           'index0' => 0,
  79.           'index'  => 1,
  80.           'first'  => true,
  81.         ];
  82.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  83.             $length count($context['_seq']);
  84.             $context['loop']['revindex0'] = $length 1;
  85.             $context['loop']['revindex'] = $length;
  86.             $context['loop']['length'] = $length;
  87.             $context['loop']['last'] = === $length;
  88.         }
  89.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  90.             // line 9
  91.             echo "        ";
  92.             if ((twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse9) == 2)) {
  93.                 echo " ";
  94.                 // line 10
  95.                 echo "            ";
  96.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "content", [], "any"falsefalsefalse10), "type", [], "any"falsefalsefalse10) == 1)) {
  97.                     // line 11
  98.                     echo "                ";
  99.                     $this->loadTemplate("_widgets/profile-timeline-item-video.html.twig""global_feed/index.html.twig"11)->display(twig_array_merge($context, ["item" =>                     // line 12
  100. $context["item"], "content" => twig_get_attribute($this->env$this->source,                     // line 13
  101. $context["item"], "content", [], "any"falsefalsefalse13), "video" => twig_get_attribute($this->env$this->source,                     // line 14
  102. $context["item"], "video", [], "any"falsefalsefalse14), "member" => twig_get_attribute($this->env$this->source,                     // line 15
  103. $context["item"], "member", [], "any"falsefalsefalse15)]));
  104.                     // line 17
  105.                     echo "            ";
  106.                 } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "content", [], "any"falsefalsefalse17), "type", [], "any"falsefalsefalse17) == 2)) {
  107.                     // line 18
  108.                     echo "                ";
  109.                     $this->loadTemplate("_widgets/profile-timeline-item-imageset.html.twig""global_feed/index.html.twig"18)->display(twig_array_merge($context, ["item" =>                     // line 19
  110. $context["item"], "content" => twig_get_attribute($this->env$this->source,                     // line 20
  111. $context["item"], "content", [], "any"falsefalsefalse20), "imageset" => twig_get_attribute($this->env$this->source,                     // line 21
  112. $context["item"], "imageset", [], "any"falsefalsefalse21), "member" => twig_get_attribute($this->env$this->source,                     // line 22
  113. $context["item"], "member", [], "any"falsefalsefalse22)]));
  114.                     // line 24
  115.                     echo "            ";
  116.                 }
  117.                 // line 25
  118.                 echo "        ";
  119.             } elseif (((twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse25) == 3) && twig_get_attribute($this->env$this->source$context["item"], "blog_entry", [], "any"truetruefalse25))) {
  120.                 echo " ";
  121.                 // line 26
  122.                 echo "            ";
  123.                 $this->loadTemplate("_widgets/profile-timeline-item-blogpost.html.twig""global_feed/index.html.twig"26)->display(twig_array_merge($context, ["item" =>                 // line 27
  124. $context["item"], "member" => twig_get_attribute($this->env$this->source,                 // line 28
  125. $context["item"], "member", [], "any"falsefalsefalse28)]));
  126.                 // line 30
  127.                 echo "        ";
  128.             } elseif ((twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse30) == 22)) {
  129.                 echo " ";
  130.                 // line 31
  131.                 echo "            ";
  132.                 $this->loadTemplate("_widgets/profile-timeline-item-guestbook.html.twig""global_feed/index.html.twig"31)->display(twig_array_merge($context, ["item" =>                 // line 32
  133. $context["item"], "member" => twig_get_attribute($this->env$this->source,                 // line 33
  134. $context["item"], "member", [], "any"falsefalsefalse33)]));
  135.                 // line 35
  136.                 echo "        ";
  137.             } elseif ((twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse35) == 12)) {
  138.                 echo " ";
  139.                 // line 36
  140.                 echo "            ";
  141.                 $this->loadTemplate("_widgets/profile-timeline-item-guestbook-comment.html.twig""global_feed/index.html.twig"36)->display(twig_array_merge($context, ["item" =>                 // line 37
  142. $context["item"], "member" => twig_get_attribute($this->env$this->source,                 // line 38
  143. $context["item"], "member", [], "any"falsefalsefalse38)]));
  144.                 // line 40
  145.                 echo "        ";
  146.             } elseif ((twig_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse40) == 13)) {
  147.                 echo " ";
  148.                 // line 41
  149.                 echo "            ";
  150.                 $this->loadTemplate("_widgets/profile-timeline-item-contentcomment.html.twig""global_feed/index.html.twig"41)->display(twig_array_merge($context, ["item" =>                 // line 42
  151. $context["item"], "member" => twig_get_attribute($this->env$this->source,                 // line 43
  152. $context["item"], "member", [], "any"falsefalsefalse43), "video" => (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 44
  153. $context["item"], "content", [], "any"falsefalsefalse44), "type", [], "any"falsefalsefalse44) == 1)) ? (twig_get_attribute($this->env$this->source$context["item"], "video", [], "any"falsefalsefalse44)) : (null)), "imageset" => (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 45
  154. $context["item"], "content", [], "any"falsefalsefalse45), "type", [], "any"falsefalsefalse45) == 2)) ? (twig_get_attribute($this->env$this->source$context["item"], "imageset", [], "any"falsefalsefalse45)) : (null))]));
  155.                 // line 47
  156.                 echo "        ";
  157.             }
  158.             // line 48
  159.             echo "    ";
  160.             ++$context['loop']['index0'];
  161.             ++$context['loop']['index'];
  162.             $context['loop']['first'] = false;
  163.             if (isset($context['loop']['length'])) {
  164.                 --$context['loop']['revindex0'];
  165.                 --$context['loop']['revindex'];
  166.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  167.             }
  168.         }
  169.         $_parent $context['_parent'];
  170.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  171.         $context array_intersect_key($context$_parent) + $_parent;
  172.         // line 49
  173.         echo "</div>
  174. <p class=\"text-center\">
  175.     ";
  176.         // line 51
  177.         echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["timeline"]) || array_key_exists("timeline"$context) ? $context["timeline"] : (function () { throw new RuntimeError('Variable "timeline" does not exist.'51$this->source); })()));
  178.         echo "
  179. </p>
  180. ";
  181.         
  182.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  183.         
  184.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  185.     }
  186.     // line 57
  187.     public function block_javascripts($context, array $blocks = [])
  188.     {
  189.         $macros $this->macros;
  190.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  192.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  193.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  194.         // line 58
  195.         echo "  ";
  196.         $this->displayParentBlock("javascripts"$context$blocks);
  197.         echo "
  198. ";
  199.         
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  201.         
  202.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  203.     }
  204.     public function getTemplateName()
  205.     {
  206.         return "global_feed/index.html.twig";
  207.     }
  208.     public function isTraitable()
  209.     {
  210.         return false;
  211.     }
  212.     public function getDebugInfo()
  213.     {
  214.         return array (  220 => 58,  210 => 57,  196 => 51,  192 => 49,  178 => 48,  175 => 47,  173 => 45,  172 => 44,  171 => 43,  170 => 42,  168 => 41,  164 => 40,  162 => 38,  161 => 37,  159 => 36,  155 => 35,  153 => 33,  152 => 32,  150 => 31,  146 => 30,  144 => 28,  143 => 27,  141 => 26,  137 => 25,  134 => 24,  132 => 22,  131 => 21,  130 => 20,  129 => 19,  127 => 18,  124 => 17,  122 => 15,  121 => 14,  120 => 13,  119 => 12,  117 => 11,  114 => 10,  110 => 9,  93 => 8,  88 => 5,  78 => 4,  59 => 2,  37 => 1,);
  215.     }
  216.     public function getSourceContext()
  217.     {
  218.         return new Source("{% extends baseTemplateName(app.request) %}
  219. {% block title_suffix %}Home{% endblock %}
  220. {% block body %}
  221.     
  222. <h1>Das ist los hier auf Frivol.com</h1>
  223. <div class=\"resultlist row timeline-container\">
  224.     {% for item in timeline %}
  225.         {% if item.type == 2 %} {# Content #}
  226.             {% if item.content.type == 1  %}
  227.                 {% include '_widgets/profile-timeline-item-video.html.twig' with {
  228.                     item: item,
  229.                     content: item.content,
  230.                     video: item.video,
  231.                     member: item.member
  232.                 } %}
  233.             {% elseif item.content.type == 2 %}
  234.                 {% include '_widgets/profile-timeline-item-imageset.html.twig' with {
  235.                     item: item,
  236.                     content: item.content,
  237.                     imageset: item.imageset,
  238.                     member: item.member
  239.                 } %}
  240.             {% endif %}
  241.         {% elseif item.type == 3 and item.blog_entry is defined %} {# Blog post #}
  242.             {% include '_widgets/profile-timeline-item-blogpost.html.twig' with {
  243.                 item: item,
  244.                 member: item.member
  245.             } %}
  246.         {% elseif item.type == 22 %} {# Guestbook entry #}
  247.             {% include '_widgets/profile-timeline-item-guestbook.html.twig' with {
  248.                 item: item,
  249.                 member: item.member
  250.             } %}
  251.         {% elseif item.type == 12 %} {# Guestbook comment #}
  252.             {% include '_widgets/profile-timeline-item-guestbook-comment.html.twig' with {
  253.                 item: item,
  254.                 member: item.member
  255.             } %}
  256.         {% elseif item.type == 13 %} {# ContentComment #}
  257.             {% include '_widgets/profile-timeline-item-contentcomment.html.twig' with {
  258.                 item: item,
  259.                 member: item.member,
  260.                 video: item.content.type == 1 ? item.video : null,
  261.                 imageset: item.content.type == 2 ? item.imageset : null
  262.             } %}
  263.         {% endif %}
  264.     {% endfor %}
  265. </div>
  266. <p class=\"text-center\">
  267.     {{ knp_pagination_render(timeline) }}
  268. </p>
  269. {% endblock %}
  270. {% block javascripts %}
  271.   {{ parent() }}
  272. {% endblock %}
  273. ""global_feed/index.html.twig""/var/www/frontend-dev/apps/frontend/templates/global_feed/index.html.twig");
  274.     }
  275. }