forked from leftypol/leftypol
config.php: add youtube shorts embedding
This commit is contained in:
parent
91f53552c9
commit
e677751010
1 changed files with 4 additions and 0 deletions
|
@ -1195,6 +1195,10 @@
|
|||
// Custom embedding (YouTube, vimeo, etc.)
|
||||
// It's very important that you match the entire input (with ^ and $) or things will not work correctly.
|
||||
$config['embedding'] = array(
|
||||
[
|
||||
'/^https?:\/\/(\w+\.)?youtube\.com\/shorts\/([a-zA-Z0-9\-_]{10,11})$/i',
|
||||
'<iframe style="float: left; padding: 0.6em 0.2em 0.2em 0.2em;" width="248" height="440" frameborder="0" id="ytplayer" src="https://www.youtube.com/embed/$2"></iframe>'
|
||||
],
|
||||
array(
|
||||
'/^https?:\/\/(\w+\.)?youtube\.com\/watch\?v=([a-zA-Z0-9\-_]{10,11})(&.+)?$/i',
|
||||
'<iframe style="float: left;margin: 10px 20px;" width="%%tb_width%%" height="%%tb_height%%" frameborder="0" id="ytplayer" src="http://www.youtube.com/embed/$2"></iframe>'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue