socialbase-1.1.0/templates/profile/profile--profile--compact_teaser.html.twig

templates/profile/profile--profile--compact_teaser.html.twig
{#
/**
 * @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.
 * - avatar_attributes: HTML attributes for the link with an avatar.
 * - link_attributes: HTML attributes for the link with a username.
 *
 * @ingroup themeable
 */
#}
{{ attach_library('socialbase/teaser') }}

<div class="card__block card__block--list">
  <div class="card__text list-item">
    {% if avatar_attributes is not defined %}
      {% set avatar_attributes = create_attribute() %}
    {% endif %}

    <a href="{{ profile_home }}"{{ avatar_attributes.addClass(['list-item__avatar', 'list-item__avatar--medium']) }}>
      {{ content.field_profile_image }}
    </a>

    <div class="list-item__text">
      <a href="{{ profile_home }}" title="{{ 'View Profile'|t }}"{{ link_attributes }}>{{ profile_name }}</a>

      {% if content.field_profile_function|render and content.field_profile_organization|render %} <br /> {% endif %}
      {{content.field_profile_function}}

      {% if content.field_profile_function|render and content.field_profile_organization|render %} &bullet; {% endif %}

      {{ content.field_profile_organization }}

    </div>

  </div>
</div>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc