profile--compact.html.twig in Open Social 8.5
Same filename and directory in other branches
- 8.9 themes/socialbase/templates/profile/profile--compact.html.twig
- 8 themes/socialbase/templates/profile/profile--compact.html.twig
- 8.2 themes/socialbase/templates/profile/profile--compact.html.twig
- 8.3 themes/socialbase/templates/profile/profile--compact.html.twig
- 8.4 themes/socialbase/templates/profile/profile--compact.html.twig
- 8.6 themes/socialbase/templates/profile/profile--compact.html.twig
- 8.7 themes/socialbase/templates/profile/profile--compact.html.twig
- 8.8 themes/socialbase/templates/profile/profile--compact.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--compact.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="avatar">
- <a href="{{ profile_home }}" title="{{ profile_name|striptags }}">
-
- {% if profile_image_url %}
- <img src="{{ profile_image_url }}" class="img-responsive" alt="{{ profile_name|striptags }}">
- {% else %}
- {# if default_image #}
- {{ content.field_profile_image }}
- {% endif %}
-
- </a>
- </div>