post.html.twig in Open Social 10.0.x
Same filename and directory in other branches
- 8.9 modules/social_features/social_post/templates/post.html.twig
- 8 modules/social_features/social_post/templates/post.html.twig
- 8.2 modules/social_features/social_post/templates/post.html.twig
- 8.3 modules/social_features/social_post/templates/post.html.twig
- 8.4 modules/social_features/social_post/templates/post.html.twig
- 8.5 modules/social_features/social_post/templates/post.html.twig
- 8.6 modules/social_features/social_post/templates/post.html.twig
- 8.7 modules/social_features/social_post/templates/post.html.twig
- 8.8 modules/social_features/social_post/templates/post.html.twig
- 10.3.x modules/social_features/social_post/templates/post.html.twig
- 10.1.x modules/social_features/social_post/templates/post.html.twig
- 10.2.x modules/social_features/social_post/templates/post.html.twig
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.
See also
File
modules/social_features/social_post/templates/post.html.twigView source
- {#
- /**
- * @file 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.
- *
- * @see template_preprocess_post()
- *
- * @ingroup themeable
- */
- #}
- <div{{ attributes.addClass('card', 'post') }}>
-
- {% if content.user_id %}
- {{- content.user_id -}}
- {% endif %}
-
- {{ date }}
-
- {% if visibility_icon and visibility_label %}
- <svg class="margin-left-s icon-visibility">
- <use xlink:href="#icon-{{ visibility_icon }}"></use>
- </svg>
- <strong>{{ visibility_label }}</strong>
- {% endif %}
-
- {% if content.field_post_image %}
- {{- content.field_post_image -}}
- {% endif %}
-
- {% if content.field_post %}
- {{- content.field_post -}}
- {% endif %}
-
- {% if content.like_and_dislike %}
- {{- content.like_and_dislike -}}
- {% endif %}
-
- {% if content.field_post_comments %}
- {{- content.field_post_comments -}}
- {% endif %}
-
- </div>