mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #879 align multimedia search results to the left
This commit is contained in:
parent
73c09ce876
commit
c714c3629a
3 changed files with 6 additions and 6 deletions
|
|
@ -194,13 +194,13 @@ class integration_searchModel extends module
|
|||
$thumbnail_file = sprintf('%s%dx%d.%s.jpg', $thumbnail_path, 120, 120, 'crop');
|
||||
$thumbnail_url = Context::getRequestUri().$thumbnail_file;
|
||||
if(!file_exists($thumbnail_file)) FileHandler::createImageFile($val->uploaded_filename, $thumbnail_file, 120, 120, 'jpg', 'crop');
|
||||
$obj->src = sprintf('<img src="%s" alt="%s" width="%d" height="%d" />', $thumbnail_url, htmlspecialchars($obj->filename, ENT_COMPAT | ENT_HTML401, 'UTF-8', false), 120, 120);
|
||||
$obj->src = sprintf('<img src="%s" alt="%s" width="%d" height="%d" class="thumb" />', $thumbnail_url, htmlspecialchars($obj->filename, ENT_COMPAT | ENT_HTML401, 'UTF-8', false), 120, 120);
|
||||
// Videos
|
||||
}
|
||||
else if(preg_match('/\.(swf|flv|wmv|avi|mpg|mpeg|asx|asf|mp3)$/i', $val->source_filename))
|
||||
{
|
||||
$obj->type = 'multimedia';
|
||||
$obj->src = sprintf('<script>displayMultimedia("%s",120,120);</script>', $val->uploaded_filename);
|
||||
$obj->src = sprintf('<script>displayMultimedia("%s",80,80);</script>', $val->uploaded_filename);
|
||||
// Others
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@
|
|||
<!--@if(!count($output->data))-->
|
||||
<span class="noResult">{$lang->msg_no_result}</span>
|
||||
<!--@else-->
|
||||
<ul class="searchImageResult">
|
||||
<ul class="searchResult">
|
||||
<!--@foreach($output->data as $no => $image)-->
|
||||
<li>
|
||||
<a href="{$image->url}">{$image->src}</a>
|
||||
<a href="{$image->url}" onclick="window.open(this.href);return false;">{$image->src}</a>
|
||||
<dl>
|
||||
<dt><a href="{$image->url}">{$image->filename}</a></dt>
|
||||
</dl>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue