profile--profile--small_teaser.html.twig in Open Social 8.8
Same filename and directory in other branches
- 8.9 themes/socialbase/templates/profile/profile--profile--small_teaser.html.twig
- 8 themes/socialbase/templates/profile/profile--profile--small_teaser.html.twig
- 8.2 themes/socialbase/templates/profile/profile--profile--small_teaser.html.twig
- 8.3 themes/socialbase/templates/profile/profile--profile--small_teaser.html.twig
- 8.4 themes/socialbase/templates/profile/profile--profile--small_teaser.html.twig
- 8.5 themes/socialbase/templates/profile/profile--profile--small_teaser.html.twig
- 8.6 themes/socialbase/templates/profile/profile--profile--small_teaser.html.twig
- 8.7 themes/socialbase/templates/profile/profile--profile--small_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--small_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
- */
- #}
-
-
- <div class="card__block card__block--list">
-
- <a href="{{ profile_home }}" class="card__text list-item">
- <span class="list-item__avatar list-item__avatar--medium">
- {{ content.field_profile_image }}
- </span>
-
- <span class="list-item__text">
- {{ profile_name }} {{ profile_name_extra }}
-
- {% if content.field_profile_function|render or content.field_profile_organization|render %}
- <div class="list-item__text--small">
- {% if content.field_profile_organization|render %}
- {{ '@function @ @organization'|t({'@function': content.field_profile_function|render, '@organization': content.field_profile_organization|render}) }}
- {% else %}
- {{ content.field_profile_function }}
- {% endif %}
- </div>
- {% endif %}
- </span>
-
- </a>
-
- </div>