250 lines
11 KiB
HTML
250 lines
11 KiB
HTML
{extend name="base" /}
|
|
|
|
{block name="get-data"}
|
|
{video:pagerexp page="$Request.get.page" limit="10"
|
|
key="$Request.get.keyword"
|
|
d_key="d_key"
|
|
d_val="Video"
|
|
p_val="page_data" button_num="5" cache_life="86400" func="generateSearchPager" export_name="resData" /}
|
|
{site:grm page_code="h5_video_search" diff="$Request.url" num="30" g_key="arrGrm" /}
|
|
{/block}
|
|
|
|
|
|
{block name="title"}{site:replace code="VIDEO@GETSEARCHVIDEO@TITLE"}{/block}
|
|
{block name="keywords"}{site:replace code="VIDEO@GETSEARCHVIDEO@KEYWORDS"}{/block}
|
|
{block name="description"}{site:replace code="VIDEO@GETSEARCHVIDEO@DESCRIPTION"}{/block}
|
|
|
|
|
|
{block name="head"}
|
|
<meta property="og:title" content='{site:replace code="VIDEO@GETSEARCHVIDEO@TITLE"}'>
|
|
<meta property="og:description" content='{site:replace code="VIDEO@GETSEARCHVIDEO@DESCRIPTION"}'>
|
|
<meta property="og:url" content='https://{$DomainModel->d_domain}{site:vsurl key="search_term_string" p="1"/}'>
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:site_name" content='{$DomainModel->d_name}'>
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:title" content='{site:replace code="VIDEO@GETSEARCHVIDEO@TITLE"}'>
|
|
<meta name="twitter:description" content='{site:replace code="VIDEO@GETSEARCHVIDEO@DESCRIPTION"}'>
|
|
<meta name="twitter:image:alt" content="动作电影 搜索结果第1页">
|
|
|
|
{// 结构化数据}
|
|
<script type="application/ld+json">
|
|
[
|
|
{
|
|
"@type": "WebSite",
|
|
"name": "{$DomainModel->d_name}",
|
|
"url": "https://{$DomainModel->d_domain}",
|
|
"alternateName": "{$DomainModel->d_domain}",
|
|
"description": "{site:replace code="VIDEO@INDEX@INDEX@DESCRIPTION"}",
|
|
"potentialAction": {
|
|
"@type": "SearchAction",
|
|
"target": 'https://{$DomainModel->d_domain}{site:vsurl key="search_term_string" p="1"/}',
|
|
"query-input": "required name=search_term_string"
|
|
}
|
|
|
|
},
|
|
{
|
|
"@type": "CollectionPage",
|
|
"name": "{$DomainModel->d_name} - {$DomainModel->d_logo_text}",
|
|
"url": "https://{$DomainModel->d_domain}",
|
|
"alternateName": "{$DomainModel->d_domain}",
|
|
"description": '{site:replace code="VIDEO@GETSEARCHVIDEO@DESCRIPTION"}',
|
|
"mainEntity": {
|
|
"@type": "ItemList",
|
|
"itemListElement": [
|
|
{volist name="resData.data" id="Video" key="key"}
|
|
{if $key < 5 }
|
|
{
|
|
"@type": "ListItem",
|
|
"position": {$key},
|
|
"item": {
|
|
"@type": "Movies",
|
|
"name": "{$Video.v_name}",
|
|
"url": 'https://{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}',
|
|
"description": "{$Video.v_description}",
|
|
"actor": [
|
|
{foreach $Video.v_actor as $strActorKey=>$strActor }
|
|
{if $strActorKey < 5 }
|
|
{ "@type": "Person", "name": "{$strActor}" },
|
|
{/if}
|
|
{/foreach}
|
|
],
|
|
"numberOfEpisodes": {$Video.v_play_url|count},
|
|
"image": "{$Video.v_pic}",
|
|
"aggregateRating": {
|
|
"@type": "AggregateRating",
|
|
"ratingValue": "{$Video.v_score}",
|
|
}
|
|
}
|
|
},
|
|
{/if}
|
|
{/volist}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
</script>
|
|
{/block}
|
|
|
|
|
|
{block name="head-css"}
|
|
|
|
{/block}
|
|
|
|
{block name="head-js"}
|
|
|
|
{/block}
|
|
|
|
{block name="main"}
|
|
<div class="container">
|
|
|
|
<h1 class="view-title">
|
|
{site:replace code="VIDEO@GETSEARCHVIDEO@H1"}
|
|
</h1>
|
|
<h4 class="view-description">{site:replace code="VIDEO@GETSEARCHVIDEO@TEXT"}</h4>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-wide-75 col-xs-1 padding-0">
|
|
<div class="stui-pannel stui-pannel-bg clearfix">
|
|
<div class="stui-pannel-box">
|
|
<div class="stui-pannel_hd">
|
|
<div class="stui-pannel__head active bottom-line clearfix">
|
|
<h3 class="title"> 搜索<span style="color:red">“{$Request.get.keyword}”</span>相关结果共有 <span style="color:red">{$resData.p_data.total}</span> 部视频 </h3>
|
|
</div>
|
|
</div>
|
|
<div class="stui-pannel_bd">
|
|
<ul class="stui-vodlist__media col-pd clearfix">
|
|
|
|
{foreach $resData.data as $key=>$Video}
|
|
<li class="active clearfix">
|
|
{if !empty($arrGrm[$key])}
|
|
{$arrGrm[$key]|raw}
|
|
{/if}
|
|
<div class="thumb"><a
|
|
|
|
class="v-thumb stui-vodlist__thumb lazyload-bg"
|
|
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'
|
|
title="{$Video.v_name}"
|
|
data-src="{$Video.v_pic}"><span
|
|
class="play hidden-xs"></span><span
|
|
class="pic-text text-right">{$Video.v_remarks}</span></a></div>
|
|
<div class="detail">
|
|
<h3 class="title"><a
|
|
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'>{$Video.v_name}</a></h3>
|
|
<p><span class="text-muted">导演:</span>
|
|
{foreach $Video.v_director as $keyDirector=>$strDirector}
|
|
{$strDirector}
|
|
{/foreach}
|
|
</p>
|
|
<p><span class="text-muted">主演:</span>
|
|
{foreach $Video.v_actor as $keyActor=>$strActor}
|
|
{$strActor}
|
|
{/foreach}
|
|
</p>
|
|
<p class="hidden-mi">
|
|
<span class="text-muted">类型:</span>
|
|
{$Video.v_category}
|
|
<span class="split-line"></span>
|
|
<span class="text-muted">地区:</span>
|
|
{foreach $Video.v_area as $keyArea=>$strArea}
|
|
<a href='{site:vsurl key="$strArea" p="1"/}'>{$strArea}</a>
|
|
|
|
{/foreach}
|
|
<span class="hidden-xs">
|
|
<span class="split-line"></span>
|
|
<span class="text-muted">年份:</span>
|
|
{$Video.v_year}
|
|
</span>
|
|
</p>
|
|
<p class="margin-0"><a
|
|
class="btn btn-min btn-primary"
|
|
href='{site:vpurl v_id="$Video.v_id" v_py="$Video.v_name_en" play_type="default" play_index="1" /}'>立即播放</a> <a
|
|
class="btn btn-min btn-default"
|
|
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'>查看详情</a></p>
|
|
</div>
|
|
|
|
</li>
|
|
{/foreach}
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 分页 -->
|
|
<ul class="stui-page text-center clearfix">
|
|
{volist name="resData.p_data.pager" id="vo" key="k"}
|
|
{switch $vo.label}
|
|
{case value="上一页"}
|
|
{if $resData.p_data.page == 1}
|
|
<li class="disabled"><span>上一页</span></li>
|
|
{else}
|
|
<li><a href="{$vo.url}">1</a></li>
|
|
{/if}
|
|
{/case}
|
|
{case value="下一页"}
|
|
{if $resData.p_data.page >= $resData.p_data.total}
|
|
<li class="disabled"><span>下一页</span></li>
|
|
{else}
|
|
<li><a href="{$vo.url}">下一页</a></li>
|
|
{/if}
|
|
{/case}
|
|
{default /}
|
|
{if preg_match('/^\d+$/', $vo.label)}
|
|
<li class='{eq name="vo.label" value="$Request.route.intPage"}active {/eq}'>
|
|
<a href="{$vo.url}">{$vo.label}</a>
|
|
</li>
|
|
{/if}
|
|
{/switch}
|
|
{/volist}
|
|
</ul>
|
|
|
|
|
|
</div>
|
|
<div class="col-lg-wide-25 stui-pannel-side hidden-md hidden-sm hidden-xs">
|
|
<div class="stui-pannel stui-pannel-bg clearfix">
|
|
<div class="stui-pannel-box">
|
|
<div class="stui-pannel_hd">
|
|
<div class="stui-pannel__head active bottom-line clearfix">
|
|
<h3 class="title"><img src="/template/videodadi/icon/icon_dian-ying.png">电影热播榜</h3>
|
|
</div>
|
|
</div>
|
|
<div class="stui-pannel_bd clearfix">
|
|
<ul class="stui-vodlist__text active col-pd clearfix">
|
|
{video:ranklist count="20"
|
|
v_parent_category_en="dian-ying"
|
|
sort_type="total"
|
|
d_key="key" d_val="Video" cache_life="86400"}
|
|
{include file="public/video-list-phb" start="11"/}
|
|
{/video:ranklist}
|
|
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="stui-pannel stui-pannel-bg clearfix">
|
|
<div class="stui-pannel-box">
|
|
<div class="stui-pannel_hd">
|
|
<div class="stui-pannel__head active bottom-line clearfix">
|
|
<h3 class="title"><img src="/template/videodadi/icon/icon_dian-shi-ju.png">电视剧热播榜</h3>
|
|
</div>
|
|
</div>
|
|
<div class="stui-pannel_bd clearfix">
|
|
<ul class="stui-vodlist__text active col-pd clearfix">
|
|
{video:ranklist count="20"
|
|
v_parent_category_en="dian-shi-ju"
|
|
sort_type="total"
|
|
d_key="key" d_val="Video" cache_life="86400"}
|
|
{include file="public/video-list-phb" start="31"/}
|
|
{/video:ranklist}
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
{block name="customize"}
|
|
|
|
{/block} |