<?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/gallery.html.twig */
class __TwigTemplate_1191368f80b5a53b778a346b9b72989f 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 2
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/gallery.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/gallery.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "content/gallery.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 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 "
";
// line 5
$this->loadTemplate("content/gallery.html.twig", "content/gallery.html.twig", 5, "521543156")->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/gallery.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 71 => 5, 68 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("
{% extends \"base.html.twig\" %}
{% block body %}
{% embed \"1-col-sidebar.html.twig\" %}
{% block column %}
{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
{% include \"includes/curtain-ads/newForum.html.twig\" %}
{% endif %}
\t<h1>{{content.getTitle()}}</h1>
\t<br>
\t
\t<div class=\"post--content\">
\t\t{{ content.getContentFull() | wordpress | raw }}
\t</div>
\t
\t{#
\t{% for mgroup in content.getMediaGroups() %}
\t\t<h4 class=\"gallery-title\">{{ mgroup.getTitle() }}</h4>
\t\t<h4 class=\"gallery-description\">{{ mgroup.getDescription() }}</h4>
\t\t<div class=\"row\">
\t\t{% for mitem in mgroup.getMediaGroupItems() %}
\t\t\t{% if mitem.getMedia() is not empty %}
\t\t\t\t{% set media = mitem.getMedia() %}
\t\t\t\t<div class=\"col-md-3 galleryitem\">
\t\t\t\t\t<a href=\"{{media.getURL()}}\">{{ media.getImageTag(\"\",\"\")|raw }}</a>
\t\t\t\t\t<div class=\"gallery-item-description\">{{media.getDescription()}}</div>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t{% endfor %}
\t\t</div>
\t{% endfor %}
\t#}
\t
\t{% for mgroupc in content.getMediaGroupContainers() %}
\t\t{% set mgroup = mgroupc.getMediaGroup() %}
\t\t{% if mgroup %}
\t\t\t<h4 class=\"gallery-title\">{{ mgroup.getTitle()|raw }}</h4>
\t\t\t<div class=\"row\">
\t\t\t{% for mitem in mgroup.getMediaGroupItemsForGallery() %}
\t\t\t\t{% if mitem.getMedia() is not empty %}
\t\t\t\t\t{% set media = mitem.getMedia() %}
\t\t\t\t\t<div class=\"col-md-3\" style=\"padding: 0px 20px 20px;\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 galleryitem\">
\t\t\t\t\t\t\t\t{% if mitem.getExternalUrl() %}
\t\t\t\t\t\t\t\t\t<i style=\"position: absolute; top: 3px; right: 3px;\" class=\"fa fa-external-link\" aria-hidden=\"true\"></i>
\t\t\t\t\t\t\t\t\t<a href=\"{{mitem.getExternalUrl()}}\">{{ media.getImageTag(\"\",\"\")|raw }}</a>
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{{ media.getImageTag(\"myImg\",\"\")|raw }}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t<div class=\"gallery-item-description\">{{mitem.getDescription()}}</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t<div class=\"gallery-description\">{{ mgroup.getDescription()|raw }}</div>
\t\t\t<!-- pop up image -->
\t\t\t<div id=\"myModal\" class=\"modal\">
\t\t\t<span class=\"close\">×</span>
\t\t\t<img class=\"modal-content\" id=\"img01\" loading='lazy'>
\t\t\t<div id=\"caption\"></div>
\t\t\t</div>
\t\t\t<script type=\"text/javascript\">
\t\t\t\t\$( document ).ready(function() {
\t\t\t\t\t
\t\t\t\t
\t\t\t\t\tconst modal = document.getElementById(\"myModal\");
\t\t\t\t\tconst img = document.getElementsByClassName(\"myImg\");
\t\t\t\t\tconst modalImg = document.getElementById(\"img01\");
\t\t\t\t\tconst captionText = document.getElementById(\"caption\");
\t\t\t\t\tfor (var i = 0; i < img.length; i++) {
\t\t\t\t\t\timg[i].addEventListener(\"click\", function(event){
\t\t\t\t\t\tevent.preventDefault();
\t\t\t\t\t\tmodal.style.display = \"flex\";
\t\t\t\t\t\tmodalImg.src = this.src;
\t\t\t\t\t\tcaptionText.innerHTML = this.alt;
\t\t\t\t\t})
\t\t\t\t\t}
\t\t\t\t\tconst span = document.getElementsByClassName(\"close\")[0];
\t\t\t\t\tconst container = document.getElementById('myModal')
\t\t\t\t\tcontainer.onclick = function() {
\t\t\t\t\t\tmodal.style.display = \"none\";
\t\t\t\t\t}
\t\t\t\t\tspan.onclick = function() {
\t\t\t\t\t\tmodal.style.display = \"none\";
\t\t\t\t\t}
\t\t\t\t});
\t\t</script>
\t\t{% endif %}
\t{% endfor %}
\t{% include \"includes/social-share.html.twig\" %}
{% endblock %}
{% endembed %}
{% endblock %}
", "content/gallery.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/gallery.html.twig");
}
}
/* content/gallery.html.twig */
class __TwigTemplate_1191368f80b5a53b778a346b9b72989f___521543156 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)
{
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/gallery.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/gallery.html.twig"));
$this->parent = $this->loadTemplate("1-col-sidebar.html.twig", "content/gallery.html.twig", 5);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 7
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 8
echo "
";
// line 9
if (((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 9, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_RCS"))) {
// line 10
echo " ";
$this->loadTemplate("includes/curtain-ads/newForum.html.twig", "content/gallery.html.twig", 10)->display($context);
// line 11
echo " ";
}
// line 12
echo "
\t<h1>";
// line 15
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.', 15, $this->source); })()), "getTitle", [], "method", false, false, false, 15), "html", null, true);
echo "</h1>
\t<br>
\t
\t<div class=\"post--content\">
\t\t";
// line 19
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</div>
\t
\t";
// line 40
echo "\t
\t";
// line 41
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 41, $this->source); })()), "getMediaGroupContainers", [], "method", false, false, false, 41));
foreach ($context['_seq'] as $context["_key"] => $context["mgroupc"]) {
// line 42
echo "\t\t";
$context["mgroup"] = twig_get_attribute($this->env, $this->source, $context["mgroupc"], "getMediaGroup", [], "method", false, false, false, 42);
// line 43
echo "\t\t";
if ((isset($context["mgroup"]) || array_key_exists("mgroup", $context) ? $context["mgroup"] : (function () { throw new RuntimeError('Variable "mgroup" does not exist.', 43, $this->source); })())) {
// line 44
echo "\t\t\t<h4 class=\"gallery-title\">";
echo twig_get_attribute($this->env, $this->source, (isset($context["mgroup"]) || array_key_exists("mgroup", $context) ? $context["mgroup"] : (function () { throw new RuntimeError('Variable "mgroup" does not exist.', 44, $this->source); })()), "getTitle", [], "method", false, false, false, 44);
echo "</h4>
\t\t\t<div class=\"row\">
\t\t\t";
// line 46
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["mgroup"]) || array_key_exists("mgroup", $context) ? $context["mgroup"] : (function () { throw new RuntimeError('Variable "mgroup" does not exist.', 46, $this->source); })()), "getMediaGroupItemsForGallery", [], "method", false, false, false, 46));
foreach ($context['_seq'] as $context["_key"] => $context["mitem"]) {
// line 47
echo "\t\t\t\t";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["mitem"], "getMedia", [], "method", false, false, false, 47))) {
// line 48
echo "\t\t\t\t\t";
$context["media"] = twig_get_attribute($this->env, $this->source, $context["mitem"], "getMedia", [], "method", false, false, false, 48);
// line 49
echo "\t\t\t\t\t<div class=\"col-md-3\" style=\"padding: 0px 20px 20px;\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 galleryitem\">
\t\t\t\t\t\t\t\t";
// line 52
if (twig_get_attribute($this->env, $this->source, $context["mitem"], "getExternalUrl", [], "method", false, false, false, 52)) {
// line 53
echo "\t\t\t\t\t\t\t\t\t<i style=\"position: absolute; top: 3px; right: 3px;\" class=\"fa fa-external-link\" aria-hidden=\"true\"></i>
\t\t\t\t\t\t\t\t\t<a href=\"";
// line 54
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["mitem"], "getExternalUrl", [], "method", false, false, false, 54), "html", null, true);
echo "\">";
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.', 54, $this->source); })()), "getImageTag", ["", ""], "method", false, false, false, 54);
echo "</a>
\t\t\t\t\t\t\t\t";
} else {
// line 56
echo "\t\t\t\t\t\t\t\t\t";
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.', 56, $this->source); })()), "getImageTag", ["myImg", ""], "method", false, false, false, 56);
echo "
\t\t\t\t\t\t\t\t";
}
// line 58
echo "
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t<div class=\"gallery-item-description\">";
// line 63
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["mitem"], "getDescription", [], "method", false, false, false, 63), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t";
}
// line 68
echo "\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mitem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 69
echo "\t\t\t</div>
\t\t\t<div class=\"gallery-description\">";
// line 70
echo twig_get_attribute($this->env, $this->source, (isset($context["mgroup"]) || array_key_exists("mgroup", $context) ? $context["mgroup"] : (function () { throw new RuntimeError('Variable "mgroup" does not exist.', 70, $this->source); })()), "getDescription", [], "method", false, false, false, 70);
echo "</div>
\t\t\t<!-- pop up image -->
\t\t\t<div id=\"myModal\" class=\"modal\">
\t\t\t<span class=\"close\">×</span>
\t\t\t<img class=\"modal-content\" id=\"img01\" loading='lazy'>
\t\t\t<div id=\"caption\"></div>
\t\t\t</div>
\t\t\t<script type=\"text/javascript\">
\t\t\t\t\$( document ).ready(function() {
\t\t\t\t\t
\t\t\t\t
\t\t\t\t\tconst modal = document.getElementById(\"myModal\");
\t\t\t\t\tconst img = document.getElementsByClassName(\"myImg\");
\t\t\t\t\tconst modalImg = document.getElementById(\"img01\");
\t\t\t\t\tconst captionText = document.getElementById(\"caption\");
\t\t\t\t\tfor (var i = 0; i < img.length; i++) {
\t\t\t\t\t\timg[i].addEventListener(\"click\", function(event){
\t\t\t\t\t\tevent.preventDefault();
\t\t\t\t\t\tmodal.style.display = \"flex\";
\t\t\t\t\t\tmodalImg.src = this.src;
\t\t\t\t\t\tcaptionText.innerHTML = this.alt;
\t\t\t\t\t})
\t\t\t\t\t}
\t\t\t\t\tconst span = document.getElementsByClassName(\"close\")[0];
\t\t\t\t\tconst container = document.getElementById('myModal')
\t\t\t\t\tcontainer.onclick = function() {
\t\t\t\t\t\tmodal.style.display = \"none\";
\t\t\t\t\t}
\t\t\t\t\tspan.onclick = function() {
\t\t\t\t\t\tmodal.style.display = \"none\";
\t\t\t\t\t}
\t\t\t\t});
\t\t</script>
\t\t";
}
// line 105
echo "\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mgroupc'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 106
echo "\t";
$this->loadTemplate("includes/social-share.html.twig", "content/gallery.html.twig", 106)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/gallery.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 414 => 106, 408 => 105, 370 => 70, 367 => 69, 361 => 68, 353 => 63, 346 => 58, 340 => 56, 333 => 54, 330 => 53, 328 => 52, 323 => 49, 320 => 48, 317 => 47, 313 => 46, 307 => 44, 304 => 43, 301 => 42, 297 => 41, 294 => 40, 287 => 19, 280 => 15, 275 => 12, 272 => 11, 269 => 10, 267 => 9, 264 => 8, 254 => 7, 71 => 5, 68 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("
{% extends \"base.html.twig\" %}
{% block body %}
{% embed \"1-col-sidebar.html.twig\" %}
{% block column %}
{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
{% include \"includes/curtain-ads/newForum.html.twig\" %}
{% endif %}
\t<h1>{{content.getTitle()}}</h1>
\t<br>
\t
\t<div class=\"post--content\">
\t\t{{ content.getContentFull() | wordpress | raw }}
\t</div>
\t
\t{#
\t{% for mgroup in content.getMediaGroups() %}
\t\t<h4 class=\"gallery-title\">{{ mgroup.getTitle() }}</h4>
\t\t<h4 class=\"gallery-description\">{{ mgroup.getDescription() }}</h4>
\t\t<div class=\"row\">
\t\t{% for mitem in mgroup.getMediaGroupItems() %}
\t\t\t{% if mitem.getMedia() is not empty %}
\t\t\t\t{% set media = mitem.getMedia() %}
\t\t\t\t<div class=\"col-md-3 galleryitem\">
\t\t\t\t\t<a href=\"{{media.getURL()}}\">{{ media.getImageTag(\"\",\"\")|raw }}</a>
\t\t\t\t\t<div class=\"gallery-item-description\">{{media.getDescription()}}</div>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t{% endfor %}
\t\t</div>
\t{% endfor %}
\t#}
\t
\t{% for mgroupc in content.getMediaGroupContainers() %}
\t\t{% set mgroup = mgroupc.getMediaGroup() %}
\t\t{% if mgroup %}
\t\t\t<h4 class=\"gallery-title\">{{ mgroup.getTitle()|raw }}</h4>
\t\t\t<div class=\"row\">
\t\t\t{% for mitem in mgroup.getMediaGroupItemsForGallery() %}
\t\t\t\t{% if mitem.getMedia() is not empty %}
\t\t\t\t\t{% set media = mitem.getMedia() %}
\t\t\t\t\t<div class=\"col-md-3\" style=\"padding: 0px 20px 20px;\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 galleryitem\">
\t\t\t\t\t\t\t\t{% if mitem.getExternalUrl() %}
\t\t\t\t\t\t\t\t\t<i style=\"position: absolute; top: 3px; right: 3px;\" class=\"fa fa-external-link\" aria-hidden=\"true\"></i>
\t\t\t\t\t\t\t\t\t<a href=\"{{mitem.getExternalUrl()}}\">{{ media.getImageTag(\"\",\"\")|raw }}</a>
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{{ media.getImageTag(\"myImg\",\"\")|raw }}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t<div class=\"gallery-item-description\">{{mitem.getDescription()}}</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t<div class=\"gallery-description\">{{ mgroup.getDescription()|raw }}</div>
\t\t\t<!-- pop up image -->
\t\t\t<div id=\"myModal\" class=\"modal\">
\t\t\t<span class=\"close\">×</span>
\t\t\t<img class=\"modal-content\" id=\"img01\" loading='lazy'>
\t\t\t<div id=\"caption\"></div>
\t\t\t</div>
\t\t\t<script type=\"text/javascript\">
\t\t\t\t\$( document ).ready(function() {
\t\t\t\t\t
\t\t\t\t
\t\t\t\t\tconst modal = document.getElementById(\"myModal\");
\t\t\t\t\tconst img = document.getElementsByClassName(\"myImg\");
\t\t\t\t\tconst modalImg = document.getElementById(\"img01\");
\t\t\t\t\tconst captionText = document.getElementById(\"caption\");
\t\t\t\t\tfor (var i = 0; i < img.length; i++) {
\t\t\t\t\t\timg[i].addEventListener(\"click\", function(event){
\t\t\t\t\t\tevent.preventDefault();
\t\t\t\t\t\tmodal.style.display = \"flex\";
\t\t\t\t\t\tmodalImg.src = this.src;
\t\t\t\t\t\tcaptionText.innerHTML = this.alt;
\t\t\t\t\t})
\t\t\t\t\t}
\t\t\t\t\tconst span = document.getElementsByClassName(\"close\")[0];
\t\t\t\t\tconst container = document.getElementById('myModal')
\t\t\t\t\tcontainer.onclick = function() {
\t\t\t\t\t\tmodal.style.display = \"none\";
\t\t\t\t\t}
\t\t\t\t\tspan.onclick = function() {
\t\t\t\t\t\tmodal.style.display = \"none\";
\t\t\t\t\t}
\t\t\t\t});
\t\t</script>
\t\t{% endif %}
\t{% endfor %}
\t{% include \"includes/social-share.html.twig\" %}
{% endblock %}
{% endembed %}
{% endblock %}
", "content/gallery.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/gallery.html.twig");
}
}