mirror of
https://github.com/friendica/friendica
synced 2024-12-23 11:20:15 +00:00
linkify audio/video links for non-html5 browsers (or those with unsupported codecs?)
This commit is contained in:
parent
9296d178b3
commit
afaacd134c
1 changed files with 2 additions and 2 deletions
|
@ -80,9 +80,9 @@ function bbcode($Text) {
|
|||
|
||||
// html5 video and audio
|
||||
|
||||
$Text = preg_replace("/\[video\](.+?)\[\/video\]/", '<video src="$1" controls="controls" width="425" height="350">$1</video>', $Text);
|
||||
$Text = preg_replace("/\[video\](.+?)\[\/video\]/", '<video src="$1" controls="controls" width="425" height="350"><a href="$1">$1</a></video>', $Text);
|
||||
|
||||
$Text = preg_replace("/\[audio\](.+?)\[\/audio\]/", '<audio src="$1" controls="controls">$1</audio>', $Text);
|
||||
$Text = preg_replace("/\[audio\](.+?)\[\/audio\]/", '<audio src="$1" controls="controls"><a href="$1">$1</a></audio>', $Text);
|
||||
|
||||
|
||||
// [img=widthxheight]image source[/img]
|
||||
|
|
Loading…
Reference in a new issue