Skip to content
Snippets Groups Projects
Commit fde4e437 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5509: removing templates to start over with ohana

parent f86631ed
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 534 deletions
{{ content }}
{#
/**
* @file
* Default 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()
*
* @todo Remove the id attribute (or make it a class), because if that gets
* rendered twice on a page this is invalid CSS for example: two lists
* in different view modes.
*
* @ingroup themeable
*/
#}
{% if logged_in and user.hasPermission('view all revisions') %}
{{ drupal_form('Drupal\\content_moderation\\Form\\EntityModerationForm', node) }}
{% endif %}
{#
/**
* @file
* Theme override 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: (optional) 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: (optional) Themed creation date field.
* - author_name: (optional) 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()
*
* @todo Remove the id attribute (or make it a class), because if that gets
* rendered twice on a page this is invalid CSS for example: two lists
* in different view modes.
*/
#}
{%
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
]
%}
{% if ical %}
{% set node_data = node_data | merge({'ical': ical}) %}
{% endif %}
{% if uw_content_moderation_form and node.nid.value == uw_content_moderation_form['#mods'].nid %}
{{ uw_content_moderation_form }}
{% endif %}
{{ attach_library('seven/classy.node') }}
{% embed '@layouts/node/node.twig' with {
'classes': classes,
'has_sidebar': sidebar ? 'Yes' : 'No'
} %}
{% block content %}
<div{{ content_attributes.addClass('node__content') }}>
{% include '@components/card/card--node/_card--node.twig' with {
'node': node_data,
'type': 'node'
} %}
</div>
{% endblock %}
{% block sidebar_content %}
{% if sidebar %}
{{ sidebar }}
{% endif %}
{% endblock %}
{% endembed %}
{% include '@layouts/ofis/ofis.twig' with {
'ofis_data': ofis_data,
} %}
{#
/**
* @file
* Theme override for the basic structure of a single Drupal page.
*
* Variables:
* - logged_in: A flag indicating if user is logged in.
* - root_path: The root path of the current page (e.g., node, admin, user).
* - node_type: The content type for the current node, if the page is a node.
* - head_title: List of text elements that make up the head_title variable.
* May contain or more of the following:
* - title: The title of the page.
* - name: The name of the site.
* - slogan: The slogan of the site.
* - page_top: Initial rendered markup. This should be printed before 'page'.
* - page: The rendered page markup.
* - page_bottom: Closing rendered markup. This variable should be printed after 'page'.
* - db_offline: A flag indicating if the database is offline.
* - placeholder_token: The token for generating head, css, js and js-bottom placeholders.
*
* @see template_preprocess_html()
*/
#}
{% set body_classes = [
logged_in ? 'user-logged-in',
not root_path ? 'path-frontpage' : 'path-' ~ root_path|clean_class,
not root_path ? 'front' : 'not-front',
node_type ? 'node-page node-page--node-type-' ~ node_type|clean_class,
] %}
<!DOCTYPE html>
<html{{ html_attributes }} class="no-js">
<head>
<head-placeholder token="{{ placeholder_token|raw }}">
<title>{{ head_title|safe_join(' | ') }}</title>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Barlow:wght@400;500;700&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Barlow:wght@400;500;700&display=swap" media="print" onload="this.media='all'" />
<noscript>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Barlow:wght@400;500;700&display=swap" />
</noscript>
{% if not uw_admin_page %}
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-M9XLVF');</script>
<!-- End Google Tag Manager -->
{% endif %}
<css-placeholder token="{{ placeholder_token|raw }}">
<js-placeholder token="{{ placeholder_token|raw }}">
</head>
<body{{ attributes.addClass(body_classes) }}>
{% if not uw_admin_page %}
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M9XLVF" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
{% endif %}
{% include '@components/skiplinks/skiplinks.twig' %}
{{ page_top }}
{{ page }}
{{ page_bottom }}
<js-bottom-placeholder token="{{ placeholder_token|raw }}">
</body>
</html>
{#
/**
* @file
* Theme override to display a single page.
*
* Available variables:
*
* General utility variables:
* - base_path: The base URL path of the Drupal installation.
* - 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.
*
* Page content (in order of occurrence in the default page.html.twig):
* - node: Fully loaded node
*
* Regions:
* - page.header: Items for the header region.
* - page.highlighted: Items for the highlighted region.
* - page.primary_menu: Items for the primary menu region.
* - page.secondary_menu: Items for the secondary menu region.
* - page.highlighted: Items for the highlighted content region.
* - page.help: Dynamic help text, mostly for admin pages.
* - page.content: The main content of the current page.
* - page.sidebar_first: Items for the first sidebar.
* - page.sidebar_second: Items for the second sidebar.
* - page.footer: Items for the footer region.
* - page.breadcrumb: Items for the breadcrumb region.
*
* @see template_preprocess_page()
* @see html.html.twig
*/
#}
{% extends '@layouts/site-container/site-container.twig' %}
{% block header %}
{{ page.header }}
{{ page.navigation }}
{{ page.breadcrumb }}
{% endblock %}
{% block highlighted %}
{{ page.highlighted }}
{{ page.help }}
{% endblock %}
{% block main %}
{{ page.preface }}
{{ page.content }}
{{ page.postscript }}
{% endblock %}
{% block footer %}
{{ page.sitefooter }}
{{ page.footer }}
{% endblock %}
{% if items %}
{% include "@components/pager/pager.twig" with {
'items': items,
} %}
{% endif %}
{#
/**
* @file
* Theme override to display a region.
*
* Available variables:
* - content: The content for this region, typically blocks.
* - attributes: HTML attributes for the region div.
* - region: The name of the region variable as defined in the theme's
* .info.yml file.
*
* @see template_preprocess_region()
*/
#}
{% embed '@layouts/content/content.twig' with {
'classes': classes
}%}
{% block content %}
{{ content }}
{% endblock %}
{% endembed %}
{#
/**
* @file
* Theme override to display a region.
*
* Available variables:
* - content: The content for this region, typically blocks.
* - attributes: HTML attributes for the region div.
* - region: The name of the region variable as defined in the theme's
* .info.yml file.
*
* @see template_preprocess_region()
*/
#}
{% set social_media = simplify_menu('uw-menu-global-social-media') %}
{% set footer_menu = simplify_menu('uw-menu-global-footer') %}
{% embed '@layouts/footer/footer.twig' with {
"social_media": social_media,
"social_media_placement": "global-site-footer",
"footer_menu": footer_menu.menu_tree
} %}
{% block content %}
{{ content }}
{% endblock %}
{% endembed %}
{#
/**
* @file
* Theme override to display a region.
*
* Available variables:
* - content: The content for this region, typically blocks.
* - attributes: HTML attributes for the region div.
* - region: The name of the region variable as defined in the theme's
* .info.yml file.
*
* @see template_preprocess_region()
*/
#}
{% include '@layouts/header/header.twig' with {
'site_name': site_name,
'faculty': faculty,
'classes': classes,
'nav_items': main_menu,
'secondary_items': secondary_menu,
'home_link': home_link,
'global_message': global_message
}%}
{#
/**
* @file
* Theme override to display a region.
*
* Available variables:
* - content: The content for this region, typically blocks.
* - attributes: HTML attributes for the region div.
* - region: The name of the region variable as defined in the theme's
* .info.yml file.
*
* @see template_preprocess_region()
*/
#}
{% embed '@layouts/highlighted/highlighted.twig' with {
'classes': classes
}%}
{% block content %}
{{ content }}
{% endblock %}
{% endembed %}
{% if site_footer %}
{% include "@layouts/site-footer/site-footer.twig" with {
"body": site_footer.content,
"logo_link": site_footer.logo_link,
"logo_url": site_footer.logo_url,
"site_name": site_footer.site_name,
"logo_alt_text": site_footer.logo_alt_text,
"social_media": site_footer.social_media,
"social_media_placement": "local-site-footer",
"primary": site_footer.primary,
'home_link': site_footer.home_link
} %}
{% endif %}
{% for data in node_data %}
<div class="views-row">
{% include '@components/card/card--teaser/_card--teaser.twig' with {
'teaser': data,
} %}
</div>
{% endfor %}
{#
/**
* @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 (view.current_display == 'services_in_category_page') or (view.current_display == 'catalog_a_z_page') %}
<div class="views-element-container contextual-region">
{% endif %}
{% if content_list %}
{% include '@components/tabs/tabs--link/tabs--link.twig' with {
'content_list': content_list,
'tabs_modifier_class': 'catalog'
} %}
{% endif %}
{% if form_search %}
{% include '@components/form-view-search/form-view-search.twig' with {
'form_search': form_search
} %}
{% endif %}
{% if not show_empty %}
{% set show_empty = 'yes' %}
{% endif %}
{% include '@components/view/views-view/views-view.twig' with {
'attributes': attributes,
'css_name': css_name,
'css_class': css_class,
'header': header,
'footer': footer,
'rows': rows,
'empty': empty.area,
'show_empty': show_empty,
'pager': pager,
'exposed': exposed,
'feed_icons': feed_icons,
'more': more,
'title': title,
'title_prefix': title_prefix,
'title_suffix': title_suffix,
'attachment_before': attachment_before,
'attachment_after': attachment_after,
'dom_id': dom_id,
'exp_col_all': exp_col_all,
'rss': view.rss,
'ical': view.ical,
} %}
{% if (view.current_display == 'services_in_category_page') or (view.current_display == 'catalog_a_z_page') %}
</div>
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment