Files
SEONexus/code/app/home/view/haoZi/novel/getLibrary.html
2025-05-12 18:44:23 +08:00

142 lines
5.4 KiB
HTML

{extend name="baseH5" /}
{block name="get-data"}
{novel:pagerexp page="$Request.route.intPage" limit="30"
n_category="$Request.route.strCategory"
n_sex="$Request.route.strGender"
n_status="$Request.route.strStatus"
d_key="d_key"
button_num="5" cache_life="86400" func="generateCategoryPager" export_name="resData" /}
{site:grm page_code="pc_novel_library" diff="$Request.route.intPage" num="70" g_key="arrGrm" /}
{/block}
{block name="title"}{site:replace code="NOVEL@GETLIBRARY@TITLE"}{/block}
{block name="keywords"}{site:replace code="NOVEL@GETLIBRARY@KEYWORDS"}{/block}
{block name="description"}{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}{/block}
{block name="head"}
<!-- 社交媒体标签 -->
<meta property="og:title" content='{site:replace code="NOVEL@GETLIBRARY@TITLE"}' />
<meta property="og:description" content='{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}' />
{if $Request.route.strGender == 'all' && $Request.route.strCategory == 'all' && $Request.route.strStatus == 'all'}
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strCategoryIndexUrlTemp}" />
{else}
<meta property="og:url"
content='https://{$DomainModel->d_domain}{site:nflurl gender="$Request.route.strGender" category="$Request.route.strCategory" status="$Request.route.strStatus" page="$Request.route.intPage"/}' />
{/if}
<meta property="og:type" content="book" />
<!-- 结构化数据 -->
{if $Request.route.strGender == 'all' && $Request.route.strCategory == 'all' && $Request.route.strStatus == 'all'}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "CollectionPage",
"url": 'https://{$DomainModel->d_domain}{$strCategoryIndexUrlTemp}',
"name": '{site:replace code="NOVEL@GETLIBRARY@TITLE"}',
"description": '{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}',
"publisher": {
"@type": "Organization",
"name": "{$DomainModel->d_name}",
}
}
</script>
{else}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "CollectionPage",
"url": 'https://{$DomainModel->d_domain}{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" page="$Request.route.intPage"/}',
"name": '{site:replace code="NOVEL@GETLIBRARY@TITLE"}',
"description": '{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}',
"publisher": {
"@type": "Organization",
"name": "{$DomainModel->d_name}",
}
}
</script>
{/if}
{/block}
{block name="head-js"}{/block}
{block name="logo-html"}
<h1 class="logo">
<a href="/">{$DomainModel->d_name}-{site:getval code="strNovelSex" /}{site:getval code="strNovelCategoryName" /}{site:getval code="strNovelStatus" /}免费阅读</a>
</h1>
{/block}
{block name="strPageCode"}
<?php $strPageCode = 'library'; ?>
{/block}
{block name="main"}
<p class="site-description">{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}</p>
<ul class="sort">
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
<li class='{eq name="strCategoryPinyin" value="$Request.route.strCategory"}active_rank {/eq}'>
<a href='{site:nflurl gender="$Request.route.strGender" category="$strCategoryPinyin" status="$Request.route.strStatus" page="$Request.route.intPage"/}'
>{$strCategoryName}</a>
</li>
{/novel:category}
<li class='{eq name="strCategoryPinyin" value="$Request.route.strStatus"}active_rank {/eq}'>
<a href='{site:nflurl category="all" status="wanjie" page="1"/}'>完本
</li>
</ul>
<nav class="breadcrumb" aria-label="breadcrumb">
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/" itemprop="item">
<span itemprop="name">首页</span>
</a>
<meta itemprop="position" content="1" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="{$strCategoryIndexUrlTemp}" itemprop="item">
<span itemprop="name">分类</span>
</a>
<meta itemprop="position" content="2" />
</li>
</ol>
</nav>
<ul class="list">
{volist name="$resData.data" id="Novel" key="key"}
{include file="public/novelListH" start="0"/}
{/volist}
</ul>
<div class="pagelist">
{volist name="$resData.p_data.pager" id="vo" key="k"}
{switch $vo.label}
{case value="上一页"}
{if $resData.p_data.page == 1}
<span>«</span>
{else}
<a class="page_on" href="{$vo.url}">«</a>
{/if}
{/case}
{case value="下一页"}
{if $resData.p_data.page >= $resData.p_data.total}
<span>»</span>
{else}
<a class="prev_on" href="{$vo.url}">»</a>
{/if}
{/case}
{default /}
{if preg_match('/^\d+$/', $vo.label)}
<a class='{eq name="vo.label" value="$Request.route.intPage"}page_on {/eq}' href="{$vo.url}">{$vo.label}</a>
{/if}
{/switch}
{/volist}
</div>
{/block}
{block name="customize"} {/block}