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 305 deletions
{#
/**
* @file
* Theme override to display a region.
*
* Available variables:
* - content: The content for this region, typically blocks.
*
* @see template_preprocess_block()
*/
#}
{% set class = "uw-resp-image" %}
{% embed '@layouts/block/_block.twig' with {
'class': class
}%}
{% block content %}
{{ content }}
{% endblock %}
{% endembed %}
{% block content %}
{{ content }}
{% endblock %}
{% if media == 'no' %}
{%
set classes = [
'block',
'block-' ~ configuration.provider|clean_class,
'block-' ~ plugin_id|clean_class,
]
%}
<div{{ attributes.addClass(classes) }}>
{% if admin_label %}
<div class="uw-admin-label">{{ admin_label }}</div>
{% endif %}
{{ title_prefix }}
{% if label %}
<h2{{ title_attributes }}>{{ label }}</h2>
{% endif %}
{{ title_suffix }}
{% block content %}
{{ content }}
{% endblock %}
</div>
{% endif %}
{% block content %}
{{ content }}
{% endblock %}
{% block content %}
{{ content }}
{% endblock %}
{#
/**
* @file
* Theme override to display a block.
*
* Available variables:
* - plugin_id: The ID of the block implementation.
* - label: The configured label of the block if visible.
* - configuration: A list of the block's configuration values.
* - label: The configured label for the block.
* - label_display: The display settings for the label.
* - provider: The module or other provider that provided this block plugin.
* - Block plugin specific settings will also be stored here.
* - content: The content of this block.
* - attributes: array of HTML attributes populated by modules, intended to
* be added to the main container tag of this template.
* - id: A valid HTML ID and guaranteed unique.
* - title_attributes: Same as attributes, except applied to the main title
* 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.
*
* @see template_preprocess_block()
*/
#}
{%
set classes = [
'block',
'block-' ~ configuration.provider|clean_class,
'block-' ~ plugin_id|clean_class,
]
%}
{% if in_layout_builder %}
{{ attach_library('uw_theme_admin/uw_layout_builder') }}
{% endif %}
{% if content %}
<div{{ attributes.addClass(classes) }}>
{% if admin_label %}
<div class="uw-admin-label">{{ admin_label }}</div>
{% endif %}
{{ title_prefix }}
{% if label %}
<h2{{ title_attributes }}>{{ label }}</h2>
{% endif %}
{{ title_suffix }}
{% block content %}
{{ content }}
{% endblock %}
</div>
{% endif %}
{% include "@components/tableau/tableau.twig" with {
'tableau': tableau
} %}
{#
/**
* @file
* Theme override of a container used to wrap child elements.
*
* Used for grouped form items. Can also be used as a theme wrapper for any
* renderable element, to surround it with a <div> and HTML attributes.
* See \Drupal\Core\Render\Element\RenderElement for more
* information on the #theme_wrappers render array property, and
* \Drupal\Core\Render\Element\container for usage of the container render
* element.
*
* Available variables:
* - attributes: HTML attributes for the containing element.
* - children: The rendered child elements of the container.
* - has_parent: A flag to indicate that the container has one or more parent
containers.
*
* @see template_preprocess_container()
*/
#}
{%
set classes = [
has_parent ? 'js-form-wrapper',
has_parent ? 'form-wrapper',
]
%}
{% if header_data %}
<div class="node--type-{{ node_type }}">
{% include '@components/card/card--node/_card--node.twig' with {
'node': header_data,
'type': 'node',
'featured_image': featured_image,
} %}
</div>
{% endif %}
<div{{ attributes.addClass(classes) }}>{{ children }}</div>
{% if footer_data %}
<div class="layout uw-contained-width">
{% include '@components/card/card--node/_card--node.twig' with {
'node': footer_data,
'type': 'node',
} %}
</div>
{% endif %}
{#
/**
* @file
* Theme override to display a media item.
*
* Available variables:
* - name: Name of the media.
* - content: Media content.
*
* @see template_preprocess_media()
*
* @ingroup themeable
*/
#}
{%
set classes = [
'media',
'media--type-' ~ media.bundle()|clean_class,
not media.isPublished() ? 'media--unpublished',
view_mode ? 'media--view-mode-' ~ view_mode|clean_class,
]
%}
{% set modifier_classes = '' %}
{% if attributes.class %}
{% set classes = classes | merge(attributes.class) %}
{% endif %}
{% for class in classes %}
{% set modifier_classes = modifier_classes ~ ' ' ~ class %}
{% endfor %}
{% embed '@layouts/media/media.twig' with {
'modifier_classes': modifier_classes
}%}
{% block content %}
{{ content }}
{% endblock %}
{% endembed %}
{{ attach_library('uw_fdsu_theme_resp/factsfigures') }}
{% include '@components/facts-and-figures/facts-and-figures.twig' with {
'ffs': ffs_settings
} %}
{% for item in items %}
{{ item.content }}
{% endfor %}
{% for item in items %}
{{ item.content }}
{% endfor %}
{#
/**
* @file
* Theme override for a field.
*/
#}
{%
set classes = [
'uw-field',
'uw-field--name-' ~ field_name|clean_class,
'uw-field--type-' ~ field_type|clean_class,
'uw-field--label-' ~ label_display,
]
%}
{%
set title_classes = [
'uw-field__label',
label_display == 'visually_hidden' ? 'visually-hidden',
]
%}
{% if display_field_tag %}
<{{ field_tag|default('div') }}{{ attributes.addClass(classes, 'uw-field__items') }}>
{% endif %}
{% if not label_hidden and display_label_tag %}
<{{ label_tag|default('div') }}{{ title_attributes.addClass(title_classes) }}>{{ label }}</{{ label_tag|default('div') }}>
{% endif %}
{% for item in items %}
{% if display_item_tag %}
<{{ field_item_tag|default('div') }}{{ item.attributes.addClass('uw-field__item') }}>
{% endif %}
{{ item.content }}
{% if display_item_tag %}
</{{ field_item_tag|default('div') }}>
{% endif %}
{% endfor %}
{% if display_field_tag %}
</{{ field_tag|default('div') }}>
{% endif %}
{#
/**
* @file
* Theme override of a responsive image.
*
* Available variables:
* - sources: The attributes of the <source> tags for this <picture> tag.
* - img_element: The controlling image, with the fallback image in srcset.
* - output_image_tag: Whether or not to output an <img> tag instead of a
* <picture> tag.
*
* @see template_preprocess()
* @see template_preprocess_responsive_image()
*/
#}
{% include "@components/responsive-image/responsive-image.twig" with {
"sources": sources,
"img_element": img_element['#uri'],
"alt": img_element['#alt']
} %}
{% if in_layout_builder %}
<div{{ attributes.addClass(classes) }}>
{{ title_prefix }}
{{ title_suffix }}
{% endif %}
{% if label %}
<h2{{ title_attributes }}>{{ label }}</h2>
{% endif %}
{% include "@components/whos-online/whos-online.twig" with {
'privileged': whos_online.privileged,
'others': whos_online.others,
} %}
{% if in_layout_builder %}
</div>
{% endif %}
{% include "@components/menu/menu--main/menu--main.twig" with {
'items': items
} %}
{% include "@components/menu/menu--footer/menu--footer.twig" with {
'menu_name': 'uw-footer',
'items': items
} %}
{% include "@components/menu/menu--header/menu--header.twig" with {
'items': items
} %}
{% include '@components/card/card--teaser/_card--teaser.twig' with {
'teaser': teaser,
'type': 'teaser'
} %}
{% include '@components/contact/contact.twig' with {
'contact': teaser,
}%}
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