Changeset 3251114
- Timestamp:
- 03/05/2025 12:44:45 PM (12 months ago)
- Location:
- dblocks-youtube-lazyload
- Files:
-
- 12 edited
- 1 copied
-
tags/1.2.7 (copied) (copied from dblocks-youtube-lazyload/trunk)
-
tags/1.2.7/build/block.json (modified) (1 diff)
-
tags/1.2.7/build/render.php (modified) (2 diffs)
-
tags/1.2.7/dblocks-lazyload-for-youtube.php (modified) (1 diff)
-
tags/1.2.7/package-lock.json (modified) (2 diffs)
-
tags/1.2.7/package.json (modified) (1 diff)
-
tags/1.2.7/readme.txt (modified) (2 diffs)
-
trunk/build/block.json (modified) (1 diff)
-
trunk/build/render.php (modified) (2 diffs)
-
trunk/dblocks-lazyload-for-youtube.php (modified) (1 diff)
-
trunk/package-lock.json (modified) (2 diffs)
-
trunk/package.json (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dblocks-youtube-lazyload/tags/1.2.7/build/block.json
r3250581 r3251114 3 3 "apiVersion": 3, 4 4 "name": "dblocks/dblocks-lazyload-for-youtube", 5 "version": "1.2. 5",5 "version": "1.2.6", 6 6 "title": "Youtube LazyLoad", 7 7 "category": "dblocks", -
dblocks-youtube-lazyload/tags/1.2.7/build/render.php
r3226388 r3251114 1 1 <?php 2 2 // global settings 3 $play_icon_color = esc_attr(get_option('dblocks_textColor', '# 800080'));4 $play_background = esc_attr(get_option('dblocks_color', '# FFFFFF'));3 $play_icon_color = esc_attr(get_option('dblocks_textColor', '#FFFFFF')); 4 $play_background = esc_attr(get_option('dblocks_color', '#800080')); 5 5 $playButtonSize = esc_attr(get_option('dblocks_playButtonSize', '100px')); 6 6 $iconType = esc_attr(get_option('dblocks_iconType', 'iconPresets')); … … 10 10 // Local settings 11 11 $quality = esc_attr($attributes['quality'] ?? 'maxresdefault'); 12 $url = esc_attr($attributes['url'] ?? ''); 12 13 $youtubeId = esc_attr($attributes['urlExtract'] ?? ''); 14 if (empty($youtubeId) && !empty($url)) { 15 preg_match('/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^\"&?\/ ]{11})/', $url, $matches); 16 $youtubeId = $matches[1] ?? ''; 17 } 13 18 $containerId = esc_attr($attributes['containerId'] ?? ''); 14 19 $customThumbnail = esc_attr($attributes['customThumbnail'] ?? ''); -
dblocks-youtube-lazyload/tags/1.2.7/dblocks-lazyload-for-youtube.php
r3250581 r3251114 6 6 * Requires at least: 6.5.2 7 7 * Requires PHP: 7.4 8 * Version: 1.2. 58 * Version: 1.2.7 9 9 * Author: DPlugins 10 10 * Author URI: https://dplugins.com/ -
dblocks-youtube-lazyload/tags/1.2.7/package-lock.json
r3249307 r3251114 1 1 { 2 2 "name": "dblocks-lazyload-for-youtube", 3 "version": "1.2. 4",3 "version": "1.2.7", 4 4 "lockfileVersion": 3, 5 5 "requires": true, … … 7 7 "": { 8 8 "name": "dblocks-lazyload-for-youtube", 9 "version": "1.2. 4",9 "version": "1.2.7", 10 10 "license": "GPL-2.0-or-later", 11 11 "dependencies": { -
dblocks-youtube-lazyload/tags/1.2.7/package.json
r3249307 r3251114 1 1 { 2 2 "name": "dblocks-lazyload-for-youtube", 3 "version": "1.2. 4",3 "version": "1.2.7", 4 4 "description": "Block that load YouTube video scripts only if user clicks on the play button", 5 5 "author": "DPlugins", -
dblocks-youtube-lazyload/tags/1.2.7/readme.txt
r3250581 r3251114 4 4 Requires at least: 4.0 5 5 Tested up to: 6.7.1 6 Stable tag: 1.2. 46 Stable tag: 1.2.7 7 7 Requires PHP: 7.4 8 8 License: GPL-2.0-or-later … … 62 62 == Changelog == 63 63 64 = 1.2.7 = 65 * Version bump 66 67 = 1.2.6 = 68 * Fixed Rendering image on the front end to work correctly with WordPress installations in subdirectories 69 64 70 = 1.2.5 = 65 71 * Fixed REST API endpoint URLs to work correctly with WordPress installations in subdirectories -
dblocks-youtube-lazyload/trunk/build/block.json
r3250581 r3251114 3 3 "apiVersion": 3, 4 4 "name": "dblocks/dblocks-lazyload-for-youtube", 5 "version": "1.2. 5",5 "version": "1.2.6", 6 6 "title": "Youtube LazyLoad", 7 7 "category": "dblocks", -
dblocks-youtube-lazyload/trunk/build/render.php
r3226388 r3251114 1 1 <?php 2 2 // global settings 3 $play_icon_color = esc_attr(get_option('dblocks_textColor', '# 800080'));4 $play_background = esc_attr(get_option('dblocks_color', '# FFFFFF'));3 $play_icon_color = esc_attr(get_option('dblocks_textColor', '#FFFFFF')); 4 $play_background = esc_attr(get_option('dblocks_color', '#800080')); 5 5 $playButtonSize = esc_attr(get_option('dblocks_playButtonSize', '100px')); 6 6 $iconType = esc_attr(get_option('dblocks_iconType', 'iconPresets')); … … 10 10 // Local settings 11 11 $quality = esc_attr($attributes['quality'] ?? 'maxresdefault'); 12 $url = esc_attr($attributes['url'] ?? ''); 12 13 $youtubeId = esc_attr($attributes['urlExtract'] ?? ''); 14 if (empty($youtubeId) && !empty($url)) { 15 preg_match('/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^\"&?\/ ]{11})/', $url, $matches); 16 $youtubeId = $matches[1] ?? ''; 17 } 13 18 $containerId = esc_attr($attributes['containerId'] ?? ''); 14 19 $customThumbnail = esc_attr($attributes['customThumbnail'] ?? ''); -
dblocks-youtube-lazyload/trunk/dblocks-lazyload-for-youtube.php
r3250581 r3251114 6 6 * Requires at least: 6.5.2 7 7 * Requires PHP: 7.4 8 * Version: 1.2. 58 * Version: 1.2.7 9 9 * Author: DPlugins 10 10 * Author URI: https://dplugins.com/ -
dblocks-youtube-lazyload/trunk/package-lock.json
r3249307 r3251114 1 1 { 2 2 "name": "dblocks-lazyload-for-youtube", 3 "version": "1.2. 4",3 "version": "1.2.7", 4 4 "lockfileVersion": 3, 5 5 "requires": true, … … 7 7 "": { 8 8 "name": "dblocks-lazyload-for-youtube", 9 "version": "1.2. 4",9 "version": "1.2.7", 10 10 "license": "GPL-2.0-or-later", 11 11 "dependencies": { -
dblocks-youtube-lazyload/trunk/package.json
r3249307 r3251114 1 1 { 2 2 "name": "dblocks-lazyload-for-youtube", 3 "version": "1.2. 4",3 "version": "1.2.7", 4 4 "description": "Block that load YouTube video scripts only if user clicks on the play button", 5 5 "author": "DPlugins", -
dblocks-youtube-lazyload/trunk/readme.txt
r3250581 r3251114 4 4 Requires at least: 4.0 5 5 Tested up to: 6.7.1 6 Stable tag: 1.2. 46 Stable tag: 1.2.7 7 7 Requires PHP: 7.4 8 8 License: GPL-2.0-or-later … … 62 62 == Changelog == 63 63 64 = 1.2.7 = 65 * Version bump 66 67 = 1.2.6 = 68 * Fixed Rendering image on the front end to work correctly with WordPress installations in subdirectories 69 64 70 = 1.2.5 = 65 71 * Fixed REST API endpoint URLs to work correctly with WordPress installations in subdirectories
Note: See TracChangeset
for help on using the changeset viewer.