var/cache/dev/twig/54/54a231ca5debc2976651278f439078e3.php line 130

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/content.html.twig */
  14. class __TwigTemplate_39635b23f42149ab89876c3f12a87eda 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/content.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/content.html.twig"));
  33.         // line 9
  34.         echo "    
  35. ";
  36.         // line 10
  37.         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); })()), "type", [], "any"falsefalsefalse10) == twig_constant("App\\Entity\\Content::POST"))) {
  38.             // line 11
  39.             echo "    ";
  40.             // line 12
  41.             echo "    ";
  42.             $this->loadTemplate("content/post.html.twig""content/content.html.twig"12)->display($context);
  43.         } elseif ((twig_get_attribute($this->env$this->source,         // line 13
  44. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'13$this->source); })()), "type", [], "any"falsefalsefalse13) == twig_constant("App\\Entity\\Content::CLASSIFIED"))) {
  45.             // line 14
  46.             echo "    ";
  47.             // line 15
  48.             echo "    ";
  49.             $this->loadTemplate("content/classified.html.twig""content/content.html.twig"15)->display($context);
  50.         } elseif ((twig_get_attribute($this->env$this->source,         // line 16
  51. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'16$this->source); })()), "type", [], "any"falsefalsefalse16) == 4)) {
  52.             // line 17
  53.             echo "    ";
  54.             // line 18
  55.             echo "    ";
  56.             $this->loadTemplate("content/directory.html.twig""content/content.html.twig"18)->display($context);
  57.         } elseif ((twig_get_attribute($this->env$this->source,         // line 19
  58. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'19$this->source); })()), "type", [], "any"falsefalsefalse19) == 5)) {
  59.             // line 20
  60.             echo "    ";
  61.             // line 21
  62.             echo "    ";
  63.             $this->loadTemplate("content/gallery.html.twig""content/content.html.twig"21)->display($context);
  64.         } elseif ((twig_get_attribute($this->env$this->source,         // line 22
  65. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'22$this->source); })()), "type", [], "any"falsefalsefalse22) == 6)) {
  66.             // line 23
  67.             echo "    ";
  68.             // line 24
  69.             echo "    ";
  70.             $this->loadTemplate("content/landing-page.html.twig""content/content.html.twig"24)->display($context);
  71.         } elseif ((twig_get_attribute($this->env$this->source,         // line 25
  72. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'25$this->source); })()), "type", [], "any"falsefalsefalse25) == 7)) {
  73.             // line 26
  74.             echo "    ";
  75.             // line 27
  76.             echo "    ";
  77.             $this->loadTemplate("content/event.html.twig""content/content.html.twig"27)->display($context);
  78.         } elseif ((false && (twig_get_attribute($this->env$this->source,         // line 28
  79. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'28$this->source); })()), "type", [], "any"falsefalsefalse28) == 8))) {
  80.             // line 29
  81.             echo "    ";
  82.             // line 30
  83.             echo "    ";
  84.             $this->loadTemplate("content/webinar.html.twig""content/content.html.twig"30)->display($context);
  85.         } elseif ((twig_get_attribute($this->env$this->source,         // line 31
  86. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'31$this->source); })()), "type", [], "any"falsefalsefalse31) == 9)) {
  87.             // line 32
  88.             echo "    ";
  89.             // line 33
  90.             echo "    ";
  91.             $this->loadTemplate("content/forum.html.twig""content/content.html.twig"33)->display($context);
  92.         } elseif ((twig_get_attribute($this->env$this->source,         // line 34
  93. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'34$this->source); })()), "type", [], "any"falsefalsefalse34) == 10)) {
  94.             // line 35
  95.             echo "    ";
  96.             // line 36
  97.             echo "    ";
  98.             $this->loadTemplate("content/forum-topic.html.twig""content/content.html.twig"36)->display($context);
  99.         } elseif ((twig_get_attribute($this->env$this->source,         // line 37
  100. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'37$this->source); })()), "type", [], "any"falsefalsefalse37) == 11)) {
  101.             // line 38
  102.             echo "    ";
  103.             // line 39
  104.             echo "    ";
  105.             $this->loadTemplate("content/forum-reply.html.twig""content/content.html.twig"39)->display($context);
  106.         } elseif ((twig_get_attribute($this->env$this->source,         // line 40
  107. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'40$this->source); })()), "type", [], "any"falsefalsefalse40) == 18)) {
  108.             // line 41
  109.             echo "    ";
  110.             // line 42
  111.             echo "    ";
  112.             $this->loadTemplate("content/podcast.html.twig""content/content.html.twig"42)->display($context);
  113.             // line 43
  114.             echo "    
  115. ";
  116.         } else {
  117.             // line 45
  118.             echo "    ";
  119.             // line 46
  120.             echo "    ";
  121.             $this->loadTemplate("content/page.html.twig""content/content.html.twig"46)->display($context);
  122.         }
  123.         // line 48
  124.         echo "
  125. ";
  126.         
  127.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  128.         
  129.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  130.     }
  131.     public function getTemplateName()
  132.     {
  133.         return "content/content.html.twig";
  134.     }
  135.     public function isTraitable()
  136.     {
  137.         return false;
  138.     }
  139.     public function getDebugInfo()
  140.     {
  141.         return array (  133 => 48,  129 => 46,  127 => 45,  123 => 43,  120 => 42,  118 => 41,  116 => 40,  113 => 39,  111 => 38,  109 => 37,  106 => 36,  104 => 35,  102 => 34,  99 => 33,  97 => 32,  95 => 31,  92 => 30,  90 => 29,  88 => 28,  85 => 27,  83 => 26,  81 => 25,  78 => 24,  76 => 23,  74 => 22,  71 => 21,  69 => 20,  67 => 19,  64 => 18,  62 => 17,  60 => 16,  57 => 15,  55 => 14,  53 => 13,  50 => 12,  48 => 11,  46 => 10,  43 => 9,);
  142.     }
  143.     public function getSourceContext()
  144.     {
  145.         return new Source("{# 
  146.     TODO - better variable naming 
  147. #}
  148. {# % if 
  149.     content.type == 1 or 
  150.     content.type == constant(\"App\\\\Entity\\\\Content::WEBINAR\") or
  151.     content.type == 18  
  152. % #}
  153.     
  154. {% if content.type == constant(\"App\\\\Entity\\\\Content::POST\") %}
  155.     {# post #}
  156.     {% include \"content/post.html.twig\" %}
  157. {% elseif content.type == constant(\"App\\\\Entity\\\\Content::CLASSIFIED\") %}
  158.     {# classified #}
  159.     {% include \"content/classified.html.twig\" %}
  160. {% elseif content.type == 4 %}
  161.     {# directory #}
  162.     {% include \"content/directory.html.twig\" %}
  163. {% elseif content.type == 5 %}
  164.     {# gallery #}
  165.     {% include \"content/gallery.html.twig\" %}
  166. {% elseif content.type == 6 %}
  167.     {# landing page #}
  168.     {% include \"content/landing-page.html.twig\" %}
  169. {% elseif content.type == 7 %}
  170.     {# event page #}
  171.     {% include \"content/event.html.twig\" %}
  172. {% elseif false and content.type == 8 %}
  173.     {# webinar page #}
  174.     {% include \"content/webinar.html.twig\" %}
  175. {% elseif content.type == 9 %}
  176.     {# forum page #}
  177.     {% include \"content/forum.html.twig\" %}
  178. {% elseif content.type == 10 %}
  179.     {# forum topic page #}
  180.     {% include \"content/forum-topic.html.twig\" %}
  181. {% elseif content.type == 11 %}
  182.     {# forum reply page #}
  183.     {% include \"content/forum-reply.html.twig\" %}
  184. {% elseif content.type == 18 %}
  185.     {# podcast page #}
  186.     {% include \"content/podcast.html.twig\" %}
  187.     
  188. {% else %}
  189.     {# all single content items #}
  190.     {% include \"content/page.html.twig\" %}
  191. {% endif %}
  192. ""content/content.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/content.html.twig");
  193.     }
  194. }