This commit is contained in:
make
2026-01-09 01:28:23 +08:00
parent eb8c097777
commit 90fc16fbc3
241 changed files with 26518 additions and 3570 deletions

View File

@@ -1,21 +1,82 @@
{extend name="base" /}
{block name="get-data"}
{assign name="arrSlots" value="$TpStyle.template_cfg.pages.rank_home.slots"}
{/block}
{block name="title"}{site:replace code="VIDEO@GETVIDEORANKINDEX@TITLE"}{/block}
{block name="keywords"}{site:replace code="VIDEO@GETVIDEORANKINDEX@KEYWORDS"}{/block}
{block name="description"}{site:replace code="VIDEO@GETVIDEORANKINDEX@DESCRIPTION"}{/block}
{block name="title"}{site:seotkd code="title" page="rank_index" /}{/block}
{block name="keywords"}{site:seotkd code="keywords" page="rank_index" /}{/block}
{block name="description"}{site:seotkd code="description" page="rank_index" /}{/block}
{block name="head"}
<meta name="robots" content="index,follow">
<link rel="canonical" href='https://{$DomainModel->d_domain}{$strRankUrlTemp}'>
{// 社交媒体标签}
<meta property="og:title" content='{site:seotkd code="title" page="rank_index" /}' />
<meta property="og:description" content='{site:seotkd code="description" page="rank_index" /}' />
<meta property="og:url" content="https://{$DomainModel->d_domain}" />
<meta property="og:type" content="video.movie" />
<script type="application/ld+json">
[
{
"@context": "https://schema.org",
"@type": "CollectionPage",
"name": "{$DomainModel->d_name} - 最新排行榜推荐",
"url": "https://{$DomainModel->d_domain}",
"headline": '{site:seotkd code="title" page="rank_index" /}',
"description": '{site:seotkd code="description" page="rank_index" /}',
"potentialAction": {
"@type": "SearchAction",
"target": 'https://{$DomainModel->d_domain}{site:vsurl key="search_term_string" p="1"/}",
"query-input": "required name=search_term_string"
}
"hasPart": [
{video:ranklist count="5"
sort_type="weekly"
d_key="key" d_val="Video" cache_life="3600"}
{if $key < 10 }
{
"@type": "VideoObject",
"name": "{$Video.v_name}",
"description": "{$Video.v_description}",
"thumbnailUrl": '{$Video.v_pic}',
"uploadDate": "{:date('Y-m-d')}",
"url": 'https://{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}',
},
{/if}
{/video:ranklist}
]
},
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "首页",
"item": "https://{$DomainModel->d_domain}"
},
{
"@type": "ListItem",
"position": 2,
"name": "排行榜首页",
"item": "https://{$DomainModel->d_domain}{$strRankUrlTemp}"
}
]
},
]
</script>
{/block}
{block name="head-css"}
{/block}
@@ -28,35 +89,22 @@
{block name="main"}
{assign name="cfg" value="$TpStyle.template_cfg.list_layout.rank_list_index"}
{assign name="listCfg" value="$TpStyle.template_cfg.list_layout.rank_list_index"}
{assign name="rankModules" value="$TpStyle.template_cfg.pages.rank_home.modules"}
{assign name="limit" value="$cfg['layout']['max_items']"}
<section class="{$TpStyle.dom_prefix}-rank-home">
{foreach $arrSlots as $i => $Slot}
{video:ranksort d_key="key" d_val="val"}
{assign name="listCfg" value="$TpStyle.template_cfg.list_layout[$Slot.layout_key]"}
{assign name="title" value="$Slot.title_text"}
{assign name="limit" value="$listCfg['layout']['max_items']"}
{video:ranklistexp count="$limit"
sort_type="$key"
sort_type="$Slot.sort_type"
d_key="key" d_val="Video" cache_life="3600" export_name="__LIST__" /}
{php}
$title = [
'primary' => $val.'排行榜',
'secondary' => '',
];
{/php}
{include file="module/list/title/_title_router" /}
{include file="module/list/shell/_shell_router" /}
{/video:ranksort}
{/foreach}
</section>
{/block}