gpt
This commit is contained in:
74
code/app/home/view/videoGpt1/module/pinlun/pinlun_C.html
Normal file
74
code/app/home/view/videoGpt1/module/pinlun/pinlun_C.html
Normal file
@@ -0,0 +1,74 @@
|
||||
{php}
|
||||
$V = $variant % 20;
|
||||
|
||||
/* 20 个标题(偏内容 / 热评) */
|
||||
$titles = [
|
||||
'网友热评','大家的看法','评论精选','短评摘要','热门反馈',
|
||||
'讨论精选','观后感','大家在说','影评摘录','热评',
|
||||
'评论亮点','精选留言','内容反馈','观众声音','短评',
|
||||
'讨论要点','网友评价','反馈','热门评论','大家的意见'
|
||||
];
|
||||
|
||||
$wrapTags = ['div','section','aside'];
|
||||
$cardsWrap = ['div','div','section'];
|
||||
$cardTags = ['div','article'];
|
||||
$titleTags = ['strong','h3','h4','span',null];
|
||||
|
||||
$titleText = $titles[$V];
|
||||
$wrapTag = $wrapTags[$V % count($wrapTags)];
|
||||
$cardsTag = $cardsWrap[$V % count($cardsWrap)];
|
||||
$cardTag = $cardTags[$V % count($cardTags)];
|
||||
$titleTag = $titleTags[$V % count($titleTags)];
|
||||
$metaMode = $V % 5; // 0=user 1=time 2=both 3=none 4=inline
|
||||
{/php}
|
||||
|
||||
<{$wrapTag} class="{$baseCls} layout-c v{$V}">
|
||||
|
||||
{if $titleTag}
|
||||
<{$titleTag} class="{$TpStyle.dom_prefix}-cmt-title">
|
||||
{$titleText}
|
||||
</{$titleTag}>
|
||||
{/if}
|
||||
|
||||
<{$cardsTag} class="{$TpStyle.dom_prefix}-cmt-cards">
|
||||
|
||||
{volist name="arrPinlun" id="it"}
|
||||
|
||||
<{$cardTag} class="{$TpStyle.dom_prefix}-cmt-card">
|
||||
|
||||
{if $metaMode == 0}
|
||||
<div class="{$TpStyle.dom_prefix}-cmt-meta">
|
||||
<span>{$it.user}</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $metaMode == 1}
|
||||
<div class="{$TpStyle.dom_prefix}-cmt-meta">
|
||||
<time>{$it.time}</time>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="{$TpStyle.dom_prefix}-cmt-text">
|
||||
{$it.text}
|
||||
</div>
|
||||
|
||||
{if $metaMode == 2}
|
||||
<div class="{$TpStyle.dom_prefix}-cmt-meta">
|
||||
<span>{$it.user}</span>
|
||||
<time>{$it.time}</time>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $metaMode == 4}
|
||||
<span class="{$TpStyle.dom_prefix}-cmt-inline">
|
||||
{$it.user} · {$it.time}
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
</{$cardTag}>
|
||||
|
||||
{/volist}
|
||||
|
||||
</{$cardsTag}>
|
||||
|
||||
</{$wrapTag}>
|
||||
Reference in New Issue
Block a user