Skip to content
Snippets Groups Projects
Commit e1a01bfe authored by Alberto Siles's avatar Alberto Siles Committed by Alberto Siles
Browse files

Remove layouts from subtheme

parent 489d7a99
No related branches found
No related tags found
No related merge requests found
bb_cardbasic:
label: Card basic
category: Barrio
template: templates/ds/layout--ds-card-basic
class: '\Drupal\ds\Plugin\DsLayout'
regions:
first:
label: Content
bb_cardtopimage:
label: Card top image
category: Barrio
template: templates/ds/layout--ds-card-top-image
class: '\Drupal\ds\Plugin\DsLayout'
regions:
first:
label: Image
second:
label: Content
bb_cardimageoverlay:
label: Card image overlay
category: Barrio
template: templates/ds/layout--ds-card-image-overlay
class: '\Drupal\ds\Plugin\DsLayout'
regions:
first:
label: Image
second:
label: Content
bb_cardheaderfooter:
label: Card header footer
category: Barrio
template: templates/ds/layout--ds-card-header-footer
class: '\Drupal\ds\Plugin\DsLayout'
regions:
first:
label: Header
second:
label: Content
third:
label: Footer
bb_card3stack:
label: Card three block stacked
category: Barrio
template: templates/ds/layout--ds-card-3stack
class: '\Drupal\ds\Plugin\DsLayout'
regions:
first:
label: First
second:
label: Image
third:
label: Second
bb_media:
label: Media
category: Barrio
template: templates/ds/layout--ds-media
class: '\Drupal\ds\Plugin\DsLayout'
regions:
first:
label: Image
second:
label: Content
{#
/**
* @file
* Display Suite 4 column template.
*
* Available variables:
* - outer_wrapper: outer wrapper element
* - first_wrapper: wrapper element around first region
* - second_wrapper: wrapper element around second region
* - third_wrapper: wrapper element around third region
* - attributes: layout attributes
* - first_attributes: attributes for first region
* - second_attributes: attributes for second region
* - third_attributes: attributes for third region
* - fourth_attributes: attributes for fourth region
* - first: content of first region
* - second: content of second region
* - third: content of third region
*/
#}
<{{ outer_wrapper }}{{ attributes.addClass('card', 'clearfix') }}>
{{ title_suffix.contextual_links }}
<{{ first_wrapper }}{{ first_attributes.addClass('card-block card-body') }}>
{{ first }}
</{{ first_wrapper }}>
<{{ second_wrapper }}{{ second_attributes.addClass('card-img') }}>
{{ second }}
</{{ second_wrapper }}>
<{{ third_wrapper }}{{ third_attributes.addClass('card-block card-body') }}>
{{ third }}
</{{ third_wrapper }}>
</{{ outer_wrapper }}>
{#
/**
* @file
* Display Suite simple card.
*
* Available variables:
* - outer_wrapper: outer wrapper element
* - attributes: layout attributes
* - first: content of first region
*/
#}
<{{ outer_wrapper }}{{ attributes.addClass('card', 'clearfix', 'card-block', 'card-body') }}>
{{ title_suffix.contextual_links }}
{{ first }}
</{{ outer_wrapper }}>
{#
/**
* @file
* Display Suite card header footer template.
*
* Available variables:
* - outer_wrapper: outer wrapper element
* - first_wrapper: wrapper element around first region
* - second_wrapper: wrapper element around second region
* - third_wrapper: wrapper element around third region
* - attributes: layout attributes
* - first_attributes: attributes for first region
* - second_attributes: attributes for second region
* - third_attributes: attributes for third region
* - first: content of first region
* - second: content of second region
* - third: content of third region
*/
#}
<{{ outer_wrapper }}{{ attributes.addClass('card', 'clearfix') }}>
{{ title_suffix.contextual_links }}
<{{ first_wrapper }}{{ first_attributes.addClass('card-header') }}>
{{ first }}
</{{ first_wrapper }}>
<{{ second_wrapper }}{{ second_attributes.addClass('card-block card-body') }}>
{{ second }}
</{{ second_wrapper }}>
<{{ third_wrapper }}{{ third_attributes.addClass('card-footer') }}>
{{ third }}
</{{ third_wrapper }}>
</{{ outer_wrapper }}>
{#
/**
* @file
* Display Suite card image top.
*
* Available variables:
* - outer_wrapper: outer wrapper element
* - first_wrapper: wrapper element around first region
* - second_wrapper: wrapper element around second region
* - attributes: layout attributes
* - first_attributes: attributes for first region
* - second_attributes: attributes for second region
* - first: content of first region
* - second: content of second region
*/
#}
<{{ outer_wrapper }}{{ attributes.addClass('card') }}>
{{ title_suffix.contextual_links }}
<{{ first_wrapper }}{{ first_attributes.addClass('card-img') }}>
{{ first }}
</{{ first_wrapper }}>
<{{ second_wrapper }}{{ second_attributes.addClass('card-img-overlay') }}>
{{ second }}
</{{ second_wrapper }}>
</{{ outer_wrapper }}>
{#
/**
* @file
* Display Suite card image top.
*
* Available variables:
* - outer_wrapper: outer wrapper element
* - first_wrapper: wrapper element around first region
* - second_wrapper: wrapper element around second region
* - attributes: layout attributes
* - first_attributes: attributes for first region
* - second_attributes: attributes for second region
* - first: content of first region
* - second: content of second region
*/
#}
<{{ outer_wrapper }}{{ attributes.addClass('card', 'clearfix') }}>
{{ title_suffix.contextual_links }}
<{{ first_wrapper }}{{ first_attributes.addClass('card-img-top') }}>
{{ first }}
</{{ first_wrapper }}>
<{{ second_wrapper }}{{ second_attributes.addClass('card-block') }}>
{{ second }}
</{{ second_wrapper }}>
</{{ outer_wrapper }}>
{#
/**
* @file
* Display Suite media.
*
* Available variables:
* - outer_wrapper: outer wrapper element
* - first_wrapper: wrapper element around first region
* - second_wrapper: wrapper element around second region
* - attributes: layout attributes
* - first_attributes: attributes for first region
* - second_attributes: attributes for second region
* - first: content of first region
* - second: content of second region
*/
#}
<{{ outer_wrapper }}{{ attributes.addClass('media', 'clearfix') }}>
{{ title_suffix.contextual_links }}
{{ first }}
<{{ second_wrapper }}{{ second_attributes.addClass('media-body') }}>
{{ second }}
</{{ second_wrapper }}>
</{{ outer_wrapper }}>
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