1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 13:21:54 +02:00

Support for multiple images/video in news items. (experimental)

This commit is contained in:
Cameron
2014-01-31 06:33:01 -08:00
parent fedf63f1f5
commit c0746113b6
4 changed files with 102 additions and 23 deletions

View File

@@ -2761,6 +2761,15 @@ class e_form
case 'image': //TODO - thumb, js tooltip...
if($value)
{
if(strpos($value,",")!==false)
{
$tmp = explode(",",$value);
$value = $tmp[0];
unset($tmp);
}
$vparm = array('thumb'=>'tag','w'=> vartrue($parms['thumb_aw'],'80'));
if($video = e107::getParser()->toVideo($value,$vparm))