Loading socialbase.theme +0 −12 Original line number Diff line number Diff line Loading @@ -5,7 +5,6 @@ * The primary PHP file for the Social base theme. */ use Drupal\Core\Session\AnonymousUserSession; use Drupal\Core\Language\LanguageInterface; use Drupal\node\NodeInterface; use Drupal\Component\Utility\Html; Loading Loading @@ -188,17 +187,6 @@ function _socialbase_node_get_like_count($type, $id) { } /** * Implements theme_preprocess_username(). */ function socialbase_preprocess_username(&$variables) { $account = $variables['account'] ?: new AnonymousUserSession(); // Override the default drupal truncate function for all user names, // so the whole name will be displayed. $variables['name'] = $account->getDisplayName(); } /** * Implements hook_theme(). */ Loading templates/profile/profile--profile--small_teaser.html.twig +5 −4 Original line number Diff line number Diff line Loading @@ -15,7 +15,8 @@ * - attributes: HTML attributes for the wrapper. * - profile: The profile object. * - url: The profile URL. * - link_attributes: HTML attributes for the link. * - avatar_attributes: HTML attributes for the link with an avatar. * - link_attributes: HTML attributes for the link with a username. * * @ingroup themeable */ Loading @@ -24,14 +25,14 @@ <div class="card__block card__block--list teaser--small"> <div class='card__text list-item'> <a href="{{ profile_home }}" {{ link_attributes }} title={% trans %} profile avatar {% endtrans %}> <div class="card__text list-item"> <a href="{{ profile_home }}" {{ avatar_attributes }} title="{% trans %} profile avatar {% endtrans %}"> <span class="list-item__avatar list-item__avatar--medium"> {{ content.field_profile_image }} </span> </a> <a href="{{ profile_home }}" {{ link_attributes }} title={% trans %} profile information {% endtrans %}> <a href="{{ profile_home }}" {{ link_attributes }} title="{% trans %} profile information {% endtrans %}"> <span class="list-item__text"> <span class="teaser--small__title"> {{ profile_name }} Loading Loading
socialbase.theme +0 −12 Original line number Diff line number Diff line Loading @@ -5,7 +5,6 @@ * The primary PHP file for the Social base theme. */ use Drupal\Core\Session\AnonymousUserSession; use Drupal\Core\Language\LanguageInterface; use Drupal\node\NodeInterface; use Drupal\Component\Utility\Html; Loading Loading @@ -188,17 +187,6 @@ function _socialbase_node_get_like_count($type, $id) { } /** * Implements theme_preprocess_username(). */ function socialbase_preprocess_username(&$variables) { $account = $variables['account'] ?: new AnonymousUserSession(); // Override the default drupal truncate function for all user names, // so the whole name will be displayed. $variables['name'] = $account->getDisplayName(); } /** * Implements hook_theme(). */ Loading
templates/profile/profile--profile--small_teaser.html.twig +5 −4 Original line number Diff line number Diff line Loading @@ -15,7 +15,8 @@ * - attributes: HTML attributes for the wrapper. * - profile: The profile object. * - url: The profile URL. * - link_attributes: HTML attributes for the link. * - avatar_attributes: HTML attributes for the link with an avatar. * - link_attributes: HTML attributes for the link with a username. * * @ingroup themeable */ Loading @@ -24,14 +25,14 @@ <div class="card__block card__block--list teaser--small"> <div class='card__text list-item'> <a href="{{ profile_home }}" {{ link_attributes }} title={% trans %} profile avatar {% endtrans %}> <div class="card__text list-item"> <a href="{{ profile_home }}" {{ avatar_attributes }} title="{% trans %} profile avatar {% endtrans %}"> <span class="list-item__avatar list-item__avatar--medium"> {{ content.field_profile_image }} </span> </a> <a href="{{ profile_home }}" {{ link_attributes }} title={% trans %} profile information {% endtrans %}> <a href="{{ profile_home }}" {{ link_attributes }} title="{% trans %} profile information {% endtrans %}"> <span class="list-item__text"> <span class="teaser--small__title"> {{ profile_name }} Loading