PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.1
Elementor Website Builder – more than just a page builder v4.3.1
4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 All 455 releases
← All changes | modules/promotions/widgets/atomic-form-widget-promotion.php +12 -4 4.1.0-dev3 → 4.3.1 View file →
@@ -2,9 +2,8 @@
2 2
3 3 namespace Elementor\Modules\Promotions\Widgets;
4 4
5 5 use Elementor\Plugin;
6 -use Elementor\Utils;
7 6
8 7 if ( ! defined( 'ABSPATH' ) ) {
9 8 exit;
10 9 }
@@ -23,11 +22,19 @@
23 22 if ( ! current_user_can( 'manage_options' ) || ! $this->is_active() ) {
24 23 return $settings;
25 24 }
26 25
27 - $settings['atomicFormPromotionWidgets'] = $this->get_widgets();
28 - $settings['atomicFormPromotion'] = $this->get_promotion_content();
26 + if ( ! isset( $settings['atomicWidgetPromotions'] ) ) {
27 + $settings['atomicWidgetPromotions'] = [];
28 + }
29 29
30 + $settings['atomicWidgetPromotions'][] = [
31 + 'type' => 'atomic-form',
32 + 'cardType' => 'atomic',
33 + 'widgets' => $this->get_widgets(),
34 + 'content' => $this->get_promotion_content(),
35 + ];
36 +
30 37 return $settings;
31 38 }
32 39
33 40 private function get_widgets(): array {
@@ -33,9 +40,9 @@
33 40 private function get_widgets(): array {
34 41 return [
35 42 [
36 43 'name' => 'e-form',
37 - 'title' => __( 'Form', 'elementor' ),
44 + 'title' => __( 'Atomic Form', 'elementor' ),
38 45 'icon' => 'eicon-atomic-form',
39 46 'categories' => '["atomic-form"]',
40 47 ],
41 48 [
@@ -75,8 +82,9 @@
75 82 return [
76 83 'title' => __( 'Atomic form', 'elementor' ),
77 84 'content' => __( 'Design fully customized forms to capture leads without compromising on style.', 'elementor' ),
78 85 'ctaText' => __( 'Upgrade now', 'elementor' ),
86 + 'animation' => 'atomic-form-animation',
79 87 'widgetCtaUrl' => 'https://go.elementor.com/go-pro-atomic-form-modal/',
80 88 'sectionCtaUrl' => 'https://go.elementor.com/go-pro-atomic-form-section/',
81 89 ];
82 90 }