Changeset 3364413
- Timestamp:
- 09/19/2025 08:52:19 AM (3 months ago)
- Location:
- falang-for-elementor-lite
- Files:
-
- 2 added
- 4 edited
- 1 copied
-
tags/1.31 (copied) (copied from falang-for-elementor-lite/trunk)
-
tags/1.31/README.txt (modified) (3 diffs)
-
tags/1.31/admin/admin-notices.php (modified) (7 diffs)
-
tags/1.31/pro/elementor-premium.json (added)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/admin-notices.php (modified) (7 diffs)
-
trunk/pro/elementor-premium.json (added)
Legend:
- Unmodified
- Added
- Removed
-
falang-for-elementor-lite/tags/1.31/README.txt
r3284227 r3364413 6 6 Tested up to: 6.8 7 7 Requires PHP: 5.6 8 Stable tag: 1.3 08 Stable tag: 1.31 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 39 39 * Nexgen 40 40 * OceanWP 41 * Premium Addon's 41 42 * Xtemos 42 43 * Ultimate Addon's … … 81 82 82 83 == Changelog == 84 85 = 1.31 (2025/09/19) 86 * update message when Elementor Element caching enabled (no more experimental) 87 * add list of premium addons supported (unfold) 88 * fix message display for notices 83 89 84 90 = 1.30 (2025/04/29) -
falang-for-elementor-lite/tags/1.31/admin/admin-notices.php
r3284227 r3364413 97 97 * 98 98 * @since 1.3 99 * @update 1.3.31 add message if cache enabled (no more in experimental system) 99 100 */ 100 101 public function admin_notices() … … 109 110 110 111 //add message if experirement cache is enabled 111 if (Plugin::$instance->experiments->is_feature_active('e_element_cache')) { 112 //keep code for 1 or 2 version 113 // if (Plugin::$instance->experiments->is_feature_active('e_element_cache')) { 114 // if ($this->notice_element_cache_enabled()) { 115 // return; 116 // } 117 // } 118 119 //add message if experirement cache is enabled (no more in experimental) 120 $is_element_cache_active = 'disable' !== get_option( 'elementor_element_cache_ttl', '' ); 121 if ($is_element_cache_active){ 112 122 if ($this->notice_element_cache_enabled()) { 113 123 return; … … 273 283 } 274 284 285 /* 286 * Print the admin notice 287 * @update 1.31 default class error to be displayed bellow the Heading 288 * 289 * */ 275 290 public function print_admin_notice(array $options) 276 291 { … … 279 294 'title' => '', 280 295 'description' => '', 281 'classes' => [' notice', 'falang-notice'], // We include WP's default notice class so it will be properly handled by WP's js handler296 'classes' => ['error', 'falang-notice'], // We include WP's default notice class so it will be properly handled by WP's js handler 282 297 'type' => '', 283 298 'dismissible' => true, … … 317 332 } 318 333 ?> 319 <div <?php echo self::render_html_attributes($wrapper_attributes); ?>> 320 <?php echo $dismiss_button; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> 321 <div class="falang-notice__aside"> 322 <?php echo $icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> 334 <div <?php echo self::render_html_attributes($wrapper_attributes); ?> > 335 <?php echo $dismiss_button; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> 336 <div class="falang-notice__aside"> 337 <?php echo $icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> 338 </div> 339 <div class="falang-notice__content"> 340 <?php if ($options['title']) { ?> 341 <h3><?php echo wp_kses_post($options['title']); ?></h3> 342 <?php } ?> 343 344 <?php if ($options['description']) { ?> 345 <p><?php echo wp_kses_post($options['description']); ?></p> 346 <?php } ?> 347 348 <?php if (!empty($options['button']['text']) || !empty($options['button_secondary']['text'])) { ?> 349 <div class="falang-notice__actions"> 350 <?php 351 foreach ([$options['button'], $options['button_secondary']] as $index => $button_settings) { 352 if (empty($button_settings['variant']) && $index) { 353 $button_settings['variant'] = 'outline'; 354 } 355 356 if (empty($button_settings['text'])) { 357 continue; 358 } 359 360 $button = new Button($button_settings); 361 $button->print_button(); 362 } ?> 363 </div> 364 <?php } ?> 365 </div> 323 366 </div> 324 <div class="falang-notice__content">325 <?php if ($options['title']) { ?>326 <h3><?php echo wp_kses_post($options['title']); ?></h3>327 <?php } ?>328 329 <?php if ($options['description']) { ?>330 <p><?php echo wp_kses_post($options['description']); ?></p>331 <?php } ?>332 333 <?php if (!empty($options['button']['text']) || !empty($options['button_secondary']['text'])) { ?>334 <div class="falang-notice__actions">335 <?php336 foreach ([$options['button'], $options['button_secondary']] as $index => $button_settings) {337 if (empty($button_settings['variant']) && $index) {338 $button_settings['variant'] = 'outline';339 }340 341 if (empty($button_settings['text'])) {342 continue;343 }344 345 $button = new Button($button_settings);346 $button->print_button();347 } ?>348 </div>349 <?php } ?>350 </div>351 </div>352 367 <?php 353 368 } … … 491 506 * 492 507 * @since 1.3 508 * @update 1.3.31 update message no more in experimental 509 * the class need to start with error to be display below the heading 493 510 */ 494 511 private function notice_element_cache_enabled() … … 504 521 $options = [ 505 522 'title' => esc_html__('Elementor: Experimental Cache', 'falang-for-elementor-lite'), 506 'description' => __('Elementor experimental caching is enabled, you have to disabled it to make Falang for Elementor working on Front-end. Elementor / Settings / Features', 'falang-for-elementor-lite'),523 'description' => __('Elementor caching is enabled, you have to disabled it to make Falang for Elementor working on Front-end. Elementor / Settings / Performance', 'falang-for-elementor-lite'), 507 524 'id' => $notice_id, 508 'classes' => ['alert', 'falang-notice'],509 525 'button' => [ 510 526 'icon_classes' => 'dashicons dashicons-update', -
falang-for-elementor-lite/trunk/README.txt
r3284227 r3364413 6 6 Tested up to: 6.8 7 7 Requires PHP: 5.6 8 Stable tag: 1.3 08 Stable tag: 1.31 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 39 39 * Nexgen 40 40 * OceanWP 41 * Premium Addon's 41 42 * Xtemos 42 43 * Ultimate Addon's … … 81 82 82 83 == Changelog == 84 85 = 1.31 (2025/09/19) 86 * update message when Elementor Element caching enabled (no more experimental) 87 * add list of premium addons supported (unfold) 88 * fix message display for notices 83 89 84 90 = 1.30 (2025/04/29) -
falang-for-elementor-lite/trunk/admin/admin-notices.php
r3284227 r3364413 97 97 * 98 98 * @since 1.3 99 * @update 1.3.31 add message if cache enabled (no more in experimental system) 99 100 */ 100 101 public function admin_notices() … … 109 110 110 111 //add message if experirement cache is enabled 111 if (Plugin::$instance->experiments->is_feature_active('e_element_cache')) { 112 //keep code for 1 or 2 version 113 // if (Plugin::$instance->experiments->is_feature_active('e_element_cache')) { 114 // if ($this->notice_element_cache_enabled()) { 115 // return; 116 // } 117 // } 118 119 //add message if experirement cache is enabled (no more in experimental) 120 $is_element_cache_active = 'disable' !== get_option( 'elementor_element_cache_ttl', '' ); 121 if ($is_element_cache_active){ 112 122 if ($this->notice_element_cache_enabled()) { 113 123 return; … … 273 283 } 274 284 285 /* 286 * Print the admin notice 287 * @update 1.31 default class error to be displayed bellow the Heading 288 * 289 * */ 275 290 public function print_admin_notice(array $options) 276 291 { … … 279 294 'title' => '', 280 295 'description' => '', 281 'classes' => [' notice', 'falang-notice'], // We include WP's default notice class so it will be properly handled by WP's js handler296 'classes' => ['error', 'falang-notice'], // We include WP's default notice class so it will be properly handled by WP's js handler 282 297 'type' => '', 283 298 'dismissible' => true, … … 317 332 } 318 333 ?> 319 <div <?php echo self::render_html_attributes($wrapper_attributes); ?>> 320 <?php echo $dismiss_button; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> 321 <div class="falang-notice__aside"> 322 <?php echo $icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> 334 <div <?php echo self::render_html_attributes($wrapper_attributes); ?> > 335 <?php echo $dismiss_button; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> 336 <div class="falang-notice__aside"> 337 <?php echo $icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> 338 </div> 339 <div class="falang-notice__content"> 340 <?php if ($options['title']) { ?> 341 <h3><?php echo wp_kses_post($options['title']); ?></h3> 342 <?php } ?> 343 344 <?php if ($options['description']) { ?> 345 <p><?php echo wp_kses_post($options['description']); ?></p> 346 <?php } ?> 347 348 <?php if (!empty($options['button']['text']) || !empty($options['button_secondary']['text'])) { ?> 349 <div class="falang-notice__actions"> 350 <?php 351 foreach ([$options['button'], $options['button_secondary']] as $index => $button_settings) { 352 if (empty($button_settings['variant']) && $index) { 353 $button_settings['variant'] = 'outline'; 354 } 355 356 if (empty($button_settings['text'])) { 357 continue; 358 } 359 360 $button = new Button($button_settings); 361 $button->print_button(); 362 } ?> 363 </div> 364 <?php } ?> 365 </div> 323 366 </div> 324 <div class="falang-notice__content">325 <?php if ($options['title']) { ?>326 <h3><?php echo wp_kses_post($options['title']); ?></h3>327 <?php } ?>328 329 <?php if ($options['description']) { ?>330 <p><?php echo wp_kses_post($options['description']); ?></p>331 <?php } ?>332 333 <?php if (!empty($options['button']['text']) || !empty($options['button_secondary']['text'])) { ?>334 <div class="falang-notice__actions">335 <?php336 foreach ([$options['button'], $options['button_secondary']] as $index => $button_settings) {337 if (empty($button_settings['variant']) && $index) {338 $button_settings['variant'] = 'outline';339 }340 341 if (empty($button_settings['text'])) {342 continue;343 }344 345 $button = new Button($button_settings);346 $button->print_button();347 } ?>348 </div>349 <?php } ?>350 </div>351 </div>352 367 <?php 353 368 } … … 491 506 * 492 507 * @since 1.3 508 * @update 1.3.31 update message no more in experimental 509 * the class need to start with error to be display below the heading 493 510 */ 494 511 private function notice_element_cache_enabled() … … 504 521 $options = [ 505 522 'title' => esc_html__('Elementor: Experimental Cache', 'falang-for-elementor-lite'), 506 'description' => __('Elementor experimental caching is enabled, you have to disabled it to make Falang for Elementor working on Front-end. Elementor / Settings / Features', 'falang-for-elementor-lite'),523 'description' => __('Elementor caching is enabled, you have to disabled it to make Falang for Elementor working on Front-end. Elementor / Settings / Performance', 'falang-for-elementor-lite'), 507 524 'id' => $notice_id, 508 'classes' => ['alert', 'falang-notice'],509 525 'button' => [ 510 526 'icon_classes' => 'dashicons dashicons-update',
Note: See TracChangeset
for help on using the changeset viewer.