Plugin Directory

Changeset 3364413


Ignore:
Timestamp:
09/19/2025 08:52:19 AM (3 months ago)
Author:
sbouey
Message:

Update to version 1.31

Location:
falang-for-elementor-lite
Files:
2 added
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • falang-for-elementor-lite/tags/1.31/README.txt

    r3284227 r3364413  
    66Tested up to: 6.8
    77Requires PHP: 5.6
    8 Stable tag: 1.30
     8Stable tag: 1.31
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3939* Nexgen
    4040* OceanWP
     41* Premium Addon's
    4142* Xtemos
    4243* Ultimate Addon's
     
    8182
    8283== 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
    8389
    8490= 1.30 (2025/04/29)
  • falang-for-elementor-lite/tags/1.31/admin/admin-notices.php

    r3284227 r3364413  
    9797     *
    9898     * @since 1.3
     99     * @update 1.3.31 add message if cache enabled (no more in experimental system)
    99100     */
    100101    public function admin_notices()
     
    109110
    110111            //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){
    112122                if ($this->notice_element_cache_enabled()) {
    113123                    return;
     
    273283    }
    274284
     285    /*
     286     * Print the admin notice
     287     * @update 1.31 default class error to be displayed bellow the Heading
     288     *
     289     * */
    275290    public function print_admin_notice(array $options)
    276291    {
     
    279294            'title' => '',
    280295            'description' => '',
    281             'classes' => ['notice', 'falang-notice'], // We include WP's default notice class so it will be properly handled by WP's js handler
     296            'classes' => ['error', 'falang-notice'], // We include WP's default notice class so it will be properly handled by WP's js handler
    282297            'type' => '',
    283298            'dismissible' => true,
     
    317332        }
    318333        ?>
    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>
    323366            </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                         <?php
    336                         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>
    352367        <?php
    353368    }
     
    491506     *
    492507     * @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
    493510     */
    494511    private function notice_element_cache_enabled()
     
    504521        $options = [
    505522            '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'),
    507524            'id' => $notice_id,
    508             'classes' => ['alert', 'falang-notice'],
    509525            'button' => [
    510526                'icon_classes' => 'dashicons dashicons-update',
  • falang-for-elementor-lite/trunk/README.txt

    r3284227 r3364413  
    66Tested up to: 6.8
    77Requires PHP: 5.6
    8 Stable tag: 1.30
     8Stable tag: 1.31
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3939* Nexgen
    4040* OceanWP
     41* Premium Addon's
    4142* Xtemos
    4243* Ultimate Addon's
     
    8182
    8283== 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
    8389
    8490= 1.30 (2025/04/29)
  • falang-for-elementor-lite/trunk/admin/admin-notices.php

    r3284227 r3364413  
    9797     *
    9898     * @since 1.3
     99     * @update 1.3.31 add message if cache enabled (no more in experimental system)
    99100     */
    100101    public function admin_notices()
     
    109110
    110111            //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){
    112122                if ($this->notice_element_cache_enabled()) {
    113123                    return;
     
    273283    }
    274284
     285    /*
     286     * Print the admin notice
     287     * @update 1.31 default class error to be displayed bellow the Heading
     288     *
     289     * */
    275290    public function print_admin_notice(array $options)
    276291    {
     
    279294            'title' => '',
    280295            'description' => '',
    281             'classes' => ['notice', 'falang-notice'], // We include WP's default notice class so it will be properly handled by WP's js handler
     296            'classes' => ['error', 'falang-notice'], // We include WP's default notice class so it will be properly handled by WP's js handler
    282297            'type' => '',
    283298            'dismissible' => true,
     
    317332        }
    318333        ?>
    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>
    323366            </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                         <?php
    336                         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>
    352367        <?php
    353368    }
     
    491506     *
    492507     * @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
    493510     */
    494511    private function notice_element_cache_enabled()
     
    504521        $options = [
    505522            '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'),
    507524            'id' => $notice_id,
    508             'classes' => ['alert', 'falang-notice'],
    509525            'button' => [
    510526                'icon_classes' => 'dashicons dashicons-update',
Note: See TracChangeset for help on using the changeset viewer.