Compare commits

..

31 Commits

Author SHA1 Message Date
ppound f87b0603e2 Merge branch 'master' of git.library.upei.ca:code/lmmi_journal_theme 8 months ago
ppound 6ca7d04409 these files were changed on the prod server so commiting them 8 months ago
Paul Pound 4d6cf2c18f changed type to drupal custom theme so updates are put in the same directory 8 months ago
Paul Pound 9a6695c12f update info yml file for d10 support 8 months ago
Alexander O'Neill 2c6205455e ORCID styling by rdrew. 3 years ago
Alexander O'Neill 57c163c918 Add orcid.org prefix to links. 3 years ago
Alexander O'Neill 7650a14d79 Add tempalte for ORCID field. 3 years ago
Alexander O'Neill 34c68349b1 Fix white screen in article hero when image missing. 3 years ago
Alexander O'Neill 2dff644546 Add composer dependency on base theme. 3 years ago
Alexander O'Neill b485030630 Add composer.json. 3 years ago
rdrew 95957cbcde Merge branch 'master' of https://github.com/rdrew/lmmi_journal_theme 3 years ago
rdrew 6413aecd09 pdf print templates 3 years ago
rdrew 3b1b2389b1 d9 update 3 years ago
rdrew 313300bd9a Merge branch 'master' of https://github.com/rdrew/lmmi_journal_theme 4 years ago
rdrew 8847213c62 fixed toc js 4 years ago
rdrew ffe63a899d Merge branch 'master' of https://github.com/rdrew/lmmi_journal_theme 4 years ago
rdrew 3e5bff1251 fixed toc js 4 years ago
rdrew 7c5aa07810 fixed toc js 4 years ago
rdrew 420a7337b9 Merge branch 'master' of https://github.com/rdrew/lmmi_journal_theme 4 years ago
rdrew 0e1b3da8d0 fixed toc js 4 years ago
rdrew f600efa435 Merge branch 'master' of https://github.com/rdrew/lmmi_journal_theme 4 years ago
rdrew 2fefa4fa22 fixed toc js 4 years ago
rdrew 6b54e710f4 Merge branch 'master' of https://github.com/rdrew/lmmi_journal_theme 4 years ago
rdrew 9dc7da832a tweaked the taxonimy list view 4 years ago
rdrew 2b3b43a85e Merge branch 'master' of https://github.com/rdrew/lmmi_journal_theme 4 years ago
rdrew a54f17fb46 template stuff 4 years ago
rdrew 086decfea3 updates 4 years ago
rdrew c0e6a17e53 removed footnote period 4 years ago
rdrew e21ed3d9b7 template stuff 4 years ago
rdrew f97c6e769e Merge branch 'master' of https://github.com/rdrew/lmmi_journal_theme 5 years ago
rdrew 6fa7e6405f template stuff 5 years ago
  1. 25
      composer.json
  2. 20
      css/style.css
  3. 2
      css/style.css.map
  4. 40
      css_overrides.css
  5. 21
      js/js.js
  6. 4
      lmmi_journal.info.yml
  7. 14
      package-lock.json
  8. 21
      src/js/js.js
  9. 412
      src/scss/_article-pages.scss
  10. 2
      src/scss/_lp-preview-grid.scss
  11. 33
      src/scss/style.scss
  12. 2
      temp
  13. 7
      templates/article_pages/article--hero.html.twig
  14. 61
      templates/article_pages/entity-print--node--journal-article.html.twig.old
  15. 2
      templates/article_pages/entity-print.html.twig
  16. 62
      templates/article_pages/node--journal-article--full.html.twig.old
  17. 127
      templates/article_pages/node--journal-article.html.twig.old
  18. 1
      templates/entity-print--node--page.html.twig
  19. 32
      templates/field--paragraph--field-contributor-orcid--author-with-affiliation.html.twig
  20. 0
      templates/landing-page/page--front.html.twig
  21. 789
      templates/landing-page/page--node--113.html.twig
  22. 22
      templates/news_articles/news--hero.html.twig
  23. 19
      templates/news_articles/news--hero.html.twig.old
  24. 56
      templates/views/views-view-fields--taxonomy-term.html.twig

25
composer.json

@ -0,0 +1,25 @@
{
"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"
}
]
}

20
css/style.css

