231 lines
10 KiB
HTML
231 lines
10 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="wrap">
|
|
<div class="container min">
|
|
|
|
<h1 class="view-title">
|
|
{site:replace code="VIDEO@GETSEARCHVIDEO@H1"}
|
|
</h1>
|
|
<h4 class="view-description">{site:replace code="VIDEO@GETSEARCHVIDEO@TEXT"}</h4>
|
|
|
|
<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 class="row">
|
|
<div class="myui-panel myui-panel-bg clearfix">
|
|
<div class="myui-panel-box clearfix">
|
|
<div class="myui-panel_hd">
|
|
<div class="myui-panel__head active bottom-line clearfix">
|
|
<h2 class="a1100b title"> 搜索<span style="color:red">“{$Request.get.keyword}”</span>相关结果共有 <span style="color:red">{$resData.p_data.total}</span> 部视频 </h2>
|
|
</div>
|
|
</div>
|
|
<div class="myui-panel_bd col-pd clearfix">
|
|
<ul class="myui-vodlist__media clearfix" id="searchList">
|
|
{foreach $resData.data as $key=>$Video}
|
|
|
|
<li class="active clearfix">
|
|
<div class="thumb">
|
|
<a class="myui-vodlist__thumb img-lg-150 img-xs-100 lazyload"
|
|
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'
|
|
title="{$Video.v_name}"
|
|
data-original="{$Video.v_pic}"
|
|
style="background-image: url("{$Video.v_pic}");">
|
|
<span class="play hidden-xs"></span>
|
|
<span class="pic-tag pic-tag-top" style="background-color: #5bb7fe;">{$Video.v_score}分</span>
|
|
<span class="pic-text text-right">{$Video.v_remarks}</span>
|
|
</a>
|
|
</div>
|
|
<div class="detail">
|
|
<h4 class="title">
|
|
<a href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'>
|
|
{$Video.v_name}
|
|
</a>
|
|
</h4>
|
|
<p><span class="text-muted">导演:</span>内详</p>
|
|
<p><span class="text-muted">主演:</span>内详</p>
|
|
<p><span class="text-muted">分类:</span>
|
|
{$Video.v_parent_category}
|
|
<span class="split-line"></span>
|
|
<span class="text-muted hidden-xs">地区:</span>
|
|
内详
|
|
<span class="split-line"></span>
|
|
<span class="text-muted hidden-xs">年份:</span>
|
|
{$Video.v_year}
|
|
</p>
|
|
<p class="hidden-xs">
|
|
<span class="text-muted">简介:</span>
|
|
...
|
|
<a href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'>详情 ></a>
|
|
</p>
|
|
<p class="margin-0">
|
|
<a class="btn btn-sm btn-warm"
|
|
href='{site:vpurl v_id="$Video.v_id" v_py="$Video.v_name_en" play_type="default" play_index="1" /}'>
|
|
<i class="fa fa-play"></i>
|
|
立即播放
|
|
</a>
|
|
|
|
<a class="btn btn-sm btn-default hidden-xs"
|
|
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'>
|
|
查看详情
|
|
<i class="fa fa-angle-right"></i>
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</li>
|
|
{/foreach}
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<ul class="myui-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.route.intPage"}btn-warm {/eq} btn-default '>{$vo.label}</a>
|
|
</li>
|
|
{/if}
|
|
{/switch}
|
|
{/volist}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- <script
|
|
type="text/javascript">
|
|
var wdkey = /哪吒/g; var wd = $('#searchList'); wd[0].innerHTML = wd[0].innerHTML.replace(wdkey, "<font color=red>哪吒</font>");
|
|
</script> -->
|
|
|
|
|
|
{/block}
|
|
{block name="customize"}
|
|
|
|
{/block} |