Changeset 2613236
- Timestamp:
- 10/12/2021 07:14:10 PM (4 years ago)
- Location:
- aspiesoft-auto-embed/trunk
- Files:
-
- 4 edited
-
aspiesoft-auto-embed.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
src/assets/embed.js (modified) (3 diffs)
-
src/main.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aspiesoft-auto-embed/trunk/aspiesoft-auto-embed.php
r2613216 r2613236 7 7 Plugin URI: https://github.com/AspieSoft/aspiesoft-auto-embed 8 8 Description: Easily Embed Dynamic Lazy Loading Youtube Videos Simply By Pasting The Url. 9 Version: 1.4. 89 Version: 1.4.9 10 10 Author: AspieSoft 11 11 Author URI: https://www.aspiesoft.com -
aspiesoft-auto-embed/trunk/readme.txt
r2613216 r2613236 4 4 Requires at least: 3.0.1 5 5 Tested up to: 5.8 6 Stable tag: 1.4. 86 Stable tag: 1.4.9 7 7 Requires PHP: 5.2.4 8 8 License: GPLv2 or later -
aspiesoft-auto-embed/trunk/src/assets/embed.js
r2613216 r2613236 48 48 'popular': '0', 49 49 'live': '0', 50 'start': null, 51 'end': null, 50 52 51 53 'ignoreAttrs': ['class', 'id', 'name', 'target'], // optional [array] list of attributes to ignore … … 494 496 if(data.attrs['start'].includes(':')) { 495 497 let time = data.attrs['start'].split(':'); 496 youtubeQueryAttrs += '&start=' + ((Number(time[0]) * 60) + Number(time[1])) + 's';497 } else if( !data.attrs['start'].endsWith('s')) {498 youtubeQueryAttrs += '&start=' + data.attrs['start'] + 's';498 youtubeQueryAttrs += '&start=' + ((Number(time[0]) * 60) + Number(time[1])); 499 } else if(data.attrs['start'].endsWith('s')) { 500 youtubeQueryAttrs += '&start=' + data.attrs['start'].replace(/s$/, ''); 499 501 } else { 500 502 youtubeQueryAttrs += '&start=' + data.attrs['start']; … … 504 506 if(data.attrs['end'].includes(':')) { 505 507 let time = data.attrs['end'].split(':'); 506 youtubeQueryAttrs += '&end=' + ((Number(time[0]) * 60) + Number(time[1])) + 's';508 youtubeQueryAttrs += '&end=' + ((Number(time[0]) * 60) + Number(time[1])); 507 509 } else if(!data.attrs['end'].endsWith('s')) { 508 youtubeQueryAttrs += '&end=' + data.attrs['end'] + 's';510 youtubeQueryAttrs += '&end=' + data.attrs['end'].replace(/s$/, ''); 509 511 } else { 510 512 youtubeQueryAttrs += '&end=' + data.attrs['end']; -
aspiesoft-auto-embed/trunk/src/main.php
r2613216 r2613236 65 65 'description' => false, 'desc' => false, 66 66 'start' => false, 67 ' stop' => false,67 'end' => false, 68 68 ), $atts); 69 69 … … 100 100 'description' => false, 'desc' => false, 101 101 'start' => false, 102 ' stop' => false,102 'end' => false, 103 103 ), $atts); 104 104 … … 132 132 $this->setQueryAttrBool($attr, 'search', array('search')), 133 133 $this->setQueryAttrValue($attr, 'start', array('start')), 134 $this->setQueryAttrValue($attr, ' stop', array('stop')),134 $this->setQueryAttrValue($attr, 'end', array('end')), 135 135 ); 136 136 $queryAttrs = array_filter($queryAttrs);
Note: See TracChangeset
for help on using the changeset viewer.