Changeset 3749308
- Timestamp:
- 10/15/2026 09:08:06 PM (4 weeks ago)
- Location:
- motionui-addons-for-elementor/trunk
- Files:
-
- 4 edited
-
inc/extensions/motion.php (modified) (1 diff)
-
inc/functions.php (modified) (1 diff)
-
motionui-addons-for-elementor.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
motionui-addons-for-elementor/trunk/inc/extensions/motion.php
r3740558 r3749308 145 145 'condition' => $trigger_condition, 146 146 '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 ], 156 152 'frontend_available' => true, 157 153 ) -
motionui-addons-for-elementor/trunk/inc/functions.php
r3727393 r3749308 322 322 } 323 323 } 324 325 if ( ! 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 381 add_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 4 4 * Plugin URI: https://motionuiaddons.com/ 5 5 * 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. 86 * Version: 1.1.9 7 7 * Requires at least: 6.4 8 8 * Tested up to: 6.9 … … 28 28 29 29 if ( 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() ); 31 31 } else { 32 define( 'THEMEIC_MUIA_VERSION', '1.1. 8' );32 define( 'THEMEIC_MUIA_VERSION', '1.1.9' ); 33 33 } 34 34 -
motionui-addons-for-elementor/trunk/readme.txt
r3740558 r3749308 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.1. 87 Stable tag: 1.1.9 8 8 License: GPL-2.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note:
See TracChangeset
for help on using the changeset viewer.