var/cache/dev/twig/c2/c281b968ed721d79592dfe98d8a6c716.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/podcast.html.twig */
  14. class __TwigTemplate_1f910c98dce4b46e89ff0d26c0397e38 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/podcast.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/podcast.html.twig"));
  38.         $this->parent $this->loadTemplate("1-col-sidebar.html.twig""content/tmpl/podcast.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/podcast.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<center>
  81. \t";
  82.             // line 17
  83.             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.'17$this->source); })()), "getMediaURL", [], "method"falsefalsefalse17)) {
  84.                 echo "<a href=\"";
  85.                 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.'17$this->source); })()), "getMediaURL", [], "method"falsefalsefalse17), "html"nulltrue);
  86.                 echo "\">";
  87.             }
  88.             // line 18
  89.             echo "\t\t
  90. \t\t";
  91.             // line 19
  92.             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.'19$this->source); })()), "getFeaturedImageTag", ["display-block""max-height: 350px;"], "method"falsefalsefalse19);
  93.             echo "
  94. \t\t
  95. \t\t";
  96.             // line 21
  97.             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.'21$this->source); })()), "getMediaURL", [], "method"falsefalsefalse21)) {
  98.                 echo "</a>";
  99.             }
  100.             // line 22
  101.             echo "\t\t</center>
  102. \t";
  103.         }
  104.         // line 24
  105.         echo "\t
  106. \t";
  107.         // line 26
  108.         echo "\t
  109. \t";
  110.         // line 28
  111.         echo "\t";
  112.         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.'28$this->source); })()), "getContentFull", [], "method"falsefalsefalse28))) {
  113.             // line 29
  114.             echo "\t\t";
  115.             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.'29$this->source); })()), "getContentFull", [], "method"falsefalsefalse29));
  116.             echo "
  117. \t";
  118.         }
  119.         // line 31
  120.         echo "\t";
  121.         // line 32
  122.         echo "\t";
  123.         $this->loadTemplate("includes/social-share.html.twig""content/tmpl/podcast.html.twig"32)->display($context);
  124.         // line 33
  125.         echo "\t";
  126.         // line 34
  127.         echo "\t";
  128.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\RCS\\ContentController::comment", ["content" =>         // line 36
  129. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'36$this->source); })())]));
  130.         // line 38
  131.         echo "
  132. ";
  133.         
  134.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  135.         
  136.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  137.     }
  138.     public function getTemplateName()
  139.     {
  140.         return "content/tmpl/podcast.html.twig";
  141.     }
  142.     public function isTraitable()
  143.     {
  144.         return false;
  145.     }
  146.     public function getDebugInfo()
  147.     {
  148.         return array (  145 => 38,  143 => 36,  141 => 34,  139 => 33,  136 => 32,  134 => 31,  128 => 29,  125 => 28,  122 => 26,  119 => 24,  115 => 22,  111 => 21,  106 => 19,  103 => 18,  97 => 17,  94 => 16,  92 => 15,  88 => 13,  82 => 11,  79 => 10,  76 => 9,  74 => 8,  71 => 7,  68 => 6,  58 => 5,  35 => 2,);
  149.     }
  150.     public function getSourceContext()
  151.     {
  152.         return new Source("
  153. {% extends \"1-col-sidebar.html.twig\" %}
  154. {# podcasts #}
  155. {% block column %}
  156. \t\t\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  157. \t\t\t
  158. {% include  \"includes/curtain-ads/rlw.html.twig\" %}
  159. \t\t\t{% endif %}
  160. \t{% if content.getShowTitle() %}
  161. \t\t<h1>{{ content.getTitle() | raw }}</h1>
  162. \t{% endif %}
  163. \t
  164. \t
  165. \t{% if content.getFeaturedImageTag() %}
  166. \t\t<center>
  167. \t{% if content.getMediaURL() %}<a href=\"{{content.getMediaURL()}}\">{% endif %}
  168. \t\t
  169. \t\t{{ content.getFeaturedImageTag(\"display-block\",\"max-height: 350px;\")|raw }}
  170. \t\t
  171. \t\t{% if content.getMediaURL() %}</a>{% endif %}
  172. \t\t</center>
  173. \t{% endif %}
  174. \t
  175. \t{#<p class=\"post-byline\">{{ content.publishedat | date(\"F j, Y\") }}</p>#}
  176. \t
  177. \t{# show full content #}
  178. \t{% if content.getContentFull() is not empty %}
  179. \t\t{{ content.getContentFull() | wordpress | raw }}
  180. \t{% endif %}
  181. \t{#social share buttons#}
  182. \t{% include \"includes/social-share.html.twig\" %}
  183. \t{# comments #}
  184. \t{{ render(controller(
  185. \t\t'App\\\\Controller\\\\RCS\\\\ContentController::comment',
  186. \t\t{ 'content': content }
  187. \t   ))
  188. \t}}
  189. {% endblock %}""content/tmpl/podcast.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/podcast.html.twig");
  190.     }
  191. }