var/cache/dev/twig/26/26c20320640b62af519e780d18cf60a3.php line 38

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/podcasts.html.twig */
  14. class __TwigTemplate_9bebcd688417828eab832f332234766e 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 2
  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/podcasts.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/podcasts.html.twig"));
  38.         $this->parent $this->loadTemplate("1-col-sidebar.html.twig""content/tmpl/podcasts.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 5
  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 6
  54.         echo "\t\t\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.'6$this->source); })()) == twig_constant("App\\Entity\\Content::SITE_RCS"))) {
  56.             // line 7
  57.             echo "\t\t\t
  58. ";
  59.             // line 8
  60.             $this->loadTemplate("includes/curtain-ads/rlw.html.twig""content/tmpl/podcasts.html.twig"8)->display($context);
  61.             // line 9
  62.             echo "\t\t\t";
  63.         }
  64.         // line 10
  65.         echo "\t";
  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.'10$this->source); })()), "getShowTitle", [], "method"falsefalsefalse10)) {
  67.             // line 11
  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.'11$this->source); })()), "getTitle", [], "method"falsefalsefalse11);
  70.             echo "</h1>
  71. \t";
  72.         }
  73.         // line 13
  74.         echo "\t
  75. \t
  76. \t";
  77.         // line 15
  78.         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.'15$this->source); })()), "getFeaturedImageTag", [], "method"falsefalsefalse15)) {
  79.             // line 16
  80.             echo "\t\t";
  81.             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.'16$this->source); })()), "getFeaturedImageTag", ["display-block"""], "method"falsefalsefalse16);
  82.             echo "
  83. \t";
  84.         }
  85.         // line 18
  86.         echo "\t
  87. \t";
  88.         // line 20
  89.         echo "\t";
  90.         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.'20$this->source); })()), "getContentFull", [], "method"falsefalsefalse20))) {
  91.             // line 21
  92.             echo "\t\t";
  93.             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.'21$this->source); })()), "getContentFull", [], "method"falsefalsefalse21));
  94.             echo "
  95. \t";
  96.         }
  97.         // line 23
  98.         echo "\t
  99. \t";
  100.         // line 24
  101.         $context["count"] = 0;
  102.         // line 25
  103.         echo "\t";
  104.         $context['_parent'] = $context;
  105.         $context['_seq'] = twig_ensure_traversable((isset($context["podcasts"]) || array_key_exists("podcasts"$context) ? $context["podcasts"] : (function () { throw new RuntimeError('Variable "podcasts" does not exist.'25$this->source); })()));
  106.         foreach ($context['_seq'] as $context["_key"] => $context["podcast"]) {
  107.             // line 26
  108.             echo "\t\t";
  109.             $context["m"] = twig_get_attribute($this->env$this->source, (isset($context["images"]) || array_key_exists("images"$context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.'26$this->source); })()), (isset($context["count"]) || array_key_exists("count"$context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.'26$this->source); })()), [], "array"falsefalsefalse26);
  110.             // line 27
  111.             echo "\t\t<div class=\"row my-4\">
  112. \t\t\t";
  113.             // line 28
  114.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["podcast"], "getFeaturedImageTag", [], "method"falsefalsefalse28))) {
  115.                 // line 29
  116.                 echo "\t\t\t\t<div class=\"col-3 post-thumbnail\">
  117. \t\t\t\t\t";
  118.                 // line 30
  119.                 echo twig_get_attribute($this->env$this->source$context["podcast"], "getFeaturedImageTag", [""""], "method"falsefalsefalse30);
  120.                 echo "
  121. \t\t\t\t</div>
  122. \t\t\t";
  123.             } elseif ( !twig_test_empty(            // line 32
  124. (isset($context["m"]) || array_key_exists("m"$context) ? $context["m"] : (function () { throw new RuntimeError('Variable "m" does not exist.'32$this->source); })()))) {
  125.                 // line 33
  126.                 echo "\t\t\t\t<div class=\"col-3 post-thumbnail\">
  127. \t\t\t\t\t";
  128.                 // line 34
  129.                 echo twig_get_attribute($this->env$this->source, (isset($context["m"]) || array_key_exists("m"$context) ? $context["m"] : (function () { throw new RuntimeError('Variable "m" does not exist.'34$this->source); })()), "getImageTag", [""""], "method"falsefalsefalse34);
  130.                 echo "
  131. \t\t\t\t</div>
  132. \t\t\t";
  133.             }
  134.             // line 37
  135.             echo "\t\t\t<div class=";
  136.             echo (((twig_test_empty(twig_get_attribute($this->env$this->source$context["podcast"], "getFeaturedImageTag", [], "method"falsefalsefalse37)) && twig_test_empty((isset($context["m"]) || array_key_exists("m"$context) ? $context["m"] : (function () { throw new RuntimeError('Variable "m" does not exist.'37$this->source); })())))) ? ("col-12") : ("col-9"));
  137.             echo ">
  138. \t\t\t\t<h3 class=\"list-post-title\"><a href=\"";
  139.             // line 38
  140.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["podcast"], "getURL", [], "method"falsefalsefalse38), "html"nulltrue);
  141.             echo "\">";
  142.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["podcast"], "title", [], "any"falsefalsefalse38), "html"nulltrue);
  143.             echo "</a></h3>
  144. \t\t\t\t<p class=\"post-byline\">";
  145.             // line 39
  146.             echo twig_escape_filter($this->env$this->extensions['App\Twig\RCSExtension']->rcsDateFormat(twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["podcast"], "publishedat", [], "any"falsefalsefalse39))), "html"nulltrue);
  147.             echo "</p>
  148. \t\t\t\t";
  149.             // line 45
  150.             echo "\t\t\t\t
  151. \t\t\t\t<p>";
  152.             // line 46
  153.             echo twig_get_attribute($this->env$this->source$context["podcast"], "getIntroText", [], "method"falsefalsefalse46);
  154.             echo "</p>
  155. \t\t\t\t<br><br>
  156. \t\t\t\t<div><a href=\"";
  157.             // line 48
  158.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["podcast"], "getURL", [], "method"falsefalsefalse48), "html"nulltrue);
  159.             echo "\">Read More</a></div>
  160. \t\t\t\t
  161. \t\t\t\t";
  162.             // line 59
  163.             echo "\t\t\t\t
  164. \t\t\t</div>
  165. \t\t</div>
  166. \t\t<hr>
  167. \t\t";
  168.             // line 63
  169.             $context["count"] = ((isset($context["count"]) || array_key_exists("count"$context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.'63$this->source); })()) + 1);
  170.             // line 64
  171.             echo "\t";
  172.         }
  173.         $_parent $context['_parent'];
  174.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['podcast'], $context['_parent'], $context['loop']);
  175.         $context array_intersect_key($context$_parent) + $_parent;
  176.         // line 65
  177.         echo "\t
  178. ";
  179.         
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  181.         
  182.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  183.     }
  184.     public function getTemplateName()
  185.     {
  186.         return "content/tmpl/podcasts.html.twig";
  187.     }
  188.     public function isTraitable()
  189.     {
  190.         return false;
  191.     }
  192.     public function getDebugInfo()
  193.     {
  194.         return array (  191 => 65,  185 => 64,  183 => 63,  177 => 59,  172 => 48,  167 => 46,  164 => 45,  160 => 39,  154 => 38,  149 => 37,  143 => 34,  140 => 33,  138 => 32,  133 => 30,  130 => 29,  128 => 28,  125 => 27,  122 => 26,  117 => 25,  115 => 24,  112 => 23,  106 => 21,  103 => 20,  100 => 18,  94 => 16,  92 => 15,  88 => 13,  82 => 11,  79 => 10,  76 => 9,  74 => 8,  71 => 7,  68 => 6,  58 => 5,  35 => 2,);
  195.     }
  196.     public function getSourceContext()
  197.     {
  198.         return new Source("
  199. {% extends \"1-col-sidebar.html.twig\" %}
  200. {# podcasts #}
  201. {% block column %}
  202. \t\t\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  203. \t\t\t
  204. {% include  \"includes/curtain-ads/rlw.html.twig\" %}
  205. \t\t\t{% endif %}
  206. \t{% if content.getShowTitle() %}
  207. \t\t<h1>{{ content.getTitle() | raw }}</h1>
  208. \t{% endif %}
  209. \t
  210. \t
  211. \t{% if content.getFeaturedImageTag() %}
  212. \t\t{{ content.getFeaturedImageTag(\"display-block\",\"\")|raw }}
  213. \t{% endif %}
  214. \t
  215. \t{# show full content #}
  216. \t{% if content.getContentFull() is not empty %}
  217. \t\t{{ content.getContentFull() | wordpress | raw }}
  218. \t{% endif %}
  219. \t
  220. \t{% set count = 0 %}
  221. \t{% for podcast in podcasts %}
  222. \t\t{% set m = images[count] %}
  223. \t\t<div class=\"row my-4\">
  224. \t\t\t{% if podcast.getFeaturedImageTag() is not empty %}
  225. \t\t\t\t<div class=\"col-3 post-thumbnail\">
  226. \t\t\t\t\t{{ podcast.getFeaturedImageTag(\"\",\"\")|raw }}
  227. \t\t\t\t</div>
  228. \t\t\t{% elseif m is not empty %}
  229. \t\t\t\t<div class=\"col-3 post-thumbnail\">
  230. \t\t\t\t\t{{ m.getImageTag(\"\",\"\")|raw }}
  231. \t\t\t\t</div>
  232. \t\t\t{% endif %}
  233. \t\t\t<div class={{ (podcast.getFeaturedImageTag() is empty and m is empty) ? \"col-12\" : \"col-9\" }}>
  234. \t\t\t\t<h3 class=\"list-post-title\"><a href=\"{{ podcast.getURL() }}\">{{ podcast.title }}</a></h3>
  235. \t\t\t\t<p class=\"post-byline\">{{ podcast.publishedat | date | rcsDateFormat }}</p>
  236. \t\t\t\t{#
  237. \t\t\t\t<p>{{ podcast.getPodcastSubtitle() | raw }}</p>
  238. \t\t\t\t<p>{{ podcast.getPodcastInThisEpisode() | slice(0, 320) | striptags }}...</p>
  239. \t\t\t\t<div><a href=\"{{ podcast.getURL() }}\">Read More</a></div>
  240. \t\t\t\t#}
  241. \t\t\t\t
  242. \t\t\t\t<p>{{ podcast.getIntroText() | raw }}</p>
  243. \t\t\t\t<br><br>
  244. \t\t\t\t<div><a href=\"{{ podcast.getURL() }}\">Read More</a></div>
  245. \t\t\t\t
  246. \t\t\t\t{#
  247. \t\t\t\t{% if podcast.getIntroText() == \"\" %}
  248. \t\t\t\t\t<p>{{ podcast.contentfull | slice(0, 320) | striptags }}...</p>
  249. \t\t\t\t\t<div><a href=\"{{ podcast.getURL() }}\">Read More</a></div>
  250. \t\t\t\t{% else %}
  251. \t\t\t\t\t<p>{{ podcast.getIntroText() }}...</p>
  252. \t\t\t\t\t<div><a href=\"{{ podcast.getURL() }}\">Read More</a></div>
  253. \t\t\t\t{% endif %}
  254. \t\t\t\t#}
  255. \t\t\t\t
  256. \t\t\t</div>
  257. \t\t</div>
  258. \t\t<hr>
  259. \t\t{% set count = count + 1 %}
  260. \t{% endfor %}
  261. \t
  262. {% endblock %}""content/tmpl/podcasts.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/podcasts.html.twig");
  263.     }
  264. }