var/cache/dev/twig/22/220763c27d661c2ba0e5d8b3da5524dc.php line 48

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/tmpl/roofing-galleries.html.twig */
  14. class __TwigTemplate_72b04ed6a036a15bcd237703f09d4eee 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.             'column' => [$this'block_column'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "1-col-sidebar.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/tmpl/roofing-galleries.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/tmpl/roofing-galleries.html.twig"));
  38.         $this->parent $this->loadTemplate("1-col-sidebar.html.twig""content/tmpl/roofing-galleries.html.twig"1);
  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_column($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""column"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""column"));
  53.         // line 4
  54.         echo "\t";
  55.         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"))) {
  56.             // line 5
  57.             echo "\t    ";
  58.             $this->loadTemplate("includes/curtain-ads/newForum.html.twig""content/tmpl/roofing-galleries.html.twig"5)->display($context);
  59.             // line 6
  60.             echo "    ";
  61.         }
  62.         // line 7
  63.         echo "
  64. \t";
  65.         // line 8
  66.         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"falsefalsefalse8)) {
  67.             // line 9
  68.             echo "\t\t<h1>";
  69.             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"falsefalsefalse9);
  70.             echo "</h1>
  71. \t";
  72.         }
  73.         // line 11
  74.         echo "
  75. \t";
  76.         // line 13
  77.         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"falsefalsefalse13)) {
  78.             // line 14
  79.             echo "\t\t";
  80.             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"falsefalsefalse14);
  81.             echo "
  82. \t";
  83.         }
  84.         // line 16
  85.         echo "
  86. \t";
  87.         // line 18
  88.         echo "\t";
  89.         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"falsefalsefalse18))) {
  90.             // line 19
  91.             echo "\t\t";
  92.             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));
  93.             echo "
  94. \t";
  95.         }
  96.         // line 21
  97.         echo "
  98. \t";
  99.         // line 23
  100.         echo "\t";
  101.         // line 28
  102.         echo "
  103. \t<div class=\"clearfix\">
  104. \t\t<div class=\"row\">
  105. \t\t\t";
  106.         // line 32
  107.         $context['_parent'] = $context;
  108.         $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); })()));
  109.         foreach ($context['_seq'] as $context["_key"] => $context["gallery"]) {
  110.             // line 33
  111.             echo "\t\t\t\t<div class=\"col-lg-4\">
  112. \t\t\t\t\t<div class=\"gallerythumb\" style=\"width:100%\">
  113. \t\t\t\t\t\t<strong>
  114. \t\t\t\t\t\t\t";
  115.             // line 36
  116.             if (twig_get_attribute($this->env$this->source$context["gallery"], "getMedia", [], "method"falsefalsefalse36)) {
  117.                 // line 37
  118.                 echo "\t\t\t\t\t\t\t\t<a href=\"";
  119.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["gallery"], "getURL", [], "method"falsefalsefalse37), "html"nulltrue);
  120.                 echo "\">
  121. \t\t\t\t\t\t\t\t\t";
  122.                 // line 38
  123.                 echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["gallery"], "getMedia", [], "method"falsefalsefalse38), "getImageTag", [], "method"falsefalsefalse38);
  124.                 echo "
  125. \t\t\t\t\t\t\t\t</a>
  126. \t\t\t\t\t\t\t";
  127.             } else {
  128.                 // line 41
  129.                 echo "\t\t\t\t\t\t\t\t";
  130.                 $context["imgSet"] = false;
  131.                 // line 42
  132.                 echo "\t\t\t\t\t\t\t\t";
  133.                 $context['_parent'] = $context;
  134.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["gallery"], "getMediaGroupContainers", [], "method"falsefalsefalse42));
  135.                 foreach ($context['_seq'] as $context["_key"] => $context["container"]) {
  136.                     // line 43
  137.                     echo "\t\t\t\t\t\t\t\t\t";
  138.                     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); })()))) {
  139.                         // line 44
  140.                         echo "\t\t\t\t\t\t\t\t\t\t";
  141.                         $context["group"] = twig_get_attribute($this->env$this->source$context["container"], "getMediaGroup", [], "method"falsefalsefalse44);
  142.                         // line 45
  143.                         echo "\t\t\t\t\t\t\t\t\t\t";
  144.                         $context['_parent'] = $context;
  145.                         $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"falsefalsefalse45));
  146.                         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  147.                             // line 46
  148.                             echo "\t\t\t\t\t\t\t\t\t\t\t";
  149.                             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); })()))) {
  150.                                 // line 47
  151.                                 echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  152.                                 $context["media"] = twig_get_attribute($this->env$this->source$context["item"], "getMedia", [], "method"falsefalsefalse47);
  153.                                 // line 48
  154.                                 echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  155.                                 if ((isset($context["media"]) || array_key_exists("media"$context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.'48$this->source); })())) {
  156.                                     // line 49
  157.                                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  158.                                     $context["imgSet"] = true;
  159.                                     // line 50
  160.                                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  161.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["gallery"], "getURL", [], "method"falsefalsefalse50), "html"nulltrue);
  162.                                     echo "\">
  163. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  164.                                     // line 51
  165.                                     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"falsefalsefalse51);
  166.                                     echo "
  167. \t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  168. \t\t\t\t\t\t\t\t\t\t\t\t";
  169.                                 }
  170.                                 // line 54
  171.                                 echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  172.                                 // line 55
  173.                                 echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  174.                                 // line 56
  175.                                 echo "\t\t\t\t\t\t\t\t\t\t\t";
  176.                             }
  177.                             // line 57
  178.                             echo "\t\t\t\t\t\t\t\t\t\t";
  179.                         }
  180.                         $_parent $context['_parent'];
  181.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  182.                         $context array_intersect_key($context$_parent) + $_parent;
  183.                         // line 58
  184.                         echo "\t\t\t\t\t\t\t\t\t";
  185.                     }
  186.                     // line 59
  187.                     echo "\t\t\t\t\t\t\t\t";
  188.                 }
  189.                 $_parent $context['_parent'];
  190.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['container'], $context['_parent'], $context['loop']);
  191.                 $context array_intersect_key($context$_parent) + $_parent;
  192.                 // line 60
  193.                 echo "\t\t\t\t\t\t\t";
  194.             }
  195.             // line 61
  196.             echo "\t\t\t\t\t\t\t<a href=\"";
  197.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["gallery"], "getURL", [], "method"falsefalsefalse61), "html"nulltrue);
  198.             echo "\">
  199. \t\t\t\t\t\t\t\t";
  200.             // line 62
  201.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["gallery"], "getTitle", [], "method"falsefalsefalse62), "html"nulltrue);
  202.             echo "
  203. \t\t\t\t\t\t\t</a>
  204. \t\t\t\t\t\t</strong>
  205. \t\t\t\t\t</div>
  206. \t\t\t\t</div>
  207. \t\t\t";
  208.         }
  209.         $_parent $context['_parent'];
  210.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['gallery'], $context['_parent'], $context['loop']);
  211.         $context array_intersect_key($context$_parent) + $_parent;
  212.         // line 68
  213.         echo "\t\t</div>
  214. \t</div>
  215. ";
  216.         
  217.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  218.         
  219.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  220.     }
  221.     public function getTemplateName()
  222.     {
  223.         return "content/tmpl/roofing-galleries.html.twig";
  224.     }
  225.     public function isTraitable()
  226.     {
  227.         return false;
  228.     }
  229.     public function getDebugInfo()
  230.     {
  231.         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,);
  232.     }
  233.     public function getSourceContext()
  234.     {
  235.         return new Source("{% extends \"1-col-sidebar.html.twig\" %}
  236. {% block column %}
  237. \t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  238. \t    {% include  \"includes/curtain-ads/newForum.html.twig\" %}
  239.     {% endif %}
  240. \t{% if content.getShowTitle() %}
  241. \t\t<h1>{{ content.getTitle() | raw }}</h1>
  242. \t{% endif %}
  243. \t{% if content.getFeaturedImageTag() %}
  244. \t\t{{ content.getFeaturedImageTag(\"display-block\",\"\")|raw }}
  245. \t{% endif %}
  246. \t{# show full content #}
  247. \t{% if content.getContentFull() is not empty %}
  248. \t\t{{ content.getContentFull() | wordpress | raw }}
  249. \t{% endif %}
  250. \t{# show builder content #}
  251. \t{#
  252. \t\t{% if content.getContentBuilder() and content.getContentBuilder() != '{}' %}
  253. \t\t\t{{ content.getContentBuilder() | builder | raw }}
  254. \t\t{% endif %}
  255. \t\t#}
  256. \t<div class=\"clearfix\">
  257. \t\t<div class=\"row\">
  258. \t\t\t{% for gallery in galleries %}
  259. \t\t\t\t<div class=\"col-lg-4\">
  260. \t\t\t\t\t<div class=\"gallerythumb\" style=\"width:100%\">
  261. \t\t\t\t\t\t<strong>
  262. \t\t\t\t\t\t\t{% if gallery.getMedia() %}
  263. \t\t\t\t\t\t\t\t<a href=\"{{ gallery.getURL() }}\">
  264. \t\t\t\t\t\t\t\t\t{{gallery.getMedia().getImageTag()|raw}}
  265. \t\t\t\t\t\t\t\t</a>
  266. \t\t\t\t\t\t\t{% else %}
  267. \t\t\t\t\t\t\t\t{% set imgSet = false %}
  268. \t\t\t\t\t\t\t\t{% for container in gallery.getMediaGroupContainers() %}
  269. \t\t\t\t\t\t\t\t\t{% if container is not empty and not imgSet %}
  270. \t\t\t\t\t\t\t\t\t\t{% set group = container.getMediaGroup() %}
  271. \t\t\t\t\t\t\t\t\t\t{% for item in group.getMediaGroupItems() %}
  272. \t\t\t\t\t\t\t\t\t\t\t{% if item and not imgSet %}
  273. \t\t\t\t\t\t\t\t\t\t\t\t{% set media = item.getMedia() %}
  274. \t\t\t\t\t\t\t\t\t\t\t\t{% if media %}
  275. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set imgSet = true %}
  276. \t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ gallery.getURL() }}\">
  277. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{{media.getImageTag()|raw}}
  278. \t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  279. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  280. \t\t\t\t\t\t\t\t\t\t\t\t{#{% else %}#}
  281. \t\t\t\t\t\t\t\t\t\t\t\t{# set up a default image if no image is set #}
  282. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  283. \t\t\t\t\t\t\t\t\t\t{% endfor %}
  284. \t\t\t\t\t\t\t\t\t{% endif %}
  285. \t\t\t\t\t\t\t\t{% endfor %}
  286. \t\t\t\t\t\t\t{% endif %}
  287. \t\t\t\t\t\t\t<a href=\"{{ gallery.getURL() }}\">
  288. \t\t\t\t\t\t\t\t{{gallery.getTitle()}}
  289. \t\t\t\t\t\t\t</a>
  290. \t\t\t\t\t\t</strong>
  291. \t\t\t\t\t</div>
  292. \t\t\t\t</div>
  293. \t\t\t{% endfor %}
  294. \t\t</div>
  295. \t</div>
  296. {% endblock %}
  297. ""content/tmpl/roofing-galleries.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/roofing-galleries.html.twig");
  298.     }
  299. }