profile--profile--compact_teaser.html.twig in Open Social 8
Same filename and directory in other branches
- 8.9 themes/socialbase/templates/profile/profile--profile--compact_teaser.html.twig
- 8.2 themes/socialbase/templates/profile/profile--profile--compact_teaser.html.twig
- 8.3 themes/socialbase/templates/profile/profile--profile--compact_teaser.html.twig
- 8.4 themes/socialbase/templates/profile/profile--profile--compact_teaser.html.twig
- 8.5 themes/socialbase/templates/profile/profile--profile--compact_teaser.html.twig
- 8.6 themes/socialbase/templates/profile/profile--profile--compact_teaser.html.twig
- 8.7 themes/socialbase/templates/profile/profile--profile--compact_teaser.html.twig
- 8.8 themes/socialbase/templates/profile/profile--profile--compact_teaser.html.twig
Default theme implementation for profiles.
Available variables:
- content: Items for the content of the profile. Use 'content' to print them all, or print a subset such as 'content.title'. Use the following code to exclude the printing of a given child element:
{{ content|without('title') }}
- attributes: HTML attributes for the wrapper.
- profile: The profile object.
- url: The profile URL.
File
themes/socialbase/templates/profile/profile--profile--compact_teaser.html.twigView source
- {#
- /**
- * @file
- *
- * Default theme implementation for profiles.
- *
- * Available variables:
- * - content: Items for the content of the profile.
- * Use 'content' to print them all, or print a subset such as
- * 'content.title'. Use the following code to exclude the
- * printing of a given child element:
- * @code
- * {{ content|without('title') }}
- * @endcode
- * - attributes: HTML attributes for the wrapper.
- * - profile: The profile object.
- * - url: The profile URL.
- *
- * @ingroup themeable
- */
- #}
- {{ attach_library('socialbase/teaser') }}
- <div class="card__block card__block--list">
- <div class="card__text list-item">
-
- <a href="{{ profile_stream_url }}" class="list-item__avatar list-item__avatar--medium">
- {{ content.field_profile_image }}
- </a>
-
- <div class="list-item__text">
- <a href="{{ profile_stream_url }}" title="{{ 'View Profile'|t }}">{{ profile_name }}</a>
-
- {% if content.field_profile_function|render and content.field_profile_organization|render %} <br /> {% endif %}
- {{content.field_profile_function}}
-
- {% if content.field_profile_function|render and content.field_profile_organization|render %} • {% endif %}
-
- {{ content.field_profile_organization }}
-
- </div>
-
- </div>
- </div>