|
@ -366,15 +366,29 @@ $config['additional_javascript'][] = 'js/download-original.js'; |
|
|
|
|
|
|
|
|
$config['enable_embedding'] = true; |
|
|
$config['enable_embedding'] = true; |
|
|
|
|
|
|
|
|
$config['youtube_js_html'] = '<div class="video-container" data-video="$2">'. |
|
|
$config['youtube_js_html'] |
|
|
'<a href="https://youtu.be/$2" target="_blank" class="file">'. |
|
|
= '<div class="video-container" data-video="$2">' |
|
|
'https://youtu.be/$2'. |
|
|
. '<a href="https://youtu.be/$2" target="_blank" class="file">' |
|
|
'</a></div>'; |
|
|
. '<img style="width:255px;height:190px;" src="/vi/$2/0.jpg" class="post-image"/>' |
|
|
|
|
|
. '</a></div>'; |
|
|
|
|
|
|
|
|
|
|
|
$config['ogg_embed_html'] |
|
|
|
|
|
= '<figure><audio controls src="$2">' |
|
|
|
|
|
. 'Your browser does not support the' |
|
|
|
|
|
. '<code>audio</code> element.</audio></figure>'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$config['embedding'] = array(); |
|
|
$config['embedding'] = array(); |
|
|
$config['embedding'][0] = array( |
|
|
$config['embedding'][0] = |
|
|
'/^https?:\/\/(\w+\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([a-zA-Z0-9\-_]{10,11})(&.+)?$/i', |
|
|
array( |
|
|
$config['youtube_js_html']); |
|
|
'/^https?:\/\/(\w+\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([a-zA-Z0-9\-_]{10,11})(&.+)?$/i', |
|
|
|
|
|
$config['youtube_js_html'] |
|
|
|
|
|
); |
|
|
|
|
|
$config['embedding'][1] = |
|
|
|
|
|
array( |
|
|
|
|
|
'/^https?:\/\/.*\.ogg$/i', |
|
|
|
|
|
$config['ogg_embed_html'] |
|
|
|
|
|
); |
|
|
$config['additional_javascript'][] = 'js/youtube.js'; |
|
|
$config['additional_javascript'][] = 'js/youtube.js'; |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|