delegate youtube.js embed html code to config.php
This commit is contained in:
parent
cdb988c6d4
commit
858ebbe68f
@ -1525,3 +1525,8 @@
|
|||||||
// is the absolute maximum, because MySQL cannot handle table names greater than 64 characters.
|
// is the absolute maximum, because MySQL cannot handle table names greater than 64 characters.
|
||||||
$config['board_regex'] = '[0-9a-zA-Z$_\x{0080}-\x{FFFF}]{1,58}';
|
$config['board_regex'] = '[0-9a-zA-Z$_\x{0080}-\x{FFFF}]{1,58}';
|
||||||
|
|
||||||
|
// Youtube.js embed HTML code
|
||||||
|
$config['youtube_js_html'] = '<div class="video-container" data-video="$2">'.
|
||||||
|
'<a href="$0" target="_blank" class="file">'.
|
||||||
|
'<img style="width:360px;height:270px;" src="//img.youtube.com/vi/$2/0.jpg" class="post-image"/>'.
|
||||||
|
'</a></div>';
|
||||||
|
@ -15,8 +15,7 @@
|
|||||||
* $config['embedding'] = array();
|
* $config['embedding'] = array();
|
||||||
* $config['embedding'][0] = array(
|
* $config['embedding'][0] = array(
|
||||||
* '/^https?:\/\/(\w+\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([a-zA-Z0-9\-_]{10,11})(&.+)?$/i',
|
* '/^https?:\/\/(\w+\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([a-zA-Z0-9\-_]{10,11})(&.+)?$/i',
|
||||||
* '<div class="video-container" data-video="$2"><a href="$0" target="_blank" class="file"><img style="width:360px;height:270px;" src="//img.youtube.com/vi/$2/0.jpg" class="post-image"/></a></div>'
|
* $config['youtube_js_html']);
|
||||||
);
|
|
||||||
* $config['additional_javascript'][] = 'js/jquery.min.js';
|
* $config['additional_javascript'][] = 'js/jquery.min.js';
|
||||||
* $config['additional_javascript'][] = 'js/youtube.js';
|
* $config['additional_javascript'][] = 'js/youtube.js';
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user