community_builder-1.0.0-alpha1/templates/user/user--full.html.twig
templates/user/user--full.html.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() */ #} {#{{ content.field_dob }}#} {#{{ content.field_gender }}#} {#{{ content.field_interest }}#} {% set profile_link = attributes.about %} <div{{ attributes.addClass('user-profile__wrapper') }}> {% if content %} <div class="user-profile__header" data-component="communities/user-profile"> <div class="user-profile__avatar" aria-hidden="true"> {{ content.field_profile_picture }} </div> <div class="user-profile__full-name"> {{ content.field_name }} </div> <div class="user-profile__country"> <div data-component="communities/country-flag-and-name" class="country-flag-and-name" data-country-code="in" data-flag-size=""> <span class="country-flag-and-name__name"> {{ content.field_location }} </span> </div> </div> <div class="user-profile__edit"> <a class="user-profile__edit__link" href="/user/{{ current_user_id }}/edit?destination=/user"> {{ 'Edit Profile'|t }} </a> </div> {# <div class="user-profile__activity-title">#} {# <h5>{{ 'Your activity'|t }}</h5>#} {# </div>#} <ul class="user-profile__tabs nav" id="pills-tab" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="pills-posts-tab" data-toggle="pill" href="#pills-posts" role="tab" aria-controls="pills-posts" aria-selected="true"> <span class="user-profile__tabs__count">{{ user_activity_posts_count }}</span> <span class="user-profile__tabs__label">{{ 'Posts'|t }}</span> </a> </li> <li class="nav-item"> <a class="nav-link" id="pills-likes-tab" data-toggle="pill" href="#pills-likes" role="tab" aria-controls="pills-likes" aria-selected="false"> <span class="user-profile__tabs__count">{{ user_activity_likes_count }}</span> <span class="user-profile__tabs__label">{{ 'Likes'|t }}</span> </a> </li> <li class="nav-item"> <a class="nav-link" id="pills-comments-tab" data-toggle="pill" href="#pills-comments" role="tab" aria-controls="pills-comments" aria-selected="false"> <span class="user-profile__tabs__count">{{ user_activity_comments_count }}</span> <span class="user-profile__tabs__label">{{ 'Comments'|t }}</span> </a> </li> </ul> </div> <div class="user-profile__body"> <div class="tab-content" id="pills-tabContent"> <div class="tab-pane fade show active" id="pills-posts" role="tabpanel" aria-labelledby="pills-posts-tab"> {{ user_activity_posts }} </div> <div class="tab-pane fade" id="pills-likes" role="tabpanel" aria-labelledby="pills-likes-tab"> {{ user_activity_likes }} </div> <div class="tab-pane fade" id="pills-comments" role="tabpanel" aria-labelledby="pills-comments-tab"> {{ user_activity_comments }} </div> </div> </div> {% endif %} </div>