Search
Popular searches:
{php}$ui_search_hot = uiId('search_hot');{/php}
{hcTaglib:category id="$ui_search_hot" item="vo" field="id,title,description"}
{php}
$description = $vo['description'] ?? '';
$descriptionArr = [];
if(!empty($description)){
$descriptionArr = explode(',',$description);
}
{/php}
{/hcTaglib:category}
{volist name="descriptionArr" id="one"}
{/volist}
{php}
$sr_type_cur = $sr_type ?? 'all';
$sr_q = $keywords ?? '';
$sr_counts = $sr_counts ?? ['all' => 0, 'product' => 0, 'news' => 0, 'faq' => 0, 'other' => 0];
$sr_tabs = [];
foreach (['all', 'product', 'news', 'faq', 'other'] as $tabType) {
$query = ['type' => $tabType];
if ($sr_q !== '') {
$query['q'] = $sr_q;
}
$sr_tabs[$tabType] = getMuiLangUrl('/search.html?' . http_build_query($query));
}
{/php}
{volist name="list" id="vo"}
{php}
$sr_kind = $vo['sr_kind'] ?? 'content';
$sr_date = $vo['sr_date'] ?? '';
if ($sr_date === '') {
$sr_time = $vo['publish_time'] ?? ($vo['create_time'] ?? '');
if ($sr_time !== '' && $sr_time !== null) {
if (is_numeric($sr_time)) {
$sr_date = date('Y-m-d', (int)$sr_time);
} else {
$ts = strtotime((string)$sr_time);
$sr_date = $ts ? date('Y-m-d', $ts) : substr((string)$sr_time, 0, 10);
}
}
}
$sr_cid = $vo['category_id'] ?? ($vo['category'][0]['id'] ?? 0);
$sr_thumb = is_array($vo['thumbnail'] ?? null) ? ($vo['thumbnail']['url'] ?? '') : '';
$sr_url = hcUrl('detail/index', ['id' => $vo['id'], 'cid' => $sr_cid]);
$sr_file = $vo['url'] ?? '';
$sr_title = $vo['title'] ?? '';
$sr_type_name = $vo['sr_tab_name'] ?? 'Content';
$sr_show_desc = ($sr_kind === 'news' || $sr_kind === 'content');
$sr_show_more = ($sr_kind === 'news' || $sr_kind === 'content');
{/php}
{if $sr_kind == 'video'}
{elseif $sr_kind == 'download' /}
{elseif $sr_kind == 'announce' /}
{else /}
{/if}
{$sr_type_name}
{if $sr_kind == 'faq'}
{else /}
{if $sr_kind == 'video'}
{$sr_title}
{elseif $sr_kind == 'download' /}
{$sr_title}
{elseif $sr_kind == 'announce' /}
{$sr_title}
{else /}
{$sr_title}
{/if}
{/if}
{if $sr_show_desc}
{notempty name="vo.description"}
{$vo.description}
{/notempty}
{/if}
{if $sr_kind == 'download'}
Download
{elseif $sr_kind == 'product' /}
Learn more
{elseif $sr_kind == 'announce' /}
Explore more
{elseif $sr_show_more /}
Explore more
{/if}
{/volist}
{php}
$list_empty = isHcListEmpty($list ?? null);
if ($list_empty) {
$empty_text = 'No matching results. Try another keyword';
}
{/php}
{if $list_empty}
{include file="components/empty"}
{else /}
{$list_page|raw}
{/if}
Video