Browse Source

template stuff

dependabot/npm_and_yarn/js-yaml-3.13.1
rdrew 5 years ago
parent
commit
4feeed73a4
  1. 61
      templates/article_pages/entity-print--node--journal-article--pdf.html.twig
  2. 61
      templates/article_pages/entity-print--node--journal-article.html.twig
  3. 0
      templates/article_pages/entity-print--node--journal-article.html.twig.old
  4. 12
      templates/article_pages/entity-print.html.twig
  5. 7
      templates/article_pages/node--journal-article--pdf.html.twig

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

@ -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>

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

@ -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>

0
templates/article_pages/entity-print--node--journal-article--full.html.twig → templates/article_pages/entity-print--node--journal-article.html.twig.old

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

@ -0,0 +1,12 @@
<html>
<head>
<meta charset="utf-8">
<title>{{ title }}</title>
{{ entity_print_css }}
</head>
<body>
<div class="page">
{{ content }}
</div>
</body>
</html>

7
templates/article_pages/node--journal-article--pdf.html.twig

@ -17,7 +17,6 @@
{{ attach_library('magazineplus/node') }} {{ attach_library('magazineplus/node') }}
{#main banner#} {#main banner#}
{% include '@lmmi_journal/article_pages/article--hero.html.twig' %}
<div class="container"> <div class="container">
<div class="clearfix"> <div class="clearfix">
<div class="row"> <div class="row">
@ -32,9 +31,6 @@
{% if toc is not empty %}
{{ toc }}
{% endif %}
{#start of article #} {#start of article #}
<div{{ content_attributes.addClass( 'node__main-content', 'clearfix') }}> <div{{ content_attributes.addClass( 'node__main-content', 'clearfix') }}>
@ -46,6 +42,9 @@
{#main content#} {#main content#}
{% block content %} {% block content %}
<h1>
{{ label }}
</h1>
{{ content|without( 'field_article_highlight_image', 'field_authors_and_affiliations' )}} {{ content|without( 'field_article_highlight_image', 'field_authors_and_affiliations' )}}
{% endblock %} {% endblock %}
{% block content_bottom %} {% block content_bottom %}

Loading…
Cancel
Save