Files
2026-01-09 01:28:23 +08:00

61 lines
1.7 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{php}
/**
* Layout A标准影评 / SEO 语义型
* variant ∈ 019
*/
$V = $variant % 20;
$titles = [
'最新评论','观众留言','短评','大家都在说','讨论区',
'网友热评','评论精选','看完的朋友说','短评区','评论',
'留言板','互动','影评摘录','短评','大家怎么看',
'评论区','看法','观后感','评论摘要','讨论'
];
$titleTags = ['h3','h4','strong','span',null];
$wrapTags = ['section','aside','div'];
$listTags = ['div','ul','ol','dl'];
$itemTags = ['article','div','li'];
$titleText = $titles[$V];
$titleTag = $titleTags[$V % count($titleTags)];
$wrapTag = $wrapTags[$V % count($wrapTags)];
$listTag = $listTags[$V % count($listTags)];
$itemTag = $itemTags[$V % count($itemTags)];
$metaPos = $V % 3; // 0=top 1=bottom 2=inline
{/php}
<{$wrapTag} class="{$baseCls} layout-a v{$V}">
{if $titleTag}
<header class="{$TpStyle.dom_prefix}-cmt-hd">
<{$titleTag} class="{$TpStyle.dom_prefix}-cmt-title">{$titleText}</{$titleTag}>
</header>
{/if}
<{$listTag} class="{$TpStyle.dom_prefix}-cmt-list">
{volist name="arrPinlun" id="it"}
<{$itemTag} class="{$TpStyle.dom_prefix}-cmt-item">
{if $metaPos == 0}
<div class="{$TpStyle.dom_prefix}-cmt-meta">
<span>{$it.user}</span>
<time>{$it.time}</time>
</div>
{/if}
<p class="{$TpStyle.dom_prefix}-cmt-text">{$it.text}</p>
{if $metaPos == 1}
<div class="{$TpStyle.dom_prefix}-cmt-meta">
<span>{$it.user}</span>
<time>{$it.time}</time>
</div>
{/if}
</{$itemTag}>
{/volist}
</{$listTag}>
</{$wrapTag}>