PluginProbe
Elementor Website Builder – more than just a page builder / 3.23.0-dev3
Elementor Website Builder – more than just a page builder v3.23.0-dev3
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 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | modules/announcements/module.php +34 -2 4.2.03.23.0-dev3 View file →
@@ -64,9 +64,9 @@
64 64 $additional_settings = [];
65 65
66 66 foreach ( $active_announcements as $announcement ) {
67 67 $additional_settings[] = $announcement->get_prepared_data();
68 - // @TODO - replace with ajax request from the front after actually triggered
68 + //@TODO - replace with ajax request from the front after actually triggered
69 69 $announcement->after_triggered();
70 70 }
71 71
72 72 return [
@@ -91,9 +91,41 @@
91 91 *
92 92 * @return array[]
93 93 */
94 94 private function get_raw_announcements(): array {
95 - $raw_announcements = [];
95 + $raw_announcements = [
96 + [
97 + 'title' => 'Unlock the Power of Elementor AI ',
98 + 'description' => '<p>Design a website true to your brand with natively integrated AI tools.</p>
99 + <ul>
100 + <li>Generate containers using text or any website you reference from the web and get a wireframe layout to start with. Use the container variations capability to bring the wireframe to life with design and content.</li>
101 + <li>Let AI write or edit your text in the context of your brand, tone of voice and optimal length. Also generate custom code or CSS that seamlessly integrates into your website.</li>
102 + <li>Create one-of-a-kind images, add, or erase content from existing images or expand them beyond their original size and aspect ratio.</li>
103 + <li>Use Elementor’s AI History Panel to efficiently access previously-generated text, code or image prompts, and ensure consistency across your site.</li>
104 + </ul>',
105 + 'media' => [
106 + 'type' => 'image',
107 + 'src' => ELEMENTOR_ASSETS_URL . 'images/announcement.png?' . ELEMENTOR_VERSION,
108 + ],
109 + 'cta' => [
110 + [
111 + 'label' => 'Continue',
112 + 'variant' => 'primary',
113 + 'target' => '_blank',
114 + ],
115 + [
116 + 'label' => 'Learn More',
117 + 'target' => '_blank',
118 + 'url' => 'https://go.elementor.com/whats-new-popup-learn-elementor-ai/',
119 + ],
120 + ],
121 + 'triggers' => [
122 + [
123 + 'action' => 'aiStared',
124 + ],
125 + ],
126 + ],
127 + ];
96 128
97 129 // DO NOT USE THIS FILTER
98 130 return apply_filters( 'elementor/announcements/raw_announcements', $raw_announcements );
99 131 }