You are here

socialfeed-facebook-post.html.twig in Social Feed 8

{% if post.picture %}
  <div class="fb-pic">
    <img src="{{ post.picture }}"/>
  </div>
{% endif %}

{% if post.video %}
  <div class="fb-video">
    <a href="{{ post.video }}">See Video</a>
  </div>
{% endif %}

{% if post.message %}
  <div class="fb-message">
    {{ post.message }}
  </div>
{% endif %}

{% if post.link %}
  <div class="fb-link">
    {{ post.link }}
  </div>
{% endif %}

{% if should_display_time %}
  <div class="fb-time">
    {{ post.created_time }}
  </div>
{% endif %}

File

templates/socialfeed-facebook-post.html.twig
View source
  1. {% if post.picture %}
  2. <div class="fb-pic">
  3. <img src="{{ post.picture }}"/>
  4. </div>
  5. {% endif %}
  6. {% if post.video %}
  7. <div class="fb-video">
  8. <a href="{{ post.video }}">See Video</a>
  9. </div>
  10. {% endif %}
  11. {% if post.message %}
  12. <div class="fb-message">
  13. {{ post.message }}
  14. </div>
  15. {% endif %}
  16. {% if post.link %}
  17. <div class="fb-link">
  18. {{ post.link }}
  19. </div>
  20. {% endif %}
  21. {% if should_display_time %}
  22. <div class="fb-time">
  23. {{ post.created_time }}
  24. </div>
  25. {% endif %}