Compare commits

..

No commits in common. 'master' and '9471-orcid' have entirely different histories.

  1. 2
      composer.json
  2. 12
      css_overrides.css
  3. 3
      lmmi_journal.info.yml
  4. 20
      templates/news_articles/news--hero.html.twig
  5. 19
      templates/news_articles/news--hero.html.twig.old

2
composer.json

@ -1,7 +1,7 @@
{
"name": "roblib/lmmi_journal_theme",
"description": "Journal of LM Montgomery Studies theme, sub-theme of MagazinePlus",
"type": "drupal-custom-theme",
"type": "drupal-theme",
"keywords": [
"Drupal"
],

12
css_overrides.css

@ -60,15 +60,3 @@ img.orcid_logo {
font-size: smaller;
line-height: 2;
}
.teaser-card__body .field--name-field-affiliation-string {
display:none;
}
.field--name-field-journal-article-abstract {
background: #eee;
padding: .5em;
margin-bottom:1.5em;
p:last-child {
padding-bottom: 0;
}
}

3
lmmi_journal.info.yml

@ -1,7 +1,8 @@
name: LMMI Journal
type: theme
description: Subtheme of Magazine Plus
core_version_requirement: ^8 || ^9 || ^10
core: 8.x
core_version_requirement: ^8 || ^9
# Defines the base theme
base theme: magazineplus
# Defines libraries group in which we can add css/js.

20
templates/news_articles/news--hero.html.twig

@ -1,10 +1,7 @@
{% if not (node.field_article_highlight_image.isEmpty == true) and content.field_article_highlight_image is defined %}
{% 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">
{% else %}
<header class="no_image article-title-banner node__header paragraph-responsive-typography-enabled article-header">
{% endif %}
<div class="container article-info--wrapper">
{% block title_area %}
{{ title_prefix }}
<h1{{ title_attributes.addClass('article--title title') }}>
@ -16,8 +13,19 @@
{{ title_suffix }}
{% endblock %}
<section class="article-header--metadata">
<div class="left"> </div>
<div class="right"> </div>
<div class="left">
{#<div class="article--contributor">#}
{#Robert N. Drew#}
{#</div>#}
{#<div class="article--contributor__affiliation">University of Prince Edward Island</div>#}
</div>
<div class="right">
{#<div class="article--type">Article</div>#}
{#<div class="article--date-published">#}
{#Published September 20, 2018 #}
{#</div>#}
</div>
</section>
</div>
</header>

19
templates/news_articles/news--hero.html.twig.old

@ -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>
Loading…
Cancel
Save