<?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/page.html.twig */
class __TwigTemplate_da7611143d44d0c11c99006c36b3c1b4 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
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/page.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/page.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "content/page.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
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 4
echo " <div class=\"my-4 ";
if ( !(null === 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.', 4, $this->source); })()), "getContentMetaByKey", ["class"], "method", false, false, false, 4))) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 4, $this->source); })()), "getContentMetaByKey", ["class"], "method", false, false, false, 4), "getMetavalue", [], "method", false, false, false, 4), "html", null, true);
}
echo "\">
\t
\t";
// line 11
echo "\t
\t
\t";
// line 14
echo "\t\t
";
// line 15
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.', 15, $this->source); })()), "template", [], "any", false, false, false, 15) == 1)) {
// line 16
echo " ";
$this->loadTemplate("content/tmpl/1-col-full.html.twig", "content/page.html.twig", 16)->display($context);
// line 17
echo " ";
} elseif ((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.', 17, $this->source); })()), "template", [], "any", false, false, false, 17) == 2)) {
// line 18
echo " ";
$this->loadTemplate("content/tmpl/1-col-sidebar.html.twig", "content/page.html.twig", 18)->display($context);
// line 19
echo " ";
} elseif ((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.', 19, $this->source); })()), "template", [], "any", false, false, false, 19) == 3)) {
// line 20
echo " ";
$this->loadTemplate("content/tmpl/2-col-sidebar.html.twig", "content/page.html.twig", 20)->display($context);
// line 21
echo " ";
} elseif ((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.', 21, $this->source); })()), "template", [], "any", false, false, false, 21) == 4)) {
// line 22
echo " ";
$this->loadTemplate("content/tmpl/3-col-sidebar.html.twig", "content/page.html.twig", 22)->display($context);
// line 23
echo " ";
} elseif ((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.', 23, $this->source); })()), "template", [], "any", false, false, false, 23) == 4)) {
// line 24
echo " ";
$this->loadTemplate("content/tmpl/3-col-sidebar.html.twig", "content/page.html.twig", 24)->display($context);
// line 25
echo "\t";
} elseif ((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.', 25, $this->source); })()), "template", [], "any", false, false, false, 25) == 5)) {
// line 26
echo "\t\t";
// line 27
echo "\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\RCS\\ContentController::webinars", ["content" => // line 29
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 29, $this->source); })())]));
// line 30
echo "
\t";
} 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); })()), "template", [], "any", false, false, false, 31) == 10)) {
// line 32
echo "\t\t";
// line 33
echo "\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\RCS\\ContentController::partnerwebinars", ["content" => // line 35
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 35, $this->source); })())]));
// line 36
echo "
\t";
} 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); })()), "template", [], "any", false, false, false, 37) == 6)) {
// line 38
echo " ";
// line 39
echo "\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Master\\ContentController::podcasts", ["content" => // line 41
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 41, $this->source); })())]));
// line 42
echo "
\t";
} elseif ((twig_get_attribute($this->env, $this->source, // line 43
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 43, $this->source); })()), "template", [], "any", false, false, false, 43) == 7)) {
// line 44
echo "\t\t";
if (((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 44, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_AAR"))) {
// line 45
echo "\t\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\AAR\\ContentController::roofinggalleries", ["content" => // line 47
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 47, $this->source); })())]));
// line 48
echo "
\t\t";
} else {
// line 50
echo "\t\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\RCS\\ContentController::roofinggalleries", ["content" => // line 52
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 52, $this->source); })())]));
// line 53
echo "
\t\t";
}
// line 55
echo "\t";
} elseif ((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.', 55, $this->source); })()), "template", [], "any", false, false, false, 55) == 8)) {
// line 56
echo "\t\t";
if (((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 56, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_AAR"))) {
// line 57
echo "\t\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\AAR\\ContentController::partnergalleries", ["content" => // line 59
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 59, $this->source); })())]));
// line 60
echo "
\t\t";
} else {
// line 62
echo "\t\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\RCS\\ContentController::partnergalleries", ["content" => // line 64
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 64, $this->source); })())]));
// line 65
echo "
\t\t";
}
// line 67
echo "\t";
} elseif ((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.', 67, $this->source); })()), "template", [], "any", false, false, false, 67) == 9)) {
// line 68
echo "\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Master\\ContentController::meetinfluencers", ["content" => // line 70
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 70, $this->source); })())]));
// line 71
echo "
\t";
} elseif ((twig_get_attribute($this->env, $this->source, // line 72
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 72, $this->source); })()), "template", [], "any", false, false, false, 72) == 11)) {
// line 73
echo "\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\RCS\\ContentController::zoomembed", ["content" => // line 75
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 75, $this->source); })())]));
// line 76
echo "
\t";
} elseif ((twig_get_attribute($this->env, $this->source, // line 77
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 77, $this->source); })()), "template", [], "any", false, false, false, 77) == 12)) {
// line 78
echo "\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Master\\ContentController::partnerspage", ["content" => // line 80
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 80, $this->source); })())]));
// line 81
echo "
\t";
} elseif ((twig_get_attribute($this->env, $this->source, // line 82
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 82, $this->source); })()), "template", [], "any", false, false, false, 82) == 26)) {
// line 83
echo "\t\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Master\\ContentController::ebooks", ["content" => // line 87
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 87, $this->source); })()), "slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 88
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 88, $this->source); })()), "request", [], "any", false, false, false, 88), "attributes", [], "any", false, false, false, 88), "get", ["slug"], "method", false, false, false, 88)]));
// line 91
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 92
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 92, $this->source); })()), "template", [], "any", false, false, false, 92) == 15)) {
// line 93
echo " ";
$this->loadTemplate("content/tmpl/RLW.html.twig", "content/page.html.twig", 93)->display($context);
// line 94
echo "\t";
} elseif ((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.', 94, $this->source); })()), "template", [], "any", false, false, false, 94) == 27)) {
// line 95
echo "\t\t";
$this->loadTemplate("content/tmpl/no-ads.html.twig", "content/page.html.twig", 95)->display($context);
// line 96
echo "\t";
} else {
// line 97
echo "\t\t";
$this->loadTemplate("content/tmpl/1-col-sidebar.html.twig", "content/page.html.twig", 97)->display($context);
// line 98
echo " ";
}
// line 99
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/page.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 247 => 99, 244 => 98, 241 => 97, 238 => 96, 235 => 95, 232 => 94, 229 => 93, 227 => 92, 224 => 91, 222 => 88, 221 => 87, 219 => 83, 217 => 82, 214 => 81, 212 => 80, 210 => 78, 208 => 77, 205 => 76, 203 => 75, 201 => 73, 199 => 72, 196 => 71, 194 => 70, 192 => 68, 189 => 67, 185 => 65, 183 => 64, 181 => 62, 177 => 60, 175 => 59, 173 => 57, 170 => 56, 167 => 55, 163 => 53, 161 => 52, 159 => 50, 155 => 48, 153 => 47, 151 => 45, 148 => 44, 146 => 43, 143 => 42, 141 => 41, 139 => 39, 137 => 38, 135 => 37, 132 => 36, 130 => 35, 128 => 33, 126 => 32, 124 => 31, 121 => 30, 119 => 29, 117 => 27, 115 => 26, 112 => 25, 109 => 24, 106 => 23, 103 => 22, 100 => 21, 97 => 20, 94 => 19, 91 => 18, 88 => 17, 85 => 16, 83 => 15, 80 => 14, 76 => 11, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block body %}
<div class=\"my-4 {% if content.getContentMetaByKey('class') is not null %}{{content.getContentMetaByKey('class').getMetavalue()}}{% endif %}\">
\t
\t{# TODO:
\t The tmpl folder was meant for these specific page templates that are selected from the admin interface...
\t but it's filled with a bunch of other template files right now. This should be cleaned up later, either these templates
\t should be moved to another folder or any templates besides these should be moved elsewhere.
\t#}
\t
\t
\t{# Note: When new templates are added here, they'll also need to be added to the pages.yml and content.yml easy admin files so that they can be selected #}
\t\t
{% if content.template == 1 %}
{% include \"content/tmpl/1-col-full.html.twig\" %}
{% elseif content.template == 2 %}
{% include \"content/tmpl/1-col-sidebar.html.twig\" %}
{% elseif content.template == 3 %}
{% include \"content/tmpl/2-col-sidebar.html.twig\" %}
{% elseif content.template == 4 %}
{% include \"content/tmpl/3-col-sidebar.html.twig\" %}
{% elseif content.template == 4 %}
{% include \"content/tmpl/3-col-sidebar.html.twig\" %}
\t{% elseif content.template == 5 %}
\t\t{# include \"content/tmpl/webinars.html.twig\" #}
\t\t{{ render(controller(
\t\t\t'App\\\\Controller\\\\RCS\\\\ContentController::webinars',
\t\t\t{ 'content': content }
\t\t)) }}
\t{% elseif content.template == 10 %}
\t\t{# include \"content/tmpl/partner-webinars.html.twig\" #}
\t\t{{ render(controller(
\t\t\t'App\\\\Controller\\\\RCS\\\\ContentController::partnerwebinars',
\t\t\t{ 'content': content }
\t\t)) }}
\t{% elseif content.template == 6 %}
{# include \"content/tmpl/podcasts.html.twig\" #}
\t\t{{ render(controller(
\t\t\t'App\\\\Controller\\\\Master\\\\ContentController::podcasts',
\t\t\t{ 'content': content }
\t\t)) }}
\t{% elseif content.template == 7 %}
\t\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_AAR\") %}
\t\t\t{{ render(controller(
\t\t\t\t'App\\\\Controller\\\\AAR\\\\ContentController::roofinggalleries',
\t\t\t\t{ 'content': content }
\t\t\t)) }}
\t\t{% else %}
\t\t\t{{ render(controller(
\t\t\t\t'App\\\\Controller\\\\RCS\\\\ContentController::roofinggalleries',
\t\t\t\t{ 'content': content }
\t\t\t)) }}
\t\t{% endif %}
\t{% elseif content.template == 8 %}
\t\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_AAR\") %}
\t\t\t{{ render(controller(
\t\t\t\t'App\\\\Controller\\\\AAR\\\\ContentController::partnergalleries',
\t\t\t\t{ 'content': content }
\t\t\t)) }}
\t\t{% else %}
\t\t\t{{ render(controller(
\t\t\t\t'App\\\\Controller\\\\RCS\\\\ContentController::partnergalleries',
\t\t\t\t{ 'content': content }
\t\t\t)) }}
\t\t{% endif %}
\t{% elseif content.template == 9 %}
\t\t{{ render(controller(
\t\t\t'App\\\\Controller\\\\Master\\\\ContentController::meetinfluencers',
\t\t\t{ 'content': content }
\t\t)) }}
\t{% elseif content.template == 11 %}
\t\t{{ render(controller(
\t\t\t'App\\\\Controller\\\\RCS\\\\ContentController::zoomembed',
\t\t\t{ 'content': content }
\t\t)) }}
\t{% elseif content.template == 12 %}
\t\t{{ render(controller(
\t\t\t'App\\\\Controller\\\\Master\\\\ContentController::partnerspage',
\t\t\t{ 'content': content }
\t\t)) }}
\t{% elseif content.template == 26 %}
\t\t\t{{
\t\t\trender(controller(
\t\t\t\t'App\\\\Controller\\\\Master\\\\ContentController::ebooks',
\t\t\t\t{
\t\t\t\t\t'content': content,
\t\t\t\t\t'slug' : app.request.attributes.get('slug')
\t\t\t\t}
\t\t\t))
\t\t}}
{% elseif content.template == 15 %}
{% include \"content/tmpl/RLW.html.twig\" %}
\t{% elseif content.template == 27 %}
\t\t{% include \"content/tmpl/no-ads.html.twig\" %}
\t{% else %}
\t\t{% include \"content/tmpl/1-col-sidebar.html.twig\" %}
{% endif %}
</div>
{% endblock %}", "content/page.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/page.html.twig");
}
}