mirror of
https://github.com/e107inc/e107.git
synced 2025-08-14 02:24:08 +02:00
media-picker work. Issue #6 Removed '...' from LAN_SELECT and added manually where appropriate.
This commit is contained in:
@@ -3720,7 +3720,8 @@ class e_parse extends e_parser
|
||||
/**
|
||||
* New v2 Parser
|
||||
* Start Fresh and Build on it over time to become eventual replacement to e_parse.
|
||||
* Cameron's DOM-based parser.
|
||||
* Cameron's DOM-based parser.
|
||||
*
|
||||
*/
|
||||
class e_parser
|
||||
{
|
||||
@@ -4662,6 +4663,8 @@ class e_parser
|
||||
|
||||
$type = pathinfo($file, PATHINFO_EXTENSION);
|
||||
|
||||
$id = str_replace(".".$type, "", $file);
|
||||
|
||||
$thumb = vartrue($parm['thumb']);
|
||||
$mode = varset($parm['mode'],false); // tag, url
|
||||
|
||||
@@ -4692,6 +4695,7 @@ class e_parser
|
||||
|
||||
if($type === 'youtube')
|
||||
{
|
||||
|
||||
// $thumbSrc = "https://i1.ytimg.com/vi/".$id."/0.jpg";
|
||||
$thumbSrc = "https://i1.ytimg.com/vi/".$id."/mqdefault.jpg";
|
||||
$video = '<iframe class="embed-responsive-item" width="560" height="315" src="//www.youtube.com/embed/'.$id.'?'.$ytqry.'" style="background-size: 100%;background-image: url('.$thumbSrc.');border:0px" allowfullscreen></iframe>';
|
||||
|
Reference in New Issue
Block a user