1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 13:17:24 +02:00

LANS e_parse_class #6 youtube

LANS e_parse_class #6 youtube
This commit is contained in:
MikeyGMT
2016-12-24 16:54:31 +00:00
parent 659be58113
commit d1927e71fe
2 changed files with 6 additions and 16 deletions

View File

@@ -2,26 +2,14 @@
/*
* e107 website system
*
* Copyright (C) 2008-2011 e107 Inc (e107.org)
* Copyright (C) 2008-2016 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Text processing and parsing functions
*
* $URL$
* $Id$
*
*/
/**
* @package e107
* @subpackage e107_handlers
* @version $Id$
*
* Text processing and parsing functions.
* Simple parse data model.
*/
if (!defined('e107_INIT')) { exit(); }
// Directory for the hard-coded utf-8 handling routines
@@ -4096,8 +4084,8 @@ class e_parser
e107::getFile()->getRemoteFile($thumbSrc, $filename,'media');
}
return "<a href='".$url."'><img class='video-responsive video-thumbnail' src='{e_MEDIA}".$filename."' alt='Youtube Video' title='Click to view on Youtube' />
<div class='video-thumbnail-caption'><small>Click to watch video</small></div></a>";
return "<a href='".$url."'><img class='video-responsive video-thumbnail' src='{e_MEDIA}".$filename."' alt='".LAN_YOUTUBE_VIDEO."' title='".LAN_CLICK_TO_VIEW."' />
<div class='video-thumbnail-caption'><small>".LAN_CLICK_TO_VIEW."</small></div></a>";
}
if($thumb == 'src')
@@ -4127,7 +4115,7 @@ class e_parser
{
$thumbSrc = e_IMAGE_ABS."generic/playlist_120.png";
}
return "<img class='img-responsive' src='".$thumbSrc."' alt='Youtube Video Playlist' style='width:".vartrue($parm['w'],'80')."px'/>";
return "<img class='img-responsive' src='".$thumbSrc."' alt='".LAN_YOUTUBE_PLAYLIST."' style='width:".vartrue($parm['w'],'80')."px'/>";
}

View File

@@ -99,6 +99,8 @@ define("LAN_INCORRECT_PASSWORD", "Incorrect Password");
define("LAN_TYPE", "Type");
define("LAN_SCREENSHOT", "Screenshot");
define("LAN_FILE", "File");
define("LAN_YOUTUBE_VIDEO", "Youtube Video");
define("LAN_YOUTUBE_PLAYLIST", "Youtube Playlist");
define("LAN_FILETYPES", "Filetypes");
define("LAN_FILE_NOT_FOUND", "File Not Found");
define("LAN_FILES","Files");