Skip to content

Commit

Permalink
Template for k-centre profile titles
Browse files Browse the repository at this point in the history
  • Loading branch information
andmor- committed Oct 8, 2024
1 parent a3ba139 commit 433b0bb
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions templates/field/field--node--title--k-centre-profile.html.twig
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>

0 comments on commit 433b0bb

Please sign in to comment.