Compare commits
1 Commits
master
...
dependabot
Author | SHA1 | Date |
---|---|---|
dependabot[bot] | ef6c5875c3 | 3 years ago |
12 changed files with 27 additions and 198 deletions
@ -1,25 +0,0 @@
|
||||
{ |
||||
"name": "roblib/lmmi_journal_theme", |
||||
"description": "Journal of LM Montgomery Studies theme, sub-theme of MagazinePlus", |
||||
"type": "drupal-custom-theme", |
||||
"keywords": [ |
||||
"Drupal" |
||||
], |
||||
"homepage": "https://library.upei.ca/", |
||||
"repositories": [ |
||||
{ |
||||
"type": "composer", |
||||
"url": "https://packages.drupal.org/8" |
||||
} |
||||
], |
||||
"require": { |
||||
"roblib/magazineplus_lmmi_journal": "dev-master" |
||||
}, |
||||
"license": "GPL-2.0-or-later", |
||||
"authors": [ |
||||
{ |
||||
"name": "Rob Drew", |
||||
"role": "Owner" |
||||
} |
||||
] |
||||
} |
@ -1,32 +0,0 @@
|
||||
{# |
||||
/** |
||||
* @file |
||||
* Theme override for the ORCID 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, |
||||
'orcid-short-link', |
||||
] |
||||
%} |
||||
<a href="https://orcid.org/{{ items.0 }}" {{ attributes.addClass(classes) }}><img class="orcid_logo" alt="ORCID logo" src="https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png" width="16" height="16" /> |
||||
{#{{ items }}#}</a> |
@ -1,19 +0,0 @@
|
||||
{% set imagePath = file_url(content.field_article_highlight_image|field_target_entity.image.entity.uri.value) %} |
||||
<header style="background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('{{ imagePath }}')" class="article-title-banner node__header paragraph-responsive-typography-enabled article-header"> |
||||
<div class="container article-info--wrapper"> |
||||
{% block title_area %} |
||||
{{ title_prefix }} |
||||
<h1{{ title_attributes.addClass('article--title title') }}> |
||||
{{ label }} |
||||
</h1> |
||||
<h1{{ title_attributes.addClass('article--title title sr-only') }}> |
||||
{{ label }} |
||||
</h1> |
||||
{{ title_suffix }} |
||||
{% endblock %} |
||||
<section class="article-header--metadata"> |
||||
<div class="left"> </div> |
||||
<div class="right"> </div> |
||||
</section> |
||||
</div> |
||||
</header> |
@ -1,56 +0,0 @@
|
||||
{#{% if fields.field_article_type.content|striptags|trim == "Article" %}#} |
||||
{#{{dump(fields.field_article_type.content|striptags|trim)}}#} |
||||
|
||||
{% if fields.field_article_type.content|striptags|trim == "Article" %} |
||||
{% set _icon_ = 'fa-file-text-o' %} |
||||
{% set _color_ = 'blue' %} |
||||
{% elseif fields.field_article_type.content|striptags|trim == "Peer-reviewed article" %} |
||||
{% set _icon_ = 'fa-users' %} |
||||
{% set _color_ = 'red' %} |
||||
{% elseif fields.field_article_type.content|striptags|trim == "Audio/visual art" %} |
||||
{% set _icon_ = 'fa-volume-up' %} |
||||
{% set _color_ = 'red' %} |
||||
{% elseif fields.field_article_type.content|striptags|trim == "Blog post" %} |
||||
{% set _icon_ = 'fa-rss' %} |
||||
{% set _color_ = 'green' %} |
||||
{% elseif fields.field_article_type.content|striptags|trim == "Creative writing" %} |
||||
{% set _icon_ = 'fa-pencil-square-o' %} |
||||
{% set _color_ = 'teal' %} |
||||
{% elseif fields.field_article_type.content|striptags|trim == "News" %} |
||||
{% set _icon_ = 'fa-newspaper-o' %} |
||||
{% set _color_ = 'purple' %} |
||||
{% elseif fields.field_article_type.content|striptags|trim == "Note" %} |
||||
{% set _icon_ = 'fa-envelope-open-o' %} |
||||
{% set _color_ = 'aqua' %} |
||||
{% elseif fields.field_article_type.content|striptags|trim == "Notice" %} |
||||
{% set _icon_ = 'fa-exclamation-circle' %} |
||||
{% set _color_ = 'teal' %} |
||||
{% else %} |
||||
{% set _icon_ = '' %} |
||||
{% set _color_ = '' %} |
||||
{% endif %} |
||||
|
||||
<div class="{{_color_}} teaser-card card mb-4 shadow-sm"> |
||||
{{ fields.field_article_highlight_image.content }} |
||||
<span class="teaser-card__icon"> |
||||
<i class="fa {{_icon_}}" aria-hidden="true"></i> |
||||
</span> |
||||
<div class="teaser-card__category"> |
||||
{{ fields.field_article_type.content }} |
||||
{#{% if fields.field_article_peer_reviewed.content |striptags|trim == "Yes" %}#} |
||||
{#<span class="peer-reviewed">#} |
||||
{#- peer reviewed#} |
||||
{#</span>#} |
||||
{#{% endif %}#} |
||||
</div> |
||||
<div class="teaser-card__body card-body"> |
||||
<p class="teaser-card__title"> {{ fields.title.content }} </p> |
||||
<p class="teaser-card__author"> {{ fields.field_authors_and_affiliations.content }} </p> |
||||
|
||||
</div> |
||||
{#<i class="fa fa-camera-retro"></i>#} |
||||
{#<i class="fa fa-newspaper-o" aria-hidden="true"></i>#} |
||||
{#<i class="fa fa-video-camera" aria-hidden="true"></i>#} |
||||
{#<i class="fa fa-file-text-o" aria-hidden="true"></i>#} |
||||
{#<i class="fa fa-film" aria-hidden="true"></i>#} |
||||
</div> |
Loading…
Reference in new issue