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

200 lines
7.6 KiB
HTML

{extend name="basePc" /}
{block name="get-data"}
{novel:pagerexp page="$Request.route.intPage" limit="50"
n_category="$Request.route.strCategory"
n_sex="$Request.route.strGender"
n_status="$Request.route.strStatus"
d_key="d_key"
button_num="10" cache_life="86400" func="generateCategoryPager" export_name="resData" /}
{site:grm page_code="pc_novel_library" diff="$resData.p_data.page" 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="head-css"}
{if $Request.route.strGender == 'all' && $Request.route.strCategory == 'all' && $Request.route.strStatus == 'all'}
<link rel="canonical" href="https://{$DomainModel->d_domain}{$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="$Request.route.intPage"/}'>
{/if}
{/block}
{block name="logo-html"}
<h2>
<a href="{$strPcPath}/">
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
</a>
</h2>
{/block}
{block name="strPageCode"}
<?php $strPageCode = 'library'; ?>
{/block}
{block name="main"}
<div id="main">
<div id="hotcontent">
<div class="ll">
{novel:list count="6" sort_type="tuijian" n_category="$Request.route.strCategory" d_key="key" d_val="Novel" p_val="page_data" cache_life="86400"}
<div class="item">
<div class="image">
{if !empty($arrGrm[$key])}
{$arrGrm[$key]|raw}
{/if}
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>
<img class="lazyload-img" src="/static/img/default.jpg"
data-src="{$Novel.n_cover_path ?? ''}"
alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读" width="120" height="150">
</a>
</div>
<dl>
<dt>
<span>{$Novel.n_author ?? ''}</span>
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>
{$Novel.n_name ?? ''}
</a>
</dt>
<dd>{$Novel.n_description ?? ''}</dd>
</dl>
<div class="clear"></div>
</div>
{/novel:list}
</div>
<div id="newscontent">
<div class="l">
<h2>
小说分类 - 小说列表
<span style="float: right;padding-right: 10px;">
<a href="javascript:void(0)">{site:getval code="strNovelCategoryName" /}</a>
</span>
</h2>
<ul>
{foreach $resData.data as $key=>$Novel}
<li>
<span class="s1">[{$Novel->n_category ?? ''}]</span>
<span class="s2">
{if !empty($arrGrm[$key+20])}
{$arrGrm[$key+20]|raw}
{/if}
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}' >{$Novel->n_name}</a>
</span>
<span class="s3">
<a href='{$strPcPath}{site:lcpurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin" /}' >
{$Novel->n_latest_chapter_name ?? ''}
</a>
</span>
<span class="s4">{$Novel->n_author}</span>
<span class="s5">{:date('m-d')}</span>
</li>
{/foreach}
</ul>
</div>
<div class="r">
<h2>最新入库</h2>
<ul>
{novel:list count="50" sort_type="news" d_key="key" d_val="Novel" p_val="page_data"
cache_life="86400"}
<li>
<span class="s2">
{if !empty($arrGrm[$key+20])}
{$arrGrm[$key+20]|raw}
{/if}
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel->n_name}</a>
</span>
<span class="s5">{$Novel->n_author}</span>
</li>
{/novel:list}
</ul>
</div>
<div id="pages">
<div class="pagelink" id="pagelink">
{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 href="{$strPcPath}{$vo.url}">«</a>
{/if}
{/case}
{case value="下一页"}
{if $resData.p_data.page >= $resData.p_data.total}
<span>»</span>
{else}
<a href="{$strPcPath}{$vo.url}">»</a>
{/if}
{/case}
{case value="..."}
<span>...</span>
{/case}
{default /}
{if preg_match('/^\d+$/', $vo.label)}
<a href="{$strPcPath}{$vo.url}">{$vo.label}</a>
{/if}
{/switch}
{/volist}
</div>
</div>
</div>
</div>
{/block}
{block name="customize"} {/block}