|
8 | 8 | <div attr="data.main.attributes"
|
9 | 9 | ko-style="data.main.style"
|
10 | 10 | css="data.main.css">
|
11 |
| - <div class="pagebuilder-content-type type-container pagebuilder-row children-min-height" |
12 |
| - attr="data.inner.attributes" |
13 |
| - ko-style="data.inner.style" |
14 |
| - css="Object.assign(data.inner.css(), { |
15 |
| - 'empty-container': contentType.children().length == 0, |
16 |
| - 'jarallax': data.inner.attributes()['data-enable-parallax'] == 1 || data.inner.attributes()['data-background-type'] == 'video' |
17 |
| - })" |
18 |
| - event="{ mouseover: onMouseOver, mouseout: onMouseOut }, mouseoverBubble: false" |
19 |
| - afterRender="initParallax"> |
20 |
| - <div if="data.video_overlay.attributes()['data-video-overlay-color']" |
21 |
| - class="video-overlay" |
22 |
| - attr="data.video_overlay.attributes" |
23 |
| - ko-style="data.video_overlay.style" /> |
24 |
| - <render args="getOptions().template"/> |
25 |
| - <div class="element-children content-type-container" each="contentType.getChildren()" ko-style="data.container.style" css="getChildrenCss()" attr="{id: contentType.id + '-children'}" data-bind="sortable: getSortableOptions()" afterRender="function (element) { if (typeof afterChildrenRender === 'function') { afterChildrenRender(element); } }"> |
26 |
| - <if args="$parent.isContainer()"> |
27 |
| - <div class="pagebuilder-drop-indicator"></div> |
28 |
| - </if> |
29 |
| - <div class="pagebuilder-content-type-wrapper" template="{ name: preview.template, data: preview, afterRender: function () { preview.dispatchAfterRenderEvent.apply(preview, arguments); } }" attr="{ id: id }" css="{'pagebuilder-content-type-hidden': !preview.display()}"></div> |
30 |
| - <if args="$parent.isContainer() && $index() === $parent.contentType.getChildren()().length - 1"> |
31 |
| - <div class="pagebuilder-drop-indicator"></div> |
32 |
| - </if> |
33 |
| - </div> |
| 11 | + <div class="pagebuilder-content-type pagebuilder-content-type-affordance" |
| 12 | + ko-style="Object.keys(data.inner.style()).filter(key => key.startsWith('margin')).reduce((obj, key) => {obj[key] = data.inner.style()[key];return obj;}, {});" |
| 13 | + event="{ mouseover: onMouseOver, mouseout: onMouseOut }, mouseoverBubble: false"> |
34 | 14 | <div class="pagebuilder-display-label"
|
35 | 15 | text="function () { return displayLabel().toUpperCase(); }()"></div>
|
36 |
| - <div class="pagebuilder-empty-container empty-placeholder" |
37 |
| - css="placeholderCss()" |
38 |
| - translate="'Drag content types or columns here'"/> |
| 16 | + <div class="pagebuilder-content-type no-system-border type-container pagebuilder-row children-min-height" |
| 17 | + attr="data.inner.attributes" |
| 18 | + ko-style="Object.keys(data.inner.style()).filter(key => !key.startsWith('margin')).reduce((obj, key) => {obj[key] = data.inner.style()[key];return obj;}, {});" |
| 19 | + css="Object.assign(data.inner.css(), { |
| 20 | + 'empty-container': contentType.children().length == 0, |
| 21 | + 'jarallax': data.inner.attributes()['data-enable-parallax'] == 1 || data.inner.attributes()['data-background-type'] == 'video' |
| 22 | + })" |
| 23 | + afterRender="initParallax"> |
| 24 | + <div if="data.video_overlay.attributes()['data-video-overlay-color']" |
| 25 | + class="video-overlay" |
| 26 | + attr="data.video_overlay.attributes" |
| 27 | + ko-style="data.video_overlay.style" /> |
| 28 | + <render args="getOptions().template"/> |
| 29 | + <div class="element-children content-type-container" each="contentType.getChildren()" ko-style="data.container.style" css="getChildrenCss()" attr="{id: contentType.id + '-children'}" data-bind="sortable: getSortableOptions()" afterRender="function (element) { if (typeof afterChildrenRender === 'function') { afterChildrenRender(element); } }"> |
| 30 | + <if args="$parent.isContainer()"> |
| 31 | + <div class="pagebuilder-drop-indicator"></div> |
| 32 | + </if> |
| 33 | + <div class="pagebuilder-content-type-wrapper" template="{ name: preview.template, data: preview, afterRender: function () { preview.dispatchAfterRenderEvent.apply(preview, arguments); } }" attr="{ id: id }" css="{'pagebuilder-content-type-hidden': !preview.display()}"></div> |
| 34 | + <if args="$parent.isContainer() && $index() === $parent.contentType.getChildren()().length - 1"> |
| 35 | + <div class="pagebuilder-drop-indicator"></div> |
| 36 | + </if> |
| 37 | + </div> |
| 38 | + <div class="pagebuilder-empty-container empty-placeholder" |
| 39 | + css="placeholderCss()" |
| 40 | + translate="'Drag content types or columns here'"/> |
| 41 | + </div> |
39 | 42 | </div>
|
40 | 43 | </div>
|
0 commit comments