var/cache/dev/twig/c3/c36c32c0b1976d49c0fb994d98838bea.php line 58

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* content/gallery.html.twig */
  14. class __TwigTemplate_1191368f80b5a53b778a346b9b72989f extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'body' => [$this'block_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 2
  29.         return "base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/gallery.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/gallery.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""content/gallery.html.twig"2);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 3
  46.     public function block_body($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         // line 4
  54.         echo "
  55. ";
  56.         // line 5
  57.         $this->loadTemplate("content/gallery.html.twig""content/gallery.html.twig"5"521543156")->display($context);
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.     }
  63.     public function getTemplateName()
  64.     {
  65.         return "content/gallery.html.twig";
  66.     }
  67.     public function isTraitable()
  68.     {
  69.         return false;
  70.     }
  71.     public function getDebugInfo()
  72.     {
  73.         return array (  71 => 5,  68 => 4,  58 => 3,  35 => 2,);
  74.     }
  75.     public function getSourceContext()
  76.     {
  77.         return new Source("
  78. {% extends \"base.html.twig\" %}
  79. {% block body %}
  80. {% embed \"1-col-sidebar.html.twig\" %}
  81. {% block column %}
  82.  {% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  83.         {% include  \"includes/curtain-ads/newForum.html.twig\" %}
  84.  {% endif %}
  85. \t<h1>{{content.getTitle()}}</h1>
  86. \t<br>
  87. \t
  88. \t<div class=\"post--content\">
  89. \t\t{{ content.getContentFull() | wordpress | raw }}
  90. \t</div>
  91. \t
  92. \t{#
  93. \t{% for mgroup in content.getMediaGroups() %}
  94. \t\t<h4 class=\"gallery-title\">{{ mgroup.getTitle() }}</h4>
  95. \t\t<h4 class=\"gallery-description\">{{ mgroup.getDescription() }}</h4>
  96. \t\t<div class=\"row\">
  97. \t\t{% for mitem in mgroup.getMediaGroupItems() %}
  98. \t\t\t{% if mitem.getMedia() is not empty %}
  99. \t\t\t\t{% set media = mitem.getMedia() %}
  100. \t\t\t\t<div class=\"col-md-3 galleryitem\">
  101. \t\t\t\t\t<a href=\"{{media.getURL()}}\">{{ media.getImageTag(\"\",\"\")|raw }}</a>
  102. \t\t\t\t\t<div class=\"gallery-item-description\">{{media.getDescription()}}</div>
  103. \t\t\t\t</div>
  104. \t\t\t{% endif %}
  105. \t\t{% endfor %}
  106. \t\t</div>
  107. \t{% endfor %}
  108. \t#}
  109. \t
  110. \t{% for mgroupc in content.getMediaGroupContainers() %}
  111. \t\t{% set mgroup = mgroupc.getMediaGroup() %}
  112. \t\t{% if mgroup %}
  113. \t\t\t<h4 class=\"gallery-title\">{{ mgroup.getTitle()|raw }}</h4>
  114. \t\t\t<div class=\"row\">
  115. \t\t\t{% for mitem in mgroup.getMediaGroupItemsForGallery() %}
  116. \t\t\t\t{% if mitem.getMedia() is not empty %}
  117. \t\t\t\t\t{% set media = mitem.getMedia() %}
  118. \t\t\t\t\t<div class=\"col-md-3\" style=\"padding: 0px 20px 20px;\">
  119. \t\t\t\t\t\t<div class=\"row\">
  120. \t\t\t\t\t\t\t<div class=\"col-12 galleryitem\">
  121. \t\t\t\t\t\t\t\t{% if mitem.getExternalUrl() %}
  122. \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>
  123. \t\t\t\t\t\t\t\t\t<a href=\"{{mitem.getExternalUrl()}}\">{{ media.getImageTag(\"\",\"\")|raw }}</a>
  124. \t\t\t\t\t\t\t\t{% else %}
  125. \t\t\t\t\t\t\t\t\t{{ media.getImageTag(\"myImg\",\"\")|raw }}
  126. \t\t\t\t\t\t\t\t{% endif %}
  127. \t\t\t\t\t\t\t\t
  128. \t\t\t\t\t\t\t</div>
  129. \t\t\t\t\t\t\t<div class=\"col-12\">
  130. \t\t\t\t\t\t\t\t<div class=\"gallery-item-description\">{{mitem.getDescription()}}</div>
  131. \t\t\t\t\t\t\t</div>
  132. \t\t\t\t\t\t</div>
  133. \t\t\t\t\t</div>
  134. \t\t\t\t{% endif %}
  135. \t\t\t{% endfor %}
  136. \t\t\t</div>
  137. \t\t\t<div class=\"gallery-description\">{{ mgroup.getDescription()|raw }}</div>
  138. \t\t\t<!-- pop up image -->
  139. \t\t\t<div id=\"myModal\" class=\"modal\">
  140. \t\t\t<span class=\"close\">&times;</span>
  141. \t\t\t<img class=\"modal-content\" id=\"img01\" loading='lazy'>
  142. \t\t\t<div id=\"caption\"></div>
  143. \t\t\t</div>
  144. \t\t\t<script type=\"text/javascript\">
  145. \t\t\t\t\$( document ).ready(function() {
  146. \t\t\t\t\t
  147. \t\t\t\t
  148. \t\t\t\t\tconst modal = document.getElementById(\"myModal\");
  149. \t\t\t\t\tconst img = document.getElementsByClassName(\"myImg\");
  150. \t\t\t\t\tconst modalImg = document.getElementById(\"img01\");
  151. \t\t\t\t\tconst captionText = document.getElementById(\"caption\");
  152. \t\t\t\t\tfor (var i = 0; i < img.length; i++) {
  153. \t\t\t\t\t\timg[i].addEventListener(\"click\", function(event){
  154. \t\t\t\t\t\tevent.preventDefault();
  155. \t\t\t\t\t\tmodal.style.display = \"flex\";
  156. \t\t\t\t\t\tmodalImg.src = this.src;
  157. \t\t\t\t\t\tcaptionText.innerHTML = this.alt;
  158. \t\t\t\t\t})
  159. \t\t\t\t\t}
  160. \t\t\t\t\tconst span = document.getElementsByClassName(\"close\")[0];
  161. \t\t\t\t\tconst container = document.getElementById('myModal')
  162. \t\t\t\t\tcontainer.onclick = function() {
  163. \t\t\t\t\t\tmodal.style.display = \"none\";
  164. \t\t\t\t\t}
  165. \t\t\t\t\tspan.onclick = function() {
  166. \t\t\t\t\t\tmodal.style.display = \"none\";
  167. \t\t\t\t\t}
  168. \t\t\t\t});
  169. \t\t</script>
  170. \t\t{% endif %}
  171. \t{% endfor %}
  172. \t{% include \"includes/social-share.html.twig\" %}
  173. {% endblock %}
  174. {% endembed %}
  175. {% endblock %}
  176. ""content/gallery.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/gallery.html.twig");
  177.     }
  178. }
  179. /* content/gallery.html.twig */
  180. class __TwigTemplate_1191368f80b5a53b778a346b9b72989f___521543156 extends Template
  181. {
  182.     private $source;
  183.     private $macros = [];
  184.     public function __construct(Environment $env)
  185.     {
  186.         parent::__construct($env);
  187.         $this->source $this->getSourceContext();
  188.         $this->blocks = [
  189.             'column' => [$this'block_column'],
  190.         ];
  191.     }
  192.     protected function doGetParent(array $context)
  193.     {
  194.         return "1-col-sidebar.html.twig";
  195.     }
  196.     protected function doDisplay(array $context, array $blocks = [])
  197.     {
  198.         $macros $this->macros;
  199.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  200.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/gallery.html.twig"));
  201.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  202.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/gallery.html.twig"));
  203.         $this->parent $this->loadTemplate("1-col-sidebar.html.twig""content/gallery.html.twig"5);
  204.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  205.         
  206.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  207.         
  208.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  209.     }
  210.     // line 7
  211.     public function block_column($context, array $blocks = [])
  212.     {
  213.         $macros $this->macros;
  214.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  215.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""column"));
  216.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  217.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""column"));
  218.         // line 8
  219.         echo "
  220.  ";
  221.         // line 9
  222.         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"))) {
  223.             // line 10
  224.             echo "        ";
  225.             $this->loadTemplate("includes/curtain-ads/newForum.html.twig""content/gallery.html.twig"10)->display($context);
  226.             // line 11
  227.             echo " ";
  228.         }
  229.         // line 12
  230.         echo "
  231. \t<h1>";
  232.         // line 15
  233.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse15), "html"nulltrue);
  234.         echo "</h1>
  235. \t<br>
  236. \t
  237. \t<div class=\"post--content\">
  238. \t\t";
  239.         // line 19
  240.         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"falsefalsefalse19));
  241.         echo "
  242. \t</div>
  243. \t
  244. \t";
  245.         // line 40
  246.         echo "\t
  247. \t";
  248.         // line 41
  249.         $context['_parent'] = $context;
  250.         $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"falsefalsefalse41));
  251.         foreach ($context['_seq'] as $context["_key"] => $context["mgroupc"]) {
  252.             // line 42
  253.             echo "\t\t";
  254.             $context["mgroup"] = twig_get_attribute($this->env$this->source$context["mgroupc"], "getMediaGroup", [], "method"falsefalsefalse42);
  255.             // line 43
  256.             echo "\t\t";
  257.             if ((isset($context["mgroup"]) || array_key_exists("mgroup"$context) ? $context["mgroup"] : (function () { throw new RuntimeError('Variable "mgroup" does not exist.'43$this->source); })())) {
  258.                 // line 44
  259.                 echo "\t\t\t<h4 class=\"gallery-title\">";
  260.                 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"falsefalsefalse44);
  261.                 echo "</h4>
  262. \t\t\t<div class=\"row\">
  263. \t\t\t";
  264.                 // line 46
  265.                 $context['_parent'] = $context;
  266.                 $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"falsefalsefalse46));
  267.                 foreach ($context['_seq'] as $context["_key"] => $context["mitem"]) {
  268.                     // line 47
  269.                     echo "\t\t\t\t";
  270.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["mitem"], "getMedia", [], "method"falsefalsefalse47))) {
  271.                         // line 48
  272.                         echo "\t\t\t\t\t";
  273.                         $context["media"] = twig_get_attribute($this->env$this->source$context["mitem"], "getMedia", [], "method"falsefalsefalse48);
  274.                         // line 49
  275.                         echo "\t\t\t\t\t<div class=\"col-md-3\" style=\"padding: 0px 20px 20px;\">
  276. \t\t\t\t\t\t<div class=\"row\">
  277. \t\t\t\t\t\t\t<div class=\"col-12 galleryitem\">
  278. \t\t\t\t\t\t\t\t";
  279.                         // line 52
  280.                         if (twig_get_attribute($this->env$this->source$context["mitem"], "getExternalUrl", [], "method"falsefalsefalse52)) {
  281.                             // line 53
  282.                             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>
  283. \t\t\t\t\t\t\t\t\t<a href=\"";
  284.                             // line 54
  285.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["mitem"], "getExternalUrl", [], "method"falsefalsefalse54), "html"nulltrue);
  286.                             echo "\">";
  287.                             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"falsefalsefalse54);
  288.                             echo "</a>
  289. \t\t\t\t\t\t\t\t";
  290.                         } else {
  291.                             // line 56
  292.                             echo "\t\t\t\t\t\t\t\t\t";
  293.                             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"falsefalsefalse56);
  294.                             echo "
  295. \t\t\t\t\t\t\t\t";
  296.                         }
  297.                         // line 58
  298.                         echo "
  299. \t\t\t\t\t\t\t\t
  300. \t\t\t\t\t\t\t</div>
  301. \t\t\t\t\t\t\t<div class=\"col-12\">
  302. \t\t\t\t\t\t\t\t<div class=\"gallery-item-description\">";
  303.                         // line 63
  304.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["mitem"], "getDescription", [], "method"falsefalsefalse63), "html"nulltrue);
  305.                         echo "</div>
  306. \t\t\t\t\t\t\t</div>
  307. \t\t\t\t\t\t</div>
  308. \t\t\t\t\t</div>
  309. \t\t\t\t";
  310.                     }
  311.                     // line 68
  312.                     echo "\t\t\t";
  313.                 }
  314.                 $_parent $context['_parent'];
  315.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mitem'], $context['_parent'], $context['loop']);
  316.                 $context array_intersect_key($context$_parent) + $_parent;
  317.                 // line 69
  318.                 echo "\t\t\t</div>
  319. \t\t\t<div class=\"gallery-description\">";
  320.                 // line 70
  321.                 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"falsefalsefalse70);
  322.                 echo "</div>
  323. \t\t\t<!-- pop up image -->
  324. \t\t\t<div id=\"myModal\" class=\"modal\">
  325. \t\t\t<span class=\"close\">&times;</span>
  326. \t\t\t<img class=\"modal-content\" id=\"img01\" loading='lazy'>
  327. \t\t\t<div id=\"caption\"></div>
  328. \t\t\t</div>
  329. \t\t\t<script type=\"text/javascript\">
  330. \t\t\t\t\$( document ).ready(function() {
  331. \t\t\t\t\t
  332. \t\t\t\t
  333. \t\t\t\t\tconst modal = document.getElementById(\"myModal\");
  334. \t\t\t\t\tconst img = document.getElementsByClassName(\"myImg\");
  335. \t\t\t\t\tconst modalImg = document.getElementById(\"img01\");
  336. \t\t\t\t\tconst captionText = document.getElementById(\"caption\");
  337. \t\t\t\t\tfor (var i = 0; i < img.length; i++) {
  338. \t\t\t\t\t\timg[i].addEventListener(\"click\", function(event){
  339. \t\t\t\t\t\tevent.preventDefault();
  340. \t\t\t\t\t\tmodal.style.display = \"flex\";
  341. \t\t\t\t\t\tmodalImg.src = this.src;
  342. \t\t\t\t\t\tcaptionText.innerHTML = this.alt;
  343. \t\t\t\t\t})
  344. \t\t\t\t\t}
  345. \t\t\t\t\tconst span = document.getElementsByClassName(\"close\")[0];
  346. \t\t\t\t\tconst container = document.getElementById('myModal')
  347. \t\t\t\t\tcontainer.onclick = function() {
  348. \t\t\t\t\t\tmodal.style.display = \"none\";
  349. \t\t\t\t\t}
  350. \t\t\t\t\tspan.onclick = function() {
  351. \t\t\t\t\t\tmodal.style.display = \"none\";
  352. \t\t\t\t\t}
  353. \t\t\t\t});
  354. \t\t</script>
  355. \t\t";
  356.             }
  357.             // line 105
  358.             echo "\t";
  359.         }
  360.         $_parent $context['_parent'];
  361.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mgroupc'], $context['_parent'], $context['loop']);
  362.         $context array_intersect_key($context$_parent) + $_parent;
  363.         // line 106
  364.         echo "\t";
  365.         $this->loadTemplate("includes/social-share.html.twig""content/gallery.html.twig"106)->display($context);
  366.         
  367.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  368.         
  369.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  370.     }
  371.     public function getTemplateName()
  372.     {
  373.         return "content/gallery.html.twig";
  374.     }
  375.     public function isTraitable()
  376.     {
  377.         return false;
  378.     }
  379.     public function getDebugInfo()
  380.     {
  381.         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,);
  382.     }
  383.     public function getSourceContext()
  384.     {
  385.         return new Source("
  386. {% extends \"base.html.twig\" %}
  387. {% block body %}
  388. {% embed \"1-col-sidebar.html.twig\" %}
  389. {% block column %}
  390.  {% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  391.         {% include  \"includes/curtain-ads/newForum.html.twig\" %}
  392.  {% endif %}
  393. \t<h1>{{content.getTitle()}}</h1>
  394. \t<br>
  395. \t
  396. \t<div class=\"post--content\">
  397. \t\t{{ content.getContentFull() | wordpress | raw }}
  398. \t</div>
  399. \t
  400. \t{#
  401. \t{% for mgroup in content.getMediaGroups() %}
  402. \t\t<h4 class=\"gallery-title\">{{ mgroup.getTitle() }}</h4>
  403. \t\t<h4 class=\"gallery-description\">{{ mgroup.getDescription() }}</h4>
  404. \t\t<div class=\"row\">
  405. \t\t{% for mitem in mgroup.getMediaGroupItems() %}
  406. \t\t\t{% if mitem.getMedia() is not empty %}
  407. \t\t\t\t{% set media = mitem.getMedia() %}
  408. \t\t\t\t<div class=\"col-md-3 galleryitem\">
  409. \t\t\t\t\t<a href=\"{{media.getURL()}}\">{{ media.getImageTag(\"\",\"\")|raw }}</a>
  410. \t\t\t\t\t<div class=\"gallery-item-description\">{{media.getDescription()}}</div>
  411. \t\t\t\t</div>
  412. \t\t\t{% endif %}
  413. \t\t{% endfor %}
  414. \t\t</div>
  415. \t{% endfor %}
  416. \t#}
  417. \t
  418. \t{% for mgroupc in content.getMediaGroupContainers() %}
  419. \t\t{% set mgroup = mgroupc.getMediaGroup() %}
  420. \t\t{% if mgroup %}
  421. \t\t\t<h4 class=\"gallery-title\">{{ mgroup.getTitle()|raw }}</h4>
  422. \t\t\t<div class=\"row\">
  423. \t\t\t{% for mitem in mgroup.getMediaGroupItemsForGallery() %}
  424. \t\t\t\t{% if mitem.getMedia() is not empty %}
  425. \t\t\t\t\t{% set media = mitem.getMedia() %}
  426. \t\t\t\t\t<div class=\"col-md-3\" style=\"padding: 0px 20px 20px;\">
  427. \t\t\t\t\t\t<div class=\"row\">
  428. \t\t\t\t\t\t\t<div class=\"col-12 galleryitem\">
  429. \t\t\t\t\t\t\t\t{% if mitem.getExternalUrl() %}
  430. \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>
  431. \t\t\t\t\t\t\t\t\t<a href=\"{{mitem.getExternalUrl()}}\">{{ media.getImageTag(\"\",\"\")|raw }}</a>
  432. \t\t\t\t\t\t\t\t{% else %}
  433. \t\t\t\t\t\t\t\t\t{{ media.getImageTag(\"myImg\",\"\")|raw }}
  434. \t\t\t\t\t\t\t\t{% endif %}
  435. \t\t\t\t\t\t\t\t
  436. \t\t\t\t\t\t\t</div>
  437. \t\t\t\t\t\t\t<div class=\"col-12\">
  438. \t\t\t\t\t\t\t\t<div class=\"gallery-item-description\">{{mitem.getDescription()}}</div>
  439. \t\t\t\t\t\t\t</div>
  440. \t\t\t\t\t\t</div>
  441. \t\t\t\t\t</div>
  442. \t\t\t\t{% endif %}
  443. \t\t\t{% endfor %}
  444. \t\t\t</div>
  445. \t\t\t<div class=\"gallery-description\">{{ mgroup.getDescription()|raw }}</div>
  446. \t\t\t<!-- pop up image -->
  447. \t\t\t<div id=\"myModal\" class=\"modal\">
  448. \t\t\t<span class=\"close\">&times;</span>
  449. \t\t\t<img class=\"modal-content\" id=\"img01\" loading='lazy'>
  450. \t\t\t<div id=\"caption\"></div>
  451. \t\t\t</div>
  452. \t\t\t<script type=\"text/javascript\">
  453. \t\t\t\t\$( document ).ready(function() {
  454. \t\t\t\t\t
  455. \t\t\t\t
  456. \t\t\t\t\tconst modal = document.getElementById(\"myModal\");
  457. \t\t\t\t\tconst img = document.getElementsByClassName(\"myImg\");
  458. \t\t\t\t\tconst modalImg = document.getElementById(\"img01\");
  459. \t\t\t\t\tconst captionText = document.getElementById(\"caption\");
  460. \t\t\t\t\tfor (var i = 0; i < img.length; i++) {
  461. \t\t\t\t\t\timg[i].addEventListener(\"click\", function(event){
  462. \t\t\t\t\t\tevent.preventDefault();
  463. \t\t\t\t\t\tmodal.style.display = \"flex\";
  464. \t\t\t\t\t\tmodalImg.src = this.src;
  465. \t\t\t\t\t\tcaptionText.innerHTML = this.alt;
  466. \t\t\t\t\t})
  467. \t\t\t\t\t}
  468. \t\t\t\t\tconst span = document.getElementsByClassName(\"close\")[0];
  469. \t\t\t\t\tconst container = document.getElementById('myModal')
  470. \t\t\t\t\tcontainer.onclick = function() {
  471. \t\t\t\t\t\tmodal.style.display = \"none\";
  472. \t\t\t\t\t}
  473. \t\t\t\t\tspan.onclick = function() {
  474. \t\t\t\t\t\tmodal.style.display = \"none\";
  475. \t\t\t\t\t}
  476. \t\t\t\t});
  477. \t\t</script>
  478. \t\t{% endif %}
  479. \t{% endfor %}
  480. \t{% include \"includes/social-share.html.twig\" %}
  481. {% endblock %}
  482. {% endembed %}
  483. {% endblock %}
  484. ""content/gallery.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/gallery.html.twig");
  485.     }
  486. }