Plugin Directory

Changeset 3749308


Ignore:
Timestamp:
10/15/2026 09:08:06 PM (4 weeks ago)
Author:
themeicteam
Message:

update 1.1.9 trunk

Location:
motionui-addons-for-elementor/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • motionui-addons-for-elementor/trunk/inc/extensions/motion.php

    r3740558 r3749308  
    145145                                'condition'          => $trigger_condition,
    146146                                'default'            => 'appearance',
    147                                 'options'            => muia_pro_options( 
    148                                         [
    149                                                 'appearance' => esc_html__( 'On Appearance', 'motionui-addons-for-elementor' ),
    150                                         ],
    151                                         [
    152                                                 'reverse' => esc_html__( 'On Reverse', 'motionui-addons-for-elementor' ),
    153                                                 'scroll'     => esc_html__( 'On Scroll', 'motionui-addons-for-elementor' ),
    154                                         ]
    155                                 ),
     147                                'options'            => [
     148                                        'appearance' => esc_html__( 'On Appearance', 'motionui-addons-for-elementor' ),
     149                                        'reverse' => esc_html__( 'On Reverse', 'motionui-addons-for-elementor' ),
     150                                        'scroll'     => esc_html__( 'On Scroll', 'motionui-addons-for-elementor' ),
     151                                ],
    156152                                'frontend_available' => true,
    157153                        )
  • motionui-addons-for-elementor/trunk/inc/functions.php

    r3727393 r3749308  
    322322        }
    323323}
     324
     325if ( ! function_exists( 'muia_template_shortcode' ) ) {
     326        /**
     327         * [muia_template id="123"] — renders any post built with Elementor.
     328         *
     329         * Any post type: a saved template, a page, a post, a custom type. Only
     330         * published ones, though, unless the viewer can edit that post — so drafts
     331         * still preview for whoever builds them, but no author can embed someone
     332         * else's private or draft content on a public page.
     333         *
     334         * A post that (directly or through others) contains itself would loop
     335         * forever, so one already being rendered renders nothing the second time.
     336         *
     337         * @param array $atts Shortcode attributes: `id`, the post ID.
     338         * @return string Elementor markup with its CSS, or '' when it can't render.
     339         */
     340        function muia_template_shortcode( $atts ) {
     341
     342                static $rendering = array();
     343
     344                $atts = shortcode_atts( array( 'id' => 0 ), $atts, 'muia_template' );
     345                $id   = absint( $atts['id'] );
     346
     347                if ( ! $id || ! class_exists( '\Elementor\Plugin' ) ) {
     348                        return '';
     349                }
     350
     351                $post = get_post( $id );
     352
     353                if ( ! $post ) {
     354                        return '';
     355                }
     356
     357                if ( 'publish' !== $post->post_status && ! current_user_can( 'edit_post', $id ) ) {
     358                        return '';
     359                }
     360
     361                if ( post_password_required( $post ) ) {
     362                        return '';
     363                }
     364
     365                if ( isset( $rendering[ $id ] ) ) {
     366                        return '';
     367                }
     368
     369                $rendering[ $id ] = true;
     370
     371                // true: print the post's own CSS with it, so it is styled wherever the
     372                // shortcode lands, Elementor page or not.
     373                $html = \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $id, true );
     374
     375                unset( $rendering[ $id ] );
     376
     377                return $html;
     378        }
     379}
     380
     381add_action(
     382        'init',
     383        function () {
     384                add_shortcode( 'muia_template', 'muia_template_shortcode' );
     385        }
     386);
  • motionui-addons-for-elementor/trunk/motionui-addons-for-elementor.php

    r3740558 r3749308  
    44 * Plugin URI:            https://motionuiaddons.com/
    55 * Description:           Bring powerful GSAP animations to Elementor with ease. Includes advanced widgets like Animated Slider, Testimonial Carousel, News Ticker, Floating Effects, and more.
    6  * Version:               1.1.8
     6 * Version:               1.1.9
    77 * Requires at least:     6.4
    88 * Tested up to:          6.9
    … …  
    2828
    2929if ( defined( 'THEMEIC_MUIA_DEV' ) && true == THEMEIC_MUIA_DEV ) {
    30     define( 'THEMEIC_MUIA_VERSION', '1.1.8.' . time() );
     30    define( 'THEMEIC_MUIA_VERSION', '1.1.9.' . time() );
    3131} else {
    32     define( 'THEMEIC_MUIA_VERSION', '1.1.8' );
     32    define( 'THEMEIC_MUIA_VERSION', '1.1.9' );
    3333}
    3434
  • motionui-addons-for-elementor/trunk/readme.txt

    r3740558 r3749308  
    55Tested up to:      6.9
    66Requires PHP:      7.4
    7 Stable tag:        1.1.8
     7Stable tag:        1.1.9
    88License:           GPL-2.0-or-later
    99License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.