D10 theme for Island Scholar v2 Clone of "vre2024"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.5 KiB

3 weeks ago
{#
/**
* @file
* Theme override to display a taxonomy term.
*
* Available variables:
* - url: URL of the current term.
* - name: (optional) Name of the current term.
* - content: Items for the content of the term (fields and description).
* Use 'content' to print them all, or print a subset such as
* 'content.description'. Use the following code to exclude the
* printing of a given child element:
* @code
* {{ content|without('description') }}
* @endcode
* - attributes: HTML attributes for the wrapper.
* - page: Flag for the full page state.
* - term: The taxonomy term entity, including:
* - id: The ID of the taxonomy term.
* - bundle: Machine name of the current vocabulary.
* - view_mode: View mode, e.g. 'full', 'teaser', etc.
*
* @see template_preprocess_taxonomy_term()
*/
#}
3 weeks ago
{# my dubugger #}
<details>
<summary>Rob's var dump</summary>
3 weeks ago
{{ dump(content) }}
3 weeks ago
</details>
{# /my dubugger #}
3 weeks ago
{%
set fancy_fields = [
content.name,
content.field_image,
content.field_email,
content.field_position,
content.field_departments,
content.field_phone,
content.field_address,
content.field_website,
content.field_orcid,
content.field_biography,
content.field_google_scholar_id,
content.field_status,
content.field_fields_of_activity,
content.field_upei_identifier_u1
]
%}
<div class="scholar-profile_header">
<div class="profile-tab"><i class="fas fa-user" aria-hidden="true"></i>SCHOLAR DETAILS</div>
<div class="tab-right"></div>
</div>
3 weeks ago
<div class="scholar-profile">
<div class="top">
<div class="image">
3 weeks ago
{{ content.field_image|add_class('scholar-profile_image') }}
3 weeks ago
</div>
<div class="details">
3 weeks ago
{{ content.name }}
{{ content.field_email }}
{{ content.field_position }}
{{ content.field_departments }}
{{ content.field_phone }}
{{ content.field_address }}
{{ content.field_website }}
{{ content.field_orcid }}
{{ content.field_google_scholar_id }}
{{ content.field_status }}
{{ content.field_upei_identifier_u1 }}
3 weeks ago
</div>
</div>
<div class="bottom">
3 weeks ago
<hr>
{{ content.field_biography }}
<hr>
<div class="field__label">Recent Citations</div>
{{ drupal_view('scholar_profile_recent_citations_block', 'block_1') }}
<hr>
{{ content.field_fields_of_activity }}
<hr>
3 weeks ago
</div>
</div>
3 weeks ago
<div{{ attributes }}>
{{ title_prefix }}
{% if name and not page %}
<h2><a href="{{ url }}">{{ name }}</a></h2>
{% endif %}
{{ title_suffix }}
3 weeks ago
{{ content|without(fancy_fields) }}
3 weeks ago
</div>
{# <script>console.log({{ _context | json_encode | raw}});</script> #}