<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* global_feed/index.html.twig */
class __TwigTemplate_70ea69ca0ac0c9cd92443c83cf3dc520 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title_suffix' => [$this, 'block_title_suffix'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
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", false, false, false, 1)), "global_feed/index.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "global_feed/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "global_feed/index.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_title_suffix($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title_suffix"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title_suffix"));
echo "Home";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 4
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 5
echo "
<h1>Das ist los hier auf Frivol.com</h1>
<div class=\"resultlist row timeline-container\">
";
// line 8
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 9
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 9) == 2)) {
echo " ";
// line 10
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "content", [], "any", false, false, false, 10), "type", [], "any", false, false, false, 10) == 1)) {
// line 11
echo " ";
$this->loadTemplate("_widgets/profile-timeline-item-video.html.twig", "global_feed/index.html.twig", 11)->display(twig_array_merge($context, ["item" => // line 12
$context["item"], "content" => twig_get_attribute($this->env, $this->source, // line 13
$context["item"], "content", [], "any", false, false, false, 13), "video" => twig_get_attribute($this->env, $this->source, // line 14
$context["item"], "video", [], "any", false, false, false, 14), "member" => twig_get_attribute($this->env, $this->source, // line 15
$context["item"], "member", [], "any", false, false, false, 15)]));
// line 17
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "content", [], "any", false, false, false, 17), "type", [], "any", false, false, false, 17) == 2)) {
// line 18
echo " ";
$this->loadTemplate("_widgets/profile-timeline-item-imageset.html.twig", "global_feed/index.html.twig", 18)->display(twig_array_merge($context, ["item" => // line 19
$context["item"], "content" => twig_get_attribute($this->env, $this->source, // line 20
$context["item"], "content", [], "any", false, false, false, 20), "imageset" => twig_get_attribute($this->env, $this->source, // line 21
$context["item"], "imageset", [], "any", false, false, false, 21), "member" => twig_get_attribute($this->env, $this->source, // line 22
$context["item"], "member", [], "any", false, false, false, 22)]));
// line 24
echo " ";
}
// line 25
echo " ";
} elseif (((twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 25) == 3) && twig_get_attribute($this->env, $this->source, $context["item"], "blog_entry", [], "any", true, true, false, 25))) {
echo " ";
// line 26
echo " ";
$this->loadTemplate("_widgets/profile-timeline-item-blogpost.html.twig", "global_feed/index.html.twig", 26)->display(twig_array_merge($context, ["item" => // line 27
$context["item"], "member" => twig_get_attribute($this->env, $this->source, // line 28
$context["item"], "member", [], "any", false, false, false, 28)]));
// line 30
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 30) == 22)) {
echo " ";
// line 31
echo " ";
$this->loadTemplate("_widgets/profile-timeline-item-guestbook.html.twig", "global_feed/index.html.twig", 31)->display(twig_array_merge($context, ["item" => // line 32
$context["item"], "member" => twig_get_attribute($this->env, $this->source, // line 33
$context["item"], "member", [], "any", false, false, false, 33)]));
// line 35
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 35) == 12)) {
echo " ";
// line 36
echo " ";
$this->loadTemplate("_widgets/profile-timeline-item-guestbook-comment.html.twig", "global_feed/index.html.twig", 36)->display(twig_array_merge($context, ["item" => // line 37
$context["item"], "member" => twig_get_attribute($this->env, $this->source, // line 38
$context["item"], "member", [], "any", false, false, false, 38)]));
// line 40
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 40) == 13)) {
echo " ";
// line 41
echo " ";
$this->loadTemplate("_widgets/profile-timeline-item-contentcomment.html.twig", "global_feed/index.html.twig", 41)->display(twig_array_merge($context, ["item" => // line 42
$context["item"], "member" => twig_get_attribute($this->env, $this->source, // line 43
$context["item"], "member", [], "any", false, false, false, 43), "video" => (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 44
$context["item"], "content", [], "any", false, false, false, 44), "type", [], "any", false, false, false, 44) == 1)) ? (twig_get_attribute($this->env, $this->source, $context["item"], "video", [], "any", false, false, false, 44)) : (null)), "imageset" => (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 45
$context["item"], "content", [], "any", false, false, false, 45), "type", [], "any", false, false, false, 45) == 2)) ? (twig_get_attribute($this->env, $this->source, $context["item"], "imageset", [], "any", false, false, false, 45)) : (null))]));
// line 47
echo " ";
}
// line 48
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
echo "</div>
<p class=\"text-center\">
";
// line 51
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); })()));
echo "
</p>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 57
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 58
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "global_feed/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends baseTemplateName(app.request) %}
{% block title_suffix %}Home{% endblock %}
{% block body %}
<h1>Das ist los hier auf Frivol.com</h1>
<div class=\"resultlist row timeline-container\">
{% for item in timeline %}
{% if item.type == 2 %} {# Content #}
{% if item.content.type == 1 %}
{% include '_widgets/profile-timeline-item-video.html.twig' with {
item: item,
content: item.content,
video: item.video,
member: item.member
} %}
{% elseif item.content.type == 2 %}
{% include '_widgets/profile-timeline-item-imageset.html.twig' with {
item: item,
content: item.content,
imageset: item.imageset,
member: item.member
} %}
{% endif %}
{% elseif item.type == 3 and item.blog_entry is defined %} {# Blog post #}
{% include '_widgets/profile-timeline-item-blogpost.html.twig' with {
item: item,
member: item.member
} %}
{% elseif item.type == 22 %} {# Guestbook entry #}
{% include '_widgets/profile-timeline-item-guestbook.html.twig' with {
item: item,
member: item.member
} %}
{% elseif item.type == 12 %} {# Guestbook comment #}
{% include '_widgets/profile-timeline-item-guestbook-comment.html.twig' with {
item: item,
member: item.member
} %}
{% elseif item.type == 13 %} {# ContentComment #}
{% include '_widgets/profile-timeline-item-contentcomment.html.twig' with {
item: item,
member: item.member,
video: item.content.type == 1 ? item.video : null,
imageset: item.content.type == 2 ? item.imageset : null
} %}
{% endif %}
{% endfor %}
</div>
<p class=\"text-center\">
{{ knp_pagination_render(timeline) }}
</p>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% endblock %}
", "global_feed/index.html.twig", "/var/www/frontend-dev/apps/frontend/templates/global_feed/index.html.twig");
}
}