@total_onion/onion-library 1.0.102 → 1.0.104
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.
|
@@ -41,21 +41,6 @@
|
|
|
41
41
|
{% if fields.enable_title %}
|
|
42
42
|
{{ include('blocks/standard-content-v3.twig', { fields: fields.form_title, options, block, is_preview, current_post, nav_menus, site, market_settings, market_slug, cta_styles, languages, imageSizes}, with_context = false, ignore_missing = true) }}
|
|
43
43
|
{% endif %}
|
|
44
|
-
{% if fields.title %}
|
|
45
|
-
<h2 class="{{ blockClassName }}__title">{{ fields.title }}</h2>
|
|
46
|
-
{% endif %}
|
|
47
|
-
{% if fields.description %}
|
|
48
|
-
<p class="{{ blockClassName }}__description">{{ fields.description }}</p>
|
|
49
|
-
{% endif %}
|
|
50
|
-
{% if fields.cta_text and fields.cta_type == 'text' %}
|
|
51
|
-
<p class="{{ blockClassName }}__cta-text">{{ fields.cta_text }}</p>
|
|
52
|
-
{% endif %}
|
|
53
|
-
{% if fields.cta_type == 'icon' and iconImage %}
|
|
54
|
-
<div class="{{ blockClassName }}__cta-icon">
|
|
55
|
-
{{ ctaContent|raw }}
|
|
56
|
-
</div>
|
|
57
|
-
{% endif %}
|
|
58
|
-
|
|
59
44
|
<!-- inline-form -->
|
|
60
45
|
{{function('do_shortcode', '[cdbform id=' ~ fields.form ~ ']')}}
|
|
61
46
|
<!-- end-inline-form -->
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{% set columnGapDesktop = '--column-gap-mult-desktop: ' ~ fields.grid_layout.column_gap_desktop ~ ';' %}
|
|
2
|
+
{% set columnGapPortrait = '--column-gap-mult-portrait: ' ~ fields.grid_layout.column_gap_portrait ~ ';' %}
|
|
3
|
+
{% set columnGapMobile = '--column-gap-mult-mobile: ' ~ fields.grid_layout.column_gap_mobile ~ ';' %}
|
|
4
|
+
{% set rowGapDesktop = '--row-gap-mult-desktop: ' ~ fields.grid_layout.row_gap_desktop ~ ';' %}
|
|
5
|
+
{% set rowGapPortrait = '--row-gap-mult-portrait: ' ~ fields.grid_layout.row_gap_portrait ~ ';' %}
|
|
6
|
+
{% set rowGapMobile = '--row-gap-mult-mobile: ' ~ fields.grid_layout.row_gap_mobile ~ ';' %}
|
|
7
|
+
|
|
8
|
+
{% set gridGapMults = columnGapDesktop ~ columnGapPortrait ~ columnGapMobile ~ rowGapDesktop ~ rowGapPortrait ~ rowGapMobile %}
|
|
9
|
+
|
|
10
|
+
{{ gridGapMults}}
|