← All changes
|
modules/promotions/widgets/collection-loop-widget-promotion.php
+6
-2
4.2.0-beta1
→
4.3.1
View file →
| @@ -9,8 +9,10 @@ | ||
| 9 | 9 | } |
| 10 | 10 | |
| 11 | 11 | class Collection_Loop_Widget_Promotion { |
| 12 | 12 | |
| 13 | + private const LOOP_PROMOTION_IMAGE_URL = 'https://assets.elementor.com/packages/v1/images/Loop_grid_promotion.png'; | |
| 14 | + | |
| 13 | 15 | public function register(): void { |
| 14 | 16 | add_filter( 'elementor/editor/localize_settings', [ $this, 'add_promotion_data' ] ); |
| 15 | 17 | } |
| 16 | 18 | |
| @@ -28,8 +30,9 @@ | ||
| 28 | 30 | } |
| 29 | 31 | |
| 30 | 32 | $settings['atomicWidgetPromotions'][] = [ |
| 31 | 33 | 'type' => 'collection-loop', |
| 34 | + 'cardType' => 'atomic', | |
| 32 | 35 | 'widgets' => $this->get_widgets(), |
| 33 | 36 | 'content' => $this->get_promotion_content(), |
| 34 | 37 | ]; |
| 35 | 38 | |
| @@ -40,9 +43,9 @@ | ||
| 40 | 43 | return [ |
| 41 | 44 | [ |
| 42 | 45 | 'name' => 'e-collection-loop', |
| 43 | 46 | 'title' => __( 'Loop', 'elementor' ), |
| 44 | - 'icon' => 'eicon-loop-builder', | |
| 47 | + 'icon' => 'eicon-loop-widget', | |
| 45 | 48 | 'categories' => '["v4-elements"]', |
| 46 | 49 | ], |
| 47 | 50 | ]; |
| 48 | 51 | } |
| @@ -49,10 +52,11 @@ | ||
| 49 | 52 | |
| 50 | 53 | private function get_promotion_content(): array { |
| 51 | 54 | return [ |
| 52 | 55 | 'title' => __( 'Loop', 'elementor' ), |
| 53 | - 'content' => __( 'Display dynamic content in a repeating layout with full query control.', 'elementor' ), | |
| 56 | + 'content' => __( 'Upgrade to connect custom layouts directly to your site database, seamlessly rendering dynamic content queries that engage your site visitors.', 'elementor' ), | |
| 54 | 57 | 'ctaText' => __( 'Upgrade now', 'elementor' ), |
| 58 | + 'image' => self::LOOP_PROMOTION_IMAGE_URL, | |
| 55 | 59 | 'widgetCtaUrl' => 'https://go.elementor.com/go-pro-loop-modal/', |
| 56 | 60 | 'sectionCtaUrl' => 'https://go.elementor.com/go-pro-loop-section/', |
| 57 | 61 | ]; |
| 58 | 62 | } |