<?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/post-single.html.twig */
class __TwigTemplate_c01a439371c6b08a997f1103fafeb561 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 1
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/post-single.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/post-single.html.twig"));
$this->parent = $this->loadTemplate("1-col-sidebar.html.twig", "content/tmpl/post-single.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 4
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 5
echo "\t<h1 class=\"post-title\">";
echo twig_escape_filter($this->env, 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.', 5, $this->source); })()), "title", [], "any", false, false, false, 5), "html", null, true);
echo "</h1>
\t";
// line 6
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.', 6, $this->source); })()), "getFeaturedImageTag", [], "method", false, false, false, 6))) {
// line 7
echo "\t\t<div class=\"post-thumbnail\">
\t";
// line 8
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.', 8, $this->source); })()), "getMediaURL", [], "method", false, false, false, 8)) {
echo "<a href=\"";
echo twig_escape_filter($this->env, 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.', 8, $this->source); })()), "getMediaURL", [], "method", false, false, false, 8), "html", null, true);
echo "\">";
}
// line 9
echo "\t\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.', 9, $this->source); })()), "getFeaturedImageTag", ["", "max-height: 450px"], "method", false, false, false, 9);
echo "
\t\t";
// 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); })()), "getMediaURL", [], "method", false, false, false, 10)) {
echo "</a>";
}
// line 11
echo "\t\t</div>
\t";
}
// line 13
echo "\t";
// line 14
echo "\t";
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, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 14, $this->source); })()), "publishedat", [], "any", false, false, false, 14))), "html", null, true);
echo "
\t";
// line 16
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.', 16, $this->source); })()), "getIncludeAuthorByline", [], "method", false, false, false, 16) && 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); })()), "getAuthor", [], "method", false, false, false, 16))) {
// line 17
echo "\t\t";
if (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.', 17, $this->source); })()), "getAuthor", [], "method", false, false, false, 17), "getByline", [], "method", false, false, false, 17)) {
// line 18
echo "\t\t\t<p>";
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.', 18, $this->source); })()), "getAuthor", [], "method", false, false, false, 18), "getByline", [], "method", false, false, false, 18), "html", null, true);
echo "</p>
\t\t";
}
// line 20
echo "\t";
}
// line 21
echo "
\t<div class=\"post--content\">
\t\t";
// line 23
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.', 23, $this->source); })()), "getContentFull", [], "method", false, false, false, 23));
echo "
\t</div>
\t";
// line 26
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.', 26, $this->source); })()), "getIncludeCustomerCallToAction", [], "method", false, false, false, 26) && 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.', 26, $this->source); })()), "getPrimaryCustomer", [], "method", false, false, false, 26))) {
// line 27
echo "\t\t";
if (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.', 27, $this->source); })()), "getPrimaryCustomer", [], "method", false, false, false, 27), "getCallToAction", [], "method", false, false, false, 27)) {
// line 28
echo "\t\t\t";
echo $this->extensions['App\Twig\RCSExtension']->wordpress(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.', 28, $this->source); })()), "getPrimaryCustomer", [], "method", false, false, false, 28), "getCallToAction", [], "method", false, false, false, 28));
echo "
\t\t";
}
// line 30
echo "\t";
}
// line 31
echo "
\t";
// line 32
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.', 32, $this->source); })()), "getIncludeAuthorBio", [], "method", false, false, false, 32) && 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.', 32, $this->source); })()), "getAuthor", [], "method", false, false, false, 32))) {
// line 33
echo "\t\t";
if (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.', 33, $this->source); })()), "getAuthor", [], "method", false, false, false, 33), "getAuthorBio", [], "method", false, false, false, 33)) {
// line 34
echo "\t\t\t";
echo $this->extensions['App\Twig\RCSExtension']->wordpress(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.', 34, $this->source); })()), "getAuthor", [], "method", false, false, false, 34), "getAuthorBio", [], "method", false, false, false, 34));
echo "
\t\t";
}
// line 36
echo "\t";
}
// line 37
echo "
\t";
// line 38
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.', 38, $this->source); })()), "getIncludeCustomerBio", [], "method", false, false, false, 38) && 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.', 38, $this->source); })()), "getPrimaryCustomer", [], "method", false, false, false, 38))) {
// line 39
echo "\t\t";
if (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.', 39, $this->source); })()), "getPrimaryCustomer", [], "method", false, false, false, 39), "getBio", [], "method", false, false, false, 39)) {
// line 40
echo "\t\t\t";
echo $this->extensions['App\Twig\RCSExtension']->wordpress(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.', 40, $this->source); })()), "getPrimaryCustomer", [], "method", false, false, false, 40), "getBio", [], "method", false, false, false, 40));
echo "
\t\t";
}
// line 42
echo "\t";
}
// line 43
echo "
\t";
// line 44
$context["category"] = 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.', 44, $this->source); })()), "category", [], "any", false, false, false, 44);
// line 45
echo "
\t";
// line 46
if (((isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 46, $this->source); })()) != "Buy Online")) {
// line 47
echo "
\t\t";
// line 49
echo "\t\t";
$this->loadTemplate("includes/social-share.html.twig", "content/tmpl/post-single.html.twig", 49)->display($context);
// line 50
echo "
\t\t";
// line 52
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.', 52, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_AAR"))) {
// line 53
echo "\t\t\t";
$this->loadTemplate("includes/post-categories_aar.html.twig", "content/tmpl/post-single.html.twig", 53)->display($context);
// line 54
echo "\t\t";
}
// line 55
echo "\t\t";
// line 57
echo "\t\t";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["meta"]) || array_key_exists("meta", $context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.', 57, $this->source); })()), "recommended", [], "any", false, false, false, 57)) > 0)) {
// line 58
echo "\t\t\t<hr>
\t\t\t<h2>
\t\t\t\tRecommended For You
\t\t\t</h2>
\t\t\t<div class=\"rec-grid\">
\t\t\t\t";
// line 63
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["meta"]) || array_key_exists("meta", $context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.', 63, $this->source); })()), "recommended", [], "any", false, false, false, 63));
foreach ($context['_seq'] as $context["_key"] => $context["rec"]) {
// line 64
echo "\t\t\t\t\t<a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rec"], "getURL", [], "method", false, false, false, 64), "html", null, true);
echo "\" class=\"no-track\">
\t\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t\t";
// line 76
echo "
\t\t\t\t\t\t\t";
// line 78
echo twig_get_attribute($this->env, $this->source, $context["rec"], "getFeaturedImageTag", ["card-img-top", "max-height: 450px"], "method", false, false, false, 78);
echo "
\t\t\t\t\t\t\t<div class=\"card-body\">
\t\t\t\t\t\t\t\t<p class=\"card-title\" style=\"font-weight: bold\">
\t\t\t\t\t\t\t\t\t";
// line 81
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rec"], "title", [], "any", false, false, false, 81), "html", null, true);
echo "
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\tRead More ...
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</a>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rec'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo "\t\t\t</div>
\t\t";
}
// line 90
echo "\t\t";
// line 91
echo "\t\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\RCS\\ContentController::comment", ["content" => // line 93
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 93, $this->source); })())]));
// line 95
echo "
\t";
}
// line 98
echo "
\t<style>
\t\t.rec-grid {
\t\t\tdisplay: grid;
\t\t\tgrid-template: 'a b c';
\t\t\tgap: 15px;
\t\t}
\t\t.card {
\t\t\tcursor: pointer;
\t\t\ttransition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
\t\t}
\t\t.card:hover {
\t\t\tbox-shadow: 9px 14px 20px 0 #00000012;
\t\t}
\t\t@media only screen and (max-width: 992px) {
\t\t\t.rec-grid {
\t\t\t\tgrid-template: 'a';
\t\t\t}
\t\t\t.card-title{
\t\t\t\tfont-size: small;
\t\t\t}
\t\t\t.rec-grid a:not(:first-child){
\t\t\t\tdisplay: none;
\t\t\t}
\t\t}
\t</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/tmpl/post-single.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 266 => 98, 261 => 95, 259 => 93, 257 => 91, 255 => 90, 251 => 88, 238 => 81, 232 => 78, 228 => 76, 221 => 64, 217 => 63, 210 => 58, 207 => 57, 205 => 55, 202 => 54, 199 => 53, 196 => 52, 193 => 50, 190 => 49, 187 => 47, 185 => 46, 182 => 45, 180 => 44, 177 => 43, 174 => 42, 168 => 40, 165 => 39, 163 => 38, 160 => 37, 157 => 36, 151 => 34, 148 => 33, 146 => 32, 143 => 31, 140 => 30, 134 => 28, 131 => 27, 129 => 26, 123 => 23, 119 => 21, 116 => 20, 110 => 18, 107 => 17, 105 => 16, 99 => 14, 97 => 13, 93 => 11, 89 => 10, 84 => 9, 78 => 8, 75 => 7, 73 => 6, 68 => 5, 58 => 4, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"1-col-sidebar.html.twig\" %}
{# single post #}
{% block column %}
\t<h1 class=\"post-title\">{{ content.title }}</h1>
\t{% if content.getFeaturedImageTag() is not empty %}
\t\t<div class=\"post-thumbnail\">
\t{% if content.getMediaURL() %}<a href=\"{{content.getMediaURL()}}\">{% endif %}
\t\t\t{{ content.getFeaturedImageTag(\"\", \"max-height: 450px\")|raw }}
\t\t{% if content.getMediaURL() %}</a>{% endif %}
\t\t</div>
\t{% endif %}
\t{#{{ content.publishedat | date(\"F j, Y\") }}#}
\t{{ content.publishedat | date | rcsDateFormat }}
\t{% if content.getIncludeAuthorByline() and content.getAuthor() %}
\t\t{% if content.getAuthor().getByline() %}
\t\t\t<p>{{content.getAuthor().getByline()}}</p>
\t\t{% endif %}
\t{% endif %}
\t<div class=\"post--content\">
\t\t{{ content.getContentFull() | wordpress | raw }}
\t</div>
\t{% if content.getIncludeCustomerCallToAction() and content.getPrimaryCustomer() %}
\t\t{% if content.getPrimaryCustomer().getCallToAction() %}
\t\t\t{{content.getPrimaryCustomer().getCallToAction() | wordpress | raw }}
\t\t{% endif %}
\t{% endif %}
\t{% if content.getIncludeAuthorBio() and content.getAuthor() %}
\t\t{% if content.getAuthor().getAuthorBio() %}
\t\t\t{{content.getAuthor().getAuthorBio() | wordpress | raw }}
\t\t{% endif %}
\t{% endif %}
\t{% if content.getIncludeCustomerBio() and content.getPrimaryCustomer() %}
\t\t{% if content.getPrimaryCustomer().getBio() %}
\t\t\t{{content.getPrimaryCustomer().getBio() | wordpress | raw }}
\t\t{% endif %}
\t{% endif %}
\t{% set category = content.category %}
\t{% if category != \"Buy Online\" %}
\t\t{#social share buttons#}
\t\t{% include \"includes/social-share.html.twig\" %}
\t\t{# AAR categories #}
\t\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_AAR\") %}
\t\t\t{% include \"includes/post-categories_aar.html.twig\" %}
\t\t{% endif %}
\t\t{#count:
\t\t{{meta.recommended|length}}#}
\t\t{% if meta.recommended|length > 0 %}
\t\t\t<hr>
\t\t\t<h2>
\t\t\t\tRecommended For You
\t\t\t</h2>
\t\t\t<div class=\"rec-grid\">
\t\t\t\t{% for rec in meta.recommended %}
\t\t\t\t\t<a href=\"{{ rec.getURL() }}\" class=\"no-track\">
\t\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t\t{# {% if rec.hot %}
\t\t\t\t\t\t\t\t<div style=\" text-align: center;
\t\t\t\t\t\t\t\t\t\t font-size: large;
\t\t\t\t\t\t\t\t\t\t font-weight: bolder;
\t\t\t\t\t\t\t\t\t\t background: #42465691;\">
\t\t\t\t\t\t\t\t\t<marquee>fTRENDING</marquee>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% endif %} #}
\t\t\t\t\t\t\t{{ rec.getFeaturedImageTag(\"card-img-top\", \"max-height: 450px\")|raw }}
\t\t\t\t\t\t\t<div class=\"card-body\">
\t\t\t\t\t\t\t\t<p class=\"card-title\" style=\"font-weight: bold\">
\t\t\t\t\t\t\t\t\t{{rec.title}}
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\tRead More ...
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</a>
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t{% endif %}
\t\t{# comments #}
\t\t{{ render(controller(
\t\t\t'App\\\\Controller\\\\RCS\\\\ContentController::comment',
\t\t\t{ 'content': content }
\t\t ))
\t\t}}
\t{% endif %}
\t<style>
\t\t.rec-grid {
\t\t\tdisplay: grid;
\t\t\tgrid-template: 'a b c';
\t\t\tgap: 15px;
\t\t}
\t\t.card {
\t\t\tcursor: pointer;
\t\t\ttransition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
\t\t}
\t\t.card:hover {
\t\t\tbox-shadow: 9px 14px 20px 0 #00000012;
\t\t}
\t\t@media only screen and (max-width: 992px) {
\t\t\t.rec-grid {
\t\t\t\tgrid-template: 'a';
\t\t\t}
\t\t\t.card-title{
\t\t\t\tfont-size: small;
\t\t\t}
\t\t\t.rec-grid a:not(:first-child){
\t\t\t\tdisplay: none;
\t\t\t}
\t\t}
\t</style>
{% endblock %}
", "content/tmpl/post-single.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/post-single.html.twig");
}
}