@total_onion/onion-library 1.0.168 → 1.0.170
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.
|
@@ -20,9 +20,14 @@
|
|
|
20
20
|
{% set animationDuration = fields.animation_duration|ru %}
|
|
21
21
|
|
|
22
22
|
{% if blockInteractionsEnabled %}
|
|
23
|
-
|
|
24
23
|
{% for item in fields.modal_popup_triggers %}
|
|
25
|
-
|
|
24
|
+
{% if item.cta_style|ru matches '/^\\d+$/' %}
|
|
25
|
+
{% set ctaData = attribute(cta_styles['theme_cta_styles'], item.cta_style|ru - 1) %}
|
|
26
|
+
{% set enableCtaAnimation = ctaData.cta_settings.enable_cta_animation %}
|
|
27
|
+
{% set enableCtaIcon = ctaData.cta_settings.include_cta_icon %}
|
|
28
|
+
{% set ctaAnimationStyle = ctaData.cta_settings.cta_animation_style %}
|
|
29
|
+
{% endif %}
|
|
30
|
+
<button class="cmpl-cta-style-{{item.cta_style}} cmpl-cta-animation-style-{{enableCtaAnimation ? ctaAnimationStyle : ''}}" data-modalpopuptrigger="{{ item.modal_popup_trigger_id }}">{{ item.modal_popup_trigger_text }}</button>
|
|
26
31
|
{% endfor %}
|
|
27
32
|
|
|
28
33
|
{% if enableInteractionsButton %}
|
|
@@ -119,6 +119,40 @@
|
|
|
119
119
|
"prepend": "",
|
|
120
120
|
"append": "",
|
|
121
121
|
"parent_repeater": "field_6898aa7bb4898"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"key": "field_689b644175f6c",
|
|
125
|
+
"label": "Cta style",
|
|
126
|
+
"name": "cta_style",
|
|
127
|
+
"aria-label": "",
|
|
128
|
+
"type": "select",
|
|
129
|
+
"instructions": "",
|
|
130
|
+
"required": 0,
|
|
131
|
+
"conditional_logic": 0,
|
|
132
|
+
"wrapper": {
|
|
133
|
+
"width": "",
|
|
134
|
+
"class": "",
|
|
135
|
+
"id": ""
|
|
136
|
+
},
|
|
137
|
+
"wpml_cf_preferences": 2,
|
|
138
|
+
"choices": {
|
|
139
|
+
"1": "White text",
|
|
140
|
+
"2": "test"
|
|
141
|
+
},
|
|
142
|
+
"default_value": false,
|
|
143
|
+
"return_format": "value",
|
|
144
|
+
"multiple": 0,
|
|
145
|
+
"max": "",
|
|
146
|
+
"allow_custom": 0,
|
|
147
|
+
"search_placeholder": "",
|
|
148
|
+
"prepend": "",
|
|
149
|
+
"append": "",
|
|
150
|
+
"allow_null": 0,
|
|
151
|
+
"ui": 1,
|
|
152
|
+
"ajax": 0,
|
|
153
|
+
"placeholder": "",
|
|
154
|
+
"min": "",
|
|
155
|
+
"parent_repeater": "field_6898aa7bb4898"
|
|
122
156
|
}
|
|
123
157
|
]
|
|
124
158
|
},
|
|
@@ -564,5 +598,5 @@
|
|
|
564
598
|
"acfe_display_title": "",
|
|
565
599
|
"acfe_meta": "",
|
|
566
600
|
"acfe_note": "",
|
|
567
|
-
"modified":
|
|
601
|
+
"modified": 1755014382
|
|
568
602
|
}
|