<?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/tmpl/podcasts.html.twig */
class __TwigTemplate_9bebcd688417828eab832f332234766e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'column' => [$this, 'block_column'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "1-col-sidebar.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/tmpl/podcasts.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/tmpl/podcasts.html.twig"));
$this->parent = $this->loadTemplate("1-col-sidebar.html.twig", "content/tmpl/podcasts.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
public function block_column($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", "column"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "column"));
// line 6
echo "\t\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.', 6, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_RCS"))) {
// line 7
echo "\t\t\t
";
// line 8
$this->loadTemplate("includes/curtain-ads/rlw.html.twig", "content/tmpl/podcasts.html.twig", 8)->display($context);
// line 9
echo "\t\t\t";
}
// line 10
echo "\t";
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); })()), "getShowTitle", [], "method", false, false, false, 10)) {
// line 11
echo "\t\t<h1>";
echo 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.', 11, $this->source); })()), "getTitle", [], "method", false, false, false, 11);
echo "</h1>
\t";
}
// line 13
echo "\t
\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); })()), "getFeaturedImageTag", [], "method", false, false, false, 15)) {
// line 16
echo "\t\t";
echo 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.', 16, $this->source); })()), "getFeaturedImageTag", ["display-block", ""], "method", false, false, false, 16);
echo "
\t";
}
// line 18
echo "\t
\t";
// line 20
echo "\t";
if ( !twig_test_empty(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.', 20, $this->source); })()), "getContentFull", [], "method", false, false, false, 20))) {
// line 21
echo "\t\t";
echo $this->extensions['App\Twig\RCSExtension']->wordpress(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); })()), "getContentFull", [], "method", false, false, false, 21));
echo "
\t";
}
// line 23
echo "\t
\t";
// line 24
$context["count"] = 0;
// line 25
echo "\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["podcasts"]) || array_key_exists("podcasts", $context) ? $context["podcasts"] : (function () { throw new RuntimeError('Variable "podcasts" does not exist.', 25, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["podcast"]) {
// line 26
echo "\t\t";
$context["m"] = twig_get_attribute($this->env, $this->source, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 26, $this->source); })()), (isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 26, $this->source); })()), [], "array", false, false, false, 26);
// line 27
echo "\t\t<div class=\"row my-4\">
\t\t\t";
// line 28
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["podcast"], "getFeaturedImageTag", [], "method", false, false, false, 28))) {
// line 29
echo "\t\t\t\t<div class=\"col-3 post-thumbnail\">
\t\t\t\t\t";
// line 30
echo twig_get_attribute($this->env, $this->source, $context["podcast"], "getFeaturedImageTag", ["", ""], "method", false, false, false, 30);
echo "
\t\t\t\t</div>
\t\t\t";
} elseif ( !twig_test_empty( // line 32
(isset($context["m"]) || array_key_exists("m", $context) ? $context["m"] : (function () { throw new RuntimeError('Variable "m" does not exist.', 32, $this->source); })()))) {
// line 33
echo "\t\t\t\t<div class=\"col-3 post-thumbnail\">
\t\t\t\t\t";
// line 34
echo twig_get_attribute($this->env, $this->source, (isset($context["m"]) || array_key_exists("m", $context) ? $context["m"] : (function () { throw new RuntimeError('Variable "m" does not exist.', 34, $this->source); })()), "getImageTag", ["", ""], "method", false, false, false, 34);
echo "
\t\t\t\t</div>
\t\t\t";
}
// line 37
echo "\t\t\t<div class=";
echo (((twig_test_empty(twig_get_attribute($this->env, $this->source, $context["podcast"], "getFeaturedImageTag", [], "method", false, false, false, 37)) && twig_test_empty((isset($context["m"]) || array_key_exists("m", $context) ? $context["m"] : (function () { throw new RuntimeError('Variable "m" does not exist.', 37, $this->source); })())))) ? ("col-12") : ("col-9"));
echo ">
\t\t\t\t<h3 class=\"list-post-title\"><a href=\"";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["podcast"], "getURL", [], "method", false, false, false, 38), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["podcast"], "title", [], "any", false, false, false, 38), "html", null, true);
echo "</a></h3>
\t\t\t\t<p class=\"post-byline\">";
// line 39
echo twig_escape_filter($this->env, $this->extensions['App\Twig\RCSExtension']->rcsDateFormat(twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["podcast"], "publishedat", [], "any", false, false, false, 39))), "html", null, true);
echo "</p>
\t\t\t\t";
// line 45
echo "\t\t\t\t
\t\t\t\t<p>";
// line 46
echo twig_get_attribute($this->env, $this->source, $context["podcast"], "getIntroText", [], "method", false, false, false, 46);
echo "</p>
\t\t\t\t<br><br>
\t\t\t\t<div><a href=\"";
// line 48
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["podcast"], "getURL", [], "method", false, false, false, 48), "html", null, true);
echo "\">Read More</a></div>
\t\t\t\t
\t\t\t\t";
// line 59
echo "\t\t\t\t
\t\t\t</div>
\t\t</div>
\t\t<hr>
\t\t";
// line 63
$context["count"] = ((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 63, $this->source); })()) + 1);
// line 64
echo "\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['podcast'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 65
echo "\t
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/tmpl/podcasts.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 191 => 65, 185 => 64, 183 => 63, 177 => 59, 172 => 48, 167 => 46, 164 => 45, 160 => 39, 154 => 38, 149 => 37, 143 => 34, 140 => 33, 138 => 32, 133 => 30, 130 => 29, 128 => 28, 125 => 27, 122 => 26, 117 => 25, 115 => 24, 112 => 23, 106 => 21, 103 => 20, 100 => 18, 94 => 16, 92 => 15, 88 => 13, 82 => 11, 79 => 10, 76 => 9, 74 => 8, 71 => 7, 68 => 6, 58 => 5, 35 => 2,);
}
public function getSourceContext()
{
return new Source("
{% extends \"1-col-sidebar.html.twig\" %}
{# podcasts #}
{% block column %}
\t\t\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
\t\t\t
{% include \"includes/curtain-ads/rlw.html.twig\" %}
\t\t\t{% endif %}
\t{% if content.getShowTitle() %}
\t\t<h1>{{ content.getTitle() | raw }}</h1>
\t{% endif %}
\t
\t
\t{% if content.getFeaturedImageTag() %}
\t\t{{ content.getFeaturedImageTag(\"display-block\",\"\")|raw }}
\t{% endif %}
\t
\t{# show full content #}
\t{% if content.getContentFull() is not empty %}
\t\t{{ content.getContentFull() | wordpress | raw }}
\t{% endif %}
\t
\t{% set count = 0 %}
\t{% for podcast in podcasts %}
\t\t{% set m = images[count] %}
\t\t<div class=\"row my-4\">
\t\t\t{% if podcast.getFeaturedImageTag() is not empty %}
\t\t\t\t<div class=\"col-3 post-thumbnail\">
\t\t\t\t\t{{ podcast.getFeaturedImageTag(\"\",\"\")|raw }}
\t\t\t\t</div>
\t\t\t{% elseif m is not empty %}
\t\t\t\t<div class=\"col-3 post-thumbnail\">
\t\t\t\t\t{{ m.getImageTag(\"\",\"\")|raw }}
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t\t<div class={{ (podcast.getFeaturedImageTag() is empty and m is empty) ? \"col-12\" : \"col-9\" }}>
\t\t\t\t<h3 class=\"list-post-title\"><a href=\"{{ podcast.getURL() }}\">{{ podcast.title }}</a></h3>
\t\t\t\t<p class=\"post-byline\">{{ podcast.publishedat | date | rcsDateFormat }}</p>
\t\t\t\t{#
\t\t\t\t<p>{{ podcast.getPodcastSubtitle() | raw }}</p>
\t\t\t\t<p>{{ podcast.getPodcastInThisEpisode() | slice(0, 320) | striptags }}...</p>
\t\t\t\t<div><a href=\"{{ podcast.getURL() }}\">Read More</a></div>
\t\t\t\t#}
\t\t\t\t
\t\t\t\t<p>{{ podcast.getIntroText() | raw }}</p>
\t\t\t\t<br><br>
\t\t\t\t<div><a href=\"{{ podcast.getURL() }}\">Read More</a></div>
\t\t\t\t
\t\t\t\t{#
\t\t\t\t{% if podcast.getIntroText() == \"\" %}
\t\t\t\t\t<p>{{ podcast.contentfull | slice(0, 320) | striptags }}...</p>
\t\t\t\t\t<div><a href=\"{{ podcast.getURL() }}\">Read More</a></div>
\t\t\t\t{% else %}
\t\t\t\t\t<p>{{ podcast.getIntroText() }}...</p>
\t\t\t\t\t<div><a href=\"{{ podcast.getURL() }}\">Read More</a></div>
\t\t\t\t{% endif %}
\t\t\t\t#}
\t\t\t\t
\t\t\t</div>
\t\t</div>
\t\t<hr>
\t\t{% set count = count + 1 %}
\t{% endfor %}
\t
{% endblock %}", "content/tmpl/podcasts.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/podcasts.html.twig");
}
}