diff --git "a/\\" "b/\\" new file mode 100644 index 0000000..1453b08 --- /dev/null +++ "b/\\" @@ -0,0 +1,30 @@ +{% if fields.type.content|striptags|trim == "Article" %} + {% set _icon_ = 'fa-file-text-o' %} + {% set _color_ = 'green' %} +{% elseif fields.type.content|striptags|trim == "Audio/visual art" %} + {% set _icon_ = 'fa-file-text-o' %} + {% set _color_ = 'green' %} + {% else %} + {% set _icon_ = '' %} + {% set _color_ = '' %} +{% endif %} + +{#{{dump(fields)}}#} +
+{{ fields.field_article_highlight_image.content }} + + + +
+ {{ fields.type.content}} +
+
+

{{ fields.title.content }}

+ +
+ {##} + {##} + {##} + {##} + {##} +
diff --git a/lmmi_journal.libraries.yml b/lmmi_journal.libraries.yml index fb9abfb..69fdf6a 100644 --- a/lmmi_journal.libraries.yml +++ b/lmmi_journal.libraries.yml @@ -23,3 +23,14 @@ fonts: name: SIL Open Font License, 1.1 url: //scripts.sil.org/OFL gpl-compatible: true + +slick-slider: + css: + theme: + /libraries/slick/slick/slick.css: {} + /libraries/slick/slick/slick-theme.css: {} + + js: + /libraries/slick/slick/slick.min.js: {} + dependencies: + - core/jquery diff --git a/templates/article_pages/article--hero.html.twig b/templates/article_pages/article--hero.html.twig index e2d5c66..0a40540 100644 --- a/templates/article_pages/article--hero.html.twig +++ b/templates/article_pages/article--hero.html.twig @@ -1,8 +1,8 @@ -
-
-{{ content.field_article_highlight_image}} -
-
+{% set imagePath = file_url(content.field_article_highlight_image|field_target_entity.image.entity.uri.value) %} +{% set articleType = content.field_article_type|field_value %} +{% set pubDate = content.field_publication_date_electroni|field_value %} +
+
diff --git a/templates/article_pages/node--journal-article--full.html.twig b/templates/article_pages/node--journal-article--full.html.twig new file mode 100644 index 0000000..977424c --- /dev/null +++ b/templates/article_pages/node--journal-article--full.html.twig @@ -0,0 +1,62 @@ +{#{{ 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' %} +
+
+
+
+ + + + {#admin tabs#} +
+ {% block node_side %} + {% endblock %} + + + + {% if toc is not empty %} + {{ toc }} + {% endif %} + {#start of article #} + + + {{ tabs }} + {% block header_top %} + {% endblock %} + + + + {#main content#} + {% block content %} + {{ content|without( 'field_article_highlight_image', 'field_authors_and_affiliations' )}} + {% endblock %} + {% block content_bottom %} + {% endblock %} +
+
+ + +
+
+
+ + + diff --git a/templates/article_pages/node--journal-article--slideshow-slide.html.twig b/templates/article_pages/node--journal-article--slideshow-slide.html.twig new file mode 100644 index 0000000..09fb99e --- /dev/null +++ b/templates/article_pages/node--journal-article--slideshow-slide.html.twig @@ -0,0 +1,7 @@ +{{ attach_library('classy/node') }} +{{ attach_library('magazineplus/node') }} + + {#main banner#} + {% include '@lmmi_journal/article_pages/article--hero.html.twig' %} + + diff --git a/templates/article_pages/node--journal-article.html.twig b/templates/article_pages/node--journal-article.html.twig index 3a0c92d..cabff72 100644 --- a/templates/article_pages/node--journal-article.html.twig +++ b/templates/article_pages/node--journal-article.html.twig @@ -1,8 +1,7 @@ -{#{{ dump() }}#} - {#{{ kint(node) }}#} -{% set toc = drupal_entity('block', 'tableofcontents', check_access=false) %} +{#{% set toc = drupal_entity('block', 'tableofcontents', check_access=false) %}#} {% set tabs = drupal_block('local_tasks_block') %} +{#{{dump(toc)}}#} {% set classes = [ 'node', @@ -17,7 +16,6 @@ {{ attach_library('classy/node') }} {{ attach_library('magazineplus/node') }} - {#main banner#} {% include '@lmmi_journal/article_pages/article--hero.html.twig' %}
@@ -34,7 +32,9 @@ - {{ toc }} + {#{% if toc is defined %}#} + {#{{ toc }}#} + {#{% endif %}#} {#start of article #} @@ -46,7 +46,7 @@ {#main content#} {% block content %} - {{ content|without( 'field_article_highlight_image' )}} + {{ content|without( 'field_article_highlight_image', 'field_authors_and_affiliations' )}} {% endblock %} {% block content_bottom %} {% endblock %} diff --git a/templates/landing-page/lp-tile--grid.html.twig b/templates/landing-page/lp-tile--grid.html.twig new file mode 100644 index 0000000..b42e31d --- /dev/null +++ b/templates/landing-page/lp-tile--grid.html.twig @@ -0,0 +1,21 @@ + +
+{% include '@lmmi_journal/landing-page/lp-tile.html.twig' %} +
+ +
+{% include '@lmmi_journal/landing-page/lp-tile.html.twig' %} +
+
+{% include '@lmmi_journal/landing-page/lp-tile.html.twig' %} +
+
+{% include '@lmmi_journal/landing-page/lp-tile.html.twig' %} +
+ +
+{% include '@lmmi_journal/landing-page/lp-tile.html.twig' %} +
+
+{% include '@lmmi_journal/landing-page/lp-tile.html.twig' %} +
diff --git a/templates/landing-page/lp-tile.html.twig b/templates/landing-page/lp-tile.html.twig new file mode 100644 index 0000000..eb5696f --- /dev/null +++ b/templates/landing-page/lp-tile.html.twig @@ -0,0 +1,16 @@ +
+ Thumbnail [100%x225] + icon +
Article
+
+

This is the quite possibly overly long title of the article

+

Article Author

+
+
+ + +
+ 9 mins +
+
+
diff --git a/templates/landing-page/page--landing-page.html.twig b/templates/landing-page/page--landing-page.html.twig new file mode 100644 index 0000000..1788834 --- /dev/null +++ b/templates/landing-page/page--landing-page.html.twig @@ -0,0 +1,786 @@ +{# +/** + * @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 #} +
+ {# slideout__container #} +
+
+ {{ page.slideout }} +
+
+ {# EOF:slideout__container #} +
+ {# EOF: slideout #} + + {# EOF: slideout-toggle #} + + {# EOF: slideout-toggle #} +{% endif %} + +{# page-container #} +
+ + {% if page.pre_header %} + {# pre-header #} +
+
+ {# pre-header__container #} +
+
+
+
+ {{ page.pre_header }} +
+
+
+
+ {# EOF:pre-header__container #} +
+
+ {# 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 #} +
+ + {% if page.header_top_highlighted_first or page.header_top_highlighted_second %} + {# header_top_highlighted #} +
+
+ {# header_top_highlighted__container #} +
+
+ {% if page.header_top_highlighted_first %} +
+ {# header-top-highlighted-first #} +
+ {{ page.header_top_highlighted_first }} +
+ {# EOF:header-top-highlighted-first #} +
+ {% endif %} + {% if page.header_top_highlighted_second %} +
+ {# header-top-highlighted-second #} +
+ {{ page.header_top_highlighted_second }} +
+ {# EOF:header-top-highlighted-second #} +
+ {% endif %} +
+
+ {# EOF:header-top-highlighted__container #} +
+
+ {# EOF: header-top-highlighted #} + {% endif %} + + {% if page.header_top_first or page.header_top_second %} + {# header-top #} +
+
+ {# header-top__container #} +
+
+ {% if page.header_top_first %} +
+ {# header-top-first #} +
+ {{ page.header_top_first }} +
+ {# EOF:header-top-first #} +
+ {% endif %} + {% if page.header_top_second %} +
+ {# header-top-second #} +
+ {{ page.header_top_second }} +
+ {# EOF:header-top-second #} +
+ {% endif %} +
+
+ {# EOF: header-top__container #} +
+
+ {# EOF: header-top #} + {% endif %} + + {% if page.header_first or page.header or page.header_third %} + {# header #} + + {# EOF: header #} + {% endif %} + +
+ {# EOF: header-container #} + {% endif %} + + {% if page.banner %} + {# banner #} + + {# EOF:banner #} + {% endif %} + + {# page-start #} +
+ + {#{% if page.system_messages %}#} + {#
#} + {#
#} + {#
#} + {#
#} + {#{{ page.system_messages }}#} + {#
#} + {#
#} + {#
#} + {#
#} + {#{% endif %}#} + + {% if page.highlighted_top %} + {# highlighted-top #} +
+
+ {# highlighted-top__container #} +
+
+
+
+ {{ page.highlighted_top }} +
+
+
+
+ {# EOF:highlighted-top__container #} +
+
+ {# EOF: highlighted-top #} + {% endif %} + + {% if page.highlighted %} + {# highlighted #} +
+
+ {# highlighted__container #} +
+
+
+
+ {{ page.highlighted }} +
+
+
+
+ {# EOF:highlighted__container #} +
+
+ {# EOF: highlighted #} + {% endif %} + + {% if page.content_top %} + {# content-top #} +
+
+ {# content-top__container #} +
+
+
+
+ {{ page.content_top }} +
+
+
+
+ {# EOF:content-top__container #} +
+
+ {# EOF: content-top #} + {% endif %} + + {% if page.content_top_highlighted %} + {# content-top-highlighted #} +
+
+ {# content-top-highlighted__container #} +
+
+
+
+ {{ page.content_top_highlighted }} +
+
+
+
+ {# EOF:content-top-highlighted__container #} +
+
+ {# EOF: content-top-highlighted #} + {% endif %} + + {% if page.pre_content_first or page.pre_content_second %} + {# pre-content #} +
+
+ {# pre-content__container #} +
+
+ {% if page.pre_content_first %} +
+ {# pre-content-first #} +
+ {{ page.pre_content_first }} +
+ {# EOF:pre-content-first #} +
+ {% endif %} + {% if page.pre_content_second %} +
+ {# pre-content-second #} +
+ {{ page.pre_content_second }} +
+ {# EOF:pre-content-second #} +
+ {% endif %} +
+
+ {# EOF:pre-content__container #} +
+
+ {# EOF: pre-content #} + {% endif %} + + {# main-content #} +
+{{ drupal_view('landing_page_slideshow', 'block_1') }} +
+
+ + + +
+
+ {# main #} +
+ {% if page.content %} + {{ page.content }} + {% endif %} +
+ {# EOF:main #} +
+ {% if page.sidebar_first %} + + {% endif %} + {% if page.sidebar_second %} + + {% endif %} +
+
+
+
+ {# EOF:main-content #} + + {% if page.content_bottom_first or page.content_bottom_second %} + {# content-bottom #} +
+
+ {# content-bottom__container #} +
+
+ {% if page.content_bottom_first %} +
+ {# content-bottom-first #} +
+ {{ page.content_bottom_first }} +
+ {# EOF:content-bottom-first #} +
+ {% endif %} + {% if page.content_bottom_second %} +
+ {# content-bottom-second #} +
+ {{ page.content_bottom_second }} +
+ {# EOF:content-bottom-second #} +
+ {% endif %} +
+
+ {# EOF:content-bottom__container #} +
+
+ {# EOF: content-bottom #} + {% endif %} + + {% if page.featured_top %} + {# featured-top #} + + {# EOF: featured-top #} + {% endif %} + + {% if page.featured %} + {# featured #} + + {# EOF: featured #} + {% endif %} + + {% if page.featured_bottom %} + {# featured-bottom #} + + {# EOF: featured-bottom #} + {% endif %} + + {% if page.sub_featured %} + {# sub_featured #} + + {# EOF: sub_featured #} + {% endif %} + + {% if page.footer_top_first or page.footer_top_second %} + {# footer-top #} + + {# 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 #} +
+ {% if scroll_to_top_display and scroll_to_top_region == "footer-to-top-enabled" %} +
+ {% endif %} + +
+ {# EOF footer #} + {% endif %} + + {% if page.footer_bottom_first or page.footer_bottom_second %} + {# footer-bottom #} + + {# EOF: footer-bottom #} + {% endif %} + + {% if page.sub_footer_first or page.footer %} + {# subfooter #} +
+ {% if scroll_to_top_display and scroll_to_top_region == "subfooter-to-top-enabled" %} +
+ {% endif %} +
+ {# subfooter__container #} +
+
+ {% if page.sub_footer_first %} +
+ {# subfooter-first #} +
+ {{ page.sub_footer_first }} +
+ {# EOF: subfooter-first #} +
+ {% endif %} + {% if page.footer %} +
+ {# subfooter-second #} +
+ {{ page.footer }} +
+ {# EOF: subfooter-second #} +
+ {% endif %} +
+
+ {# EOF: subfooter__container #} +
+
+ {# EOF:subfooter #} + {% endif %} + +
+{# EOF: page-container #} diff --git a/templates/news_articles/news--hero.html.twig b/templates/news_articles/news--hero.html.twig new file mode 100644 index 0000000..b31e628 --- /dev/null +++ b/templates/news_articles/news--hero.html.twig @@ -0,0 +1,31 @@ +{% set imagePath = file_url(content.field_article_highlight_image|field_target_entity.image.entity.uri.value) %} +
+ + +
diff --git a/templates/news_articles/node--news-article.html.twig b/templates/news_articles/node--news-article.html.twig new file mode 100644 index 0000000..fd723c4 --- /dev/null +++ b/templates/news_articles/node--news-article.html.twig @@ -0,0 +1,61 @@ +{#{{ kint(node) }}#} +{#{% set toc = drupal_entity('block', 'tableofcontents', check_access=false) %}#} +{% set tabs = drupal_block('local_tasks_block') %} +{% + 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/news_articles/news--hero.html.twig' %} +
+
+
+
+ + + + {#admin tabs#} +
+ {% block node_side %} + {% endblock %} + + + + {#{% if toc %}#} + {#{{ toc }}#} + {#{% endif %}#} + {#start of article #} + + + {{ tabs }} + {% block header_top %} + {% endblock %} + + + + {#main content#} + {% block content %} + {{ content|without( 'field_article_highlight_image' )}} + {% endblock %} + {% block content_bottom %} + {% endblock %} +
+
+ + +
+
+
+
+ + diff --git a/templates/news_articles/page--news-article.html.twig b/templates/news_articles/page--news-article.html.twig new file mode 100644 index 0000000..39fd6d1 --- /dev/null +++ b/templates/news_articles/page--news-article.html.twig @@ -0,0 +1,796 @@ +{# +/** + * @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 + */ +#} +{#{{dump()}}#} +{% if page.slideout %} + {# slideout #} +
+ {# slideout__container #} +
+
+ {{ page.slideout }} +
+
+ {# EOF:slideout__container #} +
+ {# EOF: slideout #} + + {# EOF: slideout-toggle #} + + {# EOF: slideout-toggle #} +{% endif %} + +{# page-container #} +
+ + {% if page.pre_header %} + {# pre-header #} +
+
+ {# pre-header__container #} +
+
+
+
+ {{ page.pre_header }} +
+
+
+
+ {# EOF:pre-header__container #} +
+
+ {# 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 #} +
+ + {% if page.header_top_highlighted_first or page.header_top_highlighted_second %} + {# header_top_highlighted #} +
+
+ {# header_top_highlighted__container #} +
+
+ {% if page.header_top_highlighted_first %} +
+ {# header-top-highlighted-first #} +
+ {{ page.header_top_highlighted_first }} +
+ {# EOF:header-top-highlighted-first #} +
+ {% endif %} + {% if page.header_top_highlighted_second %} +
+ {# header-top-highlighted-second #} +
+ {{ page.header_top_highlighted_second }} +
+ {# EOF:header-top-highlighted-second #} +
+ {% endif %} +
+
+ {# EOF:header-top-highlighted__container #} +
+
+ {# EOF: header-top-highlighted #} + {% endif %} + + {% if page.header_top_first or page.header_top_second %} + {# header-top #} +
+
+ {# header-top__container #} +
+
+ {% if page.header_top_first %} +
+ {# header-top-first #} +
+ {{ page.header_top_first }} +
+ {# EOF:header-top-first #} +
+ {% endif %} + {% if page.header_top_second %} +
+ {# header-top-second #} +
+ {{ page.header_top_second }} +
+ {# EOF:header-top-second #} +
+ {% endif %} +
+
+ {# EOF: header-top__container #} +
+
+ {# EOF: header-top #} + {% endif %} + + {% if page.header_first or page.header or page.header_third %} + {# header #} + + {# EOF: header #} + {% endif %} + +
+ {# EOF: header-container #} + {% endif %} + + {% if page.banner %} + {# banner #} + + {# EOF:banner #} + {% endif %} + + {# page-start #} +
+ + {#{% if page.system_messages %}#} + {#
#} + {#
#} + {#
#} + {#
#} + {#{{ page.system_messages }}#} + {#
#} + {#
#} + {#
#} + {#
#} + {#{% endif %}#} + + {% if page.highlighted_top %} + {# highlighted-top #} +
+
+ {# highlighted-top__container #} +
+
+
+
+ {{ page.highlighted_top }} +
+
+
+
+ {# EOF:highlighted-top__container #} +
+
+ {# EOF: highlighted-top #} + {% endif %} + + {% if page.highlighted %} + {# highlighted #} +
+
+ {# highlighted__container #} +
+
+
+
+ {{ page.highlighted }} +
+
+
+
+ {# EOF:highlighted__container #} +
+
+ {# EOF: highlighted #} + {% endif %} + + {% if page.content_top %} + {# content-top #} +
+
+ {# content-top__container #} +
+
+
+
+ {{ page.content_top }} +
+
+
+
+ {# EOF:content-top__container #} +
+
+ {# EOF: content-top #} + {% endif %} + + {% if page.content_top_highlighted %} + {# content-top-highlighted #} +
+
+ {# content-top-highlighted__container #} +
+
+
+
+ {{ page.content_top_highlighted }} +
+
+
+
+ {# EOF:content-top-highlighted__container #} +
+
+ {# EOF: content-top-highlighted #} + {% endif %} + + {% if page.pre_content_first or page.pre_content_second %} + {# pre-content #} +
+
+ {# pre-content__container #} +
+
+ {% if page.pre_content_first %} +
+ {# pre-content-first #} +
+ {{ page.pre_content_first }} +
+ {# EOF:pre-content-first #} +
+ {% endif %} + {% if page.pre_content_second %} +
+ {# pre-content-second #} +
+ {{ page.pre_content_second }} +
+ {# EOF:pre-content-second #} +
+ {% endif %} +
+
+ {# EOF:pre-content__container #} +
+
+ {# EOF: pre-content #} + {% endif %} + + {# main-content #} +
+ {#
#} + {#
#} + {#
#} + {#
#} + +
+
+
+
+ + + {# main #} +
+ {% if page.content %} + {{ page.content }} + {% endif %} +
+ {# EOF:main #} +
+ + + +{#sidebars#} + {% if page.sidebar_first %} + + {% endif %} + {% if page.sidebar_second %} + + {% endif %} +{#end of sidebars#} + + +
+
+
+
+ {# EOF:main-content #} + + {% if page.content_bottom_first or page.content_bottom_second %} + {# content-bottom #} +
+
+ {# content-bottom__container #} +
+
+ {% if page.content_bottom_first %} +
+ {# content-bottom-first #} +
+ {{ page.content_bottom_first }} +
+ {# EOF:content-bottom-first #} +
+ {% endif %} + {% if page.content_bottom_second %} +
+ {# content-bottom-second #} +
+ {{ page.content_bottom_second }} +
+ {# EOF:content-bottom-second #} +
+ {% endif %} +
+
+ {# EOF:content-bottom__container #} +
+
+ {# EOF: content-bottom #} + {% endif %} + + {% if page.featured_top %} + {# featured-top #} + + {# EOF: featured-top #} + {% endif %} + + {% if page.featured %} + {# featured #} + + {# EOF: featured #} + {% endif %} + + {% if page.featured_bottom %} + {# featured-bottom #} + + {# EOF: featured-bottom #} + {% endif %} + + {% if page.sub_featured %} + {# sub_featured #} + + {# EOF: sub_featured #} + {% endif %} + + {% if page.footer_top_first or page.footer_top_second %} + {# footer-top #} + + {# 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 #} +
+ {% if scroll_to_top_display and scroll_to_top_region == "footer-to-top-enabled" %} +
+ {% endif %} + +
+ {# EOF footer #} + {% endif %} + + {% if page.footer_bottom_first or page.footer_bottom_second %} + {# footer-bottom #} + + {# EOF: footer-bottom #} + {% endif %} + + {% if page.sub_footer_first or page.footer %} + {# subfooter #} +
+ {% if scroll_to_top_display and scroll_to_top_region == "subfooter-to-top-enabled" %} +
+ {% endif %} +
+ {# subfooter__container #} +
+
+ {% if page.sub_footer_first %} +
+ {# subfooter-first #} +
+ {{ page.sub_footer_first }} +
+ {# EOF: subfooter-first #} +
+ {% endif %} + {% if page.footer %} +
+ {# subfooter-second #} +
+ {{ page.footer }} +
+ {# EOF: subfooter-second #} +
+ {% endif %} +
+
+ {# EOF: subfooter__container #} +
+
+ {# EOF:subfooter #} + {% endif %} + +
+{# EOF: page-container #} diff --git a/templates/page--bibcite--reference.html.twig b/templates/page--bibcite--reference.html.twig new file mode 100644 index 0000000..c9fa690 --- /dev/null +++ b/templates/page--bibcite--reference.html.twig @@ -0,0 +1,783 @@ +{# +/** + * @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 + */ +#} +{% if page.slideout %} + {# slideout #} +
+ {# slideout__container #} +
+
+ {{ page.slideout }} +
+
+ {# EOF:slideout__container #} +
+ {# EOF: slideout #} + + {# EOF: slideout-toggle #} + + {# EOF: slideout-toggle #} +{% endif %} + +{# page-container #} +
+ + {% if page.pre_header %} + {# pre-header #} +
+
+ {# pre-header__container #} +
+
+
+
+ {{ page.pre_header }} +
+
+
+
+ {# EOF:pre-header__container #} +
+
+ {# 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 #} +
+ + {% if page.header_top_highlighted_first or page.header_top_highlighted_second %} + {# header_top_highlighted #} +
+
+ {# header_top_highlighted__container #} +
+
+ {% if page.header_top_highlighted_first %} +
+ {# header-top-highlighted-first #} +
+ {{ page.header_top_highlighted_first }} +
+ {# EOF:header-top-highlighted-first #} +
+ {% endif %} + {% if page.header_top_highlighted_second %} +
+ {# header-top-highlighted-second #} +
+ {{ page.header_top_highlighted_second }} +
+ {# EOF:header-top-highlighted-second #} +
+ {% endif %} +
+
+ {# EOF:header-top-highlighted__container #} +
+
+ {# EOF: header-top-highlighted #} + {% endif %} + + {% if page.header_top_first or page.header_top_second %} + {# header-top #} +
+
+ {# header-top__container #} +
+
+ {% if page.header_top_first %} +
+ {# header-top-first #} +
+ {{ page.header_top_first }} +
+ {# EOF:header-top-first #} +
+ {% endif %} + {% if page.header_top_second %} +
+ {# header-top-second #} +
+ {{ page.header_top_second }} +
+ {# EOF:header-top-second #} +
+ {% endif %} +
+
+ {# EOF: header-top__container #} +
+
+ {# EOF: header-top #} + {% endif %} + + {% if page.header_first or page.header or page.header_third %} + {# header #} + + {# EOF: header #} + {% endif %} + +
+ {# EOF: header-container #} + {% endif %} + + {% if page.banner %} + {# banner #} + + {# EOF:banner #} + {% endif %} + + {# page-start #} +
+ + {% if page.system_messages %} +
+
+
+
+ {{ page.system_messages }} +
+
+
+
+ {% endif %} + + {% if page.highlighted_top %} + {# highlighted-top #} +
+
+ {# highlighted-top__container #} +
+
+
+
+ {{ page.highlighted_top }} +
+
+
+
+ {# EOF:highlighted-top__container #} +
+
+ {# EOF: highlighted-top #} + {% endif %} + + {% if page.highlighted %} + {# highlighted #} +
+
+ {# highlighted__container #} +
+
+
+
+ {{ page.highlighted }} +
+
+
+
+ {# EOF:highlighted__container #} +
+
+ {# EOF: highlighted #} + {% endif %} + + {% if page.content_top %} + {# content-top #} +
+
+ {# content-top__container #} +
+
+
+
+ {{ page.content_top }} +
+
+
+
+ {# EOF:content-top__container #} +
+
+ {# EOF: content-top #} + {% endif %} + + {% if page.content_top_highlighted %} + {# content-top-highlighted #} +
+
+ {# content-top-highlighted__container #} +
+
+
+
+ {{ page.content_top_highlighted }} +
+
+
+
+ {# EOF:content-top-highlighted__container #} +
+
+ {# EOF: content-top-highlighted #} + {% endif %} + + {% if page.pre_content_first or page.pre_content_second %} + {# pre-content #} +
+
+ {# pre-content__container #} +
+
+ {% if page.pre_content_first %} +
+ {# pre-content-first #} +
+ {{ page.pre_content_first }} +
+ {# EOF:pre-content-first #} +
+ {% endif %} + {% if page.pre_content_second %} +
+ {# pre-content-second #} +
+ {{ page.pre_content_second }} +
+ {# EOF:pre-content-second #} +
+ {% endif %} +
+
+ {# EOF:pre-content__container #} +
+
+ {# EOF: pre-content #} + {% endif %} + + {# main-content #} +
+
+
+
+
+ {# main #} +
+ {{ drupal_block('lmmi_journal_page_title') }} + {{ drupal_block('local_tasks_block') }} + {% if page.content %} + {{ page.content }} + {% endif %} +
+ {# EOF:main #} +
+ {% if page.sidebar_first %} + + {% endif %} + {% if page.sidebar_second %} + + {% endif %} +
+
+
+
+ {# EOF:main-content #} + + {% if page.content_bottom_first or page.content_bottom_second %} + {# content-bottom #} +
+
+ {# content-bottom__container #} +
+
+ {% if page.content_bottom_first %} +
+ {# content-bottom-first #} +
+ {{ page.content_bottom_first }} +
+ {# EOF:content-bottom-first #} +
+ {% endif %} + {% if page.content_bottom_second %} +
+ {# content-bottom-second #} +
+ {{ page.content_bottom_second }} +
+ {# EOF:content-bottom-second #} +
+ {% endif %} +
+
+ {# EOF:content-bottom__container #} +
+
+ {# EOF: content-bottom #} + {% endif %} + + {% if page.featured_top %} + {# featured-top #} + + {# EOF: featured-top #} + {% endif %} + + {% if page.featured %} + {# featured #} + + {# EOF: featured #} + {% endif %} + + {% if page.featured_bottom %} + {# featured-bottom #} + + {# EOF: featured-bottom #} + {% endif %} + + {% if page.sub_featured %} + {# sub_featured #} + + {# EOF: sub_featured #} + {% endif %} + + {% if page.footer_top_first or page.footer_top_second %} + {# footer-top #} + + {# 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 #} +
+ {% if scroll_to_top_display and scroll_to_top_region == "footer-to-top-enabled" %} +
+ {% endif %} + +
+ {# EOF footer #} + {% endif %} + + {% if page.footer_bottom_first or page.footer_bottom_second %} + {# footer-bottom #} + + {# EOF: footer-bottom #} + {% endif %} + + {% if page.sub_footer_first or page.footer %} + {# subfooter #} +
+ {% if scroll_to_top_display and scroll_to_top_region == "subfooter-to-top-enabled" %} +
+ {% endif %} +
+ {# subfooter__container #} +
+
+ {% if page.sub_footer_first %} +
+ {# subfooter-first #} +
+ {{ page.sub_footer_first }} +
+ {# EOF: subfooter-first #} +
+ {% endif %} + {% if page.footer %} +
+ {# subfooter-second #} +
+ {{ page.footer }} +
+ {# EOF: subfooter-second #} +
+ {% endif %} +
+
+ {# EOF: subfooter__container #} +
+
+ {# EOF:subfooter #} + {% endif %} + +
+{# EOF: page-container #} diff --git a/templates/views-view--landing_page_slideshow.html.twig b/templates/views-view--landing_page_slideshow.html.twig new file mode 100644 index 0000000..546346b --- /dev/null +++ b/templates/views-view--landing_page_slideshow.html.twig @@ -0,0 +1,52 @@ +{# +/** + * @file + * Theme override for a main view template. + * + * Available variables: + * - attributes: Remaining HTML attributes for the element. + * - css_name: A css-safe version of the view name. + * - css_class: The user-specified classes names, if any. + * - header: The optional header. + * - footer: The optional footer. + * - rows: The results of the view query, if any. + * - empty: The content to display if there are no rows. + * - pager: The optional pager next/prev links to display. + * - exposed: Exposed widget form/info to display. + * - feed_icons: Optional feed icons to display. + * - more: An optional link to the next page of results. + * - title: Title of the view, only used when displaying in the admin preview. + * - title_prefix: Additional output populated by modules, intended to be + * displayed in front of the view title. + * - title_suffix: Additional output populated by modules, intended to be + * displayed after the view title. + * - attachment_before: An optional attachment view to be displayed before the + * view content. + * - attachment_after: An optional attachment view to be displayed after the + * view content. + * - dom_id: Unique id for every view being printed to give unique class for + * Javascript. + * + * @see template_preprocess_views_view() + */ +#} +{% + set classes = [ + 'view', + 'view-' ~ id|clean_class, + 'view-id-' ~ id, + 'view-display-id-' ~ display_id, + dom_id ? 'js-view-dom-id-' ~ dom_id, + ] +%} + + {% if rows %} + + {{ rows }} + + {% elseif empty %} + + {{ empty }} + + {% endif %} +
diff --git a/templates/views/views-view-fields--recent-articles-masonry.html.twig b/templates/views/views-view-fields--recent-articles-masonry.html.twig new file mode 100644 index 0000000..1a00668 --- /dev/null +++ b/templates/views/views-view-fields--recent-articles-masonry.html.twig @@ -0,0 +1,48 @@ +{#{% 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 == "Audio/visual art" %} + {% set _icon_ = 'fa-volume-up' %} + {% set _color_ = 'red' %} + {% elseif fields.field_article_type.content|striptags|trim == "Blog post" %} + {% set _icon_ = 'fa-volume-up' %} + {% 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 }} +
+
+

{{ fields.title.content }}

+

{{ fields.field_authors_and_affiliations.content }}

+ +
+ {##} + {##} + {##} + {##} + {##} +
diff --git a/templates/views/views-view-fields--recent-content.html.twig b/templates/views/views-view-fields--recent-content.html.twig new file mode 100644 index 0000000..1a00668 --- /dev/null +++ b/templates/views/views-view-fields--recent-content.html.twig @@ -0,0 +1,48 @@ +{#{% 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 == "Audio/visual art" %} + {% set _icon_ = 'fa-volume-up' %} + {% set _color_ = 'red' %} + {% elseif fields.field_article_type.content|striptags|trim == "Blog post" %} + {% set _icon_ = 'fa-volume-up' %} + {% 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 }} +
+
+

{{ fields.title.content }}

+

{{ fields.field_authors_and_affiliations.content }}

+ +
+ {##} + {##} + {##} + {##} + {##} +
diff --git a/templates/views/views-view-fields--recent-content.html.twig.bku b/templates/views/views-view-fields--recent-content.html.twig.bku new file mode 100644 index 0000000..88e9e0d --- /dev/null +++ b/templates/views/views-view-fields--recent-content.html.twig.bku @@ -0,0 +1,53 @@ +{# +/** + * @file + * Theme override to display all the fields in a row. + * + * Available variables: + * - view: The view in use. + * - fields: A list of fields, each one contains: + * - content: The output of the field. + * - raw: The raw data for the field, if it exists. This is NOT output safe. + * - class: The safe class ID to use. + * - handler: The Views field handler controlling this field. + * - inline: Whether or not the field should be inline. + * - wrapper_element: An HTML element for a wrapper. + * - wrapper_attributes: List of attributes for wrapper element. + * - separator: An optional separator that may appear before a field. + * - label: The field's label text. + * - label_element: An HTML element for a label wrapper. + * - label_attributes: List of attributes for label wrapper. + * - label_suffix: Colon after the label. + * - element_type: An HTML element for the field content. + * - element_attributes: List of attributes for HTML element for field content. + * - has_label_colon: A boolean indicating whether to display a colon after + * the label. + * - element_type: An HTML element for the field content. + * - element_attributes: List of attributes for HTML element for field content. + * - row: The raw result from the query, with all data it fetched. + * + * @see template_preprocess_views_view_fields() + */ +#} +{{dump(fields)}} +{% for field in fields -%} + {{ field.separator }} + {%- if field.wrapper_element -%} + <{{ field.wrapper_element }}{{ field.wrapper_attributes }}> + {%- endif %} + {%- if field.label -%} + {%- if field.label_element -%} + <{{ field.label_element }}{{ field.label_attributes }}>{{ field.label }}{{ field.label_suffix }} + {%- else -%} + {{ field.label }}{{ field.label_suffix }} + {%- endif %} + {%- endif %} + {%- if field.element_type -%} + <{{ field.element_type }}{{ field.element_attributes }}>{{ field.content }} + {%- else -%} + {{ field.content }} + {%- endif %} + {%- if field.wrapper_element -%} + + {%- endif %} +{%- endfor %} diff --git a/templates/views/views-view-grid--recent-content.html.twig b/templates/views/views-view-grid--recent-content.html.twig index cc2d0a5..f546067 100644 --- a/templates/views/views-view-grid--recent-content.html.twig +++ b/templates/views/views-view-grid--recent-content.html.twig @@ -1,29 +1,3 @@ -{# -/** - * @file - * Theme override for views to display rows in a grid. - * - * Available variables: - * - attributes: HTML attributes for the wrapping element. - * - title: The title of this group of rows. - * - view: The view object. - * - rows: The rendered view results. - * - options: The view plugin style options. - * - row_class_default: A flag indicating whether default classes should be - * used on rows. - * - col_class_default: A flag indicating whether default classes should be - * used on columns. - * - items: A list of grid items. Each item contains a list of rows or columns. - * The order in what comes first (row or column) depends on which alignment - * type is chosen (horizontal or vertical). - * - attributes: HTML attributes for each row or column. - * - content: A list of columns or rows. Each row or column contains: - * - attributes: HTML attributes for each row or column. - * - content: The row or column contents. - * - * @see template_preprocess_views_view_grid() - */ -#} {% set classes = [ 'views-view-grid', diff --git a/templates/views/views-view.html.twig b/templates/views/views-view.html.twig new file mode 100644 index 0000000..f0ed63c --- /dev/null +++ b/templates/views/views-view.html.twig @@ -0,0 +1,95 @@ +{# +/** + * @file + * Theme override for a main view template. + * + * Available variables: + * - attributes: Remaining HTML attributes for the element. + * - css_name: A css-safe version of the view name. + * - css_class: The user-specified classes names, if any. + * - header: The optional header. + * - footer: The optional footer. + * - rows: The results of the view query, if any. + * - empty: The content to display if there are no rows. + * - pager: The optional pager next/prev links to display. + * - exposed: Exposed widget form/info to display. + * - feed_icons: Optional feed icons to display. + * - more: An optional link to the next page of results. + * - title: Title of the view, only used when displaying in the admin preview. + * - title_prefix: Additional output populated by modules, intended to be + * displayed in front of the view title. + * - title_suffix: Additional output populated by modules, intended to be + * displayed after the view title. + * - attachment_before: An optional attachment view to be displayed before the + * view content. + * - attachment_after: An optional attachment view to be displayed after the + * view content. + * - dom_id: Unique id for every view being printed to give unique class for + * Javascript. + * + * @see template_preprocess_views_view() + */ +#} +{% + set classes = [ + 'view', + 'view-' ~ id|clean_class, + 'view-id-' ~ id, + 'view-display-id-' ~ display_id, + dom_id ? 'js-view-dom-id-' ~ dom_id, + ] +%} + + {{ title_prefix }} + {% if title %} + {{ title }} + {% endif %} + {{ title_suffix }} + {% if header %} +
+ {{ header }} +
+ {% endif %} + {% if exposed %} +
+ {{ exposed }} +
+ {% endif %} + {% if attachment_before %} +
+ {{ attachment_before }} +
+ {% endif %} + + {% if rows %} +
+ {{ rows }} +
+ {% elseif empty %} +
+ {{ empty }} +
+ {% endif %} + + {% if pager %} + {{ pager }} + {% endif %} + {% if attachment_after %} +
+ {{ attachment_after }} +
+ {% endif %} + {% if more %} + {{ more }} + {% endif %} + {% if footer %} + + {% endif %} + {% if feed_icons %} +
+ {{ feed_icons }} +
+ {% endif %} +