wrap.override =
wrap.override.if.value = 1
wrap.override.if.equals.data = register:AccordionCount
}
# don't show headers in accordion
#20 =< tt_content
20 < tt_content
20 {
text.10 >
image.10 >
textpic.10 >
uploads.10 >
table.10 >
multimedia.10 >
media.10 >
mailform.10 >
menu.10 >
videoce_videocontent.10 >
}
30 = TEXT
30.wrap = |
}
}
}
# Reset accordion count
append = COA
append {
5 = LOAD_REGISTER
5 {
AccordionCount.cObject = TEXT
AccordionCount.cObject.data = register:AccordionCount
AccordionCount.cObject.wrap = |*0
AccordionCount.prioriCalc = intval
}
}
}
# Slider
slider < lib.gridelements.defaultGridSetup
slider {
columns {
101 < .default
101.renderObj.wrap =
|
101.wrap (
)
101.insertData = 1
}
append = COA
append.wrap (
)
append {
10 = TEXT
10.dataWrap = $('#flexslider{field:uid}').flexslider( |
20 = TEXT
20.value = {
30 = TEXT
30.insertData = 1
30.value (
direction: "{field:flexform_direction}", slideshowSpeed: {field:flexform_slidespeed},
animation: "{field:flexform_animation}", animationSpeed: {field:flexform_animationspeed}, animationLoop: {field:flexform_animationloop}, useCSS: false,
controlNav: {field:flexform_showcontrolnav}, directionNav: {field:flexform_showdirnav}, pausePlay: {field:flexform_showpause}, pauseOnHover: {field:flexform_pauseonhover},
initDelay: {field:flexform_initdelay}, randomize: {field:flexform_randomize}, reverse: {field:flexform_reverse}
)
40 = TEXT
40.value = });
}
}
# simple row for content elements and usage with ext:bscolwrap
simpleRow < lib.gridelements.defaultGridSetup
simpleRow {
# row wrap
wrap =
|
columns {
# special 111, used as check for conditional fields
111 < .default
111.wrap = |
}
}
}
/** ------------------------------------------------
* Assign grid rendering to layout ids (names)
*/
tt_content.gridelements_pi1.20.10.setup {
2cols < lib.bootstrap_grids.2cols
3cols < lib.bootstrap_grids.3cols
4cols < lib.bootstrap_grids.4cols
accordion < lib.bootstrap_grids.accordion
slider < lib.bootstrap_grids.slider
tabsSimple < lib.bootstrap_grids.simpleTabs
tabs4 < lib.bootstrap_grids.4tabs
tabs6 < lib.bootstrap_grids.6tabs
xSimpleRow < lib.bootstrap_grids.simpleRow
}
/** ------------------------------------------------
* CSS and JS for flexslider (content slider grid)
*/
page {
includeCSS.flexslider2 = EXT:bootstrap_grids/Resources/Public/Flexslider2/flexslider.css
includeJSFooterlibs.flexslider2 = EXT:bootstrap_grids/Resources/Public/Flexslider2/jquery.flexslider-min.js
}