PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.8
Elementor Website Builder – more than just a page builder v4.0.8
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 +4 -12 4.3.0 → 4.0.8 View file →
@@ -2,8 +2,9 @@
2 2
3 3 namespace Elementor\Modules\Promotions\Widgets;
4 4
5 5 use Elementor\Plugin;
6 +use Elementor\Utils;
6 7
7 8 if ( ! defined( 'ABSPATH' ) ) {
8 9 exit;
9 10 }
@@ -22,19 +23,11 @@
22 23 if ( ! current_user_can( 'manage_options' ) || ! $this->is_active() ) {
23 24 return $settings;
24 25 }
25 26
26 - if ( ! isset( $settings['atomicWidgetPromotions'] ) ) {
27 - $settings['atomicWidgetPromotions'] = [];
28 - }
27 + $settings['atomicFormPromotionWidgets'] = $this->get_widgets();
28 + $settings['atomicFormPromotion'] = $this->get_promotion_content();
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 -
37 30 return $settings;
38 31 }
39 32
40 33 private function get_widgets(): array {
@@ -40,9 +33,9 @@
40 33 private function get_widgets(): array {
41 34 return [
42 35 [
43 36 'name' => 'e-form',
44 - 'title' => __( 'Atomic Form', 'elementor' ),
37 + 'title' => __( 'Form', 'elementor' ),
45 38 'icon' => 'eicon-atomic-form',
46 39 'categories' => '["atomic-form"]',
47 40 ],
48 41 [
@@ -82,9 +75,8 @@
82 75 return [
83 76 'title' => __( 'Atomic form', 'elementor' ),
84 77 'content' => __( 'Design fully customized forms to capture leads without compromising on style.', 'elementor' ),
85 78 'ctaText' => __( 'Upgrade now', 'elementor' ),
86 - 'animation' => 'atomic-form-animation',
87 79 'widgetCtaUrl' => 'https://go.elementor.com/go-pro-atomic-form-modal/',
88 80 'sectionCtaUrl' => 'https://go.elementor.com/go-pro-atomic-form-section/',
89 81 ];
90 82 }