gpt
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
{// ===================== Cover Variants ===================== }
|
||||
{video:imgalt video="$arrVideo" slot="detail_cover" item_type="poster" export_name="strAlt" /}
|
||||
|
||||
{if $variant == 0}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover v0">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}"
|
||||
alt="{$arrVideo.v_name}">
|
||||
alt="{$strAlt}">
|
||||
</div>
|
||||
|
||||
{elseif $variant == 1}
|
||||
<figure class="{$TpStyle.dom_prefix}-dm-cover v1">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}"
|
||||
alt="{$arrVideo.v_name}">
|
||||
alt="{$strAlt}">
|
||||
<figcaption class="{$TpStyle.dom_prefix}-dm-cover-cap">
|
||||
{$arrVideo.v_remarks}
|
||||
</figcaption>
|
||||
@@ -22,19 +23,19 @@
|
||||
href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}"
|
||||
alt="{$arrVideo.v_name}">
|
||||
alt="{$strAlt}">
|
||||
</a>
|
||||
|
||||
{elseif $variant == 3}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover v3">
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover-bg"
|
||||
data-bg="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}"></div>
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-bg" alt="{$strAlt}"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
</div>
|
||||
|
||||
{elseif $variant == 4}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover v4">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}" alt="{$strAlt}">
|
||||
<span class="{$TpStyle.dom_prefix}-dm-cover-badge">
|
||||
{$arrVideo.v_year}
|
||||
</span>
|
||||
@@ -43,7 +44,7 @@
|
||||
{elseif $variant == 5}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover v5">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}" alt="{$strAlt}">
|
||||
<span class="{$TpStyle.dom_prefix}-dm-cover-score">
|
||||
{$arrVideo.v_score}
|
||||
</span>
|
||||
@@ -51,29 +52,29 @@
|
||||
|
||||
{elseif $variant == 6}
|
||||
<section class="{$TpStyle.dom_prefix}-dm-cover v6">
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover-bg"
|
||||
data-bg="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}"></div>
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-bg" alt="{$strAlt}"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
<span class="{$TpStyle.dom_prefix}-dm-cover-play"></span>
|
||||
</section>
|
||||
|
||||
{elseif $variant == 7}
|
||||
<article class="{$TpStyle.dom_prefix}-dm-cover v7">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}" alt="{$strAlt}">
|
||||
</article>
|
||||
|
||||
{elseif $variant == 8}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover v8">
|
||||
<picture class="{$TpStyle.dom_prefix}-dm-cover-pic">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}" alt="{$strAlt}">
|
||||
</picture>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 9}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover v9">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}" alt="{$strAlt}">
|
||||
<span class="{$TpStyle.dom_prefix}-dm-cover-remark">
|
||||
{$arrVideo.v_remarks}
|
||||
</span>
|
||||
@@ -81,36 +82,36 @@
|
||||
|
||||
{elseif $variant == 10}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover v10">
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover-bg"
|
||||
data-bg="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}"></div>
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-bg" alt="{$strAlt}"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
<span class="{$TpStyle.dom_prefix}-dm-cover-tag">HD</span>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 11}
|
||||
<a class="{$TpStyle.dom_prefix}-dm-cover v11"
|
||||
href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover-bg"
|
||||
data-bg="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}"></div>
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-bg" alt="{$strAlt}"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
</a>
|
||||
|
||||
{elseif $variant == 12}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover v12">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}" alt="{$strAlt}">
|
||||
<span class="{$TpStyle.dom_prefix}-dm-cover-top">更新中</span>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 13}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover v13">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}" alt="{$strAlt}">
|
||||
<span class="{$TpStyle.dom_prefix}-dm-cover-corner"></span>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 14}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover v14">
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover-bg"
|
||||
data-bg="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}"></div>
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-bg" alt="{$strAlt}"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
<span class="{$TpStyle.dom_prefix}-dm-cover-year">
|
||||
{$arrVideo.v_year}
|
||||
</span>
|
||||
@@ -119,7 +120,7 @@
|
||||
{elseif $variant == 15}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover v15">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}" alt="{$strAlt}">
|
||||
<span class="{$TpStyle.dom_prefix}-dm-cover-free">
|
||||
免费
|
||||
</span>
|
||||
@@ -128,24 +129,24 @@
|
||||
{elseif $variant == 16}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover v16">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}" alt="{$strAlt}">
|
||||
<span class="{$TpStyle.dom_prefix}-dm-cover-mask"></span>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 17}
|
||||
<aside class="{$TpStyle.dom_prefix}-dm-cover v17">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img" alt="{$strAlt}"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
</aside>
|
||||
|
||||
{elseif $variant == 18}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover v18"
|
||||
data-cover="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
</div>
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover v18" alt="{$strAlt}"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
|
||||
|
||||
{elseif $variant == 19}
|
||||
<section class="{$TpStyle.dom_prefix}-dm-cover v19">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img" alt="{$strAlt}"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
</section>
|
||||
|
||||
|
||||
@@ -132,3 +132,7 @@
|
||||
</article>
|
||||
|
||||
{/if}
|
||||
|
||||
{video:seoaddon video="$arrVideo" export_name="arrAddon" /}
|
||||
{include file="module/detail/_seo_addon" /}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{// ===================== Meta Variants (Array-aware, no i_last) ===================== }
|
||||
|
||||
{// 预计算长度(避免 i_last) }
|
||||
{// 预计算长度(避免 i_last) }
|
||||
{assign name="len_area" value="is_array($arrVideo.v_area)?count($arrVideo.v_area):0"}
|
||||
{assign name="len_actor" value="is_array($arrVideo.v_actor)?count($arrVideo.v_actor):0"}
|
||||
{assign name="len_director" value="is_array($arrVideo.v_director)?count($arrVideo.v_director):0"}
|
||||
|
||||
Reference in New Issue
Block a user