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

169 lines
6.2 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}
<link rel="canonical" href='https://{$DomainModel->d_domain}{site:nflurl gender="$Request.route.strGender" category="$Request.route.strCategory" status="$Request.route.strStatus" page="1"/}'>
<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='body-class'}top_xs{/block}
{block name="head-js"}{/block}
{block name="strPageCode"}
<?php $strPageCode = 'library'; ?>
{/block}
{block name="main"}
<ul class="qs_nav">
{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}
</ul>
<div class="rs">
<h1 class="logo">
<a href="/">{$DomainModel->d_name}-{site:getval code="strNovelSex" /}{site:getval code="strNovelCategoryName" /}{site:getval code="strNovelStatus" /}免费阅读</a>
</h1>
<h3>
{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}
</h3>
</div>
<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>
<div class="qs_list">
<div class="index_qb dv1" style="margin-top:10px;">
{volist name="$resData.data" id="Novel" key="key"}
<a class="list br-b-1" href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}' title="{$Novel.n_name}最新章节 {$Novel.n_category ?? ''}在线阅读">
{$arrGrm[$key]|raw}
<div class="fmy">
<h2>{$Novel.n_name}</h2>
<div class="info">
{$Novel.n_description}
</div>
</div>
</a>
{/volist}
</div>
<div class="dv2 sort_page_num">
{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 href="{$vo.url}">{$vo.label}</a>
{/if}
{/switch}
{/volist}
</div>
</div>
<div class="index_body">
<div class="index_qb fmtj">
<div class="tl t1">
<span>完结小说推荐</span>
<i>{$DomainModel->d_domain}</i>
<c></c>
</div>
{novel:list count="8" sort_type="tuijian" n_category="$Request.route.strCategory" d_key="key" d_val="Novel" cache_life="86400"}
{include file="public/novelListH" start="31"/}
{/novel:list}
</div>
</div>
{/block}
{block name="customize"} {/block}