forked from leftypol/leftypol
config.php: add tiktok video embed
This commit is contained in:
parent
25a0304fd3
commit
91e54fb6bf
1 changed files with 6 additions and 0 deletions
|
@ -1231,6 +1231,12 @@
|
|||
</a>
|
||||
</div>'
|
||||
],
|
||||
[
|
||||
'/^https?:\/\/(\w+\.)?tiktok\.com\/@[a-z0-9\-_]+\/video\/([0-9]+)\?.*$/i',
|
||||
'<div class="tiktok-embed">
|
||||
<iframe sandbox="allow-popups allow-popups-to-escape-sandbox allow-scripts allow-top-navigation allow-same-origin" src="https://www.tiktok.com/embed/v2/$2"></iframe>
|
||||
</div>'
|
||||
],
|
||||
array(
|
||||
'/^https?:\/\/(\w+\.)?vimeo\.com\/(\d{2,10})(\?.+)?$/i',
|
||||
'<iframe src="https://player.vimeo.com/video/$2" style="float: left;margin: 10px 20px;" width="%%tb_width%%" height="%%tb_height%%" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue