From 1370a8fbec7a5b170694d7479acf0de16ef2433d Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 11 Jan 2014 08:39:22 -0800 Subject: [PATCH] Added custom search placeholder to media-manager browser. Fix for glyph colors on light admin theme. --- e107_admin/image.php | 5 ++--- e107_handlers/media_class.php | 8 ++++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/e107_admin/image.php b/e107_admin/image.php index 437e156ad..1f34c5720 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -1331,9 +1331,8 @@ class media_admin_ui extends e_admin_ui ); } - $parms = array('width' => 200, 'height'=>113, 'type'=>'image', 'tagid'=> $this->getQuery('tagid'), 'action'=>'youtube'); - - + $parms = array('width' => 200, 'height'=>113, 'type'=>'image', 'tagid'=> $this->getQuery('tagid'), 'action'=>'youtube','searchPlaceholder'=>'Search Youtube'); + $text = e107::getMedia()->browserCarousel($items, $parms); diff --git a/e107_handlers/media_class.php b/e107_handlers/media_class.php index b5b10dbfb..15198e9d7 100644 --- a/e107_handlers/media_class.php +++ b/e107_handlers/media_class.php @@ -1049,7 +1049,7 @@ class e_media } elseif($data['type'] == 'glyph') { - $text .= "\n".$tp->toGlyph($data['thumbUrl'],false).""; + $text .= "\n".$tp->toGlyph($data['thumbUrl'],false).""; } $text .= "\n\n\n"; @@ -1111,11 +1111,15 @@ class e_media $carouselID = 'myCarousel-'.$parm['action']; //$text = "