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

Custom Fields class added.

This commit is contained in:
Cameron
2017-01-24 19:53:40 -08:00
parent 4fe73d43d9
commit 4aa0329ddc
7 changed files with 513 additions and 151 deletions

View File

@@ -1038,7 +1038,13 @@ class media_admin_ui extends e_admin_ui
$mes->addDebug("For:".$cat);
$mes->addDebug("Bbcode: ".$this->getQuery('bbcode'));
$video = $this->getQuery('video');
if($video == 2)
{
echo $this->mediaSelectUpload('video');
return;
}
$this->processUploadUrl(true, $cat);
@@ -1140,6 +1146,19 @@ class media_admin_ui extends e_admin_ui
function mediaSelectUpload($type='image')
{
$frm = e107::getForm();
if($type === 'video')
{
$tabs = array(
'youtube' => array('caption'=>'Youtube', 'text' => $this->videoTab())
);
return $frm->tabs($tabs, array('class'=>'media-manager'));
}
$videoActive = 'inactive';
$options = array();