This commit is contained in:
make
2026-01-11 23:20:30 +08:00
parent 222454acef
commit 7823de7ddd
16 changed files with 565 additions and 200 deletions

View File

@@ -0,0 +1,58 @@
<div class="ch-a v{$TpStyle.template_cfg.pages.category_home.variant}">
<div class="breadcrumb">
<a href="/">{$DomainModel->d_name}</a> &gt; 分类导航
</div>
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
<section class="cat-box">
<header class="cat-hd">
{if $TpStyle.template_cfg.pages.category_home.variant < 5}
<h2>{$val.v_category}</h2>
{elseif $TpStyle.template_cfg.pages.category_home.variant < 10 /}
<h2>{$val.v_category}分类</h2>
{elseif $TpStyle.template_cfg.pages.category_home.variant < 15 /}
<h3>{$val.v_category}频道</h3>
{else /}
<h3>{$val.v_category}类型导航</h3>
{/if}
{if $TpStyle.template_cfg.pages.category_home.variant < 10}
<a class="more"
href="{site:vciurl parent_category="$val.v_category_en" /}">
更多
</a>
{/if}
</header>
{if in_array($TpStyle.template_cfg.pages.category_home.variant,[2,5,9,13,17])}
<p class="intro">
提供{$val.v_category}相关热门分类,持续更新。
</p>
{/if}
<ul class="cat-list">
{if $TpStyle.template_cfg.pages.category_home.variant % 2 == 0}
{foreach $val.children as $child}
<li>
<a href="{site:vclurl parent_category="$val.v_category_en" category="$child.v_category_en" page="1"}">
{$child.v_category}
</a>
</li>
{/foreach}
{else /}
{foreach array_reverse($val.children) as $child}
<li>
<a href="{site:vclurl parent_category="$val.v_category_en" category="$child.v_category_en" page="1"}">
{$child.v_category}
</a>
</li>
{/foreach}
{/if}
</ul>
</section>
{/video:categorytype}
</div>

View File

@@ -0,0 +1,40 @@
<div class="ch-b v{$TpStyle.template_cfg.pages.category_home.variant}">
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
<section class="cat-channel">
<header class="channel-hd">
{if $TpStyle.template_cfg.pages.category_home.variant < 10}
<h2>{$val.v_category}频道</h2>
{else /}
<h3>{$val.v_category}内容分类</h3>
{/if}
{if in_array($TpStyle.template_cfg.pages.category_home.variant,[1,6,11,16])}
<p class="desc">
汇集{$val.v_category}下的热门类型,便于快速查找。
</p>
{/if}
</header>
<div class="channel-grid">
{foreach $val.children as $child}
<a class="channel-card"
href="{site:vclurl parent_category="$val.v_category_en" category="$child.v_category_en" page="1"}">
<span>{$child.v_category}</span>
</a>
{/foreach}
</div>
{if $TpStyle.template_cfg.pages.category_home.variant >= 10}
<div class="channel-more">
<a href="{site:vciurl parent_category="$val.v_category_en" /}">
查看{$val.v_category}全部分类
</a>
</div>
{/if}
</section>
{/video:categorytype}
</div>

View File

@@ -0,0 +1,31 @@
<div class="ch-c v{$TpStyle.template_cfg.pages.category_home.variant}">
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
<article class="cat-article">
{if $TpStyle.template_cfg.pages.category_home.variant < 7}
<h2>{$val.v_category}分类导航</h2>
{elseif $TpStyle.template_cfg.pages.category_home.variant < 14 /}
<h3>{$val.v_category}内容索引</h3>
{else /}
<h3>{$val.v_category}类型入口</h3>
{/if}
{if !in_array($TpStyle.template_cfg.pages.category_home.variant,[4,9,16])}
<p class="intro">
本页整理{$val.v_category}相关的多个细分类型,方便浏览与筛选。
</p>
{/if}
<nav class="cat-nav">
{foreach $val.children as $child}
<a href="{site:vclurl parent_category="$val.v_category_en" category="$child.v_category_en" page="1"}">
{$child.v_category}
</a>
{/foreach}
</nav>
</article>
{/video:categorytype}
</div>