<?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/roofing-galleries.html.twig */
class __TwigTemplate_72b04ed6a036a15bcd237703f09d4eee 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/roofing-galleries.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/roofing-galleries.html.twig"));
$this->parent = $this->loadTemplate("1-col-sidebar.html.twig", "content/tmpl/roofing-galleries.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_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 4
echo "\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.', 4, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_RCS"))) {
// line 5
echo "\t ";
$this->loadTemplate("includes/curtain-ads/newForum.html.twig", "content/tmpl/roofing-galleries.html.twig", 5)->display($context);
// line 6
echo " ";
}
// line 7
echo "
\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); })()), "getShowTitle", [], "method", false, false, false, 8)) {
// line 9
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.', 9, $this->source); })()), "getTitle", [], "method", false, false, false, 9);
echo "</h1>
\t";
}
// line 11
echo "
\t";
// line 13
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.', 13, $this->source); })()), "getFeaturedImageTag", [], "method", false, false, false, 13)) {
// line 14
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.', 14, $this->source); })()), "getFeaturedImageTag", ["display-block", ""], "method", false, false, false, 14);
echo "
\t";
}
// line 16
echo "
\t";
// line 18
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.', 18, $this->source); })()), "getContentFull", [], "method", false, false, false, 18))) {
// line 19
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.', 19, $this->source); })()), "getContentFull", [], "method", false, false, false, 19));
echo "
\t";
}
// line 21
echo "
\t";
// line 23
echo "\t";
// line 28
echo "
\t<div class=\"clearfix\">
\t\t<div class=\"row\">
\t\t\t";
// line 32
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 32, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["gallery"]) {
// line 33
echo "\t\t\t\t<div class=\"col-lg-4\">
\t\t\t\t\t<div class=\"gallerythumb\" style=\"width:100%\">
\t\t\t\t\t\t<strong>
\t\t\t\t\t\t\t";
// line 36
if (twig_get_attribute($this->env, $this->source, $context["gallery"], "getMedia", [], "method", false, false, false, 36)) {
// line 37
echo "\t\t\t\t\t\t\t\t<a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["gallery"], "getURL", [], "method", false, false, false, 37), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t";
// line 38
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["gallery"], "getMedia", [], "method", false, false, false, 38), "getImageTag", [], "method", false, false, false, 38);
echo "
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t";
} else {
// line 41
echo "\t\t\t\t\t\t\t\t";
$context["imgSet"] = false;
// line 42
echo "\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["gallery"], "getMediaGroupContainers", [], "method", false, false, false, 42));
foreach ($context['_seq'] as $context["_key"] => $context["container"]) {
// line 43
echo "\t\t\t\t\t\t\t\t\t";
if (( !twig_test_empty($context["container"]) && !(isset($context["imgSet"]) || array_key_exists("imgSet", $context) ? $context["imgSet"] : (function () { throw new RuntimeError('Variable "imgSet" does not exist.', 43, $this->source); })()))) {
// line 44
echo "\t\t\t\t\t\t\t\t\t\t";
$context["group"] = twig_get_attribute($this->env, $this->source, $context["container"], "getMediaGroup", [], "method", false, false, false, 44);
// line 45
echo "\t\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["group"]) || array_key_exists("group", $context) ? $context["group"] : (function () { throw new RuntimeError('Variable "group" does not exist.', 45, $this->source); })()), "getMediaGroupItems", [], "method", false, false, false, 45));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 46
echo "\t\t\t\t\t\t\t\t\t\t\t";
if (($context["item"] && !(isset($context["imgSet"]) || array_key_exists("imgSet", $context) ? $context["imgSet"] : (function () { throw new RuntimeError('Variable "imgSet" does not exist.', 46, $this->source); })()))) {
// line 47
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["media"] = twig_get_attribute($this->env, $this->source, $context["item"], "getMedia", [], "method", false, false, false, 47);
// line 48
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
if ((isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 48, $this->source); })())) {
// line 49
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["imgSet"] = true;
// line 50
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["gallery"], "getURL", [], "method", false, false, false, 50), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 51
echo twig_get_attribute($this->env, $this->source, (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 51, $this->source); })()), "getImageTag", [], "method", false, false, false, 51);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 54
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
// line 55
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
// line 56
echo "\t\t\t\t\t\t\t\t\t\t\t";
}
// line 57
echo "\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 58
echo "\t\t\t\t\t\t\t\t\t";
}
// line 59
echo "\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['container'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 60
echo "\t\t\t\t\t\t\t";
}
// line 61
echo "\t\t\t\t\t\t\t<a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["gallery"], "getURL", [], "method", false, false, false, 61), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t";
// line 62
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["gallery"], "getTitle", [], "method", false, false, false, 62), "html", null, true);
echo "
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</strong>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['gallery'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 68
echo "\t\t</div>
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/tmpl/roofing-galleries.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 229 => 68, 217 => 62, 212 => 61, 209 => 60, 203 => 59, 200 => 58, 194 => 57, 191 => 56, 189 => 55, 187 => 54, 181 => 51, 176 => 50, 173 => 49, 170 => 48, 167 => 47, 164 => 46, 159 => 45, 156 => 44, 153 => 43, 148 => 42, 145 => 41, 139 => 38, 134 => 37, 132 => 36, 127 => 33, 123 => 32, 117 => 28, 115 => 23, 112 => 21, 106 => 19, 103 => 18, 100 => 16, 94 => 14, 92 => 13, 88 => 11, 82 => 9, 80 => 8, 77 => 7, 74 => 6, 71 => 5, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"1-col-sidebar.html.twig\" %}
{% block column %}
\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
\t {% include \"includes/curtain-ads/newForum.html.twig\" %}
{% endif %}
\t{% if content.getShowTitle() %}
\t\t<h1>{{ content.getTitle() | raw }}</h1>
\t{% endif %}
\t{% if content.getFeaturedImageTag() %}
\t\t{{ content.getFeaturedImageTag(\"display-block\",\"\")|raw }}
\t{% endif %}
\t{# show full content #}
\t{% if content.getContentFull() is not empty %}
\t\t{{ content.getContentFull() | wordpress | raw }}
\t{% endif %}
\t{# show builder content #}
\t{#
\t\t{% if content.getContentBuilder() and content.getContentBuilder() != '{}' %}
\t\t\t{{ content.getContentBuilder() | builder | raw }}
\t\t{% endif %}
\t\t#}
\t<div class=\"clearfix\">
\t\t<div class=\"row\">
\t\t\t{% for gallery in galleries %}
\t\t\t\t<div class=\"col-lg-4\">
\t\t\t\t\t<div class=\"gallerythumb\" style=\"width:100%\">
\t\t\t\t\t\t<strong>
\t\t\t\t\t\t\t{% if gallery.getMedia() %}
\t\t\t\t\t\t\t\t<a href=\"{{ gallery.getURL() }}\">
\t\t\t\t\t\t\t\t\t{{gallery.getMedia().getImageTag()|raw}}
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t{% set imgSet = false %}
\t\t\t\t\t\t\t\t{% for container in gallery.getMediaGroupContainers() %}
\t\t\t\t\t\t\t\t\t{% if container is not empty and not imgSet %}
\t\t\t\t\t\t\t\t\t\t{% set group = container.getMediaGroup() %}
\t\t\t\t\t\t\t\t\t\t{% for item in group.getMediaGroupItems() %}
\t\t\t\t\t\t\t\t\t\t\t{% if item and not imgSet %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set media = item.getMedia() %}
\t\t\t\t\t\t\t\t\t\t\t\t{% if media %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set imgSet = true %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ gallery.getURL() }}\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{media.getImageTag()|raw}}
\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t{#{% else %}#}
\t\t\t\t\t\t\t\t\t\t\t\t{# set up a default image if no image is set #}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t<a href=\"{{ gallery.getURL() }}\">
\t\t\t\t\t\t\t\t{{gallery.getTitle()}}
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</strong>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{% endfor %}
\t\t</div>
\t</div>
{% endblock %}
", "content/tmpl/roofing-galleries.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/roofing-galleries.html.twig");
}
}