diff --git a/templates/article_pages/entity-print.html.twig b/templates/article_pages/entity-print.html.twig index 58f5a03..afa48cf 100644 --- a/templates/article_pages/entity-print.html.twig +++ b/templates/article_pages/entity-print.html.twig @@ -6,7 +6,7 @@
- {{ content }} + {{ content }}
diff --git a/templates/entity-print--node--page.html.twig b/templates/entity-print--node--page.html.twig index 96b9595..a550756 100644 --- a/templates/entity-print--node--page.html.twig +++ b/templates/entity-print--node--page.html.twig @@ -125,3 +125,4 @@ +

test

diff --git a/templates/views/views-view-fields--taxonomy-term.html.twig b/templates/views/views-view-fields--taxonomy-term.html.twig new file mode 100644 index 0000000..cac9640 --- /dev/null +++ b/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 %} + +
+{{ fields.field_article_highlight_image.content }} + + + +
+ {{ fields.field_article_type.content }} +{#{% if fields.field_article_peer_reviewed.content |striptags|trim == "Yes" %}#} + {##} + {#- peer reviewed#} + {##} +{#{% endif %}#} +
+
+

{{ fields.title.content }}

+

{{ fields.field_authors_and_affiliations.content }}

+ +
+ {##} + {##} + {##} + {##} + {##} +