@total_onion/onion-library 2.0.236 → 2.0.237
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -127,8 +127,14 @@
|
|
|
127
127
|
{% set positionVars = include('components/element-positioning-v3.twig', { fields, block, blockClassName, is_preview}, with_context = false) %}
|
|
128
128
|
|
|
129
129
|
{% if fields.carousel_pagination %}
|
|
130
|
-
<
|
|
130
|
+
<style>
|
|
131
|
+
.swiper-pagination.{{block.id}}{
|
|
132
|
+
{{positionVars}}
|
|
133
|
+
}
|
|
134
|
+
</style>
|
|
135
|
+
<div class="swiper-pagination {{block.id}}"></div>
|
|
131
136
|
{% endif %}
|
|
137
|
+
|
|
132
138
|
{% if fields.enable_carousel_nav_arrows and fields.enable_custom_arrows == false %}
|
|
133
139
|
<div class="{{ blockClassName }}__button-prev swiper-button-prev"></div>
|
|
134
140
|
<div class="{{ blockClassName }}__button-next swiper-button-next"></div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{% set blockClassName = "standard-content-v3" %}
|
|
2
2
|
{% set displaytype = 'grid' %}
|
|
3
|
-
{% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields, block }, with_context = false) %}
|
|
3
|
+
{% set classNameEntryPoint = include('entry-points/entry-point-classes-v3.twig', { fields, block }, with_context = false) %}
|
|
4
4
|
{% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields, block, blockClassName, options, cta_styles, environment, is_preview, nav_menus, imageSizes }, with_context = false) %}
|
|
5
5
|
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields, block }, with_context = false) %}
|
|
6
6
|
{% set styleEntryPoint = include('entry-points/entry-point-style-v3.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
{{sectionStyles}}
|
|
14
14
|
}
|
|
15
15
|
</style>
|
|
16
|
-
<section {{ block.anchor ? 'id=' ~ block.anchor : '' }} class="{{blockClassName}} {{
|
|
16
|
+
<section {{ block.anchor ? 'id=' ~ block.anchor : '' }} class="{{blockClassName}} {{ block.id }} lazy-fade {{fields.section_class}} {{classNameEntryPoint}}" {{dataAttributeEntryPoint}} data-assetkey="{{blockClassName}}">
|
|
17
|
+
|
|
17
18
|
{% set contentContainerStyles = include('components/content-box-settings-v3.twig', { fields, block, blockClassName }, with_context = false) %}
|
|
18
19
|
<style>
|
|
19
20
|
.{{blockClassName}}__inner-container.{{block.id}}{
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{% if fields.animations.enable_animations %}
|
|
2
|
+
{% set animationClass = 'cmpl-block-animations ' %}
|
|
3
|
+
{% endif %}
|
|
4
|
+
{% if fields.enable_block_padding %}
|
|
5
|
+
{% set blockPaddingClass = 'cmpl-block-padding ' %}
|
|
6
|
+
{% endif %}
|
|
7
|
+
{% if fields.block_overflow is defined or fields.block_background_colour %}
|
|
8
|
+
{% set blockSettingsClass = 'cmpl-block-settings ' %}
|
|
9
|
+
{% endif %}
|
|
10
|
+
{% set classString = blockPaddingClass ~ blockSettingsClass ~ animationClass %}
|
|
11
|
+
|
|
12
|
+
{{classString}}
|