Skip to content
Snippets Groups Projects
Commit cebc1b70 authored by Thomas Frobieter's avatar Thomas Frobieter
Browse files

Added Foundation collapse / uncollapse classes to row / layout_wrapper_attributes.

parent d511be06
No related branches found
No related tags found
No related merge requests found
......@@ -224,6 +224,26 @@ function drowl_paragraphs_preprocess_paragraph(&$variables) {
// At least one has "automatic" set
$variables['layout_wrapper_attributes']->addClass('large-unstack');
}
// Add grid collapse classes to the row
if (!empty($subParagraphSettingsArray[0]['layout_sm_collapse'])) {
$variables['layout_wrapper_attributes']->addClass('small-collapse');
}
if (!empty($subParagraphSettingsArray[0]['layout_md_collapse'])) {
$variables['layout_wrapper_attributes']->addClass('medium-collapse');
}
if (!empty($subParagraphSettingsArray[0]['layout_lg_collapse'])) {
$variables['layout_wrapper_attributes']->addClass('large-collapse');
}
// Add grid UNcollapse classes to the row
if (!empty($subParagraphSettingsArray[0]['layout_sm_uncollapse'])) {
$variables['layout_wrapper_attributes']->addClass('small-uncollapse');
}
if (!empty($subParagraphSettingsArray[0]['layout_md_uncollapse'])) {
$variables['layout_wrapper_attributes']->addClass('medium-uncollapse');
}
if (!empty($subParagraphSettingsArray[0]['layout_lg_uncollapse'])) {
$variables['layout_wrapper_attributes']->addClass('large-uncollapse');
}
}
}
}
......
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