added #192 to changelog
This commit is contained in:
parent
1886dcd258
commit
024508392b
@ -17,6 +17,7 @@
|
|||||||
- LastCommentsAdmin plugin will not even attempt to delete or rebuild LastComments caches if LastComments plugin is not available ([#43](https://github.com/flatpressblog/flatpress/issues/43))
|
- LastCommentsAdmin plugin will not even attempt to delete or rebuild LastComments caches if LastComments plugin is not available ([#43](https://github.com/flatpressblog/flatpress/issues/43))
|
||||||
- Fixed errors on the Comment Center config page ([#90](https://github.com/flatpressblog/flatpress/issues/90))
|
- Fixed errors on the Comment Center config page ([#90](https://github.com/flatpressblog/flatpress/issues/90))
|
||||||
- Fixed PHP warnings in Akismet plugin ([#83](https://github.com/flatpressblog/flatpress/issues/83))
|
- Fixed PHP warnings in Akismet plugin ([#83](https://github.com/flatpressblog/flatpress/issues/83))
|
||||||
|
- BBCode plugin: Allows local video files ("attachs/video.mp4") and outputs valid HTML ([#192](https://github.com/flatpressblog/flatpress/issues/192))
|
||||||
|
|
||||||
## Themes
|
## Themes
|
||||||
- Leggero
|
- Leggero
|
||||||
|
@ -378,12 +378,11 @@ function do_bbcode_video($action, $attr, $content, $params, $node_object) {
|
|||||||
<div class="fb-video bbcode_video bbcode_video_facebook ' . $floatClass . '" data-href="' . $vid . '" data-allowfullscreen="true" data-width="' . $width . '"></div>';
|
<div class="fb-video bbcode_video bbcode_video_facebook ' . $floatClass . '" data-href="' . $vid . '" data-allowfullscreen="true" data-width="' . $width . '"></div>';
|
||||||
break;
|
break;
|
||||||
// Any video file that can be played with HTML5 <video> element
|
// Any video file that can be played with HTML5 <video> element
|
||||||
// FIXME: support of uploaded video files ($attr ['default'] is like "attachs/video.mp4") still to be implemented!
|
|
||||||
case 'html5':
|
case 'html5':
|
||||||
default:
|
default:
|
||||||
// get the video path from the default attribute
|
// get the video path from the default attribute
|
||||||
$videoPath = $attr ['default'];
|
$videoPath = $attr ['default'];
|
||||||
// if it's local ("/attachs/video.mp4") ...
|
// if it's local ("attachs/video.mp4") ...
|
||||||
$video_is_local = bbcode_remap_url($videoPath);
|
$video_is_local = bbcode_remap_url($videoPath);
|
||||||
if ($video_is_local) {
|
if ($video_is_local) {
|
||||||
// ... we need to prepend it with the blog base URL
|
// ... we need to prepend it with the blog base URL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user