forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
45 lines
1.2 KiB
Twig
45 lines
1.2 KiB
Twig
{#
|
|
/**
|
|
* @file
|
|
* Theme override to present all user data.
|
|
*
|
|
* This template is used when viewing a registered user's page,
|
|
* e.g., example.com/user/123. 123 being the user's ID.
|
|
*
|
|
* Available variables:
|
|
* - content: A list of content items. Use 'content' to print all content, or
|
|
* print a subset such as 'content.field_example'. Fields attached to a user
|
|
* such as 'user_picture' are available as 'content.user_picture'.
|
|
* - attributes: HTML attributes for the container element.
|
|
* - user: A Drupal User entity.
|
|
*
|
|
* @see template_preprocess_user()
|
|
*/
|
|
#}
|
|
<div{{ attributes.addClass('profile') }}>
|
|
|
|
{% if content and (view_mode == 'default' or view_mode == 'full') %}
|
|
<div class="user-header">
|
|
<div class="inner">
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div class="user-profile-picture">
|
|
{{ content.user_picture }}
|
|
</div>
|
|
</div>
|
|
<div class="col-md-8">
|
|
<h2 class="user-name">{{ content.field_name }} @{{ name }}</h2>
|
|
<div class="user-content">
|
|
{{ content|without('user_picture', 'field_name') }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
{{- content -}}
|
|
{% endif %}
|
|
</div>
|