mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Added custom search placeholder to media-manager browser. Fix for glyph colors on light admin theme.
This commit is contained in:
@@ -1331,8 +1331,7 @@ 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);
|
$text = e107::getMedia()->browserCarousel($items, $parms);
|
||||||
|
|
||||||
|
@@ -1049,7 +1049,7 @@ class e_media
|
|||||||
}
|
}
|
||||||
elseif($data['type'] == 'glyph')
|
elseif($data['type'] == 'glyph')
|
||||||
{
|
{
|
||||||
$text .= "\n<span style='margin:7px;display:inline-block; color:white'>".$tp->toGlyph($data['thumbUrl'],false)."</span>";
|
$text .= "\n<span style='margin:7px;display:inline-block;color: inherit'>".$tp->toGlyph($data['thumbUrl'],false)."</span>";
|
||||||
}
|
}
|
||||||
$text .= "\n</a>\n\n";
|
$text .= "\n</a>\n\n";
|
||||||
|
|
||||||
@@ -1112,10 +1112,14 @@ class e_media
|
|||||||
|
|
||||||
//$text = "<form class='form-search' action='".e_SELF."?".e_QUERY."' id='core-plugin-list-form' method='get'>";
|
//$text = "<form class='form-search' action='".e_SELF."?".e_QUERY."' id='core-plugin-list-form' method='get'>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!e_AJAX_REQUEST)
|
if(!e_AJAX_REQUEST)
|
||||||
{
|
{
|
||||||
|
$searchPlaceholder = varset($parm['searchPlaceholder'], LAN_SEARCH);
|
||||||
|
|
||||||
$text = '<div class="btn-group"><span class="input-append">';
|
$text = '<div class="btn-group"><span class="input-append">';
|
||||||
$text .= "<input type='text' class='e-ajax-keyup e-tip' placeholder= 'Search...' title='Enter some text to filter results' name='search' value='' data-target='media-browser-container-".$parm['action']."' data-src='".$data_src."' />";
|
$text .= "<input type='text' class='e-ajax-keyup e-tip' placeholder= '".$searchPlaceholder."...' title='Enter some text to filter results' name='search' value='' data-target='media-browser-container-".$parm['action']."' data-src='".$data_src."' />";
|
||||||
// $text .= '<button class="btn btn-primary" name="'.$submitName.'" type="submit">'.LAN_GO.'</button>';
|
// $text .= '<button class="btn btn-primary" name="'.$submitName.'" type="submit">'.LAN_GO.'</button>';
|
||||||
$text .= '<a class="btn btn-primary" href="#'.$carouselID.'" data-slide="prev">‹</a><a class="btn btn-primary" href="#'.$carouselID.'" data-slide="next">›</a>';
|
$text .= '<a class="btn btn-primary" href="#'.$carouselID.'" data-slide="prev">‹</a><a class="btn btn-primary" href="#'.$carouselID.'" data-slide="next">›</a>';
|
||||||
$text .= "</span>";
|
$text .= "</span>";
|
||||||
|
Reference in New Issue
Block a user