1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 12:21:45 +02:00

Media-Manager Youtube browser added.

This commit is contained in:
Cameron
2014-01-08 15:51:14 -08:00
parent 7f9326f1a1
commit 3688924e42
10 changed files with 412 additions and 16 deletions

View File

@@ -210,8 +210,14 @@ class cpage_shortcodes extends e_shortcode
function sc_cmenuimage($parm='')
{
// print_a($this);
$img = e107::getParser()->thumbUrl($this->page['menu_image']);
$tp = e107::getParser();
if($video = $tp->toVideo($this->page['menu_image']))
{
return $video;
}
$img = $tp->thumbUrl($this->page['menu_image']);
if($parm == 'url')
{
return $img;