@ -451,7 +451,7 @@ nav > h2,
.bottom-spacing-large {
padding-bottom: 90px; }
.masonry-layout .masonry-item {
.masonry .masonry-item {
width: 100%;
background-color: #f6f6f2;
border: 0;
@ -459,7 +459,7 @@ nav > h2,
padding: 0; }
@media (min-width: 768px) {
.masonry-layout .masonry-item {
.masonry .masonry-item {
width: 30.5%; } }
.page-node-type-landing-page .main-content {
@ -754,18 +754,12 @@ h3 {
grid-template-rows: auto;
grid-template-areas: 'main toc'; } }
.footnote-list .footnotes a:after {
content: '.' !important; }
.footnote-list .footnotes {
font-size: 16px; }
.footnote-list .footnotes a {
/*font-weight: bold;*/ }
.footnote-list .footnotes a:after {
content: '.'; }
.footnote-list .item-list ul li span {
font-size: 15px;
font-style: normal;
@ -1077,7 +1071,8 @@ h3.field-group-format-toggler.accordion-item a {
padding: 60px 0 55px; }
/*change padding above content*/
.main-content__section, .sidebar__section {
.main-content__section,
.sidebar__section {
padding: 60px 0 70px; }
/*modify issue info on landing page*/
@ -1094,10 +1089,10 @@ h3.field-group-format-toggler.accordion-item a {
display: flex; }
.path-frontpage .block-region-second-above > .block-entity-fieldnodetitle::after {
content: ","; }
content: ','; }
.path-frontpage .block-region-second-above > .block-entity-fieldnodefield-issue-year::after {
content: ","; }
content: ','; }
.path-frontpage .block-region-second-above .field--name-field-issue-number {
display: flex; }
@ -1146,4 +1141,7 @@ details#journal-article-text-tab img,
.site-name {
font-size: 12rem; }
.path-taxonomy .article-info--wrapper {
padding: 3rem; }
/*# sourceMappingURL=style.css.map */

2
css/style.css.map

File diff suppressed because one or more lines are too long

40
css_overrides.css

@ -30,5 +30,45 @@ p.hangingindent {
span.citeproc-container-title {
font-style: italic;
}
.page-node-173 .article-info {
display: none;
}
.page-node-173 .node__container {
display: block !important;
}
.masonry-item {
width: 30.5%;
background-color: #f6f6f2;
border: 0;
margin: 0.5%;
padding: 0;
}
.paragraph--type--author-with-affiliation {
display: flex;
}
img.orcid_logo {
width: 22px;
margin-bottom: 9px;
}
.orcid-short-link {
margin-left: 12px;
font-weight: normal;
font-style: normal;
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;
}
}

21
js/js.js

@ -82,13 +82,18 @@
}
};
Drupal.behaviors.article_keyword_copier = {
attach: function attach(context, settings) {
$('.field--name-field-journal-article-keywords').appendTo("#toc-sections");
}
};
Drupal.behaviors.article_collection_copier = {
attach: function attach(context, settings) {
$('.field--name-field-collection').appendTo("#toc-sections ol");
}
};
Drupal.behaviors.article_keyword_copier = {
attach: function attach(context, settings) {
$('.field--name-field-journal-article-keywords').appendTo("#toc-sections");
}
};
Drupal.behaviors.slickSliderInit = {
attach: function attach(context, settings) {
@ -106,7 +111,7 @@
attach: function attach(context, settings) {
$('.toc a').on('click',function(e) {
$('.toc li a').on('click',function(e) {
e.preventDefault();
var offset = 100;
var target = this.hash;

4
lmmi_journal.info.yml

@ -1,7 +1,7 @@
name: LMMI Journal
type: theme
description: Subtheme of Magazine Plus
core: 8.x
core_version_requirement: ^8 || ^9 || ^10
# Defines the base theme
base theme: magazineplus
# Defines libraries group in which we can add css/js.
@ -10,7 +10,7 @@ libraries:
- lmmi_journal/global-scripts
- lmmi_journal/fonts
stylesheets-remove:
stylesheets-remove:
- core/themes/stable/css/views/views.module.css
- themes/custom/magazineplus_lmmi_journal/css/base/elements.css
- core/assets/vendor/jquery.ui/themes/base/theme.css

14
package-lock.json generated

@ -1506,7 +1506,7 @@
"dependencies": {
"readable-stream": {
"version": "1.0.34",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
"resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
"integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
"dev": true,
"optional": true,
@ -1767,7 +1767,7 @@
},
"readable-stream": {
"version": "1.0.34",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
"resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
"integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
"dev": true,
"optional": true,
@ -1847,7 +1847,7 @@
},
"readable-stream": {
"version": "1.0.34",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
"resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
"integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
"dev": true,
"optional": true,
@ -2152,7 +2152,7 @@
"dependencies": {
"readable-stream": {
"version": "1.0.34",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
"resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
"integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
"dev": true,
"optional": true,
@ -5518,9 +5518,9 @@
"dev": true
},
"js-yaml": {
"version": "3.13.1",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz",
"integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==",
"version": "3.12.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz",
"integrity": "sha1-6u1lbsg0TxD1J8a/obbiJE3hZ9E=",
"dev": true,
"optional": true,
"requires": {

21
src/js/js.js

@ -82,13 +82,18 @@
}
};
Drupal.behaviors.article_keyword_copier = {
attach: function attach(context, settings) {
$('.field--name-field-journal-article-keywords').appendTo("#toc-sections");
}
};
Drupal.behaviors.article_collection_copier = {
attach: function attach(context, settings) {
$('.field--name-field-collection').appendTo("#toc-sections ol");
}
};
Drupal.behaviors.article_keyword_copier = {
attach: function attach(context, settings) {
$('.field--name-field-journal-article-keywords').appendTo("#toc-sections");
}
};
Drupal.behaviors.slickSliderInit = {
attach: function attach(context, settings) {
@ -106,7 +111,7 @@
attach: function attach(context, settings) {
$('.toc a').on('click',function(e) {
$('.toc li a').on('click',function(e) {
e.preventDefault();
var offset = 100;
var target = this.hash;

412
src/scss/_article-pages.scss

@ -1,149 +1,149 @@
//@format
//embedded images
.field--name-field-media-video-embed-field iframe {
max-width: 100%;
max-width: 100%;
}
.align-right {
margin: 1em 0 1em 1em;
margin: 1em 0 1em 1em;
}
.align-left {
margin: 1em 16px 1em 0;
margin: 1em 16px 1em 0;
}
figure.align-left {
margin: 1em 16px 1em 0;
margin: 1em 16px 1em 0;
}
.align-center img {
display: block;
margin-left: auto;
margin-right: auto;
display: block;
margin-left: auto;
margin-right: auto;
}
.node__main-content {
.field__label {
font-size: 16px;
text-transform: none;
font-weight: bold;
}
.field__item {
font-size: 16px;
}
.field__label {
font-size: 16px;
text-transform: none;
font-weight: bold;
}
.field__item {
font-size: 16px;
}
}
//footnotes
.footnote-list .container.item-list {
width: inherit;
width: inherit;
}
.page-node-type-journal-article .main-content__section {
padding-top: 0;
padding-top: 0;
}
//hero bg-image
.article-title-banner {
//display:none;
//border: 1px solid #ccc;
height: 500px;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
//display:none;
//border: 1px solid #ccc;
height: 500px;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
//hero text
h1.article--title {
@include breakpoint($mobile-only) {
text-align: center;
line-height: 1.2;
font-size: 1.8em;
}
//font-size: 25px;
@include breakpoint($mobile-only) {
text-align: center;
line-height: 1.2;
font-size: 1.8em;
}
//font-size: 25px;
}
.article-info--wrapper {
padding: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
padding: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
}
.field--name-field-journal-article-abstract .field__label {
font-size: 2rem;
font-size: 2rem;
}
h3 {
font-style: normal;
font-style: normal;
}
.node--type-journal-article {
.field--name-body figure {
//margin-left: initial;
//margin-right: initial;
.field--name-body figure {
//margin-left: initial;
//margin-right: initial;
&.align-right {
margin: 1em 0 1em 1em;
}
&.align-left {
margin: 1em 1em 1em 0;
}
.align-center img {
display: block;
margin-left: auto;
margin-right: auto;
}
img {
border: 1px solid #ccc;
padding: 4px;
//width: 200px;
margin-right: 1rem;
margin-top: 1rem;
}
&.align-right {
margin: 1em 0 1em 1em;
}
&.align-left {
margin: 1em 1em 1em 0;
}
//footnotes
.see-footnote {
//a[id^='footnote'] {
border: 1px solid #5d5d5d;
background: #5d5d5d;
color: #fff;
border-radius: 4px;
text-decoration: none;
padding: 1px 3px;
font-size: 1.1rem;
//vertical-align: super;
.align-center img {
display: block;
margin-left: auto;
margin-right: auto;
}
img {
border: 1px solid #ccc;
padding: 4px;
//width: 200px;
margin-right: 1rem;
margin-top: 1rem;
}
}
//footnotes
.see-footnote {
//a[id^='footnote'] {
border: 1px solid #5d5d5d;
background: #5d5d5d;
color: #fff;
border-radius: 4px;
text-decoration: none;
padding: 1px 3px;
font-size: 1.1rem;
//vertical-align: super;
}
}
.footnotes {
.footnote-multi {
float: none;
vertical-align: none;
position: initial;
top: initial;
font-size: initial;
}
.footnote-multi {
float: none;
vertical-align: none;
position: initial;
top: initial;
font-size: initial;
}
}
header.article-header {
//background: #e6e6e6;
//background: url(../img/DS2_2622.jpg);
//padding: 1rem;
//background: #e6e6e6;
//background: url(../img/DS2_2622.jpg);
//padding: 1rem;
}
.article-header--metadata {
text-align: center;
@include breakpoint($tablet-up) {
text-align: left;
display: flex;
justify-content: space-between;
.left,
.right {
flex-direction: column;
align-items: flex-end;
}
.right {
justify-content: flex-end;
text-align: right;
}
text-align: center;
@include breakpoint($tablet-up) {
text-align: left;
display: flex;
justify-content: space-between;
.left,
.right {
flex-direction: column;
align-items: flex-end;
}
.right {
justify-content: flex-end;
text-align: right;
}
}
}
.article-title-banner {
.field--name-title {
color: #fff;
&:hover {
text-decoration: underline;
}
.field--name-title {
color: #fff;
&:hover {
text-decoration: underline;
}
}
}
//.article-info--wrapper {
//position: absolute;
@ -153,162 +153,162 @@ header.article-header {
.article-info--wrapper {
}
.article-title {
color: #fff;
color: #fff;
}
.article-header--metadata {
a {
color: #fff;
}
.article--contributor {
font-size: 27px;
//line-height:36px;
font-family: 'Libre Baskerville', Georgia, Times New Roman, Serif;
font-weight: bold;
font-style: italic;
}
.field--name-field-affiliation-string,
.article--contributor__affiliation {
font-size: 18px;
text-transform: uppercase;
//line-height:18px;
font-weight: normal;
font-style: normal;
font-family: sans-serif;
}
.article--type {
font-size: 18px;
//line-height:18px;
text-transform: uppercase;
a {
color: #fff;
}
.article--contributor {
font-size: 27px;
//line-height:36px;
font-family: 'Libre Baskerville', Georgia, Times New Roman, Serif;
font-weight: bold;
font-style: italic;
}
.field--name-field-affiliation-string,
.article--contributor__affiliation {
font-size: 18px;
text-transform: uppercase;
//line-height:18px;
font-weight: normal;
font-style: normal;
font-family: sans-serif;
color: #fff;
}
.article--type {
font-size: 18px;
//line-height:18px;
text-transform: uppercase;
a {
color: #fff;
}
}
.article--date-published {
font-size: 18px;
text-transform: uppercase;
//line-height:18px;
margin-top: 6px;
}
.article--date-published {
font-size: 18px;
text-transform: uppercase;
//line-height:18px;
margin-top: 6px;
.field__label {
display: none;
}
.field__label {
display: none;
}
}
}
//layout
.article-title-banner {
padding: 0;
padding: 0;
}
.node__main-content {
grid-area: main;
grid-area: main;
}
.toc-sticky-wrapper {
height: 100%;
grid-area: toc;
height: 100%;
grid-area: toc;
}
.page-node-type-journal-article .node__container {
@include breakpoint($desktop-up) {
display: grid;
column-gap: 2rem;
grid-template-columns: 70% 30%;
grid-template-rows: auto;
grid-template-areas: 'main toc';
}
@include breakpoint($desktop-up) {
display: grid;
column-gap: 2rem;
grid-template-columns: 70% 30%;
grid-template-rows: auto;
grid-template-areas: 'main toc';
}
}
//notes
.footnote-list .footnotes a:after {
content: '.' !important;
//content: '.' !important;
}
.footnote-list {
.footnotes {
font-size: 16px;
a {
/*font-weight: bold;*/
&:after {
content: '.';
}
}
}
.item-list ul li span {
font-size: 15px;
font-style: normal;
font-weight: 400;
padding-left: 5px;
margin-bottom: 1rem;
.footnotes {
font-size: 16px;
a {
/*font-weight: bold;*/
&:after {
//content: '.';
}
}
}
.item-list ul li span {
font-size: 15px;
font-style: normal;
font-weight: 400;
padding-left: 5px;
margin-bottom: 1rem;
}
}
//info
.field--entity-reference-target-type-taxonomy-term {
.field__label {
border-bottom: 0px;
margin: 0px;
padding: 0px;
&:after {
content: ':';
margin-right: 16px;
}
float: left;
.field__label {
border-bottom: 0px;
margin: 0px;
padding: 0px;
&:after {
content: ':';
margin-right: 16px;
}
float: left;
}
}
.field--name-field-cc-license {
h3 {
font-size: 16px;
font-weight: bold;
margin: 0px;
padding: 0px;
&:after {
content: ':';
margin-right: 16px;
}
float: left;
}
p {
display: inline;
h3 {
font-size: 16px;
font-weight: bold;
margin: 0px;
padding: 0px;
&:after {
content: ':';
margin-right: 16px;
}
float: left;
}
p {
display: inline;
}
}
.field--name-field-article-subjects {
border-bottom: 0px;
border-bottom: 0px;
}
.field--entity-reference-target-type-taxonomy-term,
.field--entity-reference-target-type-taxonomy-term.field__item {
margin: 0 0;
margin: 0 0;
}
//this is just here to underline the article info heading, may cause problems eslewhere
h3.field-group-format-toggler.accordion-item {
a {
color: #2e2e2e;
border-bottom: 1px solid #2e2e2e;
display: block;
/*@extend h2;*/
font-size: 30px;
}
a {
color: #2e2e2e;
border-bottom: 1px solid #2e2e2e;
display: block;
/*@extend h2;*/
font-size: 30px;
}
}
.back-to-top {
display: none;
display: none;
}
.footnote-list > div {
padding: 0;
//margin: 0;
padding: 0;
//margin: 0;
}
.bibcite-reference {
font-size: 15px;
font-style: normal;
font-weight: 400;
padding-left: 5px;
margin-bottom: 1rem;
font-size: 15px;
font-style: normal;
font-weight: 400;
padding-left: 5px;
margin-bottom: 1rem;
}
.field--name-field-bibcite-fn-works-cited .field__label {
border-bottom: 1px solid #333;
font-size: 30px;
font-weight: normal;
margin-top: 1rem;
border-bottom: 1px solid #333;
font-size: 30px;
font-weight: normal;
margin-top: 1rem;
}
.footnote-list:before {
content: 'Notes';
font-size: 30px;
font-family: $serif;
content: 'Notes';
font-size: 30px;
font-family: $serif;
}

2
src/scss/_lp-preview-grid.scss

@ -1,5 +1,5 @@
//overrides
.masonry-layout .masonry-item {
.masonry .masonry-item {
width: 100%;
@include breakpoint($tablet-up) {
width: 30.5%;

33
src/scss/style.scss

@ -14,15 +14,11 @@
@import 'article_attachment';
@import 'search';
/*on-scroll menu */
.fixed-header-enabled.onscroll .header-container ul.menu {
text-align: right;
}
/*================================================*/
/*change header title fontsize*/
@ -35,11 +31,11 @@
}
/*change padding above content*/
.main-content__section, .sidebar__section {
.main-content__section,
.sidebar__section {
padding: 60px 0 70px;
}
/*modify issue info on landing page*/
.path-frontpage .layout.layout--twocol-bricks {
display: block;
@ -51,18 +47,21 @@
}
.path-frontpage .block-region-second-above > * {
margin-right: 1rem;
display:flex;
display: flex;
}
.path-frontpage .block-region-second-above > .block-entity-fieldnodetitle::after{
content: ",";
.path-frontpage
.block-region-second-above
> .block-entity-fieldnodetitle::after {
content: ',';
}
.path-frontpage .block-region-second-above > .block-entity-fieldnodefield-issue-year::after{
content: ",";
.path-frontpage
.block-region-second-above
> .block-entity-fieldnodefield-issue-year::after {
content: ',';
}
.path-frontpage .block-region-second-above .field--name-field-issue-number {
display:flex;
display: flex;
}
/*tweak images added to articles*/
@ -90,9 +89,8 @@ details#journal-article-text-tab img,
margin-bottom: 30px;
}
.logo {
width:110px;
width: 110px;
}
/*headings*/
.hff-01 h1,
@ -109,5 +107,8 @@ details#journal-article-text-tab img,
font-family: 'Libre Baskerville', Georgia, Times New Roman, Serif;
}
.site-name {
font-size:12rem;
font-size: 12rem;
}
.path-taxonomy .article-info--wrapper {
padding: 3rem;
}

2
temp

@ -0,0 +1,2 @@
So, for first of all, you do not act/talk/ignore to me like you did then expect me to drop everything because you have given me an ultimatem. You talk about me cheating on you well over a year ago and how that ended all. You stayed with me for some reason and even after xmas we continued to build what was to be our apartment/life. I put together, put up, lived with our things and toosed out much of my stuff. I did not know you had other plans and this was just temp storage. In this time you have done repreehensible things to me and in blatant disregard of me and I have said countless times that the fact that you will not even address any of this is a huge fucking problem for me. I dont know how I could have a serios conversation with you with so many 'elephants in the room'. All of mine are in plain sight, yet you still act as if you are deciding whether to 'take me back'... this is going both ways right now. You are the one that mentioned 'red flags', they be a wavin'. I have been gutted by how ive hurt you, Ive talked about it, balwed about it, had you spead it far and wide by calling my family and local bars... You have acted monsterously expect me to keep a straight face when you so gratiously 'give me an hour' of your time at the bar of your choice because you already tried to destroy me in the bars of my choice. Im not above meetingbut ive said this before regarding our meeting again. You are trying to conrol the situation rather than discuss/solve and its very dishonest.

7
templates/article_pages/article--hero.html.twig

@ -1,4 +1,7 @@
{% set imagePath = file_url(content.field_article_highlight_image|field_target_entity.image.entity.uri.value) %}
{% set imageValue = content.field_article_highlight_image|field_target_entity.image.entity.uri.value %}
{% if imageValue %}
{% set imagePath = file_url(imageValue) %}
{% endif %}
{% set articleType = content.field_article_type|field_value %}
{% set pubDate = content.field_publication_date_electroni|field_value %}
@ -35,7 +38,7 @@
<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">
<header style="background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)){% if imagePath %}, url('{{ imagePath }}'){% endif %}" class="article-title-banner node__header paragraph-responsive-typography-enabled article-header">
<div class="container article-info--wrapper">
{% block title_area %}

61
templates/article_pages/entity-print--node--journal-article.html.twig.old

@ -1,61 +0,0 @@
{#{{ kint(node) }}#}
{% set toc = drupal_entity('block', 'tableofcontents', check_access=false) %}
{% set tabs = drupal_block('local_tasks_block') %}
{#{{dump(toc|render|striptags|trim)}}#}
{%
set classes = [
'node',
'node--type-' ~ node.bundle|clean_class,
node.isPromoted() ? 'node--promoted',
node.isSticky() ? 'node--sticky',
not node.isPublished() ? 'node--unpublished',
view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
'clearfix',
]
%}
{{ attach_library('classy/node') }}
{{ attach_library('magazineplus/node') }}
{#main banner#}
<div class="container">
<div class="clearfix">
<div class="row">
<div class="col-md-12">
<article{{ attributes.addClass(classes) }}>
{#admin tabs#}
<div class="node__container">
{% block node_side %}
{% endblock %}
{% if toc is not empty %}
{{ toc }}
{% endif %}
{#start of article #}
<div{{ content_attributes.addClass( 'node__main-content', 'clearfix') }}>
{{ tabs }}
{% block header_top %}
{% endblock %}
{#main content#}
{% block content %}
{{ content|without( 'field_article_highlight_image', 'field_authors_and_affiliations' )}}
{% endblock %}
{% block content_bottom %}
{% endblock %}
</div>
</div>
</article>
</div>
</div>
</div>
</div>

2
templates/article_pages/entity-print.html.twig

@ -6,7 +6,7 @@
</head>
<body>
<div class="page">
{{ content }}
{{ content }}
</div>
</body>
</html>

62
templates/article_pages/node--journal-article--full.html.twig.old

@ -1,62 +0,0 @@
{#{{ kint(node) }}#}
{% set toc = drupal_entity('block', 'tableofcontents', check_access=false) %}
{% set tabs = drupal_block('local_tasks_block') %}
{#{{dump(toc|render|striptags|trim)}}#}
{%
set classes = [
'node',
'node--type-' ~ node.bundle|clean_class,
node.isPromoted() ? 'node--promoted',
node.isSticky() ? 'node--sticky',
not node.isPublished() ? 'node--unpublished',
view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
'clearfix',
]
%}
{{ attach_library('classy/node') }}
{{ attach_library('magazineplus/node') }}
{#main banner#}
{% include '@lmmi_journal/article_pages/article--hero.html.twig' %}
<div class="container">
<div class="clearfix">
<div class="row">
<div class="col-md-12">
<article{{ attributes.addClass(classes) }}>
{#admin tabs#}
<div class="node__container">
{% block node_side %}
{% endblock %}
{% if toc is not empty %}
{{ toc }}
{% endif %}
{#start of article #}
<div{{ content_attributes.addClass( 'node__main-content', 'clearfix') }}>
{{ tabs }}
{% block header_top %}
{% endblock %}
{#main content#}
{% block content %}
{{ content|without( 'field_article_highlight_image', 'field_authors_and_affiliations' )}}
{% endblock %}
{% block content_bottom %}
{% endblock %}
</div>
</div>
</article>
</div>
</div>
</div>
</div>

127
templates/article_pages/node--journal-article.html.twig.old

@ -1,127 +0,0 @@
{#
/**
* @file
* Magazine+'s theme implementation to display a node.
*
* Available variables:
* - node: The node entity with limited access to object properties and methods.
* Only method names starting with "get", "has", or "is" and a few common
* methods such as "id", "label", and "bundle" are available. For example:
* - node.getCreatedTime() will return the node creation timestamp.
* - node.hasField('field_example') returns TRUE if the node bundle includes
* field_example. (This does not indicate the presence of a value in this
* field.)
* - node.isPublished() will return whether the node is published or not.
* Calling other methods, such as node.delete(), will result in an exception.
* See \Drupal\node\Entity\Node for a full list of public properties and
* methods for the node object.
* - label: The title of the node.
* - content: All node items. Use {{ content }} to print them all,
* or print a subset such as {{ content.field_example }}. Use
* {{ content|without('field_example') }} to temporarily suppress the printing
* of a given child element.
* - author_picture: The node author user entity, rendered using the "compact"
* view mode.
* - metadata: Metadata for this node.
* - date: Themed creation date field.
* - author_name: Themed author name field.
* - url: Direct URL of the current node.
* - display_submitted: Whether submission information should be displayed.
* - attributes: HTML attributes for the containing element.
* The attributes.class element may contain one or more of the following
* classes:
* - node: The current template type (also known as a "theming hook").
* - node--type-[type]: The current node type. For example, if the node is an
* "Article" it would result in "node--type-article". Note that the machine
* name will often be in a short form of the human readable label.
* - node--view-mode-[view_mode]: The View Mode of the node; for example, a
* teaser would result in: "node--view-mode-teaser", and
* full: "node--view-mode-full".
* The following are controlled through the node publishing options.
* - node--promoted: Appears on nodes promoted to the front page.
* - node--sticky: Appears on nodes ordered above other non-sticky nodes in
* teaser listings.
* - node--unpublished: Appears on unpublished nodes visible only to site
* admins.
* - title_attributes: Same as attributes, except applied to the main title
* tag that appears in the template.
* - content_attributes: Same as attributes, except applied to the main
* content tag that appears in the template.
* - author_attributes: Same as attributes, except applied to the author of
* the node tag that appears in the template.
* - title_prefix: Additional output populated by modules, intended to be
* displayed in front of the main title tag that appears in the template.
* - title_suffix: Additional output populated by modules, intended to be
* displayed after the main title tag that appears in the template.
* - view_mode: View mode; for example, "teaser" or "full".
* - teaser: Flag for the teaser state. Will be true if view_mode is 'teaser'.
* - page: Flag for the full page state. Will be true if view_mode is 'full'.
* - readmore: Flag for more state. Will be true if the teaser content of the
* node cannot hold the main body content.
* - logged_in: Flag for authenticated user status. Will be true when the
* current user is a logged-in member.
* - is_admin: Flag for admin user status. Will be true when the current user
* is an administrator.
*
* @see template_preprocess_node()
*/
#}
{%
set classes = [
'node',
'node--type-' ~ node.bundle|clean_class,
node.isPromoted() ? 'node--promoted',
node.isSticky() ? 'node--sticky',
not node.isPublished() ? 'node--unpublished',
view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
'clearfix',
]
%}
{{ attach_library('classy/node') }}
{{ attach_library('magazineplus/node') }}
<article{{ attributes.addClass(classes) }}>
<div class="node__container">
{% block node_side %}
{% endblock %}
<div{{ content_attributes.addClass('node__main-content', 'clearfix') }}>
{% block header_top %}
{% endblock %}
<header class="node__header">
{% block title_area %}
{{ title_prefix }}
{% if not page %}
<h2{{ title_attributes.addClass('node__title') }}>
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
</h2>
{% else %}
<h2{{ title_attributes.addClass('node__title title sr-only') }}>
{{ label }}
</h2>
{% endif %}
{{ title_suffix }}
{% endblock %}
{% block meta_area %}
{% if display_submitted %}
<div class="node__meta">
{{ author_picture }}
<span{{ author_attributes.addClass('node__submitted-info') }}>
{% trans %}
<span class="node__submitted-info-text">By</span> {{ author_name }} on
<span class="node__submitted-date">
{{ date }}
</span>
{% endtrans %}
</span>
{{ metadata }}
</div>
{% endif %}
{% endblock %}
</header>
{% block content %}
{{ content }}
{% endblock %}
{% block content_bottom %}
{% endblock %}
</div>
</div>
</article>

1
templates/entity-print--node--page.html.twig

@ -125,3 +125,4 @@
</div>
</div>
</article>
<h1>test</h1>

32
templates/field--paragraph--field-contributor-orcid--author-with-affiliation.html.twig

@ -0,0 +1,32 @@
{#
/**
* @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>

0
templates/landing-page/page--landing-page.html.twig → templates/landing-page/page--front.html.twig

789
templates/landing-page/page--node--113.html.twig

@ -0,0 +1,789 @@
{#
/**
* @file
* Magazine+'s theme implementation to display a single page.
*
* The doctype, html, head and body tags are not in this template. Instead they
* can be found in the html.html.twig template normally located in the
* core/modules/system directory.
*
* Available variables:
*
* General utility variables:
* - base_path: The base URL path of the Drupal installation. Will usually be
* "/" unless you have installed Drupal in a sub-directory.
* - is_front: A flag indicating if the current page is the front page.
* - logged_in: A flag indicating if the user is registered and signed in.
* - is_admin: A flag indicating if the user has permission to access
* administration pages.
*
* Site identity:
* - front_page: The URL of the front page. Use this instead of base_path when
* linking to the front page. This includes the language domain or prefix.
* - logo: The url of the logo image, as defined in theme settings.
* - site_name: The name of the site. This is empty when displaying the site
* name has been disabled in the theme settings.
* - site_slogan: The slogan of the site. This is empty when displaying the site
* slogan has been disabled in theme settings.
* Page content (in order of occurrence in the default page.html.twig):
* - node: Fully loaded node, if there is an automatically-loaded node
* associated with the page and the node ID is the second argument in the
* page's path (e.g. node/12345 and node/12345/revisions, but not
* comment/reply/12345).
*
* Regions:
* - page.slideout: Items for the Slideout region.
* - page.pre_header: Items for the Pre Header region.
* - page.header_top_highlighted_first: Items for the Header Top Highlighted First region.
* - page.header_top_highlighted_second: Items for the Header Top Highlighted Second region.
* - page.header_top_first: Items for the Header Top First region.
* - page.header_top_second: Items for the Header Top Second region.
* - page.header_first: Items for the Header First region.
* - page.header: Items for the Header Second region.
* - page.header_third: Items for the Header Third region.
* - page.banner: Items for the Banner region.
* - page.content_top: Items for the Content Top region.
* - page.content_top_highlighted: Items for the Content Top Highlighted region.
* - page.content: Items for the Content region.
* - page.sidebar_first: Items for the First Sidebar region.
* - page.sidebar_second: Items for the Second Sidebar region.
* - page.content_bottom_first: Items for the Content Bottom First region.
* - page.content_bottom_second: Items for the Content Bottom Second region.
* - page.featured_top: Items for the Featured Top region.
* - page.featured: Items for the Featured region.
* - page.featured_bottom: Items for the Featured Bottom region.
* - page.sub_featured: Items for the Sub Featured region.
* - page.breadcrumb: Items for the Breadcrumb region.
* - page.highlighted: Items for the Highlighted region.
* - page.pre_content_first: Items for the Pre Content First region.
* - page.pre_content_second: Items for the Pre Content Second region.
* - page.footer_top_first: Items for the Footer Top First region.
* - page.footer_top_second: Items for the Footer Top Second region.
* - page.footer_first: Items for the Footer First region.
* - page.footer_second: Items for the Footer Second region.
* - page.footer_third: Items for the Footer Third region.
* - page.footer_fourth: Items for the Footer Fourth region.
* - page.footer_fifth: Items for the Footer Fifth region.
* - page.footer_bottom_first: Items for the Footer Bottom First region.
* - page.footer_bottom_second: Items for the Footer Bottom Second region.
* - page.sub_footer_first: Items for the Subfooter First region.
* - page.footer: Items for the Subfooter Second region.
*
* @see template_preprocess_page()
* @see html.html.twig
*/
#}
{{ attach_library('lmmi_journal/slick-slider') }}
{% if page.slideout %}
{# slideout #}
<div class="clearfix slideout {{ slideout_background_color }}{{ (slideout_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (slideout_region_paddings) ? ' region--no-paddings' : '' }}">
{# slideout__container #}
<div class="clearfix slideout__container">
<div class="slideout__section">
{{ page.slideout }}
</div>
</div>
{# EOF:slideout__container #}
</div>
{# EOF: slideout #}
{# EOF: slideout-toggle #}
<button class="slideout-toggle slideout-toggle--fixed"><i class="fa fa-align-justify"></i></button>
{# EOF: slideout-toggle #}
{% endif %}
{# page-container #}
<div class="page-container">
{% if page.pre_header %}
{# pre-header #}
<div class="clearfix pre-header {{ pre_header_background_color }} {{ pre_header_separator }}{{ (pre_header_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (pre_header_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ pre_header_layout_container }}">
{# pre-header__container #}
<div class="clearfix pre-header__container">
<div class="row">
<div class="col-md-12">
<div class="clearfix pre-header__section">
{{ page.pre_header }}
</div>
</div>
</div>
</div>
{# EOF:pre-header__container #}
</div>
</div>
{# EOF: pre-header #}
{% endif %}
{% if page.header_top_first or page.header_top_second or page.header_first or page.header or page.header_third or page.header_top_highlighted_first or page.header_top_highlighted_second %}
{# header-container #}
<div class="header-container">
{% if page.header_top_highlighted_first or page.header_top_highlighted_second %}
{# header_top_highlighted #}
<div class="clearfix header-top-highlighted {{ header_top_highlighted_background_color }}{{ (header_top_highlighted_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (header_top_highlighted_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ header_top_highlighted_layout_container }}">
{# header_top_highlighted__container #}
<div class="clearfix header-top-highlighted__container{{ (header_top_highlighted_animations == "enabled") ? ' fade' : '' }}"
{% if header_top_highlighted_animations == "enabled" %}
data-animate-effect="{{ header_top_highlighted_animation_effect }}"
{% endif %}>
<div class="row">
{% if page.header_top_highlighted_first %}
<div class="{{ header_top_highlighted_first_grid_class }}">
{# header-top-highlighted-first #}
<div class="clearfix header-top-highlighted__section header-top-highlighted-first">
{{ page.header_top_highlighted_first }}
</div>
{# EOF:header-top-highlighted-first #}
</div>
{% endif %}
{% if page.header_top_highlighted_second %}
<div class="{{ header_top_highlighted_second_grid_class }}">
{# header-top-highlighted-second #}
<div class="clearfix header-top-highlighted__section header-top-highlighted-second">
{{ page.header_top_highlighted_second }}
</div>
{# EOF:header-top-highlighted-second #}
</div>
{% endif %}
</div>
</div>
{# EOF:header-top-highlighted__container #}
</div>
</div>
{# EOF: header-top-highlighted #}
{% endif %}
{% if page.header_top_first or page.header_top_second %}
{# header-top #}
<div class="hero clearfix header-top {{ header_top_background_color }}{{ (header_top_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (header_top_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ header_top_layout_container }}">
{# header-top__container #}
<div class="clearfix header-top__container{{ (header_top_animations == "enabled") ? ' fade' : '' }}"
{% if header_top_animations == "enabled" %}
data-animate-effect="{{ header_top_animation_effect }}"
{% endif %}>
<div class="row">
{% if page.header_top_first %}
<div class="{{ header_top_first_grid_class }}">
{# header-top-first #}
<div class="clearfix header-top__section header-top-first">
{{ page.header_top_first }}
</div>
{# EOF:header-top-first #}
</div>
{% endif %}
{% if page.header_top_second %}
<div class="{{ header_top_second_grid_class }}">
{# header-top-second #}
<div class="clearfix header-top__section header-top-second">
{{ page.header_top_second }}
</div>
{# EOF:header-top-second #}
</div>
{% endif %}
</div>
</div>
{# EOF: header-top__container #}
</div>
</div>
{# EOF: header-top #}
{% endif %}
{% if page.header_first or page.header or page.header_third %}
{# header #}
<header role="banner" class="clearfix header {{ header_background_color }} {{ header_layout_container_class }} {{ header_layout_columns_class }}{{ (header_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (header_region_paddings) ? ' region--no-paddings' : '' }}">
{% if mt_site_name or mt_logo %}
<div class="onscroll-site-name-site-logo-container">
{% if mt_logo %}
<div class="onscroll-logo">
<a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home"><img class="img-responsive" src="{{ mt_logo }}" /></a>
</div>
{% endif %}
{% if mt_site_name %}
<div class="onscroll-site-name site-name">
<a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home">{{ mt_site_name }}</a>
</div>
{% endif %}
</div>
{% endif %}
<div class="{{ header_layout_container }}">
{# header__container #}
<div class="clearfix header__container">
<div class="row">
{% if page.header_third %}
<div class="{{ header_third_grid_class }}">
{# header-third #}
<div class="clearfix header__section header-third">
{{ page.header_third }}
</div>
{# EOF:header-third #}
</div>
{% endif %}
{% if page.header_first %}
<div class="{{ header_first_grid_class }}">
{# header-first #}
<div class="clearfix header__section header-first">
{{ page.header_first }}
</div>
{# EOF:header-first #}
</div>
{% endif %}
{% if page.header %}
<div class="{{ header_second_grid_class }}">
{# header-second #}
<div class="clearfix header__section header-second">
{{ page.header }}
</div>
{# EOF:header-second #}
</div>
{% endif %}
</div>
</div>
{# EOF: header__container #}
</div>
</header>
{# EOF: header #}
{% endif %}
</div>
{# EOF: header-container #}
{% endif %}
{% if page.banner %}
{# banner #}
<div class="clearfix banner {{ banner_background_color }}{{ (banner_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (banner_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ banner_layout_container }}">
{# banner__container #}
<div class="clearfix banner__container">
<div class="row">
<div class="col-md-12">
<div class="banner__section">
{{ page.banner }}
</div>
</div>
</div>
</div>
{# EOF: banner__container #}
</div>
</div>
{# EOF:banner #}
{% endif %}
{# page-start #}
<div id="page-start" class="clearfix page-start"></div>
{#{% if page.system_messages %}#}
{#<div class="system-messages clearfix">#}
{#<div class="container">#}
{#<div class="row">#}
{#<div class="col-md-12">#}
{#{{ page.system_messages }}#}
{#</div>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#{% endif %}#}
{% if page.highlighted_top %}
{# highlighted-top #}
<div class="clearfix highlighted-top {{ highlighted_top_background_color }} {{ highlighted_top_separator }}{{ (highlighted_top_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (highlighted_top_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ highlighted_top_layout_container }}">
{# highlighted-top__container #}
<div class="clearfix highlighted-top__container{{ (highlighted_top_animations == "enabled") ? ' fade' : '' }}"
{% if highlighted_top_animations == "enabled" %}
data-animate-effect="{{ highlighted_top_animation_effect }}"
{% endif %}>
<div class="row">
<div class="col-md-12">
<div class="clearfix highlighted-top__section">
{{ page.highlighted_top }}
</div>
</div>
</div>
</div>
{# EOF:highlighted-top__container #}
</div>
</div>
{# EOF: highlighted-top #}
{% endif %}
{% if page.highlighted %}
{# highlighted #}
<div class="clearfix highlighted {{ highlighted_background_color }} {{ highlighted_separator }}{{ (highlighted_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (highlighted_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ highlighted_layout_container }}">
{# highlighted__container #}
<div class="clearfix highlighted__container{{ (highlighted_animations == "enabled") ? ' fade' : '' }}"
{% if highlighted_animations == "enabled" %}
data-animate-effect="{{ highlighted_animation_effect }}"
{% endif %}>
<div class="row">
<div class="col-md-12">
<div class="clearfix highlighted__section">
{{ page.highlighted }}
</div>
</div>
</div>
</div>
{# EOF:highlighted__container #}
</div>
</div>
{# EOF: highlighted #}
{% endif %}
{% if page.content_top %}
{# content-top #}
<div class="clearfix content-top {{ content_top_background_color }}{{ (content_top_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (content_top_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ content_top_layout_container }}">
{# content-top__container #}
<div class="clearfix content-top__container{{ (content_top_animations == "enabled") ? ' fade' : '' }}"
{% if content_top_animations == "enabled" %}
data-animate-effect="{{ content_top_animation_effect }}"
{% endif %}>
<div class="row">
<div class="col-md-12">
<div class="content-top__section">
{{ page.content_top }}
</div>
</div>
</div>
</div>
{# EOF:content-top__container #}
</div>
</div>
{# EOF: content-top #}
{% endif %}
{% if page.content_top_highlighted %}
{# content-top-highlighted #}
<div class="clearfix content-top-highlighted {{ content_top_highlighted_background_color }} {{ content_top_highlighted_separator }}{{ (content_top_highlighted_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (content_top_highlighted_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ content_top_highlighted_layout_container }}">
{# content-top-highlighted__container #}
<div class="clearfix content-top-highlighted__container{{ (content_top_highlighted_animations == "enabled") ? ' fade' : '' }}"
{% if content_top_highlighted_animations == "enabled" %}
data-animate-effect="{{ content_top_highlighted_animation_effect }}"
{% endif %}>
<div class="row">
<div class="col-md-12">
<div class="content-top-highlighted__section">
{{ page.content_top_highlighted }}
</div>
</div>
</div>
</div>
{# EOF:content-top-highlighted__container #}
</div>
</div>
{# EOF: content-top-highlighted #}
{% endif %}
{% if page.pre_content_first or page.pre_content_second %}
{# pre-content #}
<div class="clearfix pre-content {{ pre_content_background_color }} {{ pre_content_separator }}{{ (pre_content_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (pre_content_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ pre_content_layout_container }}">
{# pre-content__container #}
<div class="clearfix pre-content__container{{ (pre_content_animations == "enabled") ? ' fade' : '' }}"
{% if pre_content_animations == "enabled" %}
data-animate-effect="{{ pre_content_animation_effect }}"
{% endif %}>
<div class="row">
{% if page.pre_content_first %}
<div class="{{ pre_content_first_grid_class }}">
{# pre-content-first #}
<div class="clearfix pre-content__section pre-content-first">
{{ page.pre_content_first }}
</div>
{# EOF:pre-content-first #}
</div>
{% endif %}
{% if page.pre_content_second %}
<div class="{{ pre_content_second_grid_class }}">
{# pre-content-second #}
<div class="clearfix pre-content__section pre-content-second">
{{ page.pre_content_second }}
</div>
{# EOF:pre-content-second #}
</div>
{% endif %}
</div>
</div>
{# EOF:pre-content__container #}
</div>
</div>
{# EOF: pre-content #}
{% endif %}
{# main-content #}
<div class="clearfix main-content region--dark-typography region--white-background {{ main_content_separator }}">
{{ drupal_view('landing_page_slideshow', 'block_2') }}
<div class="container">
<div class="clearfix main-content__container">
<div class="row">
<section class="{{ main_grid_class }}">
{# main #}
<div class="clearfix main-content__section{{ (main_content_animations == "enabled") ? ' fade' : '' }}{{ (main_content_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (main_content_region_paddings) ? ' region--no-paddings' : '' }}"
{% if main_content_animations == "enabled" %}
data-animate-effect="{{ main_content_animation_effect }}"
{% endif %}>
<hr>
<h2 class="text-center">L.M. Montgomery &amp; Vision Forum</h2>
{{ drupal_view('recent_articles_masonry', 'vision') }}
{% if page.content %}
{{ page.content }}
{% endif %}
</div>
{# EOF:main #}
</section>
{% if page.sidebar_first %}
<aside class="{{ sidebar_first_grid_class }}">
{# sidebar-first #}
<section class="sidebar__section sidebar-first clearfix{{ (sidebar_first_animations == "enabled") ? ' fade' : '' }}{{ (sidebar_first_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (sidebar_first_region_paddings) ? ' region--no-paddings' : '' }}"
{% if sidebar_first_animations == "enabled" %}
data-animate-effect="{{ sidebar_first_animation_effect }}"
{% endif %}>
{{ page.sidebar_first }}
</section>
{# EOF:sidebar-first #}
</aside>
{% endif %}
{% if page.sidebar_second %}
<aside class="{{ sidebar_second_grid_class }}">
{# sidebar-second #}
<section class="sidebar__section sidebar-second clearfix{{ (sidebar_second_animations == "enabled") ? ' fade' : '' }}{{ (sidebar_second_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (sidebar_second_region_paddings) ? ' region--no-paddings' : '' }}"
{% if sidebar_second_animations == "enabled" %}
data-animate-effect="{{ sidebar_second_animation_effect }}"
{% endif %}>
{{ page.sidebar_second }}
</section>
{# EOF:sidebar-second #}
</aside>
{% endif %}
</div>
</div>
</div>
</div>
{# EOF:main-content #}
{% if page.content_bottom_first or page.content_bottom_second %}
{# content-bottom #}
<div class="clearfix content-bottom {{ content_bottom_background_color }} {{ content_bottom_separator }}{{ (content_bottom_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (content_bottom_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ content_bottom_layout_container }}">
{# content-bottom__container #}
<div class="clearfix content-bottom__container{{ (content_bottom_animations == "enabled") ? ' fade' : '' }}"
{% if content_bottom_animations == "enabled" %}
data-animate-effect="{{ content_bottom_animation_effect }}"
{% endif %}>
<div class="row">
{% if page.content_bottom_first %}
<div class="{{ content_bottom_first_grid_class }}">
{# content-bottom-first #}
<div class="clearfix content-bottom__section content-bottom-first">
{{ page.content_bottom_first }}
</div>
{# EOF:content-bottom-first #}
</div>
{% endif %}
{% if page.content_bottom_second %}
<div class="{{ content_bottom_second_grid_class }}">
{# content-bottom-second #}
<div class="clearfix content-bottom__section content-bottom-second">
{{ page.content_bottom_second }}
</div>
{# EOF:content-bottom-second #}
</div>
{% endif %}
</div>
</div>
{# EOF:content-bottom__container #}
</div>
</div>
{# EOF: content-bottom #}
{% endif %}
{% if page.featured_top %}
{# featured-top #}
<div class="clearfix featured-top {{ featured_top_background_color }} {{ featured_top_separator }}{{ (featured_top_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (featured_top_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ featured_top_layout_container }}">
{# featured-top__container #}
<div class="clearfix featured-top__container{{ (featured_top_animations == "enabled") ? ' fade' : '' }}"
{% if featured_top_animations == "enabled" %}
data-animate-effect="{{ featured_top_animation_effect }}"
{% endif %}>
<div class="row">
<div class="col-md-12">
<div class="clearfix featured-top__section">
{{ page.featured_top }}
</div>
</div>
</div>
</div>
{# EOF:featured-top__container #}
</div>
</div>
{# EOF: featured-top #}
{% endif %}
{% if page.featured %}
{# featured #}
<div class="clearfix featured {{ featured_background_color }} {{ featured_separator }}{{ (featured_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (featured_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ featured_layout_container }}">
{# featured__container #}
<div class="clearfix featured__container{{ (featured_animations == "enabled") ? ' fade' : '' }}"
{% if featured_animations == "enabled" %}
data-animate-effect="{{ featured_animation_effect }}"
{% endif %}>
<div class="row">
<div class="col-md-12">
<div class="clearfix featured__section">
{{ page.featured }}
</div>
</div>
</div>
</div>
{# EOF:featured__container #}
</div>
</div>
{# EOF: featured #}
{% endif %}
{% if page.featured_bottom %}
{# featured-bottom #}
<div class="clearfix featured-bottom {{ featured_bottom_background_color }} {{ featured_bottom_separator }}{{ (featured_bottom_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (featured_bottom_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ featured_bottom_layout_container }}">
{# featured-bottom__container #}
<div class="clearfix featured-bottom__container{{ (featured_bottom_animations == "enabled") ? ' fade' : '' }}"
{% if featured_bottom_animations == "enabled" %}
data-animate-effect="{{ featured_bottom_animation_effect }}"
{% endif %}>
<div class="row">
<div class="col-md-12">
<div class="clearfix featured-bottom__section">
{{ page.featured_bottom }}
</div>
</div>
</div>
</div>
{# EOF:featured-bottom__container #}
</div>
</div>
{# EOF: featured-bottom #}
{% endif %}
{% if page.sub_featured %}
{# sub_featured #}
<div class="clearfix sub-featured {{ sub_featured_background_color }} {{ sub_featured_separator }}{{ (sub_featured_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (sub_featured_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ sub_featured_layout_container }}">
{# sub_featured__container #}
<div class="clearfix sub-featured__container{{ (sub_featured_animations == "enabled") ? ' fade' : '' }}"
{% if sub_featured_animations == "enabled" %}
data-animate-effect="{{ sub_featured_animation_effect }}"
{% endif %}>
<div class="row">
<div class="col-md-12">
<div class="clearfix sub-featured__section">
{{ page.sub_featured }}
</div>
</div>
</div>
</div>
{# EOF:sub_featured__container #}
</div>
</div>
{# EOF: sub_featured #}
{% endif %}
{% if page.footer_top_first or page.footer_top_second %}
{# footer-top #}
<div class="clearfix footer-top {{ footer_top_regions }} {{ footer_top_background_color }} {{ footer_top_separator }}{{ (footer_top_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (footer_top_region_paddings) ? ' region--no-paddings' : '' }}">
<div class="{{ footer_top_layout_container }}">
{# footer-top__container #}
<div class="clearfix footer-top__container{{ (footer_top_animations == "enabled") ? ' fade' : '' }}"
{% if footer_top_animations == "enabled" %}
data-animate-effect="{{ footer_top_animation_effect }}"
{% endif %}>
<div class="row">
{% if page.footer_top_first %}
<div class="{{ footer_top_first_grid_class }}">
{# footer-top-first #}
<div class="clearfix footer-top__section footer-top-first">
{{ page.footer_top_first }}
</div>
{# EOF:footer-top-first #}
</div>
{% endif %}
{% if page.footer_top_second %}
<div class="{{ footer_top_second_grid_class }}">
{# footer-top-second #}
<div class="clearfix footer-top__section footer-top-second">
{{ page.footer_top_second }}
</div>
{# EOF:footer-top-second #}
</div>
{% endif %}
</div>
</div>
{# EOF: footer-top__container #}
</div>
</div>
{# EOF: footer-top #}
{% endif %}
{% if page.footer_first or page.footer_second or page.footer_third or page.footer_fourth or page.footer_fifth %}
{# footer #}
<footer class="clearfix footer {{ footer_background_color }} {{ footer_separator }} {{ scroll_to_top_region }}{{ (footer_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (footer_region_paddings) ? ' region--no-paddings' : '' }}">
{% if scroll_to_top_display and scroll_to_top_region == "footer-to-top-enabled" %}
<div class="to-top"><i class="fa {{ scroll_to_top_icon }}"></i></div>
{% endif %}
<div class="{{ footer_layout_container }}">
<div class="clearfix footer__container">
<div class="row">
{% if page.footer_first %}
<div class="{{ footer_first_grid_class }}">
{# footer-first #}
<div class="clearfix footer__section footer-first{{ (footer_animations == "enabled") ? ' fade' : '' }}"
{% if footer_animations == "enabled" %}
data-animate-effect="{{ footer_animation_effect }}"
{% endif %}>
{{ page.footer_first }}
</div>
{# EOF:footer-first #}
</div>
{% endif %}
{% if page.footer_second %}
<div class="{{ footer_second_grid_class }}">
{# footer-second #}
<div class="clearfix footer__section footer-second{{ (footer_animations == "enabled") ? ' fade' : '' }}"
{% if footer_animations == "enabled" %}
data-animate-effect="{{ footer_animation_effect }}"
{% endif %}>
{{ page.footer_second }}
</div>
{# EOF:footer-second #}
</div>
{% endif %}
<div class="clearfix {{ footer_4_columns_clearfix_first }}"></div>
{% if page.footer_third %}
<div class="{{ footer_third_grid_class }}">
{# footer-third #}
<div class="clearfix footer__section footer-third{{ (footer_animations == "enabled") ? ' fade' : '' }}"
{% if footer_animations == "enabled" %}
data-animate-effect="{{ footer_animation_effect }}"
{% endif %}>
{{ page.footer_third }}
</div>
{# EOF:footer-third #}
</div>
{% endif %}
<div class="clearfix {{ footer_4_columns_clearfix_second }} {{ footer_5_columns_clearfix }}"></div>
{% if page.footer_fourth %}
<div class="{{ footer_fourth_grid_class }}">
{# footer-fourth #}
<div class="clearfix footer__section footer-fourth{{ (footer_animations == "enabled") ? ' fade' : '' }}"
{% if footer_animations == "enabled" %}
data-animate-effect="{{ footer_animation_effect }}"
{% endif %}>
{{ page.footer_fourth }}
</div>
{# EOF:footer-fourth #}
</div>
{% endif %}
{% if page.footer_fifth %}
<div class="{{ footer_fifth_grid_class }}">
{# footer-fifth #}
<div class="clearfix footer__section footer-fifth{{ (footer_animations == "enabled") ? ' fade' : '' }}"
{% if footer_animations == "enabled" %}
data-animate-effect="{{ footer_animation_effect }}"
{% endif %}>
{{ page.footer_fifth }}
</div>
{# EOF:footer-fifth #}
</div>
{% endif %}
</div>
</div>
</div>
</footer>
{# EOF footer #}
{% endif %}
{% if page.footer_bottom_first or page.footer_bottom_second %}
{# footer-bottom #}
<div class="clearfix footer-bottom {{ footer_bottom_background_color }} {{ footer_bottom_separator }} {{ scroll_to_top_region }}{{ (footer_bottom_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (footer_bottom_region_paddings) ? ' region--no-paddings' : '' }}">
{% if scroll_to_top_display and scroll_to_top_region == "footer-bottom-to-top-enabled" %}
<div class="to-top"><i class="fa {{ scroll_to_top_icon }}"></i></div>
{% endif %}
<div class="{{ footer_bottom_layout_container }}">
{# footer-bottom__container #}
<div class="clearfix footer-bottom__container">
<div class="row">
{% if page.footer_bottom_first %}
<div class="{{ footer_bottom_first_grid_class }}">
{# footer-bottom-first #}
<div class="clearfix footer-bottom__section footer-bottom-first">
{{ page.footer_bottom_first }}
</div>
{# EOF:footer-bottom-first #}
</div>
{% endif %}
{% if page.footer_bottom_second %}
<div class="{{ footer_bottom_second_grid_class }}">
{# footer-bottom-first #}
<div class="clearfix footer-bottom__section footer-bottom-first">
{{ page.footer_bottom_second }}
</div>
{# EOF:footer-bottom-first #}
</div>
{% endif %}
</div>
</div>
{# EOF:footer-bottom__container #}
</div>
</div>
{# EOF: footer-bottom #}
{% endif %}
{% if page.sub_footer_first or page.footer %}
{# subfooter #}
<div class="clearfix subfooter {{ subfooter_background_color }} {{ subfooter_separator }} {{ scroll_to_top_region }}{{ (subfooter_bottom_blocks_paddings) ? ' region--no-block-paddings' : '' }}{{ (subfooter_bottom_region_paddings) ? ' region--no-paddings' : '' }}">
{% if scroll_to_top_display and scroll_to_top_region == "subfooter-to-top-enabled" %}
<div class="to-top"><i class="fa {{ scroll_to_top_icon }}"></i></div>
{% endif %}
<div class="{{ subfooter_layout_container }}">
{# subfooter__container #}
<div class="clearfix subfooter__container">
<div class="row">
{% if page.sub_footer_first %}
<div class="{{ subfooter_first_grid_class }}">
{# subfooter-first #}
<div class="clearfix subfooter__section subfooter-first">
{{ page.sub_footer_first }}
</div>
{# EOF: subfooter-first #}
</div>
{% endif %}
{% if page.footer %}
<div class="{{ subfooter_second_grid_class }}">
{# subfooter-second #}
<div class="clearfix subfooter__section subfooter-second">
{{ page.footer }}
</div>
{# EOF: subfooter-second #}
</div>
{% endif %}
</div>
</div>
{# EOF: subfooter__container #}
</div>
</div>
{# EOF:subfooter #}
{% endif %}
</div>
{# EOF: page-container #}

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

@ -1,7 +1,10 @@
{% 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">
<div class="container article-info--wrapper">
{% 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') }}>
@ -13,19 +16,8 @@
{{ title_suffix }}
{% endblock %}
<section class="article-header--metadata">
<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>
<div class="left"> </div>
<div class="right"> </div>
</section>
</div>
</header>

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

@ -0,0 +1,19 @@
{% 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>

56
templates/views/views-view-fields--taxonomy-term.html.twig

@ -0,0 +1,56 @@
{#{% 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…
Cancel
Save