<?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;
/* content/content.html.twig */
class __TwigTemplate_39635b23f42149ab89876c3f12a87eda extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "content/content.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/content.html.twig"));
// line 9
echo "
";
// line 10
if ((twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 10, $this->source); })()), "type", [], "any", false, false, false, 10) == twig_constant("App\\Entity\\Content::POST"))) {
// line 11
echo " ";
// line 12
echo " ";
$this->loadTemplate("content/post.html.twig", "content/content.html.twig", 12)->display($context);
} elseif ((twig_get_attribute($this->env, $this->source, // line 13
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 13, $this->source); })()), "type", [], "any", false, false, false, 13) == twig_constant("App\\Entity\\Content::CLASSIFIED"))) {
// line 14
echo " ";
// line 15
echo " ";
$this->loadTemplate("content/classified.html.twig", "content/content.html.twig", 15)->display($context);
} elseif ((twig_get_attribute($this->env, $this->source, // line 16
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 16, $this->source); })()), "type", [], "any", false, false, false, 16) == 4)) {
// line 17
echo " ";
// line 18
echo " ";
$this->loadTemplate("content/directory.html.twig", "content/content.html.twig", 18)->display($context);
} elseif ((twig_get_attribute($this->env, $this->source, // line 19
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 19, $this->source); })()), "type", [], "any", false, false, false, 19) == 5)) {
// line 20
echo " ";
// line 21
echo " ";
$this->loadTemplate("content/gallery.html.twig", "content/content.html.twig", 21)->display($context);
} elseif ((twig_get_attribute($this->env, $this->source, // line 22
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 22, $this->source); })()), "type", [], "any", false, false, false, 22) == 6)) {
// line 23
echo " ";
// line 24
echo " ";
$this->loadTemplate("content/landing-page.html.twig", "content/content.html.twig", 24)->display($context);
} elseif ((twig_get_attribute($this->env, $this->source, // line 25
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 25, $this->source); })()), "type", [], "any", false, false, false, 25) == 7)) {
// line 26
echo " ";
// line 27
echo " ";
$this->loadTemplate("content/event.html.twig", "content/content.html.twig", 27)->display($context);
} elseif ((false && (twig_get_attribute($this->env, $this->source, // line 28
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 28, $this->source); })()), "type", [], "any", false, false, false, 28) == 8))) {
// line 29
echo " ";
// line 30
echo " ";
$this->loadTemplate("content/webinar.html.twig", "content/content.html.twig", 30)->display($context);
} elseif ((twig_get_attribute($this->env, $this->source, // line 31
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 31, $this->source); })()), "type", [], "any", false, false, false, 31) == 9)) {
// line 32
echo " ";
// line 33
echo " ";
$this->loadTemplate("content/forum.html.twig", "content/content.html.twig", 33)->display($context);
} elseif ((twig_get_attribute($this->env, $this->source, // line 34
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 34, $this->source); })()), "type", [], "any", false, false, false, 34) == 10)) {
// line 35
echo " ";
// line 36
echo " ";
$this->loadTemplate("content/forum-topic.html.twig", "content/content.html.twig", 36)->display($context);
} elseif ((twig_get_attribute($this->env, $this->source, // line 37
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 37, $this->source); })()), "type", [], "any", false, false, false, 37) == 11)) {
// line 38
echo " ";
// line 39
echo " ";
$this->loadTemplate("content/forum-reply.html.twig", "content/content.html.twig", 39)->display($context);
} elseif ((twig_get_attribute($this->env, $this->source, // line 40
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 40, $this->source); })()), "type", [], "any", false, false, false, 40) == 18)) {
// line 41
echo " ";
// line 42
echo " ";
$this->loadTemplate("content/podcast.html.twig", "content/content.html.twig", 42)->display($context);
// line 43
echo "
";
} else {
// line 45
echo " ";
// line 46
echo " ";
$this->loadTemplate("content/page.html.twig", "content/content.html.twig", 46)->display($context);
}
// line 48
echo "
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "content/content.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 133 => 48, 129 => 46, 127 => 45, 123 => 43, 120 => 42, 118 => 41, 116 => 40, 113 => 39, 111 => 38, 109 => 37, 106 => 36, 104 => 35, 102 => 34, 99 => 33, 97 => 32, 95 => 31, 92 => 30, 90 => 29, 88 => 28, 85 => 27, 83 => 26, 81 => 25, 78 => 24, 76 => 23, 74 => 22, 71 => 21, 69 => 20, 67 => 19, 64 => 18, 62 => 17, 60 => 16, 57 => 15, 55 => 14, 53 => 13, 50 => 12, 48 => 11, 46 => 10, 43 => 9,);
}
public function getSourceContext()
{
return new Source("{#
TODO - better variable naming
#}
{# % if
content.type == 1 or
content.type == constant(\"App\\\\Entity\\\\Content::WEBINAR\") or
content.type == 18
% #}
{% if content.type == constant(\"App\\\\Entity\\\\Content::POST\") %}
{# post #}
{% include \"content/post.html.twig\" %}
{% elseif content.type == constant(\"App\\\\Entity\\\\Content::CLASSIFIED\") %}
{# classified #}
{% include \"content/classified.html.twig\" %}
{% elseif content.type == 4 %}
{# directory #}
{% include \"content/directory.html.twig\" %}
{% elseif content.type == 5 %}
{# gallery #}
{% include \"content/gallery.html.twig\" %}
{% elseif content.type == 6 %}
{# landing page #}
{% include \"content/landing-page.html.twig\" %}
{% elseif content.type == 7 %}
{# event page #}
{% include \"content/event.html.twig\" %}
{% elseif false and content.type == 8 %}
{# webinar page #}
{% include \"content/webinar.html.twig\" %}
{% elseif content.type == 9 %}
{# forum page #}
{% include \"content/forum.html.twig\" %}
{% elseif content.type == 10 %}
{# forum topic page #}
{% include \"content/forum-topic.html.twig\" %}
{% elseif content.type == 11 %}
{# forum reply page #}
{% include \"content/forum-reply.html.twig\" %}
{% elseif content.type == 18 %}
{# podcast page #}
{% include \"content/podcast.html.twig\" %}
{% else %}
{# all single content items #}
{% include \"content/page.html.twig\" %}
{% endif %}
", "content/content.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/content.html.twig");
}
}