-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Template for k-centre profile titles
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
templates/field/field--node--title--k-centre-profile.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{# | ||
/** | ||
* @file | ||
* Theme override for the node title field. | ||
* | ||
* This is an override of field.html.twig for the node title field. See that | ||
* template for documentation about its details and overrides. | ||
* | ||
* Available variables: | ||
* - attributes: HTML attributes for the containing span element. | ||
* - items: List of all the field items. Each item contains: | ||
* - attributes: List of HTML attributes for each item. | ||
* - content: The field item content. | ||
* - entity_type: The entity type to which the field belongs. | ||
* - field_name: The name of the field. | ||
* - field_type: The type of the field. | ||
* - label_display: The display settings for the label. | ||
* | ||
* @see field.html.twig | ||
*/ | ||
#} | ||
{% | ||
set classes = [ | ||
'field', | ||
'field--name-' ~ field_name|clean_class, | ||
'field--type-' ~ field_type|clean_class, | ||
'field--label-' ~ label_display, | ||
] | ||
%} | ||
<span{{ attributes.addClass(classes) }}> | ||
{%- for item in items -%} | ||
{{ item.content }} | ||
{%- endfor -%} | ||
</span> | ||
<div class="d-none d-sm-block float-sm-end col-sm-3 me-sm-4"> | ||
<img class="pb-4" src="/themes/contrib/clarin_bootstrap/images/CLARIN-Logo-K-centre-2023-RGB-600ppi-transp.png"> | ||
</div> |