You are here

profile--profile--compact_teaser.html.twig in Open Social 8.3

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.twig
View source
  1. {#
  2. /**
  3. * @file
  4. *
  5. * Default theme implementation for profiles.
  6. *
  7. * Available variables:
  8. * - content: Items for the content of the profile.
  9. * Use 'content' to print them all, or print a subset such as
  10. * 'content.title'. Use the following code to exclude the
  11. * printing of a given child element:
  12. * @code
  13. * {{ content|without('title') }}
  14. * @endcode
  15. * - attributes: HTML attributes for the wrapper.
  16. * - profile: The profile object.
  17. * - url: The profile URL.
  18. *
  19. * @ingroup themeable
  20. */
  21. #}
  22. {{ attach_library('socialbase/teaser') }}
  23. <div class="card__block card__block--list">
  24. <div class="card__text list-item">
  25. <a href="{{ profile_stream_url }}" class="list-item__avatar list-item__avatar--medium">
  26. {{ content.field_profile_image }}
  27. </a>
  28. <div class="list-item__text">
  29. <a href="{{ profile_stream_url }}" title="{{ 'View Profile'|t }}">{{ profile_name }}</a>
  30. {% if content.field_profile_function|render and content.field_profile_organization|render %} <br /> {% endif %}
  31. {{content.field_profile_function}}
  32. {% if content.field_profile_function|render and content.field_profile_organization|render %} &bullet; {% endif %}
  33. {{ content.field_profile_organization }}
  34. </div>
  35. </div>
  36. </div>