Override display suite two column layout to remove their classes, keep columns on mobile
For landing page teasers Ref #221
This commit is contained in:
parent
a5b74b91b3
commit
e42ebca830
2 changed files with 31 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
{% extends "ds-2col.html.twig" %}
|
||||
{% set attributes = attributes.addClass('is-mobile') %}
|
29
agaric/templates/layout/ds-2col.html.twig
Normal file
29
agaric/templates/layout/ds-2col.html.twig
Normal file
|
@ -0,0 +1,29 @@
|
|||
{#
|
||||
/**
|
||||
* @file
|
||||
* Override Display Suite 2 column template to get rid of DS classes.
|
||||
*
|
||||
* Available variables:
|
||||
* - outer_wrapper: outer wrapper element
|
||||
* - left_wrapper: wrapper element around left region
|
||||
* - right_wrapper: wrapper element around right region
|
||||
* - attributes: layout attributes
|
||||
* - left_attributes: attributes for left region
|
||||
* - right_attributes: attributes for right region
|
||||
* - left: content of left region
|
||||
* - right: content of right region
|
||||
*/
|
||||
#}
|
||||
<{{ outer_wrapper }}{{ attributes.addClass('clearfix') }}>
|
||||
|
||||
{{ title_suffix.contextual_links }}
|
||||
|
||||
<{{ left_wrapper }}{{ left_attributes.addClass('') }}>
|
||||
{{ left }}
|
||||
</{{ left_wrapper }}>
|
||||
|
||||
<{{ right_wrapper }}{{ right_attributes.addClass('') }}>
|
||||
{{ right }}
|
||||
</{{ right_wrapper }}>
|
||||
|
||||
</{{ outer_wrapper }}>
|
Loading…
Reference in a new issue