193 lines
7.7 KiB
HTML
193 lines
7.7 KiB
HTML
{extend name="base" /}
|
|
|
|
{block name="get-data"}
|
|
{video:pagerexp page="$Request.get.page" limit="12"
|
|
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="a0395c container">
|
|
<div class="a586f3 layout-box top-weizhi mb-xs-10 hidden-sm hidden-xs">
|
|
<nav class="breadcrumb" aria-label="breadcrumb">
|
|
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
|
|
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
|
<a href="/" itemprop="item">
|
|
<span itemprop="name">首页</span>
|
|
</a>
|
|
<meta itemprop="position" content="1" />
|
|
</li>
|
|
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
|
<a href='{site:vsurl key="$Request.get.keyword" p="1"/}' itemprop="item">
|
|
<span itemprop="name">搜索:{$Request.get.keyword}</span>
|
|
</a>
|
|
<meta itemprop="position" content="2" />
|
|
</li>
|
|
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
|
|
<h1 class="view-title">
|
|
{site:replace code="VIDEO@GETSEARCHVIDEO@H1"}
|
|
</h1>
|
|
<h4 class="view-description">{site:replace code="VIDEO@GETSEARCHVIDEO@TEXT"}</h4>
|
|
|
|
<div class="a0f98b row">
|
|
<div class="fd0958 col-md-wide-75 col-sm-wide-1 pt-xs-0 pr-xs-5 mt-xs-0 main-left">
|
|
<div class="f96105 pannel-box mt-xs-0 clearfix">
|
|
|
|
<div class="cd1b0f box-title">
|
|
<h2 class="a1100b title"> 搜索<span
|
|
style="color:red">“{$Request.get.keyword}”</span>相关结果共有 <span
|
|
style="color:red">{$resData.p_data.total}</span> 部视频 </h2>
|
|
</div>
|
|
|
|
<div class="ca586e clearfix" id="content">
|
|
<ul class="fb3c38 img-list clearfix news-list hide-hits">
|
|
{foreach $resData.data as $key=>$Video}
|
|
{include file="public/video-list-shu" start="0" col-md="6"/}
|
|
{/foreach}
|
|
</ul>
|
|
</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>
|
|
<a href="{$vo.url}"
|
|
class='cc4f99 btn {eq name="vo.label" value="$Request.get.page"}btn-warm {/eq} btn-default '>{$vo.label}</a>
|
|
</li>
|
|
{/if}
|
|
{/switch}
|
|
{/volist}
|
|
</ul>
|
|
|
|
</div>
|
|
<div class="fb44a5 col-md-wide-25 pt-xs-0 main-right hidden-sm hidden-xs" style="position:sticky;top:-10px;">
|
|
<div class="dfb7d2 pannel-box mt-xs-0 clearfix">
|
|
<div class="e3a1c3 box-title "><span class="dea086 title-lb"></span>
|
|
<h2>热门影视</h2>
|
|
</div>
|
|
<ul class="d6b451 txt-list txt-list-hot p-xs-0">
|
|
{video:ranklist count="20"
|
|
sort_type="weekly"
|
|
d_key="key" d_val="Video" cache_life="86400"}
|
|
{include file="public/video-list-phb" start="80"/}
|
|
{/video:ranklist}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{/block}
|
|
{block name="customize"}
|
|
|
|
{/block} |