Plugin Directory

Changeset 3176341


Ignore:
Timestamp:
10/27/2024 11:46:10 AM (17 months ago)
Author:
moveaddons
Message:

Update to version 1.3.6 from GitHub

Location:
move-addons
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • move-addons/tags/1.3.6/includes/widgets/accordion/widget.php

    r3048903 r3176341  
    927927                                        if ( $accordion['content_source'] == 'custom' && !empty( $accordion['content'] ) ) {
    928928                                            echo wp_kses_post( $accordion['content'] );
    929                                         } elseif ( $accordion['content_source'] == "elementor" && !empty( $accordion['template_id'] )) {
    930                                             echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $accordion['template_id'] );
     929                                        } elseif ( $accordion['content_source'] == "elementor" && !empty( $accordion['template_id'] ) ) {
     930                                            if(!in_array(get_post_status($accordion['template_id']), ['pending', 'private', 'draft'])) {
     931                                                echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $accordion['template_id'] );
     932                                            } else {
     933                                                echo '<p>'.esc_html__('The post is not published yet. Make sure to publish it to view the content.', 'moveaddons').'</p>';
     934                                            }
    931935                                        }
    932936                                    ?>
  • move-addons/tags/1.3.6/includes/widgets/advanced-tab/widget.php

    r3048903 r3176341  
    609609                }else{
    610610                    if( !empty( $tab['template_id'] ) ){
    611                         echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $tab['template_id'] );
     611                        if(!in_array(get_post_status($tab['template_id']), ['pending', 'private', 'draft'])) {
     612                            echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $tab['template_id'] );
     613                        } else {
     614                            echo '<p>'.esc_html__('The post is not published yet. Make sure to publish it to view the content.', 'moveaddons').'</p>';
     615                        }
    612616                    }
    613617                }
  • move-addons/tags/1.3.6/includes/widgets/faq/widget.php

    r3048903 r3176341  
    933933                                            echo wp_kses_post( $accordion['content'] );
    934934                                        } elseif ( $accordion['content_source'] == "elementor" && !empty( $accordion['template_id'] )) {
    935                                             echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $accordion['template_id'] );
     935                                            if(!in_array(get_post_status($accordion['template_id']), ['pending', 'private', 'draft'])) {
     936                                                echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $accordion['template_id'] );
     937                                            } else {
     938                                                echo '<p>'.esc_html__('The post is not published yet. Make sure to publish it to view the content.', 'moveaddons').'</p>';
     939                                            }
    936940                                        }
    937941                                    ?>
  • move-addons/tags/1.3.6/includes/widgets/off-canvas/widget.php

    r3048903 r3176341  
    445445                        } else{
    446446                            if( !empty( $settings['template_id'] ) ){
    447                                 echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $settings['template_id'] );
     447                                if(!in_array(get_post_status($settings['template_id']), ['pending', 'private', 'draft'])) {
     448                                    echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $settings['template_id'] );
     449                                } else {
     450                                    echo '<p>'.esc_html__('The post is not published yet. Make sure to publish it to view the content.', 'moveaddons').'</p>';
     451                                }
    448452                            }
    449453                        }
  • move-addons/tags/1.3.6/includes/widgets/remote-template/widget.php

    r2591400 r3176341  
    5656                <?php
    5757                    if( !empty( $settings['template_id'] ) ){
    58                         echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $settings['template_id'] );
     58                        if(!in_array(get_post_status($settings['template_id']), ['pending', 'private', 'draft'])) {
     59                            echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $settings['template_id'] );
     60                        } else {
     61                            echo '<p>'.esc_html__('The post is not published yet. Make sure to publish it to view the content.', 'moveaddons').'</p>';
     62                        }
    5963                    }else{
    6064                        echo '<p>'.esc_html__( 'Please Select template.', 'moveaddons' ).'</p>';
  • move-addons/tags/1.3.6/move-addons.php

    r3158200 r3176341  
    66 * Author:      moveaddons
    77 * Author URI:  https://moveaddons.com
    8  * Version:     1.3.5
     8 * Version:     1.3.6
    99 * License:     GPL2
    1010 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
     
    1717if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
    1818
    19 define( 'MOVE_ADDONS_VERSION', '1.3.5' );
     19define( 'MOVE_ADDONS_VERSION', '1.3.6' );
    2020define( 'MOVE_ADDONS_FILE', __FILE__ );
    2121define( 'MOVE_ADDONS_PL_PATH', plugin_dir_path( MOVE_ADDONS_FILE ) );
  • move-addons/trunk/includes/widgets/accordion/widget.php

    r3048903 r3176341  
    927927                                        if ( $accordion['content_source'] == 'custom' && !empty( $accordion['content'] ) ) {
    928928                                            echo wp_kses_post( $accordion['content'] );
    929                                         } elseif ( $accordion['content_source'] == "elementor" && !empty( $accordion['template_id'] )) {
    930                                             echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $accordion['template_id'] );
     929                                        } elseif ( $accordion['content_source'] == "elementor" && !empty( $accordion['template_id'] ) ) {
     930                                            if(!in_array(get_post_status($accordion['template_id']), ['pending', 'private', 'draft'])) {
     931                                                echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $accordion['template_id'] );
     932                                            } else {
     933                                                echo '<p>'.esc_html__('The post is not published yet. Make sure to publish it to view the content.', 'moveaddons').'</p>';
     934                                            }
    931935                                        }
    932936                                    ?>
  • move-addons/trunk/includes/widgets/advanced-tab/widget.php

    r3048903 r3176341  
    609609                }else{
    610610                    if( !empty( $tab['template_id'] ) ){
    611                         echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $tab['template_id'] );
     611                        if(!in_array(get_post_status($tab['template_id']), ['pending', 'private', 'draft'])) {
     612                            echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $tab['template_id'] );
     613                        } else {
     614                            echo '<p>'.esc_html__('The post is not published yet. Make sure to publish it to view the content.', 'moveaddons').'</p>';
     615                        }
    612616                    }
    613617                }
  • move-addons/trunk/includes/widgets/faq/widget.php

    r3048903 r3176341  
    933933                                            echo wp_kses_post( $accordion['content'] );
    934934                                        } elseif ( $accordion['content_source'] == "elementor" && !empty( $accordion['template_id'] )) {
    935                                             echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $accordion['template_id'] );
     935                                            if(!in_array(get_post_status($accordion['template_id']), ['pending', 'private', 'draft'])) {
     936                                                echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $accordion['template_id'] );
     937                                            } else {
     938                                                echo '<p>'.esc_html__('The post is not published yet. Make sure to publish it to view the content.', 'moveaddons').'</p>';
     939                                            }
    936940                                        }
    937941                                    ?>
  • move-addons/trunk/includes/widgets/off-canvas/widget.php

    r3048903 r3176341  
    445445                        } else{
    446446                            if( !empty( $settings['template_id'] ) ){
    447                                 echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $settings['template_id'] );
     447                                if(!in_array(get_post_status($settings['template_id']), ['pending', 'private', 'draft'])) {
     448                                    echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $settings['template_id'] );
     449                                } else {
     450                                    echo '<p>'.esc_html__('The post is not published yet. Make sure to publish it to view the content.', 'moveaddons').'</p>';
     451                                }
    448452                            }
    449453                        }
  • move-addons/trunk/includes/widgets/remote-template/widget.php

    r2591400 r3176341  
    5656                <?php
    5757                    if( !empty( $settings['template_id'] ) ){
    58                         echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $settings['template_id'] );
     58                        if(!in_array(get_post_status($settings['template_id']), ['pending', 'private', 'draft'])) {
     59                            echo move_addons_get_elementor()->frontend->get_builder_content_for_display( $settings['template_id'] );
     60                        } else {
     61                            echo '<p>'.esc_html__('The post is not published yet. Make sure to publish it to view the content.', 'moveaddons').'</p>';
     62                        }
    5963                    }else{
    6064                        echo '<p>'.esc_html__( 'Please Select template.', 'moveaddons' ).'</p>';
  • move-addons/trunk/move-addons.php

    r3158200 r3176341  
    66 * Author:      moveaddons
    77 * Author URI:  https://moveaddons.com
    8  * Version:     1.3.5
     8 * Version:     1.3.6
    99 * License:     GPL2
    1010 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
     
    1717if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
    1818
    19 define( 'MOVE_ADDONS_VERSION', '1.3.5' );
     19define( 'MOVE_ADDONS_VERSION', '1.3.6' );
    2020define( 'MOVE_ADDONS_FILE', __FILE__ );
    2121define( 'MOVE_ADDONS_PL_PATH', plugin_dir_path( MOVE_ADDONS_FILE ) );
Note: See TracChangeset for help on using the changeset viewer.