templates/content/content.html.twig line 1

Open in your IDE?
  1. {# 
  2.     TODO - better variable naming 
  3. #}
  4. {# % if 
  5.     content.type == 1 or 
  6.     content.type == constant("App\\Entity\\Content::WEBINAR") or
  7.     content.type == 18  
  8. % #}
  9.     
  10. {% if content.type == constant("App\\Entity\\Content::POST") %}
  11.     {# post #}
  12.     {% include "content/post.html.twig" %}
  13. {% elseif content.type == constant("App\\Entity\\Content::CLASSIFIED") %}
  14.     {# classified #}
  15.     {% include "content/classified.html.twig" %}
  16. {% elseif content.type == 4 %}
  17.     {# directory #}
  18.     {% include "content/directory.html.twig" %}
  19. {% elseif content.type == 5 %}
  20.     {# gallery #}
  21.     {% include "content/gallery.html.twig" %}
  22. {% elseif content.type == 6 %}
  23.     {# landing page #}
  24.     {% include "content/landing-page.html.twig" %}
  25. {% elseif content.type == 7 %}
  26.     {# event page #}
  27.     {% include "content/event.html.twig" %}
  28. {% elseif false and content.type == 8 %}
  29.     {# webinar page #}
  30.     {% include "content/webinar.html.twig" %}
  31. {% elseif content.type == 9 %}
  32.     {# forum page #}
  33.     {% include "content/forum.html.twig" %}
  34. {% elseif content.type == 10 %}
  35.     {# forum topic page #}
  36.     {% include "content/forum-topic.html.twig" %}
  37. {% elseif content.type == 11 %}
  38.     {# forum reply page #}
  39.     {% include "content/forum-reply.html.twig" %}
  40. {% elseif content.type == 18 %}
  41.     {# podcast page #}
  42.     {% include "content/podcast.html.twig" %}
  43.     
  44. {% else %}
  45.     {# all single content items #}
  46.     {% include "content/page.html.twig" %}
  47. {% endif %}