Plugin Directory

Changeset 3382931


Ignore:
Timestamp:
10/22/2025 08:50:29 PM (5 months ago)
Author:
mrwweb
Message:

Update to version 1.3.1 from GitHub

Location:
enhanced-embed-block
Files:
2 added
2 deleted
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • enhanced-embed-block/tags/1.3.1/enhanced-embed-block.php

    r3374716 r3382931  
    77 * Author URI:      https://MRWweb.com
    88 * Text Domain:     enhanced-embed-block
    9  * Version:         1.3.0
     9 * Version:         1.3.1
    1010 * Requires at least: 6.5
    1111 * Requires PHP:    7.4
     
    2020namespace EnhancedEmbedBlock;
    2121
    22 define( 'EEB_VERSION', '1.3.0' );
     22define( 'EEB_VERSION', '1.3.1' );
    2323
    2424add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\enqueue_lite_youtube_component' );
     
    3333        plugins_url( 'vendor/lite-youtube/lite-youtube.js', __FILE__ ),
    3434        array(),
    35         '1.8.1',
     35        '1.8.2',
    3636        array( 'async' => true )
    3737    );
     
    4646
    4747    wp_register_style(
    48         'lite-embed-fallback',
    49         plugins_url( 'css/lite-embed-fallback.css', __FILE__ ),
     48        'enhanced-embed',
     49        plugins_url( 'css/enhanced-embed.css', __FILE__ ),
    5050        array(),
    5151        EEB_VERSION,
     
    7272    }
    7373
    74     wp_enqueue_style( 'lite-embed-fallback' );
     74    wp_enqueue_style( 'enhanced-embed' );
    7575
    7676    switch ( $block['attrs']['providerNameSlug'] ) {
  • enhanced-embed-block/tags/1.3.1/inc/generic.php

    r3374716 r3382931  
    5858function aspect_ratio_style( $block ) {
    5959    if( isset( $block['attrs']['className'] ) && str_contains( $block['attrs']['className'], 'wp-embed-aspect-' ) ) {
    60         $style = 'position:absolute;inset:0;';
    6160        if( $block['attrs']['providerNameSlug'] === 'youtube' ) {
    6261            //php regex to extract the aspect ratio from the class name
    6362            preg_match( '/wp-embed-aspect-([0-9]+)-([0-9]+)/', $block['attrs']['className'], $matches );
    64             $style .= '--lite-youtube-aspect-ratio:' . $matches[1] . '/' . $matches[2] . ';';
     63            $style = '--lite-youtube-aspect-ratio:' . $matches[1] . '/' . $matches[2] . ';';
     64            return ' style="' . $style . '" ';
    6565        }
    6666       
    67         return ' style="' . $style . '" ';
    6867    }
    6968    return '';
  • enhanced-embed-block/tags/1.3.1/readme.txt

    r3374716 r3382931  
    8484== Changelog ==
    8585
     86= 1.3.1 (22 October 2025) =
     87
     88- Adjust approach to managing default WordPress aspect ratio styles to avoid "collapsed" layouts in some themes
     89
    8690= 1.3.0 (7 October 2025) =
    8791
  • enhanced-embed-block/trunk/enhanced-embed-block.php

    r3374716 r3382931  
    77 * Author URI:      https://MRWweb.com
    88 * Text Domain:     enhanced-embed-block
    9  * Version:         1.3.0
     9 * Version:         1.3.1
    1010 * Requires at least: 6.5
    1111 * Requires PHP:    7.4
     
    2020namespace EnhancedEmbedBlock;
    2121
    22 define( 'EEB_VERSION', '1.3.0' );
     22define( 'EEB_VERSION', '1.3.1' );
    2323
    2424add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\enqueue_lite_youtube_component' );
     
    3333        plugins_url( 'vendor/lite-youtube/lite-youtube.js', __FILE__ ),
    3434        array(),
    35         '1.8.1',
     35        '1.8.2',
    3636        array( 'async' => true )
    3737    );
     
    4646
    4747    wp_register_style(
    48         'lite-embed-fallback',
    49         plugins_url( 'css/lite-embed-fallback.css', __FILE__ ),
     48        'enhanced-embed',
     49        plugins_url( 'css/enhanced-embed.css', __FILE__ ),
    5050        array(),
    5151        EEB_VERSION,
     
    7272    }
    7373
    74     wp_enqueue_style( 'lite-embed-fallback' );
     74    wp_enqueue_style( 'enhanced-embed' );
    7575
    7676    switch ( $block['attrs']['providerNameSlug'] ) {
  • enhanced-embed-block/trunk/inc/generic.php

    r3374716 r3382931  
    5858function aspect_ratio_style( $block ) {
    5959    if( isset( $block['attrs']['className'] ) && str_contains( $block['attrs']['className'], 'wp-embed-aspect-' ) ) {
    60         $style = 'position:absolute;inset:0;';
    6160        if( $block['attrs']['providerNameSlug'] === 'youtube' ) {
    6261            //php regex to extract the aspect ratio from the class name
    6362            preg_match( '/wp-embed-aspect-([0-9]+)-([0-9]+)/', $block['attrs']['className'], $matches );
    64             $style .= '--lite-youtube-aspect-ratio:' . $matches[1] . '/' . $matches[2] . ';';
     63            $style = '--lite-youtube-aspect-ratio:' . $matches[1] . '/' . $matches[2] . ';';
     64            return ' style="' . $style . '" ';
    6565        }
    6666       
    67         return ' style="' . $style . '" ';
    6867    }
    6968    return '';
  • enhanced-embed-block/trunk/readme.txt

    r3374716 r3382931  
    8484== Changelog ==
    8585
     86= 1.3.1 (22 October 2025) =
     87
     88- Adjust approach to managing default WordPress aspect ratio styles to avoid "collapsed" layouts in some themes
     89
    8690= 1.3.0 (7 October 2025) =
    8791
Note: See TracChangeset for help on using the changeset viewer.