You are here

social-tagging-split.html.twig in Open Social 10.3.x

post.html.twig Default theme implementation to present Post data.

This template is used when viewing Post pages.

Available variables:

  • content: A list of content items. Use 'content' to print all content, or
  • attributes: HTML attributes for the container element.

File

modules/social_features/social_follow_taxonomy/modules/social_follow_tag/templates/social-tagging-split.html.twig
View source
  1. {#
  2. /**
  3. * @file post.html.twig
  4. * Default theme implementation to present Post data.
  5. *
  6. * This template is used when viewing Post pages.
  7. *
  8. *
  9. * Available variables:
  10. * - content: A list of content items. Use 'content' to print all content, or
  11. * - attributes: HTML attributes for the container element.
  12. *
  13. * @see template_preprocess_post()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <div class="card__block social_follow_tax">
  19. {% for content in taghierarchy %}
  20. <p><strong>{{ content.title }}</strong></p>
  21. <div class="group-action-wrapper">
  22. {% for tag in content.tags %}
  23. <div class="group-action">
  24. <a class="badge badge-default badge--large badge--pill btn-action__term{% if(tag.follow) %} term-followed{% endif %}" href="#">
  25. {{ tag.name }}
  26. <svg xmlns="http://www.w3.org/2000/svg" width="12" height="11" viewBox="0 0 12 11">
  27. <g>
  28. <g>
  29. <path fill="#4d4d4d" d="M6.003 9.078l3.605 2.175-.956-4.1 3.185-2.76-4.194-.356L6.003.17 4.364 4.037.17 4.393l3.185 2.76-.957 4.1z"/>
  30. </g>
  31. </g>
  32. </svg>
  33. </a>
  34. {{ tag.popup }}
  35. </div>
  36. {% endfor %}
  37. </div>
  38. {% endfor %}
  39. </div>