],
'youtube' => [
'exp' => 'www.youtube.com/watch\?v=([^&\s]+)',
- 'html' => '<iframe class="video"'
+ 'html' => '<a href="'.$str.'"><iframe class="video"'
.' type="text/html"'
.' src="//www.youtube.com/embed/<SRC>?enablejsapi=1"'
+# NB 10.06.18 .' src="//hooktube.com/embed/<SRC>?enablejsapi=1"'
.' frameborder="0"'
.' allowfullscreen'
- .'></iframe>',
+ .'></iframe></a>',
],
];
return $init
. '<a class="video" href="#"'
- .' onclick="this.outerHTML=html_video[\''.$idsite.'\'].replace(\'<SRC>\',\''.$id.'\')"'
+ .' onclick="this.outerHTML=html_video[\''.$idsite.'\'].replace(\'<SRC>\',\''.$id.'\');return 0"'
.'>'.$str.'</a>';
+ # NB 10.06.18: TODEL
$id = '';
if (!preg_match(',//www.youtube.com/watch\?v=([^&\s]+),',$str,$m)) return $str;
$id = $m[1];