70 lines
1.9 KiB
HTML
70 lines
1.9 KiB
HTML
{php}
|
|
$V = $variant % 20;
|
|
|
|
/* 20 个不同标题 */
|
|
$titles = [
|
|
'观众评论','大家都在说','留言区','网友讨论','评论列表',
|
|
'讨论区','大家怎么看','留言板','影迷交流','看法汇总',
|
|
'用户反馈','评论','短评','影迷说','大家的意见',
|
|
'交流区','讨论','留言','网友声音','评论区'
|
|
];
|
|
|
|
/* 标签池 */
|
|
$wrapTags = ['section','div','aside'];
|
|
$listTags = ['ul','ol','div'];
|
|
$itemTags = ['li','li','div']; // 强化列表感
|
|
$titleTags = ['h3','h4','strong','span',null];
|
|
|
|
$titleText = $titles[$V];
|
|
$wrapTag = $wrapTags[$V % count($wrapTags)];
|
|
$listTag = $listTags[$V % count($listTags)];
|
|
$itemTag = $itemTags[$V % count($itemTags)];
|
|
$titleTag = $titleTags[$V % count($titleTags)];
|
|
$metaPos = $V % 4; // 0=top 1=bottom 2=inline 3=none
|
|
{/php}
|
|
|
|
<{$wrapTag} class="{$baseCls} layout-b 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>
|
|
<span>{$it.time}</span>
|
|
</div>
|
|
{/if}
|
|
|
|
{if $metaPos == 2}
|
|
<span class="{$TpStyle.dom_prefix}-cmt-user">{$it.user}</span>
|
|
{/if}
|
|
|
|
<div class="{$TpStyle.dom_prefix}-cmt-text">
|
|
{$it.text}
|
|
</div>
|
|
|
|
{if $metaPos == 1}
|
|
<div class="{$TpStyle.dom_prefix}-cmt-meta">
|
|
<span>{$it.user}</span>
|
|
<span>{$it.time}</span>
|
|
</div>
|
|
{/if}
|
|
|
|
</{$itemTag}>
|
|
|
|
{/volist}
|
|
|
|
</{$listTag}>
|
|
|
|
</{$wrapTag}> |