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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user