post--activity.html.twig in Open Social 8.9
Same filename and directory in other branches
- 8 themes/socialbase/templates/post/post--activity.html.twig
- 8.2 themes/socialbase/templates/post/post--activity.html.twig
- 8.3 themes/socialbase/templates/post/post--activity.html.twig
- 8.4 themes/socialbase/templates/post/post--activity.html.twig
- 8.5 themes/socialbase/templates/post/post--activity.html.twig
- 8.6 themes/socialbase/templates/post/post--activity.html.twig
- 8.7 themes/socialbase/templates/post/post--activity.html.twig
- 8.8 themes/socialbase/templates/post/post--activity.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
themes/socialbase/templates/post/post--activity.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
- */
- #}
-
- {{ attach_library('socialbase/comment') }}
- {{ attach_library('socialbase/page-node')}}
-
- {%
- set classes = [
- 'margin-top-m',
- 'iframe-container',
- logged_in ? 'margin-bottom-m',
- ]
- %}
-
- {% if content.links %}
- {{ content.links }}
- {% endif %}
-
- <div{{ attributes.addClass(classes) }}>
-
- {# body-text is necessary for theme colors to be applied #}
- <div class="body-text">
- {{ content|without('links', 'field_post_comments', 'like_and_dislike', 'field_post_image', 'user_id') }}
- </div>
-
- {% if content.field_post_image|render %}
- <p>{{ content.field_post_image }}</p>
- {% endif %}
-
- <div class="clearfix"></div>
- {{ content.like_and_dislike }}
-
- </div>
-
- {% if logged_in %}
- {{ content.field_post_comments }}
- {% endif %}