Merge branch 'dev' of ssh://git.bgbg.live:18150/root/SEONexus into dev
This commit is contained in:
@@ -76,6 +76,7 @@ class Site extends BaseController
|
||||
'd_text_logo' => $arrRows[10],
|
||||
'd_img_logo' => $arrRows[11],
|
||||
'd_content_encode' => $arrRows[12],
|
||||
'info_id' => $arrRows[13],
|
||||
];
|
||||
|
||||
$TCfgTemplate = TemplatesModel::where('t_id', $arrDomain['t_id'])->find()->t_cfg_template;
|
||||
|
||||
@@ -22,7 +22,7 @@ $arrRoutes = [
|
||||
// H5/PC 端前缀
|
||||
'prefixes' => [
|
||||
'pc' => ['/pc', '/web', '/desktop', '/index', '/shouye', '/zhuomian'],
|
||||
'h5' => '',
|
||||
'h5' => ['','/nindex'],
|
||||
],
|
||||
|
||||
// 通用路径别名
|
||||
@@ -191,6 +191,8 @@ $arrRoutes = [
|
||||
'history' => ['/history', '/reading-history', '/read-record', '/lishi', '/yuedu-lishi', '/browse-past'],
|
||||
// 首页
|
||||
'index' => ['/'],
|
||||
// 首页 - 如果info_id 》 0
|
||||
'nindex' => ['/nindex'],
|
||||
|
||||
],
|
||||
|
||||
@@ -216,7 +218,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
Route::get($strRoute, function () use ($strView) {
|
||||
return view($strView);
|
||||
})
|
||||
->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
|
||||
->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+',]);
|
||||
break;
|
||||
|
||||
case 'chapter':
|
||||
@@ -240,7 +242,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
Route::get($strRoute, function () use ($strView) {
|
||||
return view($strView);
|
||||
})
|
||||
->pattern(['n_id' => '\d+', 'n_forge_id' => '\d+', 'name' => '[\w-]+',]);
|
||||
->pattern(['intNovelId' => '\d+', 'n_forge_id' => '\d+', 'name' => '[\w-]+',]);
|
||||
break;
|
||||
|
||||
case 'novel':
|
||||
@@ -252,7 +254,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
Route::get($strRoute, function () use ($strView) {
|
||||
return view($strView);
|
||||
})
|
||||
->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
|
||||
->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+',]);
|
||||
|
||||
break;
|
||||
case 'catalog':
|
||||
@@ -264,7 +266,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
Route::get($strRoute, function () use ($strView) {
|
||||
return view($strView);
|
||||
})
|
||||
->pattern(['n_id' => '\d+', 'name' => '[\w-]+', 'strOrder' => 'zheng|dao', 'intPage' => '\d+']);
|
||||
->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+', 'strOrder' => 'zheng|dao', 'intPage' => '\d+']);
|
||||
|
||||
break;
|
||||
case 'library':
|
||||
@@ -392,6 +394,17 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
||||
});
|
||||
}
|
||||
break;
|
||||
case 'nindex':
|
||||
// 首页
|
||||
$strView = 'pc/index.html';
|
||||
if ($platform == 'h5') {
|
||||
$strView = 'index/index.html';
|
||||
}
|
||||
Route::get($strRoute, function () use ($strView) {
|
||||
return view($strView);
|
||||
});
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<html lang="zh">
|
||||
|
||||
<head>
|
||||
{block name="get-data"}{/block}
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
|
||||
@@ -25,20 +26,24 @@
|
||||
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">
|
||||
<div class="header">
|
||||
{block name="logo-html"}{/block}
|
||||
|
||||
|
||||
<div class="operate" id="qs_login"><a href="{$strBookShelfUrlTemp}">书架</a></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="nav">
|
||||
<ul>
|
||||
<!-- <li><a href="/">首 页</a></li>
|
||||
<li><a href="/nindex">小说首页</a></li> -->
|
||||
{if $DomainModel->info_id > 0}
|
||||
<li><a href="/">首 页</a></li>
|
||||
<li><a href="/nindex/">小说首页</a></li>
|
||||
{else}
|
||||
<li><a href="/">首 页</a></li>
|
||||
{/if}
|
||||
|
||||
<li><a href="{$strCategoryIndexUrlTemp}">小说分类</a></li>
|
||||
<li><a href="{$strHistoryUrlTemp}">阅读记录</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="clear"></div>
|
||||
<div class="novel_search">
|
||||
<form id="novel_search" class="search-form" method="get" action="{$strSearchIndexUrlTemp}">
|
||||
@@ -55,13 +60,14 @@
|
||||
<span>最新标签</span>
|
||||
</h3>
|
||||
<div class="rec-focus" style="font-size:12px;">
|
||||
{novel:list count="10" sort_type="news" d_key="d_key" d_val="Novel" p_val="page_data" cache_life="86400"}
|
||||
{volist name='Novel.n_forge_novel' id='ForgeNovel'}
|
||||
{site:forgelist count="30" d_key="d_key" d_val="ForgeNovel" cache_life="86400"}
|
||||
<a
|
||||
href='{site:nnurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" n_fid="$ForgeNovel[n_forge_id]"/}'>{$ForgeNovel.n_forge_title}</a>
|
||||
{/volist}
|
||||
{/novel:list}
|
||||
href='{site:nnurl n_id="$ForgeNovel.n_id" n_py="$ForgeNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>
|
||||
{$ForgeNovel.n_forge_title}
|
||||
</a>
|
||||
{/site:forgelist}
|
||||
<a href="/sitemap_index.xml">XML地图</a>
|
||||
<a href="/site.txt">网站地图</a>
|
||||
</div>
|
||||
</div>
|
||||
<p style="font-size: 12px;text-align: center;"> 反馈邮箱:
|
||||
@@ -69,10 +75,16 @@
|
||||
<p style="font-size: 12px;text-align: center;"> </p>
|
||||
<div class="footer">
|
||||
<ul>
|
||||
<li><a href="/">网站首页</a></li>
|
||||
<li><a href="{$strCategoryIndexUrlTemp}">小说分类</a></li>
|
||||
{if $DomainModel->info_id > 0}
|
||||
<li><a href="/">首 页</a></li>
|
||||
<li><a href="/nindex/">小说首页</a></li>
|
||||
{else}
|
||||
<li><a href="/">首 页</a></li>
|
||||
{/if}
|
||||
<li><a href="{$strCategoryIndexUrlTemp}">分类</a></li>
|
||||
<li><a href="/sitemap_index.xml">XML地图</a></li>
|
||||
<li><a href="{$strHistoryUrlTemp}">阅读记录</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<html lang="zh">
|
||||
|
||||
<head>
|
||||
{block name="get-data"}{/block}
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
@@ -45,10 +46,15 @@
|
||||
class="btn-tosearch" form="novel_search" value="submit">搜索</button></form>
|
||||
</div>
|
||||
<ul class="nav">
|
||||
|
||||
{if $DomainModel->info_id > 0}
|
||||
<li><a href="{$strPcPath}/">首 页</a></li>
|
||||
<li><a href="{$strPcPath}/nindex/">小说首页</a></li>
|
||||
{else}
|
||||
<li><a href="{$strPcPath}/">首 页</a></li>
|
||||
{/if}
|
||||
<!-- <li><a href="/">首 页</a></li>
|
||||
<li><a href="/nindex">小说首页</a></li> -->
|
||||
<li><a href="{$strPcPath}/">首 页</a></li>
|
||||
<!-- <li><a href="{$strPcPath}/">首 页</a></li> -->
|
||||
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
|
||||
<li><a href='{$strPcPath}{site:nflurl category="$strCategoryPinyin" status="all" order="all" page="1"/}'>{$strCategoryName}</a></li>
|
||||
{/novel:category}
|
||||
@@ -63,13 +69,14 @@
|
||||
<div class="layout layout3 layout-col3">
|
||||
<h2 class="layout-tit">最新标签</h2>
|
||||
<ul class="txt-list txt-list-row5 tag_news">
|
||||
{novel:list count="10" sort_type="news" d_key="d_key" d_val="Novel" p_val="page_data" cache_life="86400"}
|
||||
{volist name='Novel.n_forge_novel' id='ForgeNovel'}
|
||||
<a
|
||||
href='{site:nnurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" n_fid="$ForgeNovel[n_forge_id]"/}'>{$ForgeNovel.n_forge_title}</a>
|
||||
{/volist}
|
||||
{/novel:list}
|
||||
{site:forgelist count="50" d_key="d_key" d_val="ForgeNovel" cache_life="86400"}
|
||||
<a
|
||||
href='{$strPcPath}{site:nnurl n_id="$ForgeNovel.n_id" n_py="$ForgeNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>
|
||||
{$ForgeNovel.n_forge_title}
|
||||
</a>
|
||||
{/site:forgelist}
|
||||
<a href="/sitemap_index.xml">XML地图</a>
|
||||
<a href="/site.txt">网站地图</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
270
code/app/home/view/default/novel/getNovelCatalog.html
Normal file
270
code/app/home/view/default/novel/getNovelCatalog.html
Normal file
@@ -0,0 +1,270 @@
|
||||
{extend name="baseH5" /}
|
||||
|
||||
{block name="get-data"}
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
{site:grm page_code="h5_novel_catalog " diff="$Request.url" num="120" g_key="arrGrm" /}
|
||||
{/block}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELCATALOG@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELCATALOG@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION"}' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
<meta property="og:novel:category" content="{$arrNovel.n_category ?? ''}">
|
||||
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
||||
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
||||
<meta property="og:novel:read_url"
|
||||
content='https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'>
|
||||
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
||||
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrNovel.n_latest_chapter_name ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_url"
|
||||
content='https://{$DomainModel->d_domain}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name'] ?? '未知小说'}" />
|
||||
<meta name="twitter:description" content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION"}' />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "{$arrNovel['n_name'] ?? '未知小说'}",
|
||||
"description": "{$arrNovel['n_description'] ??'暂无简介'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['n_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}',
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"inLanguage": "zh-CN",
|
||||
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
||||
"aggregateRating": {
|
||||
"@type": "AggregateRating",
|
||||
"ratingValue": "4.5",
|
||||
"reviewCount": "100",
|
||||
},
|
||||
"itemListElement": [
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 1,
|
||||
"name": "首页",
|
||||
"item": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 2,
|
||||
"name": "{$arrNovel.n_category ??''}",
|
||||
"item": 'https://{site:nflurl category="$arrNovel.n_category_pinyin" order="all" status="all" page="1"/}'
|
||||
},
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 3,
|
||||
"name": "{$arrNovel['n_name']}",
|
||||
"item": '{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name="head-js"}
|
||||
{/block}
|
||||
|
||||
{block name="body-class"}novel_info{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2 class="bookname">
|
||||
<a href="/" style="color:#ffffff">{$DomainModel->d_name}</a>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
{block name="nav-html"}
|
||||
|
||||
|
||||
<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">
|
||||
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
|
||||
<a href='{site:nflurl category="$arrNovel.n_category_pinyin" order="all" status="all" page="1"/}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel.n_category}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="2" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel['n_name']}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="3" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}' itemprop="item">
|
||||
<span itemprop="name">目录</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="3" />
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{chapter:pagerexp page="$Request.route.intPage" limit="100" n_id="$Request.route.intNovelId" d_key="d_key" d_val="chapter"
|
||||
cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="generateChapterPager" export_name="resData" /}
|
||||
|
||||
<h1 class="site-description ">{$arrNovel['n_name']}最新章节 - {$arrNovel['n_author']} - {$DomainModel->d_name}</h1>
|
||||
<div class="block-box">
|
||||
<div class="book-main">
|
||||
<div class="book-img">
|
||||
<img src="/static/img/default.jpg" data-src="{$arrNovel.n_cover_path ?? ''}"
|
||||
alt="{$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节" class="lazy lazyload-img">
|
||||
</div>
|
||||
<div class="book-info">
|
||||
<div class="bookname">
|
||||
<h2>{$arrNovel.n_name}</h2><span class="author">{$arrNovel.n_author}
|
||||
著</span>
|
||||
</div>
|
||||
<p class="tag"><span class="blue">{$arrNovel.n_category}</span><span
|
||||
class="green">{$arrNovel.n_status}</span>
|
||||
</p>
|
||||
<p class="update"><span>最近更新:</span><a href={site:lcpurl n_id="$arrNovel.n_id"
|
||||
n_py="$arrNovel.n_name_pinyin" /}>{$arrLatestChapter->c_name
|
||||
?? ""}</a></p>
|
||||
<p class="time"><span>更新时间:</span>{$arrNovel.n_update_time} </p>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="book-detail-btn">
|
||||
<ul class="btn-group">
|
||||
<li class="btn-group-cell"><a class="btn-normal abt1" onclick="addBookshelfFun()">加入书架</a><a
|
||||
class="btn-normal abt2"
|
||||
href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'>开始阅读</a><a
|
||||
class="btn-normal abt3"
|
||||
href='{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'>章节目录</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="description" style="font-size: 12px;padding:0px 10px 10px 10px; text-indent: 15px;">
|
||||
{$arrNovel.n_description}
|
||||
</div>
|
||||
|
||||
<h3 class="wrap-title">章节列表(第{$Request.route.intPage}页)
|
||||
{if $Request.route.strOrder == 'zheng'}
|
||||
<a href='{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="dao" page="1"/}'
|
||||
class="habt y">点击切换倒序</a>
|
||||
{else}
|
||||
<a href='{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'
|
||||
class="habt y">点击切换正序</a>
|
||||
{/if}
|
||||
</h3>
|
||||
<div class="block-box">
|
||||
|
||||
<!-- 目录下拉分页-->
|
||||
{include file="public/allChapterPage" start="1"/}
|
||||
|
||||
<ul class="chapter-list">
|
||||
{foreach $resData.data as $key=>$Chapter}
|
||||
<li>
|
||||
{$arrGrm[$key]|raw}
|
||||
<a href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$Chapter.c_sort_num" c_page="0"/}'
|
||||
title="{$arrNovel['n_name']} {$Chapter.c_name}">{$Chapter.c_name}</a>
|
||||
</li>
|
||||
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
{include file="public/allChapterPage" /}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wrap-box">
|
||||
<h3 class="wrap-title"><span>完结推荐</span></h3>
|
||||
<div class="rec-focus">
|
||||
{novel:list count="6" n_category="$arrNovel.n_category_pinyin" n_status="wanjie" d_key="d_key" d_val="Novel" p_val="page_data" cache_life="86400"}
|
||||
<dl class="rec-focus-book">
|
||||
<dt class="book-img">
|
||||
{$arrGrm[$d_key+110]|raw}
|
||||
<a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'><img
|
||||
height="100" width="80" class="lazyload-img" src="/static/img/default.jpg"
|
||||
data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读"></a></dt>
|
||||
<dd class="book-info">
|
||||
<h2><a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$Novel.n_name}</a>
|
||||
</h2>
|
||||
<p>作者:{$Novel.n_author}</p>
|
||||
<p>{$Novel.n_description}</p>
|
||||
</dd>
|
||||
</dl>
|
||||
{/novel:list}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="wrap-box">
|
||||
<h3 class="wrap-title"><span>相邻小说</span></h3>
|
||||
<div class="description" style="font-size: 12px;padding:0px 10px 10px 10px; text-indent: 15px;">
|
||||
|
||||
{$arrNovel.strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}...
|
||||
</div>
|
||||
<div class="rec-focus" style="font-size:12px;">
|
||||
{volist name='$arrNovel.arrRelateveNovel' id='Novel'}
|
||||
<a href='{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>{$Novel.n_name}</a>
|
||||
{/volist}
|
||||
|
||||
{volist name='arrNovel.n_forge_novel' id='ForgeNovel'}
|
||||
<a
|
||||
href='{site:nnurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>{$ForgeNovel.n_forge_title}</a>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
const strNovelId = `{$arrNovel.n_id}`;
|
||||
const arrNovel = {
|
||||
'n_id': `{$arrNovel['n_id']}`,
|
||||
'n_name_pinyin': `{$arrNovel['n_name_pinyin']}`,
|
||||
'n_cover_path': `{$arrNovel['n_cover_path']}`,
|
||||
'n_name': `{$arrNovel['n_name']}`,
|
||||
'n_author': `{$arrNovel['n_author']}`,
|
||||
'n_status': `{$arrNovel['n_status']}`,
|
||||
'n_update_time': `{$arrNovel['n_update_time']}`,
|
||||
'c_sort_num': 1,
|
||||
'c_name': `第一章`,
|
||||
};
|
||||
</script>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
|
||||
{/block}
|
||||
228
code/app/home/view/default/novel/getNovelChapter.html
Normal file
228
code/app/home/view/default/novel/getNovelChapter.html
Normal file
@@ -0,0 +1,228 @@
|
||||
{extend name="baseH5" /}
|
||||
|
||||
{block name="get-data"}
|
||||
{site:grm page_code="h5_novel_chapter" diff="$Request.url" num="20" g_key="arrGrm" /}
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
{chapter:info n_id="$Request.route.intNovelId" c_sort_num="$Request.route.intChapterSort"
|
||||
c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
|
||||
{/block}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELCHAPTER@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELCHAPTER@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'} {$arrChapter.c_name} - {$DomainModel->d_name}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
<meta property="og:novel:category" content="{$arrNovel.n_category ?? ''}">
|
||||
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
||||
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
||||
<meta property="og:novel:read_url"
|
||||
content='https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num"/}'>
|
||||
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
||||
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrChapter.c_name}">
|
||||
<meta property="og:novel:latest_chapter_url"
|
||||
content='https://{$DomainModel->d_domain}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name']??'未知小说'} {$arrChapter.c_name} - {$DomainModel->d_name}" />
|
||||
<meta name="twitter:description" content="{$strDescription ?? '暂无简介'}" />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
|
||||
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "{$arrNovel['n_name'] ?? '未知小说'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['n_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url":'https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}',
|
||||
"inLanguage": "zh-CN",
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"hasPart": {
|
||||
"@type": "CreativeWork",
|
||||
"name": "{$arrChapter.c_name ?? ''}",
|
||||
"url":'https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}',
|
||||
"description": '{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name="head-js"}
|
||||
<script src="/template/default/h5/js/yueduqsbs.js"></script>
|
||||
{/block}
|
||||
|
||||
{block name="body-class"}jjdfjkozd{/block}
|
||||
{block name="body-id"}kkasdfei{/block}
|
||||
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2 class="bookname">
|
||||
<a href="/" style="color:#ffffff">{$DomainModel->d_name}</a>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
{block name="nav-html"}
|
||||
<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">
|
||||
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
|
||||
<a href='{site:nflurl gender="" category="$arrNovel.n_category_pinyin" order="all" status="all" page="1"/}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel.n_category}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="2" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel['n_name']}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="3" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}' itemprop="item">
|
||||
<span itemprop="name">{$arrChapter.c_name ?? ''}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="3" />
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
<h1 class="site-description ">{$arrNovel['n_name']}最新章节 - {$arrChapter.c_name ?? ''}</h1>
|
||||
|
||||
<div class="set">
|
||||
<div id="lightdiv" class="set1" onclick="nr_setbg('light')">关灯</div>
|
||||
<div id="huyandiv" class="set1" onclick="nr_setbg('huyan')">护眼</div>
|
||||
<div class="set2">
|
||||
<span>字体:</span>
|
||||
<span id="fontbig" onclick="nr_setbg('big')">大</span>
|
||||
<span id="fontmiddle" onclick="nr_setbg('middle')">中</span>
|
||||
<span id="fontsmall" onclick="nr_setbg('small')">小</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<h1 id="chaptername" class="chaptername">{$arrNovel.n_name}(第{$arrChapter.c_sort_num}页)</h1>
|
||||
<div class="chapter-page-btn">
|
||||
{$arrGrm[1]|raw}
|
||||
<ul>
|
||||
{if $arrChapter.c_sort_num == 1}
|
||||
<li><a href='javascript:'>上一页</a></li>
|
||||
{elseif $arrChapter['pre_chapter'] && $arrChapter['pre_chapter']['c_sort_num']}
|
||||
<li><a
|
||||
href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.pre_chapter.c_sort_num" c_page="$arrChapter.pre_chapter.c_page"/}'>上一页</a>
|
||||
</li>
|
||||
{/if}
|
||||
<li class="mulu"><a href='{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'>章节目录</a></li>
|
||||
{if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num}
|
||||
<li><a
|
||||
href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.next_chapter.c_sort_num" c_page="$arrChapter.next_chapter.c_page"/}'>下一页</a>
|
||||
</li>
|
||||
{/if}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
{$arrGrm[2]|raw}
|
||||
<div class="txt" id="txt">
|
||||
{$arrGrm[3]|raw}
|
||||
<script>document.writeln(qsbs.bb('{$arrChapter.c_content}'));</script>
|
||||
{$arrGrm[4]|raw}
|
||||
</div>
|
||||
<div class="chapter-page-btn">
|
||||
{$arrGrm[5]|raw}
|
||||
<ul>
|
||||
{if $arrChapter.c_sort_num == 1}
|
||||
<li><a href='javascript:'>上一页</a></li>
|
||||
{elseif $arrChapter['pre_chapter'] && $arrChapter['pre_chapter']['c_sort_num']}
|
||||
<li><a
|
||||
href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.pre_chapter.c_sort_num" c_page="$arrChapter.pre_chapter.c_page"/}'>上一页</a>
|
||||
</li>
|
||||
{/if}
|
||||
<li class="mulu"><a href='{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'>章节目录</a></li>
|
||||
{if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num}
|
||||
<li><a
|
||||
href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.next_chapter.c_sort_num" c_page="$arrChapter.next_chapter.c_page"/}'>下一页</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
{$arrGrm[6]|raw}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wrap-box">
|
||||
<h3 class="wrap-title"><span>完结推荐</span></h3>
|
||||
<div class="rec-focus">
|
||||
{novel:list count="6" n_category="$arrNovel.n_category_pinyin" n_status="wanjie" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
<dl class="rec-focus-book">
|
||||
<dt class="book-img">
|
||||
{$arrGrm[$d_key+6]|raw}
|
||||
<a
|
||||
href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'><img
|
||||
height="100" width="80" class="lazyload-img" src="/static/img/default.jpg"
|
||||
data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读"></a></dt>
|
||||
<dd class="book-info">
|
||||
<h2><a
|
||||
href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$Novel.n_name}</a>
|
||||
</h2>
|
||||
<p>作者:{$Novel.n_author}</p>
|
||||
<p>{$Novel.n_description}</p>
|
||||
</dd>
|
||||
</dl>
|
||||
{/novel:list}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wrap-box">
|
||||
<h3 class="wrap-title"><span>相邻小说</span></h3>
|
||||
<div class="description" style="font-size: 12px;padding:0px 10px 10px 10px; text-indent: 15px;">
|
||||
|
||||
{$arrNovel.strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}...
|
||||
</div>
|
||||
<div class="rec-focus" style="font-size:12px;">
|
||||
{volist name='arrNovel.arrRelateveNovel' id='Novel'}
|
||||
<a
|
||||
href='{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>{$Novel.n_name}</a>
|
||||
{/volist}
|
||||
|
||||
{volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"}
|
||||
<a
|
||||
href='{site:nnurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>{$ForgeNovel.n_forge_title}</a>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
|
||||
{/block}
|
||||
267
code/app/home/view/default/novel/getNovelInfo.html
Normal file
267
code/app/home/view/default/novel/getNovelInfo.html
Normal file
@@ -0,0 +1,267 @@
|
||||
$Novel.n_id{extend name="baseH5" /}
|
||||
|
||||
{block name="get-data"}
|
||||
{if $Request.route.intNovelId}
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
{else}
|
||||
{novel:info n_id="$DomainModel->info_id" n_key="arrNovel" n_forge_id="0" /}
|
||||
{/if}
|
||||
{site:grm page_code="h5_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
|
||||
{/block}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELINFO@TITLE" diff="$Request.route.intNovelId" /}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELINFO@KEYWORDS" diff="$Request.route.intNovelId"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
||||
<meta property="og:description"
|
||||
content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
<meta property="og:novel:category" content="{$arrNovel.n_category ?? ''}">
|
||||
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
||||
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
||||
<meta property="og:novel:read_url"
|
||||
content='https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'>
|
||||
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
||||
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrNovel.n_latest_chapter_name ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_url"
|
||||
content='https://{$DomainModel->d_domain}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name'] ?? '未知小说'}" />
|
||||
<meta name="twitter:description"
|
||||
content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}' />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "{$arrNovel['n_name'] ?? '未知小说'}",
|
||||
"description": "{$arrNovel['n_description'] ??'暂无简介'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['n_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}',
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"inLanguage": "zh-CN",
|
||||
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
||||
"aggregateRating": {
|
||||
"@type": "AggregateRating",
|
||||
"ratingValue": "4.5",
|
||||
"reviewCount": "100",
|
||||
},
|
||||
"itemListElement": [
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 1,
|
||||
"name": "首页",
|
||||
"item": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 2,
|
||||
"name": "{$arrNovel.n_category ??''}",
|
||||
"item": 'https://{site:nflurl category="$arrNovel.n_category_pinyin" order="all" status="all" page="1"/}'
|
||||
},
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 3,
|
||||
"name": "{$arrNovel['n_name']}",
|
||||
"item": '{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
|
||||
|
||||
{block name="head-js"}
|
||||
{/block}
|
||||
|
||||
{block name="body-class"}novel_info{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2 class="bookname">
|
||||
<a href="/" style="color:#ffffff">{$DomainModel->d_name}</a>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
{block name="nav-html"}
|
||||
<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">
|
||||
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
|
||||
<a href='{site:nflurl category="$arrNovel.n_category_pinyin" order="all" status="all" page="1"/}'
|
||||
itemprop="item">
|
||||
<span itemprop="name">{$arrNovel.n_category}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="2" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel['n_name']}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="3" />
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
<h1 class="site-description ">{$arrNovel['n_name']}最新章节 - {$arrNovel['n_author']} - {$DomainModel->d_name}</h1>
|
||||
<div class="block-box">
|
||||
<div class="book-main">
|
||||
<div class="book-img">
|
||||
<img src="/static/img/default.jpg" data-src="{$arrNovel.n_cover_path ?? ''}"
|
||||
alt="{$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节" class="lazy lazyload-img">
|
||||
</div>
|
||||
<div class="book-info">
|
||||
<div class="bookname">
|
||||
<h2>{$arrNovel.n_name}</h2><span class="author">{$arrNovel.n_author}
|
||||
著</span>
|
||||
</div>
|
||||
<p class="tag"><span class="blue">{$arrNovel.n_category}</span><span
|
||||
class="green">{$arrNovel.n_status}</span>
|
||||
</p>
|
||||
<p class="update"><span>最近更新:</span><a href={site:lcpurl n_id="$arrNovel.n_id"
|
||||
n_py="$arrNovel.n_name_pinyin" /}>{$arrLatestChapter->c_name
|
||||
?? ""}</a></p>
|
||||
<p class="time"><span>更新时间:</span>{$arrNovel.n_update_time} </p>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="book-detail-btn">
|
||||
<ul class="btn-group">
|
||||
<li class="btn-group-cell"><a class="btn-normal abt1" onclick="addBookshelfFun()">加入书架</a><a
|
||||
class="btn-normal abt2"
|
||||
href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'>开始阅读</a><a
|
||||
class="btn-normal abt3"
|
||||
href='{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'>章节目录</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="description" style="font-size: 12px;padding:0px 10px 10px 10px; text-indent: 15px;">
|
||||
{$arrNovel.n_description}
|
||||
</div>
|
||||
|
||||
<h3 class="wrap-title">最新章节</h3>
|
||||
<div class="block-box">
|
||||
<ul class="chapter-list">
|
||||
{chapter:list count="10" sort_type="dao" n_id="$arrNovel.n_id" d_key="d_key" d_val="Chapter" cache_life="86400"}
|
||||
<li>
|
||||
{$arrGrm[$d_key]|raw}
|
||||
<a
|
||||
href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$Chapter.c_sort_num" c_page="0"/}'>{$Chapter.c_name}<span></span></a>
|
||||
</li>
|
||||
{/chapter:list}
|
||||
</ul>
|
||||
<a href='{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'
|
||||
class="btn-mulu">查看更多章节...</a>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<h3 class="wrap-title">章节列表</h3>
|
||||
<div class="block-box">
|
||||
<ul class="chapter-list">
|
||||
{chapter:list count="100" sort_type="zheng" n_id="$arrNovel.n_id" d_key="d_key" d_val="Chapter"
|
||||
cache_life="86400"}
|
||||
<li>
|
||||
{$arrGrm[$d_key+10]|raw}
|
||||
<a
|
||||
href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$Chapter.c_sort_num" c_page="0"/}'>{$Chapter.c_name}<span></span></a>
|
||||
</li>
|
||||
{/chapter:list}
|
||||
</ul>
|
||||
<a href='{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'
|
||||
class="btn-mulu">查看更多章节...</a>
|
||||
</div>
|
||||
|
||||
<div class="wrap-box">
|
||||
<h3 class="wrap-title"><span>完结推荐</span></h3>
|
||||
<div class="rec-focus">
|
||||
{novel:list count="6" n_category="$arrNovel.n_category_pinyin" n_status="wanjie" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
<dl class="rec-focus-book">
|
||||
<dt class="book-img">
|
||||
{$arrGrm[$d_key+110]|raw}
|
||||
<a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'><img height="100"
|
||||
width="80" class="lazyload-img" src="/static/img/default.jpg"
|
||||
data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读"></a>
|
||||
</dt>
|
||||
<dd class="book-info">
|
||||
<h2><a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$Novel.n_name}</a>
|
||||
</h2>
|
||||
<p>作者:{$Novel.n_author}</p>
|
||||
<p>{$Novel.n_description}</p>
|
||||
</dd>
|
||||
</dl>
|
||||
{/novel:list}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wrap-box">
|
||||
<h3 class="wrap-title"><span>相邻小说</span></h3>
|
||||
<div class="description" style="font-size: 12px;padding:0px 10px 10px 10px; text-indent: 15px;">
|
||||
|
||||
{$arrNovel.strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}...
|
||||
</div>
|
||||
<div class="rec-focus" style="font-size:12px;">
|
||||
{volist name='$arrNovel.arrRelateveNovel' id='Novel'}
|
||||
<a href='{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>{$Novel.n_name}</a>
|
||||
{/volist}
|
||||
|
||||
{volist name='arrNovel.n_forge_novel' id='ForgeNovel'}
|
||||
<a
|
||||
href='{site:nnurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>{$ForgeNovel.n_forge_title}</a>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const strNovelId = `{$arrNovel.n_id}`;
|
||||
const arrNovel = {
|
||||
'n_id': `{$arrNovel['n_id']}`,
|
||||
'n_name_pinyin': `{$arrNovel['n_name_pinyin']}`,
|
||||
'n_cover_path': `{$arrNovel['n_cover_path']}`,
|
||||
'n_name': `{$arrNovel['n_name']}`,
|
||||
'n_author': `{$arrNovel['n_author']}`,
|
||||
'n_status': `{$arrNovel['n_status']}`,
|
||||
'n_update_time': `{$arrNovel['n_update_time']}`,
|
||||
'c_sort_num': 1,
|
||||
'c_name': `第一章`,
|
||||
};
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
|
||||
{/block}
|
||||
@@ -3,6 +3,40 @@
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETSEARCHNOVEL@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content=‘{site:replace code="NOVEL@GETSEARCHNOVEL@TITLE"} />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}' />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{site:souurl key='$Request.get.keyword' p='1'/}" />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}">
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="{$Request.get.keyword} - {$DomainModel->d_name}搜索 - 第{$Request.get.intPage}页">
|
||||
<meta name="twitter:description" content="{$Request.get.keyword}搜索结果第{$Request.get.intPage}页,免费阅读小说,快来体验!">
|
||||
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "SearchResultsPage",
|
||||
"url": "https://{$DomainModel->d_name}{site:souurl key='$Request.get.keyword' p='1'/}",
|
||||
"name": "{$DomainModel->d_name} - {$DomainModel->d_name}搜索 第{$Request.get.intPage}页",
|
||||
"description": "搜索‘{$Request.get.keyword}’结果第{$Request.get.intPage}页,提供{$Request.get.keyword}创作的小说免费阅读。",
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"mainEntity": {
|
||||
"@type": "Book",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$DomainModel->d_name}"
|
||||
},
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name='nav-active-class'}home{/block}
|
||||
{block name="body-class"}novel_so novel_search_page{/block}
|
||||
|
||||
@@ -12,14 +46,12 @@
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
|
||||
{block name="main"}
|
||||
|
||||
|
||||
{novel:pagerexp page="$Request.get.page" limit="30"
|
||||
key="$Request.get.keyword"
|
||||
d_key="d_key"
|
||||
d_val="Novel" n_num="total"
|
||||
d_val="Novel"
|
||||
p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager" export_name="resData" /}
|
||||
|
||||
{site:grm page_code="h5_novel_search" diff="$Request.url" num="30" g_key="arrGrm" /}
|
||||
@@ -54,7 +86,7 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager"
|
||||
|
||||
|
||||
<div class="row sort_page_num">
|
||||
{volist name="resData.p_data.pager" id="vo" key="k"}
|
||||
{volist name="$resData.p_data.pager" id="vo" key="k"}
|
||||
{switch $vo.label}
|
||||
{case value="上一页"}
|
||||
{if $resData.p_data.page == 1}
|
||||
206
code/app/home/view/default/pc/getLibrary.html
Normal file
206
code/app/home/view/default/pc/getLibrary.html
Normal file
@@ -0,0 +1,206 @@
|
||||
{extend name="basePc" /}
|
||||
|
||||
{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 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://{$DomainModel->d_domain}{$strCategoryIndexUrlTemp}",
|
||||
"@type": "book",
|
||||
"headline": '{site:replace code="NOVEL@GETLIBRARY@TITLE"}'
|
||||
"description": '{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}',
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</script>
|
||||
{else}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": 'https://{$DomainModel->d_domain}{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" page="$Request.route.intPage"/}',
|
||||
"@type": "book",
|
||||
"headline": '{site:replace code="NOVEL@GETLIBRARY@TITLE"}',
|
||||
"description": '{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}',
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</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 category="$Request.route.strCategory" status="$Request.route.strStatus" page="$Request.route.intPage"/}'>
|
||||
{/if}
|
||||
|
||||
{/block}
|
||||
|
||||
{block name='nav-active-class'}home{/block}
|
||||
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{novel:pagerexp page="$Request.get.page" limit="30"
|
||||
n_category="$Request.route.strCategory"
|
||||
sort_type="$Request.route.strOrder"
|
||||
n_status="$Request.route.strStatus" d_key="d_key"
|
||||
d_key="d_key"
|
||||
d_val="Novel" n_num="total"
|
||||
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" /}
|
||||
|
||||
|
||||
<div class="container">
|
||||
<div class="row row-section">
|
||||
<div class="layout layout-col3">
|
||||
{novel:list count="6" sort_type="tuijian" d_key="d_key" d_val="Novel" p_val="page_data" cache_life="86400"}
|
||||
<div class="item">
|
||||
<div class="image">
|
||||
{$arrGrm[$d_key]|raw}
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>
|
||||
<img style="min-height:120px;" class="lazyload-img" src="/static/img/default.jpg"
|
||||
data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读">
|
||||
</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 style="height:90px">
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'
|
||||
style="color: #555">{$Novel.n_description}</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{/novel:list}
|
||||
</div>
|
||||
</div>
|
||||
<div class="sort_nav">
|
||||
<p>
|
||||
<span>分类:</span>
|
||||
<a class='{eq name="$Request.route.strCategory" value="all"}on {/eq} {eq name="$Request.route.strCategory" value=""}on on2 {/eq}'
|
||||
href='{$strPcPath}{site:nflurl category="all" status="$Request.route.strStatus" order="$Request.route.strOrder" page="$Request.route.intPage"/}'>不限</a>
|
||||
|
||||
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
|
||||
<a class='{eq name="$Request.route.strCategory" value="$strCategoryPinyin"}on {/eq}'
|
||||
href='{$strPcPath}{site:nflurl category="$strCategoryPinyin" status="$Request.route.strStatus" order="$Request.route.strOrder" page="$Request.route.intPage"/}'>{$strCategoryName}</a>
|
||||
|
||||
{/novel:category}
|
||||
|
||||
|
||||
</p>
|
||||
<p><span>排序:</span>
|
||||
{novel:sort d_key="key" d_val="strSortName"}
|
||||
<a href='{$strPcPath}{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" order="$key" page="$Request.route.intPage"/}'
|
||||
class='{eq name="$Request.route.strOrder" value="$key"}on {/eq} {if $key == "all" && $Request.route.strOrder == ""}on on2 {/if}'>{$strSortName}</a>
|
||||
{/novel:sort}
|
||||
</p>
|
||||
<p><span>状态:</span>
|
||||
{novel:status d_key="key" d_val="strStatusName"}
|
||||
<a href='{$strPcPath}{site:nflurl category="$Request.route.strCategory" status="$key" order="$Request.route.strOrder" page="$Request.route.intPage"/}'
|
||||
class='{eq name="$Request.route.strStatus" value="$key"}on {/eq} {if $key == "all" && $Request.route.strStatus == ""}on on2 {/if}'
|
||||
btn="search_category">{$strStatusName}</a>
|
||||
{/novel:status}
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="layout layout2 layout-col1 fr">
|
||||
<h2 class="layout-tit">最新入库小说</h2>
|
||||
<ul class="txt-list txt-list-row3">
|
||||
{novel:list count="30" sort_type="news" d_key="d_key" d_val="Novel" p_val="page_data"
|
||||
cache_life="86400"}
|
||||
<li>
|
||||
<span class="s1">[{$Novel->n_category ?? ''}</span>
|
||||
<span class="s2">
|
||||
{$arrGrm[$d_key+6]|raw}
|
||||
<a
|
||||
href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel->n_name}</a></span>
|
||||
<span class="s5"><a
|
||||
href='{$strPcPath}{site:souurl key="$Novel->n_author" p="1"/}'>{$Novel->n_author}</a></span>
|
||||
</li>
|
||||
{/novel:list}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="layout layout2 layout-col2 fl">
|
||||
<h2 class="layout-tit">最近更新小说列表</h2>
|
||||
<ul class="txt-list txt-list-row5">
|
||||
{foreach $resData.data as $key=>$Novel}
|
||||
<li>
|
||||
<span class="s1">[{$Novel->n_category ?? ''}</span>
|
||||
<span class="s2">
|
||||
{$arrGrm[$key+36]|raw}
|
||||
<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" /}'
|
||||
title="{$Novel->n_latest_chapter_name ?? 'null'}">{$Novel->n_latest_chapter_name ??
|
||||
'null'}</a></span>
|
||||
<span class="s4">{$Novel.n_author}</span>
|
||||
<span class="s5">{:date('m-d')}</span>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 分页 -->
|
||||
<div class="row 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 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>
|
||||
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="customize"}
|
||||
{/block}
|
||||
238
code/app/home/view/default/pc/getNovelCatalog.html
Normal file
238
code/app/home/view/default/pc/getNovelCatalog.html
Normal file
@@ -0,0 +1,238 @@
|
||||
{extend name="basePc" /}
|
||||
|
||||
{block name="get-data"}
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
{site:grm page_code="pc_novel_catalog" diff="$Request.url" num="120" g_key="arrGrm" /}
|
||||
{/block}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELCATALOG@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELCATALOG@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
<meta property="og:novel:category" content="{$arrNovel.n_category ?? ''}">
|
||||
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
||||
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
||||
<meta property="og:novel:read_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'>
|
||||
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
||||
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrNovel.n_latest_chapter_name ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name'] ?? '未知小说'}" />
|
||||
<meta name="twitter:description" content='{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}' />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "{$arrNovel['n_name'] ?? '未知小说'}",
|
||||
"description": "{$arrNovel['n_description'] ??'暂无简介'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['n_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}',
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"inLanguage": "zh-CN",
|
||||
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
||||
"aggregateRating": {
|
||||
"@type": "AggregateRating",
|
||||
"ratingValue": "4.5",
|
||||
"reviewCount": "100",
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="head-css"}
|
||||
<link rel="canonical" href='{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
{/block}
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="{$strPcPath}/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
{block name="head-js"}
|
||||
{/block}
|
||||
|
||||
{block name="body-class"}novel_info{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{chapter:pagerexp page="$Request.route.intPage" limit="100" n_id="$Request.route.intNovelId" d_key="d_key" d_val="chapter"
|
||||
cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="generateChapterPager" export_name="resData" /}
|
||||
|
||||
<div class="container biqunaicc">
|
||||
<div class="row row-detail">
|
||||
<div class="layout layout-col1">
|
||||
<h2 class="layout-tit xs-hidden">
|
||||
<a href="{$strPcPath}/">{$DomainModel->d_name}</a>>
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
{$arrNovel['n_name']}
|
||||
</a>
|
||||
</h2>
|
||||
<div class="detail-box">
|
||||
<div class="imgbox">
|
||||
<img data-src="{$arrNovel.n_cover_path ?? ''}"
|
||||
alt="{$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节"
|
||||
class="lazyload_book_cover lazyload-img">
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="top">
|
||||
<h1>{$arrNovel['n_name']}</h1>
|
||||
<div class="fix">
|
||||
<p>作 者:{$arrNovel.n_author ?? ''}</p>
|
||||
<p class="xs-show">类 别:{$arrNovel.n_category ?? ''}</p>
|
||||
<p class="xs-show">状 态:{$arrNovel.n_status ?? ''}</p>
|
||||
<p class="opt">
|
||||
<span class="xs-hidden">动 作:</span>
|
||||
<a rel="nofollow" onclick="addBookshelfFun()">加入书架</a>
|
||||
<i class="xs-hidden">、</i>
|
||||
<a
|
||||
href='{$strPcPath}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'>章节目录</a>
|
||||
<i class="xs-hidden">、</i>
|
||||
<a
|
||||
href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'>开始阅读</a>
|
||||
</p>
|
||||
<p>最后更新:{$arrNovel.n_update_time ?? ''} </p>
|
||||
<p>最新章节:<a
|
||||
href='{$strPcPath}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
{$arrNovel.n_latest_chapter_name ?? ""}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="desc xs-hidden">{$arrNovel.n_description ?? ''}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layout layout-col1">
|
||||
<h2 class="layout-tit">《{$arrNovel.n_name ?? ''}》{$arrNovel.n_name ?? '章节'}</h2>
|
||||
<div class="first_txt">
|
||||
{$arrNovel.strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}...
|
||||
|
||||
<p>相邻推荐:
|
||||
{volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"}
|
||||
{if $key<20 } {$arrGrm[$key+20]|raw} {/if} <a
|
||||
href='{$strPcPath}{site:nnurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'
|
||||
class="red">{$ForgeNovel.n_forge_title}</a>
|
||||
{/volist}
|
||||
|
||||
{volist name='$arrNovel.arrRelateveNovel' id='Novel'}
|
||||
<a
|
||||
href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>{$Novel.n_name}</a>
|
||||
{/volist}
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row row-section">
|
||||
<div class="layout layout-col1">
|
||||
<h2 class="layout-tit">《{$arrNovel.n_name}》章节列表(第{$Request.route.intPage}页)切换倒序/正序:
|
||||
{if $Request.route.strOrder == 'zheng'}
|
||||
<a href='{$strPcPath}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="dao" page="1"/}'
|
||||
class="habt y">点击切换倒序</a>
|
||||
{else}
|
||||
<a href='{$strPcPath}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'
|
||||
class="habt y">点击切换正序</a>
|
||||
{/if}
|
||||
</h2>
|
||||
|
||||
<!-- 目录下拉分页-->
|
||||
{include file="pc/public/allChapterPage" /}
|
||||
|
||||
<ul class="section-list fix ycxsid">
|
||||
{foreach $resData.data as $key=>$Chapter}
|
||||
<li>
|
||||
{$arrGrm[$key]|raw}
|
||||
<a
|
||||
href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$Chapter.c_sort_num" c_page="0"/}'>
|
||||
{$Chapter.c_name}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
<!-- 目录下拉分页-->
|
||||
{include file="pc/public/allChapterPage" /}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row row-section">
|
||||
<h2 class="layout-tit">已完结热门小说推荐</h2>
|
||||
<div class="layout layout-col3">
|
||||
|
||||
{novel:list count="6" n_category="$arrNovel.n_category_pinyin" n_status="wanjie" d_key="d_key" d_val="Novel"
|
||||
cache_life="86400"}
|
||||
<div class="item">
|
||||
<div class="image">
|
||||
{$arrGrm[$d_key+110]|raw}
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<img style="min-height:120px;" class="lazyload-img" src="/static/img/default.jpg"
|
||||
data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读">
|
||||
</a>
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span>{$Novel.n_author}</span><a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$Novel.n_name}</a>
|
||||
</dt>
|
||||
<dd style="height:90px"><a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'
|
||||
style="color: #555">{$Novel.n_description}</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{/novel:list}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
const strNovelId = `{$arrNovel.n_id}`;
|
||||
const arrNovel = {
|
||||
'n_id': `{$arrNovel['n_id']}`,
|
||||
'n_name_pinyin': `{$arrNovel['n_name_pinyin']}`,
|
||||
'n_cover_path': `{$arrNovel['n_cover_path']}`,
|
||||
'n_name': `{$arrNovel['n_name']}`,
|
||||
'n_author': `{$arrNovel['n_author']}`,
|
||||
'n_status': `{$arrNovel['n_status']}`,
|
||||
'n_update_time': `{$arrNovel['n_update_time']}`,
|
||||
'c_sort_num': 1,
|
||||
'c_name': `第一章`,
|
||||
};
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
{/block}
|
||||
193
code/app/home/view/default/pc/getNovelChapter.html
Normal file
193
code/app/home/view/default/pc/getNovelChapter.html
Normal file
@@ -0,0 +1,193 @@
|
||||
{extend name="basePc" /}
|
||||
|
||||
{block name="get-data"}
|
||||
{site:grm page_code="pc_novel_chapter" diff="$Request.url" num="20" g_key="arrGrm" /}
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
{chapter:info n_id="$Request.route.intNovelId" c_sort_num="$Request.route.intChapterSort"
|
||||
c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
|
||||
{/block}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELCHAPTER@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELCHAPTER@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
|
||||
|
||||
|
||||
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'} {$arrChapter.c_name} - {$DomainModel->d_name}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
<meta property="og:novel:category" content="{$arrNovel.n_category ?? ''}">
|
||||
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
||||
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
||||
<meta property="og:novel:read_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num"/}'>
|
||||
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
||||
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrChapter.c_name}">
|
||||
<meta property="og:novel:latest_chapter_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name']??'未知小说'} {$arrChapter.c_name} - {$DomainModel->d_name}" />
|
||||
<meta name="twitter:description" content="{$strDescription ?? '暂无简介'}" />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "{$arrNovel['n_name'] ?? '未知小说'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['n_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url":'https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}',
|
||||
"inLanguage": "zh-CN",
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"hasPart": {
|
||||
"@type": "CreativeWork",
|
||||
"name": "{$arrChapter.c_name ?? ''}",
|
||||
"url":'https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}',
|
||||
"description": '{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="head-css"}
|
||||
<link rel="canonical"
|
||||
href='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num"/}'>
|
||||
{/block}
|
||||
|
||||
{block name="head-js"}
|
||||
<script src="/template/default/pc/js/yueduqsbs.js"></script>
|
||||
{/block}
|
||||
|
||||
{block name="body-class"}novel_info{/block}
|
||||
{block name='nav-active-class'}home{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
<div class="container biqunaicc">
|
||||
{$arrGrm[1]|raw}
|
||||
<div class="row row-detail">
|
||||
<div class="layout layout-col1">
|
||||
<h2 class="layout-tit xs-hidden">
|
||||
<a href="{$strPcPath}/">{$DomainModel->d_name}</a>><a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$arrNovel.n_name}</a>
|
||||
>
|
||||
{$arrNovel.n_name}(第{$arrChapter.c_sort_num}页)
|
||||
</h2>
|
||||
{$arrGrm[2]|raw}
|
||||
<div class="word_read">
|
||||
<h3>{$arrNovel.n_name}(第{$arrChapter['c_sort_num']}页)</h3>
|
||||
<div class="read_btn">
|
||||
{if $arrChapter && $arrChapter.c_sort_num && $arrChapter.c_sort_num == 1}
|
||||
<a id="j_chapterPrev" href="javascript:void(0);">上一页</a>
|
||||
{else}
|
||||
{$arrGrm[10]|raw}
|
||||
<a id="j_chapterPrev"
|
||||
href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.pre_chapter.c_sort_num" c_page="$arrChapter.pre_chapter.c_page"/}'>上一页</a>
|
||||
{/if}
|
||||
<span>|</span>
|
||||
<a
|
||||
href='{$strPcPath}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'>章节目录</a>
|
||||
<span>|</span>
|
||||
{if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num}
|
||||
{$arrGrm[9]|raw}
|
||||
<a id="j_chapterNext"
|
||||
href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.next_chapter.c_sort_num" c_page="$arrChapter.next_chapter.c_page"/}'>下一页</a>
|
||||
{/if}
|
||||
</div>
|
||||
{$arrGrm[3]|raw}
|
||||
<script>document.writeln(qsbs.bb('{$arrChapter.c_content}'));</script>
|
||||
{$arrGrm[4]|raw}
|
||||
<p>请勿开启浏览器阅读模式,否则将导致章节内容缺失及无法阅读下一页。</p>
|
||||
|
||||
<p>相邻推荐:
|
||||
{volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"}
|
||||
{if $key<19 } {$arrGrm[$key+9]|raw} {/if} <a
|
||||
href='{$strPcPath}{site:nnurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'
|
||||
class="red">{$ForgeNovel.n_forge_title}</a>
|
||||
{/volist}
|
||||
|
||||
{volist name='arrNovel.arrRelateveNovel' id='Novel'}
|
||||
<a
|
||||
href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>{$Novel.n_name}</a>
|
||||
{/volist}
|
||||
|
||||
</p>
|
||||
{$arrGrm[5]|raw}
|
||||
<div class="read_btn">
|
||||
{if $arrChapter && $arrChapter.c_sort_num && $arrChapter.c_sort_num == 1}
|
||||
<a id="j_chapterPrev" href="javascript:void(0);">上一页</a>
|
||||
{else}
|
||||
{$arrGrm[10]|raw}
|
||||
<a id="j_chapterPrev"
|
||||
href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.pre_chapter.c_sort_num" c_page="$arrChapter.pre_chapter.c_page"/}'>上一页</a>
|
||||
{/if}
|
||||
<span>|</span>
|
||||
<a
|
||||
href='{$strPcPath}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'>章节目录</a>
|
||||
<span>|</span>
|
||||
{if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num}
|
||||
{$arrGrm[9]|raw}
|
||||
<a id="j_chapterNext"
|
||||
href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.next_chapter.c_sort_num" c_page="$arrChapter.next_chapter.c_page"/}'>下一页</a>
|
||||
{/if}
|
||||
</div>
|
||||
{$arrGrm[6]|raw}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row row-section">
|
||||
<h2 class="layout-tit">已完结热门小说推荐</h2>
|
||||
<div class="layout layout-col3">read_btn
|
||||
|
||||
{novel:list count="6" n_category="$arrNovel.n_category_pinyin" n_status="wanjie" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
<div class="item">
|
||||
<div class="image">
|
||||
{$arrGrm[$d_key+6]|raw}
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<img style="min-height:120px;" class="lazyload-img" src="/static/img/default.jpg"
|
||||
data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读">
|
||||
</a>
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span>{$Novel.n_author}</span><a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$Novel.n_name}</a></dt>
|
||||
<dd style="height:90px"><a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'
|
||||
style="color: #555">{$Novel.n_description}</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
|
||||
{/novel:list}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
{/block}
|
||||
235
code/app/home/view/default/pc/getNovelInfo.html
Normal file
235
code/app/home/view/default/pc/getNovelInfo.html
Normal file
@@ -0,0 +1,235 @@
|
||||
{extend name="basePc" /}
|
||||
|
||||
{block name="get-data"}
|
||||
{if $Request.route.intNovelId}
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
{else}
|
||||
{novel:info n_id="$DomainModel->info_id" n_key="arrNovel" n_forge_id="0" /}
|
||||
{/if}
|
||||
{site:grm page_code="pc_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
|
||||
{/block}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELINFO@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELINFO@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION"}' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
<meta property="og:novel:category" content="{$arrNovel.n_category ?? ''}">
|
||||
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
||||
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
||||
<meta property="og:novel:read_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'>
|
||||
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
||||
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrNovel.n_latest_chapter_name ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name'] ?? '未知小说'}" />
|
||||
<meta name="twitter:description" content="'{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION"}' />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "{$arrNovel['n_name'] ?? '未知小说'}",
|
||||
"description": "{$arrNovel['n_description'] ??'暂无简介'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['n_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}',
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"inLanguage": "zh-CN",
|
||||
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
||||
"aggregateRating": {
|
||||
"@type": "AggregateRating",
|
||||
"ratingValue": "4.5",
|
||||
"reviewCount": "100",
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="head-css"}
|
||||
<link rel="canonical"
|
||||
href='{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="{$strPcPath}/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
{block name="head-js"}
|
||||
{/block}
|
||||
|
||||
{block name="body-class"}novel_info{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
<div class="container biqunaicc">
|
||||
<div class="row row-detail">
|
||||
<div class="layout layout-col1">
|
||||
<h2 class="layout-tit xs-hidden">
|
||||
<a href="{$strPcPath}/">{$DomainModel->d_name}</a>>
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
{$arrNovel['n_name']}
|
||||
</a>
|
||||
</h2>
|
||||
<div class="detail-box">
|
||||
<div class="imgbox">
|
||||
<img data-src="{$arrNovel.n_cover_path ?? ''}"
|
||||
alt="{$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节"
|
||||
class="lazyload_book_cover lazyload-img">
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="top">
|
||||
<h1>{$arrNovel['n_name']}</h1>
|
||||
<div class="fix">
|
||||
<p>作 者:{$arrNovel.n_author ?? ''}</p>
|
||||
<p class="xs-show">类 别:{$arrNovel.n_category ?? ''}</p>
|
||||
<p class="xs-show">状 态:{$arrNovel.n_status ?? ''}</p>
|
||||
<p class="opt">
|
||||
<span class="xs-hidden">动 作:</span>
|
||||
<a rel="nofollow" onclick="addBookshelfFun()">加入书架</a>
|
||||
<i class="xs-hidden">、</i>
|
||||
<a
|
||||
href='{$strPcPath}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'>章节目录</a>
|
||||
<i class="xs-hidden">、</i>
|
||||
<a
|
||||
href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'>开始阅读</a>
|
||||
</p>
|
||||
<p>最后更新:{$arrNovel.n_update_time ?? ''} </p>
|
||||
<p>最新章节:<a
|
||||
href='{$strPcPath}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
{$arrNovel.n_latest_chapter_name ?? ""}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="desc xs-hidden">{$arrNovel.n_description ?? ''}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layout layout-col1">
|
||||
<h2 class="layout-tit">《{$arrNovel.n_name ?? ''}》{$arrNovel.n_name ?? '章节'}</h2>
|
||||
<div class="first_txt">
|
||||
{$arrNovel.strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}...
|
||||
|
||||
<p>相邻推荐:
|
||||
{volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"}
|
||||
{if $key<20 } {$arrGrm[$key+20]|raw} {/if} <a
|
||||
href='{$strPcPath}{site:nnurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'
|
||||
class="red">{$ForgeNovel.n_forge_title}</a>
|
||||
{/volist}
|
||||
|
||||
{volist name='$arrNovel.arrRelateveNovel' id='Novel'}
|
||||
<a
|
||||
href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>{$Novel.n_name}</a>
|
||||
{/volist}
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row row-section">
|
||||
<div class="layout layout-col1">
|
||||
<h2 class="layout-tit">《{$arrNovel.n_name}》最新章节</h2>
|
||||
<ul class="section-list fix">
|
||||
{chapter:list count="12" sort_type="dao" n_id="$arrNovel.n_id" d_key="d_key" d_val="Chapter" cache_life="86400"}
|
||||
<li>
|
||||
{$arrGrm[$d_key]|raw}
|
||||
<a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$Chapter.c_name}</a>
|
||||
</li>
|
||||
{/chapter:list}
|
||||
</ul>
|
||||
<h2 class="layout-tit">《{$arrNovel.n_name}》章节列表</h2>
|
||||
<ul class="fix section-list">
|
||||
{chapter:list count="100" sort_type="zheng" n_id="$arrNovel.n_id" d_key="d_key" d_val="Chapter" cache_life="86400"}
|
||||
<li>
|
||||
{$arrGrm[$d_key+10]|raw}
|
||||
<a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$Chapter.c_name}</a>
|
||||
</li>
|
||||
{/chapter:list}
|
||||
</ul><a
|
||||
href='{$strPcPath}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'
|
||||
class="btn-mulu">查看更多章节...</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row row-section">
|
||||
<h2 class="layout-tit">已完结热门小说推荐</h2>
|
||||
<div class="layout layout-col3">
|
||||
|
||||
{novel:list count="6" n_category="$arrNovel.n_category_pinyin" n_status="wanjie" d_key="d_key" d_val="Novel" p_val="page_data" cache_life="86400"}
|
||||
<div class="item">
|
||||
<div class="image">
|
||||
{$arrGrm[$d_key+110]|raw}
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<img style="min-height:120px;" class="lazyload-img" src="/static/img/default.jpg"
|
||||
data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读">
|
||||
</a>
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span>{$Novel.n_author}</span><a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$Novel.n_name}</a>
|
||||
</dt>
|
||||
<dd style="height:90px"><a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'
|
||||
style="color: #555">{$Novel.n_description}</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{/novel:list}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const strNovelId = `{$arrNovel.n_id}`;
|
||||
const arrNovel = {
|
||||
'n_id': `{$arrNovel['n_id']}`,
|
||||
'n_name_pinyin': `{$arrNovel['n_name_pinyin']}`,
|
||||
'n_cover_path': `{$arrNovel['n_cover_path']}`,
|
||||
'n_name': `{$arrNovel['n_name']}`,
|
||||
'n_author': `{$arrNovel['n_author']}`,
|
||||
'n_status': `{$arrNovel['n_status']}`,
|
||||
'n_update_time': `{$arrNovel['n_update_time']}`,
|
||||
'c_sort_num': 1,
|
||||
'c_name': `第一章`,
|
||||
};
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
{/block}
|
||||
@@ -2,6 +2,41 @@
|
||||
{block name="title"}{site:replace code="NOVEL@GETSEARCHNOVEL@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETSEARCHNOVEL@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content=‘{site:replace code="NOVEL@GETSEARCHNOVEL@TITLE"} />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}' />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{site:souurl key='$Request.get.keyword' p='1'/}" />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}">
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="{$Request.get.keyword} - {$DomainModel->d_name}搜索 - 第{$Request.get.intPage}页">
|
||||
<meta name="twitter:description" content="{$Request.get.keyword}搜索结果第{$Request.get.intPage}页,免费阅读小说,快来体验!">
|
||||
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "SearchResultsPage",
|
||||
"url": "https://{$DomainModel->d_name}{site:souurl key='$Request.get.keyword' p='1'/}",
|
||||
"name": "{$DomainModel->d_name} - {$DomainModel->d_name}搜索 第{$Request.get.intPage}页",
|
||||
"description": "搜索‘{$Request.get.keyword}’结果第{$Request.get.intPage}页,提供{$Request.get.keyword}创作的小说免费阅读。",
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"mainEntity": {
|
||||
"@type": "Book",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$DomainModel->d_name}"
|
||||
},
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name='nav-active-class'}home{/block}
|
||||
|
||||
{block name="title"}{/block}
|
||||
@@ -13,8 +13,8 @@
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}{$strBookShelfUrlTemp}",
|
||||
"@type": "article",
|
||||
"headline": "{$strTitle??''}",
|
||||
"description": "{$strDescription??''}",
|
||||
"headline": "我的书架",
|
||||
"description": "我的书架",
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</script>
|
||||
@@ -10,14 +10,12 @@
|
||||
友情连接:
|
||||
<a href="/sitemap_index.xml">XML地图</a>
|
||||
<a href="/site.txt">网站地图</a>
|
||||
<a href="/site.txt">seo关联词</a>
|
||||
<a href="/site.txt">seo关联词</a>
|
||||
<a href="/site.txt">seo关联词</a>
|
||||
<a href="/site.txt">seo关联词</a>
|
||||
<a href="/site.txt">seo关联词</a>
|
||||
<a href="/site.txt">seo关联词</a>
|
||||
<a href="/site.txt">seo关联词</a>
|
||||
<a href="/site.txt">seo关联词</a>
|
||||
{site:forgelist count="30" d_key="d_key" d_val="ForgeNovel" cache_life="86400"}
|
||||
<a
|
||||
href='{$strPcPath}{site:nnurl n_id="$ForgeNovel.n_id" n_py="$ForgeNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>
|
||||
{$ForgeNovel.n_forge_title}
|
||||
</a>
|
||||
{/site:forgelist}
|
||||
</div>
|
||||
<div class="copyright">
|
||||
<p>精彩小说推荐尽在狂雨小说!</p>
|
||||
@@ -2,6 +2,7 @@
|
||||
<html lang="zh-CN">
|
||||
|
||||
<head>
|
||||
{block name="get-data"}{/block}
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="robots" content="index, follow" />
|
||||
@@ -18,7 +19,7 @@
|
||||
<!-- <link rel="preload" href="/template/kuangyu/home/new_wap/css/style.css" as="style" onload="this.rel='stylesheet'" /> -->
|
||||
<link rel="stylesheet" href="/template/kuangyu/home/new_wap/css/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="/public/layer/need/layer.css" />
|
||||
|
||||
|
||||
{block name="head"}{/block}
|
||||
{block name="head-css"}{/block}
|
||||
{block name="head-js"}{/block}
|
||||
@@ -30,7 +31,7 @@
|
||||
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">
|
||||
<div class="header">
|
||||
{block name="logo-html"}{/block}
|
||||
|
||||
|
||||
<span class="icon-grouop">
|
||||
<a class="icon-search" href="javascript:"></a>
|
||||
<a class="icon-menu" href="javascript:"></a>
|
||||
@@ -63,9 +64,20 @@
|
||||
<div class="menu-mask"></div>
|
||||
<div class="menu-panel">
|
||||
<div class="menu-list">
|
||||
{if $DomainModel->info_id > 0}
|
||||
<a href="/">
|
||||
<span>首页</span>
|
||||
</a>
|
||||
<a href="/nindex/">
|
||||
<span>小说首页</span>
|
||||
</a>
|
||||
{else}
|
||||
<a href="/">
|
||||
<span>首页</span>
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
|
||||
<a href="{$strNanUrlTemp}">
|
||||
<span>男生</span>
|
||||
</a>
|
||||
@@ -81,7 +93,7 @@
|
||||
<!-- <a href="/article/list">
|
||||
<span>文章</span>
|
||||
</a> -->
|
||||
|
||||
|
||||
</div>
|
||||
<div class="menu-btn">
|
||||
<a class="btn-bookshelf" href="{$strBookShelfUrlTemp}">我的书架</a>
|
||||
@@ -103,23 +115,23 @@
|
||||
{block name="customize"}{/block}
|
||||
|
||||
<script>
|
||||
const strPushApi = `{site:cfg code="PUSH_API_DOMAIN" encode="false"/}`;
|
||||
</script>
|
||||
|
||||
const strPushApi = `{site:cfg code="PUSH_API_DOMAIN" encode="false"/}`;
|
||||
</script>
|
||||
|
||||
<script src="/public/jquery/jquery-3.7.1.min.js"></script>
|
||||
<!-- <script src="https://code.jquery.com/jquery-3.7.1.min.js" type="text/javascript"></script> -->
|
||||
<script src="/template/kuangyu/home/new_wap/js/global.js" type="text/javascript"></script>
|
||||
<script src="/public/layer/layer.min.js"></script>
|
||||
<script src="/template/kuangyu/public/js/common.js"></script>
|
||||
|
||||
|
||||
{block name="footer-js"}{/block}
|
||||
|
||||
<!-- 全局统计 -->
|
||||
{site:cfg code="PUBLIC_TONGJI_CODE" encode="false"/}
|
||||
<!-- 全局统计 -->
|
||||
{site:cfg code="PUBLIC_TONGJI_CODE" encode="false"/}
|
||||
|
||||
<!-- 站点统计 -->
|
||||
{$DomainModel->d_statis|raw}
|
||||
|
||||
<!-- 站点统计 -->
|
||||
{$DomainModel->d_statis|raw}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,6 +1,7 @@
|
||||
<html data-dpr="1" style="font-size: 39px;">
|
||||
|
||||
<head>
|
||||
{block name="get-data"}{/block}
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="robots" content="index, follow" />
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<html lang="zh-CN">
|
||||
|
||||
<head>
|
||||
{block name="get-data"}{/block}
|
||||
<meta charset="utf-8">
|
||||
<meta name="robots" content="index, follow" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
@@ -32,9 +33,19 @@
|
||||
<div class="headWrap">
|
||||
{block name="logo-html"}{/block}
|
||||
<ul class="nav">
|
||||
{if $DomainModel->info_id > 0}
|
||||
<li class=' {if $strPageCode == "info"}on{/if} '>
|
||||
<a href="{$strPcPath}/" target="_self" title="首页">首页</a>
|
||||
</li>
|
||||
<li class=' {if $strPageCode == "home"}on{/if} '>
|
||||
<a href="{$strPcPath}/nindex/" target="_self" title="首页">小说首页</a>
|
||||
</li>
|
||||
{else}
|
||||
<li class=' {if $strPageCode == "home"}on{/if} '>
|
||||
<a href="{$strPcPath}/" target="_self" title="首页">首页</a>
|
||||
</li>
|
||||
{/if}
|
||||
|
||||
<li class=' {if $strPageCode == "man"}on{/if} '>
|
||||
<a href="{$strPcPath}{$strNanUrlTemp}" target="_self" title="男生">男生</a>
|
||||
</li>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
{block name="get-data"}{/block}
|
||||
<meta charset="utf-8">
|
||||
<meta name="robots" content="index, follow" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
@@ -1,39 +1,44 @@
|
||||
{extend name="baseH5" /}
|
||||
{block name="title"}{$strTitle??''}{/block}
|
||||
{block name="keywords"}{$strKeywords??''}{/block}
|
||||
{block name="description"}{$strDescription??''}{/block}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELCATALOG@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELCATALOG@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
{site:grm page_code="h5_novel_catalog " diff="$Request.url" num="120" g_key="arrGrm" /}
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}章节目录 - {$DomainModel->d_name} 第{$intPage}页 " />
|
||||
<meta property="og:description" content="{$strDescription??'暂无简介'}" />
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION"}' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}' />
|
||||
<meta property="og:type" content="website" />
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
<meta property="og:novel:category" content="{$arrNovel.n_category ?? ''}">
|
||||
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
||||
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
||||
<meta property="og:novel:read_url"
|
||||
content='https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$intFirstChapterSort"/}'>
|
||||
content='https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'>
|
||||
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
||||
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrLatestChapter.c_name ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrNovel.n_latest_chapter_name ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_url"
|
||||
content='https://{$DomainModel->d_domain}{site:lcpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>
|
||||
content='https://{$DomainModel->d_domain}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name'] ?? '未知小说'}" />
|
||||
<meta name="twitter:description" content="{$strDescription ?? '暂无简介'}" />
|
||||
<meta name="twitter:description" content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION"}' />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "{$arrNovel['n_name'] ?? '未知小说'}",
|
||||
"description": "{$arrNovel['n_description'] ??'暂无简介'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['n_author'] ??'佚名'}"
|
||||
@@ -43,16 +48,43 @@
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nclurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" order="zheng" page="$intPage"/}',
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}',
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"inLanguage": "zh-CN",
|
||||
"genre": "{$arrNovel['n_category'] ?? '未知分类'}",
|
||||
"hasPart": {
|
||||
"@type": "WebPage",
|
||||
"name": "{$arrNovel['n_name'] ?? '未知小说'}章节目录 第{$intPage}页",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nclurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" order="zheng" page="$intPage"/}'
|
||||
}
|
||||
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
||||
"aggregateRating": {
|
||||
"@type": "AggregateRating",
|
||||
"ratingValue": "4.5",
|
||||
"reviewCount": "100",
|
||||
},
|
||||
"itemListElement": [
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 1,
|
||||
"name": "首页",
|
||||
"item": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 2,
|
||||
"name": "{$arrNovel.n_category ??''}",
|
||||
"item": 'https://{site:nflurl category="$arrNovel.n_category_pinyin" order="all" status="all" page="1"/}'
|
||||
},
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 3,
|
||||
"name": "{$arrNovel['n_name']}",
|
||||
"item": '{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
@@ -62,6 +94,10 @@
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{chapter:pagerexp page="$Request.route.intPage" limit="100" n_id="$Request.route.intNovelId" d_key="d_key" d_val="chapter"
|
||||
cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="generateChapterPager" export_name="resData" /}
|
||||
|
||||
<div class="wrap">
|
||||
<nav class="breadcrumb" aria-label="breadcrumb">
|
||||
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
|
||||
@@ -73,13 +109,13 @@
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
|
||||
<a href='{site:nflurl gender="all" category="$arrNovel[n_category_pinyin]" status="all" page="1"/}' itemprop="item">
|
||||
<a href='{site:nflurl gender="all" category="$arrNovel.n_category_pinyin" status="all" page="1"/}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel.n_category}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="2" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}' itemprop="item">
|
||||
<a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel['n_name']}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="3" />
|
||||
@@ -91,7 +127,7 @@
|
||||
<div class="mod mod-attentions">
|
||||
{$arrGrm[0]|raw}
|
||||
<div class="mod-head">
|
||||
<h1>{$arrNovel['n_name']}章节目录 - {$arrNovel['n_author']} - {$DomainModel->d_name} 第{$intPage}页</h1>
|
||||
<h1>{$arrNovel['n_name']}章节目录 - {$arrNovel['n_author']} - {$DomainModel->d_name} 第{$Request.route.intPage}页</h1>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -100,10 +136,10 @@
|
||||
{include file="public/allChapterPage" start="0"/}
|
||||
|
||||
<ul class="clearfix">
|
||||
{volist name="arrPage.data" id="Chapter" key="key"}
|
||||
{volist name="resData.data" id="Chapter" key="key"}
|
||||
<li>
|
||||
{$arrGrm[$key]|raw}
|
||||
<a href='{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$Chapter[c_sort_num]" c_page="0"/}'
|
||||
<a href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$Chapter.c_sort_num" c_page="0"/}'
|
||||
title="{$arrNovel['n_name']} {$Chapter.c_name}">{$Chapter.c_name}</a>
|
||||
</li>
|
||||
{/volist}
|
||||
|
||||
@@ -2,15 +2,21 @@
|
||||
<html lang="zh-CN">
|
||||
|
||||
<head>
|
||||
{site:grm page_code="h5_novel_chapter" diff="$Request.url" num="20" g_key="arrGrm" /}
|
||||
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
{chapter:info n_id="$Request.route.intNovelId" c_sort_num="$Request.route.intChapterSort"
|
||||
c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="robots" content="index, follow" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta http-equiv="Cache-Control" content="no-transform, max-age=3600" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
|
||||
<meta name="applicable-device" content="mobile" />
|
||||
<meta name="keywords" content="{$strKeywords??''}">
|
||||
<meta name="description" content="{$strDescription??''}">
|
||||
<title>{$strTitle??''}</title>
|
||||
<meta name="keywords" content='{site:replace code="NOVEL@GETNOVELCHAPTER@KEYWORDS"}'>
|
||||
<meta name="description" content='{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}'>
|
||||
<title>{site:replace code="NOVEL@GETNOVELCHAPTER@TITLE"}</title>
|
||||
<link rel="icon" href="/template/kuangyu/public/img/favicon.ico" type="image/x-icon" />
|
||||
|
||||
<link rel="stylesheet" href="/template/kuangyu/reader/wap/css/style.css" type="text/css">
|
||||
@@ -21,9 +27,9 @@
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'} {$arrChapter.c_name} - {$DomainModel->d_name}" />
|
||||
<meta property="og:description" content="{$strDescription??'暂无简介'}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}' />
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
@@ -31,16 +37,16 @@
|
||||
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
||||
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
||||
<meta property="og:novel:read_url"
|
||||
content='https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$$arrChapter[c_sort_num]"/}'>
|
||||
content='https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num"/}'>
|
||||
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
||||
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrChapter.c_name}">
|
||||
<meta property="og:novel:latest_chapter_url"
|
||||
content='https://{$DomainModel->d_domain}{site:lcpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>
|
||||
content='https://{$DomainModel->d_domain}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name']??'未知小说'} {$arrChapter.c_name} - {$DomainModel->d_name}" />
|
||||
<meta name="twitter:description" content="{$strDescription ?? '暂无简介'}" />
|
||||
<meta name="twitter:description" content='{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}' />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
@@ -58,15 +64,15 @@
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url":'https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrChapter[c_sort_num]" c_page="0"/}',
|
||||
"url":'https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}',
|
||||
"inLanguage": "zh-CN",
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"hasPart": {
|
||||
"@type": "CreativeWork",
|
||||
"name": "{$arrChapter.c_name ?? ''}",
|
||||
"url":'https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrChapter[c_sort_num]" c_page="0"/}',
|
||||
"description": "{$strDescription}"
|
||||
"url":'https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}',
|
||||
"description": '{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,17 +105,17 @@
|
||||
</div>
|
||||
{$arrGrm[2]|raw}
|
||||
<div id="readLoadNext" class="read-load-next">
|
||||
{if $arrChapter.c_sort_num == 1}
|
||||
{if $arrChapter.c_sort_num == 1 }
|
||||
{$arrGrm[3]|raw}
|
||||
<a href="javascript:" class="btn-normal red" data-size="14" role="button">上一章</a>
|
||||
{else}
|
||||
{elseif $arrChapter['pre_chapter'] && $arrChapter['pre_chapter']['c_sort_num']}
|
||||
{$arrGrm[4]|raw}
|
||||
<a href='{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrPreChapter[c_sort_num]" c_page="0"/}'
|
||||
<a href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.pre_chapter.c_sort_num" c_page="0"/}'
|
||||
class="btn-normal red" data-size="14" role="button">上一章</a>
|
||||
{/if}
|
||||
|
||||
{if $arrNextChapter && $arrNextChapter.c_sort_num}
|
||||
<a href='{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrNextChapter[c_sort_num]" c_page="0"/}'
|
||||
{if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num}
|
||||
<a href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.next_chapter.c_sort_num" c_page="0"/}'
|
||||
class="btn-normal red" data-size="14" role="button">下一章</a>
|
||||
{/if}
|
||||
<a href="#" class="btn-blank blue" style="display:none">已经是最后一章了 »</a>
|
||||
@@ -124,13 +130,13 @@
|
||||
<div id="readLoadNext" class="read-load-next">
|
||||
{if $arrChapter.c_sort_num == 1}
|
||||
<a href="javascript:" class="btn-normal red" data-size="14" role="button">上一章</a>
|
||||
{else}
|
||||
<a href='{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrPreChapter[c_sort_num]" c_page="0"/}'
|
||||
{elseif $arrChapter['pre_chapter'] && $arrChapter['pre_chapter']['c_sort_num']}
|
||||
<a href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.pre_chapter.c_sort_num" c_page="0"/}'
|
||||
class="btn-normal red" data-size="14" role="button">上一章</a>
|
||||
{/if}
|
||||
|
||||
{if $arrNextChapter && $arrNextChapter.c_sort_num}
|
||||
<a href='{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrNextChapter[c_sort_num]" c_page="0"/}'
|
||||
{if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num}
|
||||
<a href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.next_chapter.c_sort_num" c_page="0"/}'
|
||||
class="btn-normal red" data-size="14" role="button">下一章</a>
|
||||
{/if}
|
||||
|
||||
@@ -150,13 +156,13 @@
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
|
||||
<a href='{site:nflurl gender="all" category="$arrNovel[n_category_pinyin]" status="all" page="1"/}' itemprop="item">
|
||||
<a href='{site:nflurl gender="all" category="$arrNovel.n_category_pinyin" status="all" page="1"/}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel.n_category}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="2" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}' itemprop="item">
|
||||
<a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel.n_name}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="2" />
|
||||
@@ -164,10 +170,10 @@
|
||||
</ol>
|
||||
</nav>
|
||||
<h1 id="chapterTitle" class="read-book-name">
|
||||
<a href='{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>
|
||||
<a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
{$arrNovel.n_name}
|
||||
</a>
|
||||
<a href='{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrChapter[c_sort_num]" c_page="0"/}'>{$arrChapter.c_name}</a>
|
||||
<a href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}'>{$arrChapter.c_name}</a>
|
||||
|
||||
</h1>
|
||||
</div>
|
||||
@@ -201,7 +207,7 @@
|
||||
<i class="iconfont icon-lixianxiazai"></i>
|
||||
离线章节
|
||||
</a> -->
|
||||
<a href='{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}' class="read-opt-a">
|
||||
<a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' class="read-opt-a">
|
||||
<i class="iconfont icon-SU"></i>
|
||||
书籍详情
|
||||
</a>
|
||||
@@ -298,7 +304,7 @@
|
||||
<footer class="read-opt-footer">
|
||||
<div class="btn-group">
|
||||
<!-- id="readBtnChapter" -->
|
||||
<a href='{site:nclurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" order="zheng" page="1"/}' class="btn-group-cell"
|
||||
<a href='{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}' class="btn-group-cell"
|
||||
data-rel="asideChapter" role="button" aria-haspopup="true">
|
||||
<i class="iconfont icon-mulu"></i>
|
||||
<h4 class="read-opt-footer-h">目录</h4>
|
||||
@@ -356,20 +362,20 @@
|
||||
};
|
||||
book.chapter = {
|
||||
//页面进入加载的章节id
|
||||
id: '{$arrPreChapter.c_sort_num ?? 1}',
|
||||
id: '{$arrChapter.next_chapter.c_sort_num ?? 1}',
|
||||
//章节源id
|
||||
source_id: '{$arrPreChapter.c_sort_num ?? 1}',
|
||||
title: '{$arrPreChapter.c_name ?? 1}',
|
||||
source_id: '{$arrChapter.next_chapter.c_sort_num ?? 1}',
|
||||
title: '{$arrChapter.next_chapter.c_name ?? 1}',
|
||||
content: '',
|
||||
//章节vip标识
|
||||
vipStatus: 0,
|
||||
//上一章id
|
||||
prevId: '{$arrPreChapter.c_sort_num ?? 1}',
|
||||
prevId: '{$arrChapter.next_chapter.c_sort_num ?? 1}',
|
||||
//下一章id
|
||||
nextId: '{$arrNextChapter.c_sort_num ?? 1}'
|
||||
};
|
||||
book.chapterUrl = '{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrChapter[c_sort_num]" c_page="0"/}' ;
|
||||
book.url = '{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'
|
||||
book.chapterUrl = '{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}' ;
|
||||
book.url = '{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'
|
||||
book.nextChapterVip = 0;
|
||||
book.uid = 0;
|
||||
</script>
|
||||
|
||||
@@ -1,13 +1,28 @@
|
||||
{extend name="baseH5" /}
|
||||
{block name="title"}{$strTitle??''}{/block}
|
||||
{block name="keywords"}{$strKeywords??''}{/block}
|
||||
{block name="description"}{$strDescription??''}{/block}
|
||||
|
||||
{block name="get-data"}
|
||||
{if $Request.route.intNovelId}
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
{else}
|
||||
{novel:info n_id="$DomainModel->info_id" n_key="arrNovel" n_forge_id="0" /}
|
||||
{/if}
|
||||
{site:grm page_code="h5_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
|
||||
{/block}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELINFO@TITLE" diff="$Request.route.intNovelId" /}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELINFO@KEYWORDS" diff="$Request.route.intNovelId"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
||||
<meta property="og:description" content="{$strDescription??'暂无简介'}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}' />
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
@@ -15,16 +30,16 @@
|
||||
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
||||
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
||||
<meta property="og:novel:read_url"
|
||||
content='https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$intFirstChapterSort"/}'>
|
||||
content='https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'>
|
||||
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
||||
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrLatestChapter.c_name ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrNovel.n_latest_chapter_name ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_url"
|
||||
content='https://{$DomainModel->d_domain}{site:lcpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>
|
||||
content='https://{$DomainModel->d_domain}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name'] ?? '未知小说'}" />
|
||||
<meta name="twitter:description" content="{$strDescription ?? '暂无简介'}" />
|
||||
<meta name="twitter:description" content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}' />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
@@ -44,7 +59,7 @@
|
||||
},
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}',
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}',
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"inLanguage": "zh-CN",
|
||||
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
||||
@@ -53,10 +68,32 @@
|
||||
"ratingValue": "4.5",
|
||||
"reviewCount": "100",
|
||||
},
|
||||
"itemListElement": [
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 1,
|
||||
"name": "首页",
|
||||
"item": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 2,
|
||||
"name": "{$arrNovel.n_category ??''}",
|
||||
"item": 'https://{site:nflurl category="$arrNovel.n_category_pinyin" order="all" status="all" page="1"/}'
|
||||
},
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 3,
|
||||
"name": "{$arrNovel['n_name']}",
|
||||
"item": '{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
@@ -68,7 +105,6 @@
|
||||
{block name="main"}
|
||||
<div class="wrap">
|
||||
|
||||
|
||||
<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">
|
||||
@@ -79,13 +115,13 @@
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
|
||||
<a href='{site:nflurl gender="all" category="$arrNovel[n_category_pinyin]" status="all" page="1"/}' itemprop="item">
|
||||
<a href='{site:nflurl gender="all" category="$arrNovel.n_category_pinyin" status="all" page="1"/}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel.n_category}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="2" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}' itemprop="item">
|
||||
<a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel['n_name']}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="3" />
|
||||
@@ -109,19 +145,19 @@
|
||||
<h2>{$arrNovel['n_name']}</h2>
|
||||
<p class="info">
|
||||
<span>分类:{$arrNovel.n_category}</span>
|
||||
<span>作者:<a href='{site:souurl key="$arrNovel[n_author]" p="1"/}'>{$arrNovel.n_author}</a></span>
|
||||
<span>作者:<a href='{site:souurl key="$arrNovel.n_author" p="1"/}'>{$arrNovel.n_author}</a></span>
|
||||
<!-- <span>字数:54.20万字</span> -->
|
||||
<span>阅读:{$arrNovelClicks.total}</span>
|
||||
<span>阅读:{$arrNovel.arrNovelClicks.total}</span>
|
||||
</p>
|
||||
</dd>
|
||||
</dl>
|
||||
{$arrGrm[1]|raw}
|
||||
<div class="btns">
|
||||
<ul>
|
||||
{if !empty($intFirstChapterSort)}
|
||||
{if !empty($arrNovel.intFirstChapterSort)}
|
||||
<li>
|
||||
{$arrGrm[2]|raw}
|
||||
<a class="read-online reading" href='{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$intFirstChapterSort"/}'
|
||||
<a class="read-online reading" href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'
|
||||
>点击阅读</a>
|
||||
</li>
|
||||
{/if}
|
||||
@@ -151,13 +187,13 @@
|
||||
<div class="intro">
|
||||
<div class="content">
|
||||
<p>
|
||||
{$strFocus}
|
||||
{$arrNovel.strFocus}
|
||||
</p>
|
||||
<p class="xianglingtuijian">相邻推荐:
|
||||
{volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"}
|
||||
{$arrGrm[$key+20]|raw}
|
||||
<a
|
||||
href='{site:nnurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" n_fid="$ForgeNovel[n_forge_id]"/}'>{$ForgeNovel.n_forge_title}</a>
|
||||
href='{site:nnurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>{$ForgeNovel.n_forge_title}</a>
|
||||
{/volist}
|
||||
</p>
|
||||
</div>
|
||||
@@ -174,18 +210,18 @@
|
||||
</div>
|
||||
<div class="attentions">
|
||||
<ul class="clearfix">
|
||||
{volist name="arrChapter" id="Chapter" key="key"}
|
||||
{chapter:list count="10" sort_type="dao" n_id="$arrNovel.n_id" d_key="d_key" d_val="Chapter" cache_life="86400"}
|
||||
<li>
|
||||
{$arrGrm[$key]|raw}
|
||||
<a href='{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$Chapter[c_sort_num]" c_page="0"/}'
|
||||
<a href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$Chapter.c_sort_num" c_page="0"/}'
|
||||
title="{$arrNovel.n_name}-{$Chapter.c_name}">{$Chapter.c_name}</a>
|
||||
</li>
|
||||
{/volist}
|
||||
{/chapter:list}
|
||||
|
||||
</ul>
|
||||
<div class="chapters-more">
|
||||
|
||||
<a href='{site:nclurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" order="zheng" page="1"/}'
|
||||
<a href='{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'
|
||||
class="reading btn-bookshelf">{$arrNovel.n_name}更多章节</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -197,7 +233,7 @@
|
||||
</div>
|
||||
<div class="book-slide">
|
||||
<ul class="clearfix">
|
||||
{foreach $arrRelateveNovel as $Novel}
|
||||
{foreach $arrNovel.arrRelateveNovel as $Novel}
|
||||
<li>
|
||||
{$arrGrm[$key+10]|raw}
|
||||
<a href='{site:nurl n_id="Novel.n_id" n_py="Novel.n_name_pinyin"/}'>
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
</div>
|
||||
<div class="top-index">
|
||||
<ul class="clearfix">
|
||||
{novel:list count="10" sort_type="news" d_key="key" d_val="Novel" cache_life="86400"}
|
||||
{novel:ranklist count="10" sort_type="daily" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 1}
|
||||
{include file="public/novelListH" start="0"/}
|
||||
{/if}
|
||||
@@ -71,7 +71,7 @@
|
||||
{include file="public/novelListRank" start="1"/}
|
||||
{/if}
|
||||
|
||||
{/novel:list}
|
||||
{/novel:ranklist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -82,7 +82,7 @@
|
||||
</div>
|
||||
<div class="top-index">
|
||||
<ul class="clearfix">
|
||||
{novel:list count="10" sort_type="news" d_key="key" d_val="Novel" cache_life="86400"}
|
||||
{novel:ranklist count="10" sort_type="weekly" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 1}
|
||||
{include file="public/novelListH" start="10"/}
|
||||
{/if}
|
||||
@@ -90,7 +90,7 @@
|
||||
{include file="public/novelListRank" start="11"/}
|
||||
{/if}
|
||||
|
||||
{/novel:list}
|
||||
{/novel:ranklist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -101,7 +101,7 @@
|
||||
</div>
|
||||
<div class="top-index">
|
||||
<ul class="clearfix">
|
||||
{novel:list count="10" sort_type="news" d_key="key" d_val="Novel" cache_life="86400"}
|
||||
{novel:ranklist count="10" sort_type="monthly" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 1}
|
||||
{include file="public/novelListH" start="20"/}
|
||||
{/if}
|
||||
@@ -109,7 +109,7 @@
|
||||
{include file="public/novelListRank" start="21"/}
|
||||
{/if}
|
||||
|
||||
{/novel:list}
|
||||
{/novel:ranklist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -120,14 +120,14 @@
|
||||
</div>
|
||||
<div class="top-index">
|
||||
<ul class="clearfix">
|
||||
{novel:list count="10" sort_type="news" d_key="key" d_val="Novel" cache_life="86400"}
|
||||
{novel:ranklist count="10" sort_type="total" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 1}
|
||||
{include file="public/novelListH" start="30"/}
|
||||
{/if}
|
||||
{if $key >= 2}
|
||||
{include file="public/novelListRank" start="31"/}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
{/novel:ranklist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -138,14 +138,14 @@
|
||||
</div>
|
||||
<div class="top-index">
|
||||
<ul class="clearfix">
|
||||
{novel:list count="10" sort_type="news" d_key="key" d_val="Novel" cache_life="86400"}
|
||||
{novel:ranklist count="10" sort_type="total" n_status="lianzai" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 1}
|
||||
{include file="public/novelListH" start="40"/}
|
||||
{/if}
|
||||
{if $key >= 2}
|
||||
{include file="public/novelListRank" start="41"/}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
{/novel:ranklist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -156,14 +156,14 @@
|
||||
</div>
|
||||
<div class="top-index">
|
||||
<ul class="clearfix">
|
||||
{novel:list count="10" sort_type="news" d_key="key" d_val="Novel" cache_life="86400"}
|
||||
{novel:ranklist count="10" sort_type="total" n_status="wanjie" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 1}
|
||||
{include file="public/novelListH" start="50"/}
|
||||
{/if}
|
||||
{if $key >= 2}
|
||||
{include file="public/novelListRank" start="51"/}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
{/novel:ranklist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,27 +1,29 @@
|
||||
{extend name="baseH5" /}
|
||||
{block name="title"}{$strTitle??''}{/block}
|
||||
{block name="keywords"}{$strKeywords??''}{/block}
|
||||
{block name="description"}{$strDescription??''}{/block}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETSEARCHNOVEL@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETSEARCHNOVEL@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$strTitle??''}" />
|
||||
<meta property="og:description" content="{$strDescription??''}" />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{site:souurl key='$strSearchKeywords' p='1'/}" />
|
||||
<meta property="og:title" content=‘{site:replace code="NOVEL@GETSEARCHNOVEL@TITLE"} />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}' />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{site:souurl key='$Request.get.keyword' p='1'/}" />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}">
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="{$strSearchKeywords} - {$DomainModel->d_name}搜索 - 第{$intPage}页">
|
||||
<meta name="twitter:description" content="{$strSearchKeywords}搜索结果第{$intPage}页,免费阅读小说,快来体验!">
|
||||
<meta name="twitter:title" content="{$Request.get.keyword} - {$DomainModel->d_name}搜索 - 第{$Request.get.intPage}页">
|
||||
<meta name="twitter:description" content="{$Request.get.keyword}搜索结果第{$Request.get.intPage}页,免费阅读小说,快来体验!">
|
||||
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "SearchResultsPage",
|
||||
"url": "https://{$DomainModel->d_name}{site:souurl key='$strSearchKeywords' p='1'/}",
|
||||
"name": "{$DomainModel->d_name} - {$DomainModel->d_name}搜索 第{$intPage}页",
|
||||
"description": "搜索‘{$strSearchKeywords}’结果第{$intPage}页,提供{$strSearchKeywords}创作的小说免费阅读。",
|
||||
"url": "https://{$DomainModel->d_name}{site:souurl key='$Request.get.keyword' p='1'/}",
|
||||
"name": "{$DomainModel->d_name} - {$DomainModel->d_name}搜索 第{$Request.get.intPage}页",
|
||||
"description": "搜索‘{$Request.get.keyword}’结果第{$Request.get.intPage}页,提供{$Request.get.keyword}创作的小说免费阅读。",
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"mainEntity": {
|
||||
"@type": "Book",
|
||||
@@ -35,6 +37,7 @@
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
@@ -45,20 +48,27 @@
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{novel:pagerexp page="$Request.get.page" limit="30"
|
||||
key="$Request.get.keyword"
|
||||
d_key="d_key"
|
||||
d_val="Novel"
|
||||
p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager" export_name="resData" /}
|
||||
|
||||
{site:grm page_code="h5_novel_search" diff="$Request.url" num="30" g_key="arrGrm" /}
|
||||
|
||||
<div class="wrap">
|
||||
<div class="mod mod-search">
|
||||
<div class="search-list">
|
||||
|
||||
<div class="result">
|
||||
<h1>{$strSearchKeywords}搜索结果 - {$DomainModel->d_name} 第{$intPage}页</h1>
|
||||
搜索<span style="color:red">“{$strSearchKeywords}”</span>相关结果共有 <span style="color:red">{$arrPage.total}</span> 部小说
|
||||
<h1>{$Request.get.keyword}搜索结果 - {$DomainModel->d_name} 第{$Request.get.intPage}页</h1>
|
||||
搜索<span style="color:red">“{$Request.get.keyword}”</span>相关结果共有 <span style="color:red">{$resData.p_data.total}</span> 部小说
|
||||
</div>
|
||||
{if empty($arrPage.data)}
|
||||
{if empty($resData.data)}
|
||||
<p style="text-align: center;line-height: 60px">没有相关数据</p>
|
||||
{else}
|
||||
<ul class="clearfix">
|
||||
{foreach $arrPage.data as $key=>$Novel}
|
||||
{foreach $resData.data as $key=>$Novel}
|
||||
{include file="public/novelListH" start="0"/}
|
||||
{/foreach}
|
||||
</ul>
|
||||
@@ -67,17 +77,17 @@
|
||||
</div>
|
||||
<div class="pages">
|
||||
<ul class="pager">
|
||||
{volist name="arrPaginator" id="vo" key="k"}
|
||||
{volist name="$resData.p_data.pager" id="vo" key="k"}
|
||||
{switch $vo.label}
|
||||
{case value="上一页"}
|
||||
{if $intPage == 1}
|
||||
{if $resData.p_data.page == 1}
|
||||
<li class="disabled"><span>«</span></li>
|
||||
{else}
|
||||
<li><a href="{$vo.url}">«</a></li>
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="下一页"}
|
||||
{if $intPage >= $intTotalPage}
|
||||
{if $resData.p_data.page >= $resData.p_data.total}
|
||||
<li class="disabled"><span>»</span></li>
|
||||
{else}
|
||||
<li><a href="{$vo.url}">»</a></li>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
||||
<meta property="og:description" content="{$strDescription??'暂无简介'}" />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}' />
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
@@ -29,7 +29,7 @@
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": 'https://{$DomainModel->d_domain}/{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}',
|
||||
"@context": 'https://{$DomainModel->d_domain}/{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}',
|
||||
"@type": "book",
|
||||
"name": "{$arrNovel['n_name'] ?? '未知小说'}",
|
||||
"description": "{$arrNovel['n_description'] ??'暂无简介'}",
|
||||
@@ -44,7 +44,7 @@
|
||||
},
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"image": "{$Novel.n_cover_path ?? ''}",
|
||||
"url": '{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}',
|
||||
"url": '{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}',
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"inLanguage": "zh-CN",
|
||||
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
||||
@@ -59,7 +59,7 @@
|
||||
{/block}
|
||||
{block name="head-css"}
|
||||
<link rel="canonical"
|
||||
href='{$DomainModel->d_domain}/{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>
|
||||
href='{$DomainModel->d_domain}/{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
{/block}
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
@@ -86,7 +86,7 @@
|
||||
<meta itemprop="position" content="2" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}' itemprop="item">
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel['n_name']}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="3" />
|
||||
@@ -97,7 +97,7 @@
|
||||
<div class="info">
|
||||
<div class="info_box">
|
||||
<div class="info_L">
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'
|
||||
title="{$arrNovel['n_name']}" class="book_cov">
|
||||
<img src="/static/img/default.jpg" data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel->n_name ?? ''}封面" class="lazyload_book_cover lazyload-img">
|
||||
@@ -114,7 +114,7 @@
|
||||
<div class="info_C book_inf">
|
||||
<div class="c01">
|
||||
<h3><a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>{$arrNovel['n_name']}</a>
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$arrNovel['n_name']}</a>
|
||||
</h3>
|
||||
<!-- <span id="mod_book_star">0分</span> -->
|
||||
</div>
|
||||
@@ -213,13 +213,13 @@
|
||||
{volist name="arrRelateveNovel" id="Novel" key="key"}
|
||||
<li>
|
||||
<h3>
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel[n_id]" n_py="$Novel[n_name_pinyin]" /}'
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'
|
||||
title="{$Novel['n_name'] ?? ''}">
|
||||
{$Novel['n_name'] ?? ''}
|
||||
</a>
|
||||
</h3>
|
||||
<div>
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel[n_id]" n_py="$Novel[n_name_pinyin]" /}'
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'
|
||||
title="$Novel['n_name'] ?? ''}" class="book_cov">
|
||||
<img src="/template/kuangyu/home/bai_web/images/default.png"
|
||||
data-src="{$Novel['n_cover_path'] ?? ''}" class="lazyload_book_cover lazyload-img"
|
||||
|
||||
@@ -95,9 +95,6 @@ button_num="10" cache_life="86400" func="generateCategoryPager" export_name="res
|
||||
<div class="find">
|
||||
<div class="opt">
|
||||
<div class="optCl" mod="search_channel">
|
||||
6
|
||||
{$Request.route.strGender}
|
||||
5
|
||||
<span class="optTit">所属频道</span>
|
||||
<ul>
|
||||
<li><a class='{eq name="$Request.route.strGender" value="all"}on {/eq} {eq name="$Request.route.strGender" value=""}on {/eq}'
|
||||
|
||||
@@ -1,13 +1,22 @@
|
||||
{extend name="basePc" /}
|
||||
{block name="title"}{$strTitle??''}{/block}
|
||||
{block name="keywords"}{$strKeywords??''}{/block}
|
||||
{block name="description"}{$strDescription??''}{/block}
|
||||
|
||||
{block name="get-data"}
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
{site:grm page_code="pc_novel_catalog" diff="$Request.url" num="120" g_key="arrGrm" /}
|
||||
{/block}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELCATALOG@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELCATALOG@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
||||
<meta property="og:description" content="{$strDescription??'暂无简介'}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}' />
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
@@ -15,16 +24,16 @@
|
||||
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
||||
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
||||
<meta property="og:novel:read_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$intFirstChapterSort"/}'>
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'>
|
||||
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
||||
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrLatestChapter.c_name}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrNovel.n_latest_chapter_name ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:lcpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name'] ?? '未知小说'}" />
|
||||
<meta name="twitter:description" content="{$strDescription ?? '暂无简介'}" />
|
||||
<meta name="twitter:description" content='{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}' />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
@@ -32,6 +41,7 @@
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "{$arrNovel['n_name'] ?? '未知小说'}",
|
||||
"description": "{$arrNovel['n_description'] ??'暂无简介'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['n_author'] ??'佚名'}"
|
||||
@@ -41,18 +51,25 @@
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nclurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" order="zheng" page="$intPage"/}',
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}',
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"inLanguage": "zh-CN",
|
||||
"genre": "{$arrNovel['n_category'] ?? '未知分类'}",
|
||||
"hasPart": {
|
||||
"@type": "WebPage",
|
||||
"name": "{$arrNovel['n_name'] ?? '未知小说'}章节目录 第{$intPage}页",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nclurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" order="zheng" page="$intPage"/}'
|
||||
}
|
||||
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
||||
"aggregateRating": {
|
||||
"@type": "AggregateRating",
|
||||
"ratingValue": "4.5",
|
||||
"reviewCount": "100",
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="head-css"}
|
||||
<link rel="canonical" href='https://{$DomainModel->d_domain}{site:nclurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" order="zheng" page="$intPage"/}'>
|
||||
<link rel="canonical" href='https://{$DomainModel->d_domain}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="$Request.route.intPage"/}'>
|
||||
{/block}
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
@@ -65,6 +82,9 @@
|
||||
{/block}
|
||||
{block name="main"}
|
||||
|
||||
{chapter:pagerexp page="$Request.route.intPage" limit="100" n_id="$Request.route.intNovelId" d_key="d_key" d_val="chapter"
|
||||
cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="generateChapterPager" export_name="resData" /}
|
||||
|
||||
<div class="content">
|
||||
<nav class="breadcrumb" aria-label="breadcrumb">
|
||||
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
|
||||
@@ -76,13 +96,13 @@
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
|
||||
<a href='{$strPcPath}{site:nflurl gender="all" category="$arrNovel[n_category_pinyin]" status="all" page="1"/}' itemprop="item">
|
||||
<a href='{$strPcPath}{site:nflurl gender="all" category="$arrNovel.n_category_pinyin" status="all" page="1"/}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel.n_category}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="2" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}' itemprop="item">
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' itemprop="item">
|
||||
<span itemprop="name">{$arrNovel['n_name']}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="3" />
|
||||
@@ -100,8 +120,8 @@
|
||||
<div class="top">
|
||||
{$arrGrm[0]|raw}
|
||||
<h1>
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}' >
|
||||
{$arrNovel['n_name']}章节目录 - {$arrNovel['n_author']} - {$DomainModel->d_name} 第{$intPage}页
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' >
|
||||
{$arrNovel['n_name']}章节目录 - {$arrNovel['n_author']} - {$DomainModel->d_name} 第{$Request.route.intPage}页
|
||||
</a>
|
||||
</h1>
|
||||
<p>作者:{$arrNovel.n_author}</p>
|
||||
@@ -115,11 +135,11 @@
|
||||
|
||||
<div class="fL_con">
|
||||
<ul>
|
||||
{foreach $arrPage.data as $key => $Chapter }
|
||||
{foreach $resData.data as $key => $Chapter }
|
||||
<li>
|
||||
{$arrGrm[$key]|raw}
|
||||
<h2>
|
||||
<a href='{$strPcPath}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$Chapter[c_sort_num]" c_page="0"/}' >{$Chapter.c_name}</a>
|
||||
<a href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$Chapter.c_sort_num" c_page="0"/}' >{$Chapter.c_name}</a>
|
||||
</h2>
|
||||
</li>
|
||||
{/foreach}
|
||||
|
||||
@@ -1,25 +1,31 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
{site:grm page_code="pc_novel_chapter" diff="$Request.url" num="20" g_key="arrGrm" /}
|
||||
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
{chapter:info n_id="$Request.route.intNovelId" c_sort_num="$Request.route.intChapterSort"
|
||||
c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="robots" content="index, follow" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="keywords" content="{$strKeywords??''}">
|
||||
<meta name="description" content="{$strDescription??''}">
|
||||
<title>{$strTitle??''}</title>
|
||||
<meta name="keywords" content='{site:replace code="NOVEL@GETNOVELCHAPTER@KEYWORDS"}'>
|
||||
<meta name="description" content='{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}'>
|
||||
<title>{site:replace code="NOVEL@GETNOVELCHAPTER@TITLE"}</title>
|
||||
<link rel="icon" href="/template/kuangyu/public/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/template/kuangyu/reader/web/css/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="/public/layer/need/layer.css" type="text/css">
|
||||
{block name="head-css"}
|
||||
<link rel="canonical"
|
||||
href='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrChapter[c_sort_num]"/}'>
|
||||
href='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num"/}'>
|
||||
{/block}
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'} {$arrChapter.c_name} - {$DomainModel->d_name}" />
|
||||
<meta property="og:description" content="{$strDescription??'暂无简介'}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}' />
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
@@ -27,16 +33,16 @@
|
||||
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
||||
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
||||
<meta property="og:novel:read_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$$arrChapter[c_sort_num]"/}'>
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num"/}'>
|
||||
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
||||
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrChapter.c_name}">
|
||||
<meta property="og:novel:latest_chapter_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:lcpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name']??'未知小说'} {$arrChapter.c_name} - {$DomainModel->d_name}" />
|
||||
<meta name="twitter:description" content="{$strDescription ?? '暂无简介'}" />
|
||||
<meta name="twitter:description" content='{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}' />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
@@ -54,15 +60,15 @@
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url":'https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrChapter[c_sort_num]" c_page="0"/}',
|
||||
"url":'https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}',
|
||||
"inLanguage": "zh-CN",
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"hasPart": {
|
||||
"@type": "CreativeWork",
|
||||
"name": "{$arrChapter.c_name ?? ''}",
|
||||
"url":'https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrChapter[c_sort_num]" c_page="0"/}',
|
||||
"description": "{$strDescription}"
|
||||
"url":'https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}',
|
||||
"description": '{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -106,16 +112,16 @@
|
||||
</div>
|
||||
<div class="type-box">
|
||||
<h3><a href='{$strPcPath}{site:nflurl gender="$strNanUrlTemp" category="all" status="all" page="1"/}'>男生</a></h3>
|
||||
{foreach $arrCategoryAll.man as $key=>$vo }
|
||||
<a href='{$strPcPath}{site:nflurl gender="$strNanUrlTemp" category="{$key}" status="all" page="1"/}'>{$vo}</a>
|
||||
{/foreach}
|
||||
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName" n_sex="man"}
|
||||
<a href='{$strPcPath}{site:nflurl gender="$strNanUrlTemp" category="{$strCategoryPinyin}" status="all" page="1"/}'>{$strCategoryName}</a>
|
||||
{/novel:category}
|
||||
</div>
|
||||
<div class="type-box">
|
||||
|
||||
<h3><a href='{$strPcPath}{site:nflurl gender="$strNvUrlTemp" category="all" status="all" page="1"/}'>女生</a></h3>
|
||||
{foreach $arrCategoryAll.women as $key=>$vo }
|
||||
<a href='{$strPcPath}{site:nflurl gender="$strNvUrlTemp" category="{$key}" status="all" page="1"/}'>{$vo}</a>
|
||||
{/foreach}
|
||||
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName" n_sex="women"}
|
||||
<a href='{$strPcPath}{site:nflurl gender="$strNvUrlTemp" category="{$strCategoryPinyin}" status="all" page="1"/}'>{$strCategoryName}</a>
|
||||
{/novel:category}
|
||||
</div>
|
||||
<div class="type-box">
|
||||
<h3><a href="{$strPcPath}{$strCategoryIndexUrlTemp}">书库</a></h3>
|
||||
@@ -168,17 +174,17 @@
|
||||
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
|
||||
<a
|
||||
|
||||
href='{$strPcPath}{site:nflurl gender="$strNanUrlTemp" category="$arrNovel[n_category_pinyin]" status="all" page="1"/}'>{$arrNovel.n_category}</a>
|
||||
href='{$strPcPath}{site:nflurl gender="$strNanUrlTemp" category="$arrNovel.n_category_pinyin" status="all" page="1"/}'>{$arrNovel.n_category}</a>
|
||||
{else}
|
||||
<a href='{$strPcPath}{site:nflurl gender="$strNvUrlTemp" category="all" status="all" page="1"/}'>女生</a>
|
||||
<em class="iconfont"></em>
|
||||
{$arrGrm[13]|raw}
|
||||
<a href='{$strPcPath}{site:nflurl gender="$strNvUrlTemp" category="$arrNovel[n_category_pinyin]" status="all" page="1"/}'>{$arrNovel.n_category}</a>
|
||||
<a href='{$strPcPath}{site:nflurl gender="$strNvUrlTemp" category="$arrNovel.n_category_pinyin" status="all" page="1"/}'>{$arrNovel.n_category}</a>
|
||||
{/if}
|
||||
<em class="iconfont"></em>
|
||||
{$arrGrm[12]|raw}
|
||||
<a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>{$arrNovel.n_name}</a>
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$arrNovel.n_name}</a>
|
||||
</div>
|
||||
<div class="read-main-wrap font-family01" style="font-size:18px" id="j_readMainWrap">
|
||||
<div id="j_chapterBox">
|
||||
@@ -188,17 +194,17 @@
|
||||
<div class="main-text-wrap">
|
||||
<div class="text-head">
|
||||
<h1 class="j_chapterName">
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
{$arrNovel.n_name}
|
||||
</a>
|
||||
<a href='{$strPcPath}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrChapter[c_sort_num]" c_page="0"/}'
|
||||
<a href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}'
|
||||
>{$arrChapter.c_name}</a>
|
||||
</h1>
|
||||
<div class="text-info cf">
|
||||
<div class="info fl">
|
||||
{$arrGrm[11]|raw}
|
||||
<a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<em class="iconfont"></em> {$arrNovel.n_name}</a>
|
||||
<a href="javascript:"> <em class="iconfont"></em> {$arrNovel.n_author}</a>
|
||||
<i><em class="iconfont"></em><span class="j_chapterWordCut">2000</span>字</i>
|
||||
@@ -227,13 +233,13 @@
|
||||
{else}
|
||||
{$arrGrm[10]|raw}
|
||||
<a id="j_chapterPrev"
|
||||
href='{$strPcPath}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrPreChapter[c_sort_num]" c_page="0"/}'>上一章</a>
|
||||
href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.pre_chapter.c_sort_num" c_page="0"/}'>上一章</a>
|
||||
{/if}
|
||||
<span>|</span>
|
||||
{if $arrNextChapter && $arrNextChapter.c_sort_num}
|
||||
{if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num}
|
||||
{$arrGrm[9]|raw}
|
||||
<a id="j_chapterNext"
|
||||
href='{$strPcPath}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrNextChapter[c_sort_num]" c_page="0"/}'>下一章</a>
|
||||
href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.next_chapter.c_sort_num" c_page="0"/}'>下一章</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
@@ -243,7 +249,7 @@
|
||||
<dl>
|
||||
<dd id="j_navCatalogBtn">
|
||||
{$arrGrm[8]|raw}
|
||||
<a href='{$strPcPath}{site:nclurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" order="zheng" page="1"/}'>
|
||||
<a href='{$strPcPath}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'>
|
||||
<i><em class="iconfont"></em><span>目录</span></i>
|
||||
</a>
|
||||
</dd>
|
||||
@@ -260,7 +266,7 @@
|
||||
</dd>
|
||||
<dd>
|
||||
{$arrGrm[6]|raw}
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<i><em class="iconfont"></em><span>详情</span></i>
|
||||
</a>
|
||||
</dd>
|
||||
@@ -395,17 +401,17 @@
|
||||
};
|
||||
book.chapter = {
|
||||
//页面进入加载的章节id
|
||||
id: '{$arrPreChapter.c_sort_num ?? 1}',
|
||||
id: '{$arrChapter.pre_chapter.c_sort_num ?? 1}',
|
||||
//章节源id
|
||||
source_id: '{$arrPreChapter.c_sort_num ?? 1}',
|
||||
source_id: '{$arrChapter.pre_chapter.c_sort_num ?? 1}',
|
||||
//章节vip标识
|
||||
vipStatus: 0,
|
||||
//上一章id
|
||||
prevId: '{$arrPreChapter.c_sort_num ?? 1}',
|
||||
prevId: '{$arrChapter.pre_chapter.c_sort_num ?? 1}',
|
||||
//下一章id
|
||||
nextId: '{$arrNextChapter.c_sort_num ?? 1}'
|
||||
nextId: '{$arrChapter.next_chapter.c_sort_num ?? 1}'
|
||||
};
|
||||
book.chapterUrl = '{$strPcPath}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrChapter[c_sort_num]" c_page="0"/}' ;
|
||||
book.chapterUrl = '{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}' ;
|
||||
book.nextChapterVip = 0;
|
||||
</script>
|
||||
<script type="text/javascript" src="/template/kuangyu/reader/web/js/global.js"></script>
|
||||
|
||||
@@ -1,13 +1,26 @@
|
||||
{extend name="basePc" /}
|
||||
{block name="title"}{$strTitle??''}{/block}
|
||||
{block name="keywords"}{$strKeywords??''}{/block}
|
||||
{block name="description"}{$strDescription??''}{/block}
|
||||
|
||||
{block name="get-data"}
|
||||
{if $Request.route.intNovelId}
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
{else}
|
||||
{novel:info n_id="$DomainModel->info_id" n_key="arrNovel" n_forge_id="0" /}
|
||||
{/if}
|
||||
{site:grm page_code="h5_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
|
||||
{/block}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELINFO@TITLE" diff="$Request.route.intNovelId" /}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELINFO@KEYWORDS" diff="$Request.route.intNovelId"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}{/block}
|
||||
|
||||
|
||||
{block name="head"}
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
||||
<meta property="og:description" content="{$strDescription??'暂无简介'}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId" }' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}' />
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
||||
@@ -15,16 +28,16 @@
|
||||
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
||||
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
||||
<meta property="og:novel:read_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$intFirstChapterSort"/}'>
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'>
|
||||
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
||||
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrLatestChapter.c_name ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_name" content="{$arrNovel.n_latest_chapter_name ?? ''}">
|
||||
<meta property="og:novel:latest_chapter_url"
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:lcpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>
|
||||
content='https://{$DomainModel->d_domain}{$strPcPath}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name'] ?? '未知小说'}" />
|
||||
<meta name="twitter:description" content="{$strDescription ?? '暂无简介'}" />
|
||||
<meta name="twitter:description" content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId" }' />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
@@ -44,7 +57,7 @@
|
||||
},
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}',
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}',
|
||||
"genre": "{$arrNovel.n_category ??''}",
|
||||
"inLanguage": "zh-CN",
|
||||
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
||||
@@ -58,10 +71,12 @@
|
||||
</script>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="head-css"}
|
||||
<link rel="canonical"
|
||||
href='{$DomainModel->d_domain}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>
|
||||
href='{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="{$strPcPath}/">
|
||||
@@ -69,6 +84,11 @@
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
{block name="strPageCode"}
|
||||
<?php $strPageCode = 'info'; ?>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
|
||||
<div class="content">
|
||||
@@ -81,14 +101,14 @@
|
||||
<meta itemprop="position" content="1" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='{$strPcPath}{site:nflurl gender="all" category="$arrNovel[n_category_pinyin]" status="all" page="1"/}'
|
||||
<a href='{$strPcPath}{site:nflurl gender="all" category="$arrNovel.n_category_pinyin" status="all" page="1"/}'
|
||||
itemprop="item">
|
||||
<span itemprop="name">{$arrNovel.n_category}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="2" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'
|
||||
itemprop="item">
|
||||
<span itemprop="name">{$arrNovel['n_name']}</span>
|
||||
</a>
|
||||
@@ -102,7 +122,7 @@
|
||||
<div class="info">
|
||||
<div class="info_box">
|
||||
<div class="info_L">
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'
|
||||
<a href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'
|
||||
title="{$arrNovel['n_name']}" class="book_cov">
|
||||
<img src="/static/img/default.jpg" data-src="{$arrNovel.n_cover_path ?? ''}"
|
||||
alt="{$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节"
|
||||
@@ -120,7 +140,7 @@
|
||||
<div class="info_C book_inf">
|
||||
<div class="c01">
|
||||
<h2><a
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>{$arrNovel['n_name']}</a>
|
||||
href='{$strPcPath}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>{$arrNovel['n_name']}</a>
|
||||
</h2>
|
||||
<!-- <span id="mod_book_star">0分</span> -->
|
||||
</div>
|
||||
@@ -141,18 +161,16 @@
|
||||
<p class="jianjie">最新要点</p>
|
||||
<div class="c03_box">
|
||||
<p class="jj_con" id="book_desc2">
|
||||
{$strFocus}</p>
|
||||
{$arrNovel.strFocus}</p>
|
||||
<span class="zk_btn">展开<s></s></span>
|
||||
<span class="sq_btn" style="display: none;">收起<s></s></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="c04">
|
||||
{if !empty($arrChapter)}
|
||||
<a href='{$strPcPath}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$intFirstChapterSort"/}'
|
||||
<a href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'
|
||||
class="read">立即阅读</a>
|
||||
<a href='{$strPcPath}{site:nclurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" order="zheng" page="1"/}'
|
||||
<a href='{$strPcPath}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'
|
||||
class="mulu">目录</a>
|
||||
{/if}
|
||||
</div>
|
||||
<!-- <div class="c05">
|
||||
<p class="c05_t">作品标签:
|
||||
@@ -167,16 +185,16 @@
|
||||
<div class="inf02">
|
||||
<h4>小说信息</h4>
|
||||
<p>类别:
|
||||
<a href='{$strPcPath}{site:nflurl gender="all" category="$arrNovel[n_category_pinyin]" status="all" page="1"/}'
|
||||
<a href='{$strPcPath}{site:nflurl gender="all" category="$arrNovel.n_category_pinyin" status="all" page="1"/}'
|
||||
title="{$arrNovel.n_category}">
|
||||
{$arrNovel.n_category}
|
||||
</a>
|
||||
</p>
|
||||
<!-- <p>总字数:54.20万+</p> -->
|
||||
<p>总点击量:{$arrNovelClicks.total}</p>
|
||||
<p>月点击量:{$arrNovelClicks.monthly}</p>
|
||||
<p>周点击量:{$arrNovelClicks.weekly}</p>
|
||||
<p>日点击量:{$arrNovelClicks.daily}</p>
|
||||
<p>总点击量:{$arrNovel.arrNovelClicks.total}</p>
|
||||
<p>月点击量:{$arrNovel.arrNovelClicks.monthly}</p>
|
||||
<p>周点击量:{$arrNovel.arrNovelClicks.weekly}</p>
|
||||
<p>日点击量:{$arrNovel.arrNovelClicks.daily}</p>
|
||||
<!-- <p>收藏:0</p> -->
|
||||
</div>
|
||||
|
||||
@@ -190,16 +208,16 @@
|
||||
<h2>最新章节</h2>
|
||||
</div>
|
||||
<div class="zj_con">
|
||||
{volist name="arrChapter" id="Chapter" key="key"}
|
||||
{chapter:list count="12" sort_type="dao" n_id="$arrNovel.n_id" d_key="key" d_val="Chapter" cache_life="86400"}
|
||||
<p>
|
||||
{$arrGrm[$key]|raw}
|
||||
<a href='{$strPcPath}{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$Chapter[c_sort_num]" c_page="0"/}'
|
||||
<a href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$Chapter.c_sort_num" c_page="0"/}'
|
||||
title="{$arrNovel.n_name}-{$Chapter.c_name}" class="zj">{$Chapter.c_name}</a>
|
||||
<span class="time">{$Chapter.created_at ?? '1天前'}</span>
|
||||
<!-- <span class="time">3天前</span>-->
|
||||
</p>
|
||||
<p class="zw" style="max-height: 98px; overflow: hidden;"></p>
|
||||
{/volist}
|
||||
{/chapter:list}
|
||||
</div>
|
||||
</div>
|
||||
<div class="pl_tit">
|
||||
@@ -208,7 +226,7 @@
|
||||
<div class="pl_con">
|
||||
{volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"}
|
||||
{if $key<20 } {$arrGrm[$key+20]|raw} {/if} <a
|
||||
href='{$strPcPath}{site:nnurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" n_fid="$ForgeNovel[n_forge_id]"/}'
|
||||
href='{$strPcPath}{site:nnurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'
|
||||
class="red">{$ForgeNovel.n_forge_title}</a>
|
||||
{/volist}
|
||||
|
||||
@@ -219,17 +237,17 @@
|
||||
<div class="fsph">
|
||||
<h4><s></s>精品推荐</h4>
|
||||
<ul class="info2_C">
|
||||
{volist name="arrRelateveNovel" id="Novel" key="key"}
|
||||
{novel:list count="6" n_category="$arrNovel.n_category_pinyin" n_status="wanjie" d_key="key" d_val="Novel" p_val="page_data" cache_life="86400"}
|
||||
<li>
|
||||
<h3>
|
||||
{$arrGrm[$key+10]|raw}
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel[n_id]" n_py="$Novel[n_name_pinyin]" /}'
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'
|
||||
title="{$Novel['n_name'] ?? ''}">
|
||||
{$Novel['n_name'] ?? ''}
|
||||
</a>
|
||||
</h3>
|
||||
<div>
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel[n_id]" n_py="$Novel[n_name_pinyin]" /}'
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'
|
||||
title="$Novel['n_name'] ?? ''}" class="book_cov">
|
||||
<img src="/template/kuangyu/home/bai_web/images/default.png"
|
||||
data-src="{$Novel['n_cover_path'] ?? ''}" class="lazyload_book_cover lazyload-img"
|
||||
@@ -243,7 +261,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{/volist}
|
||||
{/novel:list}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -70,14 +70,14 @@
|
||||
<div class="list_wrap">
|
||||
<div class="swi">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:list count="10" sort_type="news" d_key="key" d_val="Novel" cache_life="86400"}
|
||||
{novel:ranklist count="10" sort_type="daily" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 0}
|
||||
{include file="pc/public/indexBoyRankOne" start="0"/}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{include file="pc/public/indexBoyRankList" start="1"/}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
{/novel:ranklist}
|
||||
</ol>
|
||||
</div>
|
||||
<!-- <span class="more">
|
||||
@@ -94,14 +94,14 @@
|
||||
<div class="list_wrap">
|
||||
<div class="swi">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:list count="10" sort_type="news" d_key="key" d_val="Novel" cache_life="86400"}
|
||||
{novel:ranklist count="10" sort_type="weekly" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 0}
|
||||
{include file="pc/public/indexBoyRankOne" start="10"/}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{include file="pc/public/indexBoyRankList" start="11"/}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
{/novel:ranklist}
|
||||
</ol>
|
||||
</div>
|
||||
<!-- <span class="more">
|
||||
@@ -118,14 +118,14 @@
|
||||
<div class="list_wrap">
|
||||
<div class="swi">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:list count="10" sort_type="news" d_key="key" d_val="Novel" cache_life="86400"}
|
||||
{novel:ranklist count="10" sort_type="monthly" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 0}
|
||||
{include file="pc/public/indexBoyRankOne" start="20"/}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{include file="pc/public/indexBoyRankList" start="21"/}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
{/novel:ranklist}
|
||||
</ol>
|
||||
</div>
|
||||
<!-- <span class="more">
|
||||
@@ -142,14 +142,14 @@
|
||||
<div class="list_wrap">
|
||||
<div class="swi">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:list count="10" sort_type="news" d_key="key" d_val="Novel" cache_life="86400"}
|
||||
{novel:ranklist count="10" sort_type="total" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 0}
|
||||
{include file="pc/public/indexBoyRankOne" start="30"/}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{include file="pc/public/indexBoyRankList" start="31"/}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
{/novel:ranklist}
|
||||
</ol>
|
||||
</div>
|
||||
<!-- <span class="more">
|
||||
@@ -161,19 +161,19 @@
|
||||
</div>
|
||||
<div class="com_R com_bd">
|
||||
<div class="list_tit">
|
||||
<h2><s class="or"></s>新书榜</h2>
|
||||
<h2><s class="or"></s>连载榜</h2>
|
||||
</div>
|
||||
<div class="list_wrap">
|
||||
<div class="swi">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:list count="10" sort_type="news" d_key="key" d_val="Novel" cache_life="86400"}
|
||||
{novel:ranklist count="10" sort_type="total" n_status="lianzai" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 0}
|
||||
{include file="pc/public/indexBoyRankOne" start="40"/}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{include file="pc/public/indexBoyRankList" start="41"/}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
{/novel:ranklist}
|
||||
</ol>
|
||||
</div>
|
||||
<!-- <span class="more">
|
||||
@@ -190,14 +190,14 @@
|
||||
<div class="list_wrap">
|
||||
<div class="swi">
|
||||
<ol class="list" mod="rank_data_list">
|
||||
{novel:list count="10" sort_type="news" d_key="key" d_val="Novel" cache_life="86400"}
|
||||
{novel:ranklist count="10" sort_type="total" n_status="wanjie" d_key="key" d_val="Novel" cache_life="1000"}
|
||||
{if $key == 0}
|
||||
{include file="pc/public/indexBoyRankOne" start="50"/}
|
||||
{/if}
|
||||
{if $key >= 1}
|
||||
{include file="pc/public/indexBoyRankList" start="51"/}
|
||||
{/if}
|
||||
{/novel:list}
|
||||
{/novel:ranklist}
|
||||
</ol>
|
||||
</div>
|
||||
<!-- <span class="more">
|
||||
|
||||
@@ -1,26 +1,29 @@
|
||||
{extend name="basePc" /}
|
||||
{block name="title"}{$strTitle??''}{/block}
|
||||
{block name="keywords"}{$strKeywords??''}{/block}
|
||||
{block name="description"}{$strDescription??''}{/block}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETSEARCHNOVEL@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETSEARCHNOVEL@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$strTitle??''}" />
|
||||
<meta property="og:description" content="{$strDescription??''}" />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{site:souurl key='$strSearchKeywords' p='1'/}" />
|
||||
<meta property="og:title" content=‘{site:replace code="NOVEL@GETSEARCHNOVEL@TITLE"} />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}' />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{site:souurl key='$Request.get.keyword' p='1'/}" />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}">
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="{$strSearchKeywords} - {$DomainModel->d_name}搜索 - 第{$intPage}页">
|
||||
<meta name="twitter:description" content="{$strSearchKeywords}搜索结果第{$intPage}页,免费阅读小说,快来体验!">
|
||||
<meta name="twitter:title" content="{$Request.get.keyword} - {$DomainModel->d_name}搜索 - 第{$Request.get.intPage}页">
|
||||
<meta name="twitter:description" content="{$Request.get.keyword}搜索结果第{$Request.get.intPage}页,免费阅读小说,快来体验!">
|
||||
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "SearchResultsPage",
|
||||
"url": "https://{$DomainModel->d_name}{site:souurl key='$strSearchKeywords' p='1'/}",
|
||||
"name": "{$DomainModel->d_name} - {$DomainModel->d_name}搜索 第{$intPage}页",
|
||||
"description": "搜索‘{$strSearchKeywords}’结果第{$intPage}页,提供{$strSearchKeywords}创作的小说免费阅读。",
|
||||
"url": "https://{$DomainModel->d_name}{site:souurl key='$Request.get.keyword' p='1'/}",
|
||||
"name": "{$DomainModel->d_name} - {$DomainModel->d_name}搜索 第{$Request.get.intPage}页",
|
||||
"description": "搜索‘{$Request.get.keyword}’结果第{$Request.get.intPage}页,提供{$Request.get.keyword}创作的小说免费阅读。",
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"mainEntity": {
|
||||
"@type": "Book",
|
||||
@@ -34,6 +37,7 @@
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
@@ -45,24 +49,33 @@
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{novel:pagerexp page="$Request.get.page" limit="30"
|
||||
key="$Request.get.keyword"
|
||||
d_key="d_key"
|
||||
d_val="Novel" n_num="total"
|
||||
p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager" export_name="resData" /}
|
||||
|
||||
{site:grm page_code="pc_novel_search" diff="$Request.url" num="30" g_key="arrGrm" /}
|
||||
|
||||
<div class="content">
|
||||
<div class="find">
|
||||
|
||||
<div class="fi_t">
|
||||
<h1>{$strSearchKeywords}搜索结果 - {$DomainModel->d_name} 第{$intPage}页</h1>
|
||||
<h1>{$Request.get.keyword}搜索结果 - {$DomainModel->d_name} 第{$Request.get.page}页</h1>
|
||||
<div class="result search_tip">
|
||||
|
||||
搜索<span style="color:red">“{$strSearchKeywords}”</span>相关结果共有 <span style="color:red">{$arrPage.total}</span> 部小说
|
||||
搜索<span style="color:red">“{$Request.get.keyword}”</span>相关结果共有 <span style="color:red">{$resData.p_data.total}</span> 部小说
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="result" mod="search_data_list">
|
||||
{if empty($arrPage.data)}
|
||||
{if empty($resData.data)}
|
||||
<p style="text-align: center;line-height: 60px">没有相关数据</p>
|
||||
{else}
|
||||
<ul>
|
||||
{foreach $arrPage.data as $key=>$Novel}
|
||||
{foreach $resData.data as $key=>$Novel}
|
||||
{include file="pc/public/shukuNovelList" start="0"/}
|
||||
{/foreach}
|
||||
</ul>
|
||||
@@ -70,17 +83,17 @@
|
||||
<!--页码切换 开始-->
|
||||
<div class="changepage">
|
||||
<ul class="pagination">
|
||||
{volist name="arrPaginator" id="vo" key="k"}
|
||||
{volist name="resData.p_data.pager" id="vo" key="k"}
|
||||
{switch $vo.label}
|
||||
{case value="上一页"}
|
||||
{if $intPage == 1}
|
||||
{if $resData.p_data.page == 1}
|
||||
<li class="disabled"><span>«</span></li>
|
||||
{else}
|
||||
<li><a href="{$strPcPath}{$vo.url}">«</a></li>
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="下一页"}
|
||||
{if $intPage >= $intTotalPage}
|
||||
{if $resData.p_data.page >= $resData.p_data.total}
|
||||
<li class="disabled"><span>»</span></li>
|
||||
{else}
|
||||
<li><a href='{$strPcPath}{$vo.url}'>»</a></li>
|
||||
@@ -91,7 +104,7 @@
|
||||
{/case}
|
||||
{default /}
|
||||
{if preg_match('/^\d+$/', $vo.label)}
|
||||
<li class='{eq name="vo.label" value="$intPage"}active {/eq}'>
|
||||
<li class='{eq name="vo.label" value="$resData.p_data.page"}active {/eq}'>
|
||||
<a href="{$strPcPath}{$vo.url}">{$vo.label}</a>
|
||||
</li>
|
||||
{/if}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{if !empty($arrPaginator)}
|
||||
{if !empty($resData.p_data.pager)}
|
||||
<div class="page_num">
|
||||
{volist name="arrPaginator" id="item"}
|
||||
{volist name="$resData.p_data.pager" id="item"}
|
||||
{eq name="item.type" value="prev"}
|
||||
<a href="{$item.url ?: '#'}"
|
||||
class="z {$item.disabled ? 'disabled' : ''}">
|
||||
@@ -10,8 +10,9 @@
|
||||
{/volist}
|
||||
|
||||
<select onchange="self.location.href=options[selectedIndex].value">
|
||||
{volist name="arrPaginator" id="item"}
|
||||
{volist name="$resData.p_data.pager" id="item"}
|
||||
{eq name="item.type" value="page"}
|
||||
<?php $intLimit = $resData['p_data']['limit']; ?>
|
||||
<?php $start = ($item['label'] - 1) * $intLimit + 1; ?>
|
||||
<?php $end = $item['label'] * $intLimit; ?>
|
||||
<option value="{$item.url}" {$item.current ? 'selected' : ''}>
|
||||
@@ -21,7 +22,7 @@
|
||||
{/volist}
|
||||
</select>
|
||||
|
||||
{volist name="arrPaginator" id="item"}
|
||||
{volist name="$resData.p_data.pager" id="item"}
|
||||
{eq name="item.type" value="next"}
|
||||
<a href="{$item.url ?: '#'}"
|
||||
class="y {$item.disabled ? 'disabled' : ''}">
|
||||
|
||||
@@ -3,7 +3,16 @@
|
||||
<div class="tWrap">
|
||||
<p>友情链接</p>
|
||||
<ul>
|
||||
<!-- <li><a href="http://www.kyxscms.com" >{$DomainModel->d_text_log}</a></li> -->
|
||||
<a href="/sitemap_index.xml">XML地图</a>
|
||||
<a href="/site.txt">网站地图</a>
|
||||
{site:forgelist count="30" d_key="d_key" d_val="ForgeNovel" cache_life="86400"}
|
||||
<li>
|
||||
<a
|
||||
href='{$strPcPath}{site:nnurl n_id="$ForgeNovel.n_id" n_py="$ForgeNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>
|
||||
{$ForgeNovel.n_forge_title}
|
||||
</a>
|
||||
</li>
|
||||
{/site:forgelist}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -18,6 +27,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<span class="gotop" id="btn_back_top" title="返回顶部">
|
||||
<img src="/template/kuangyu/home/bai_web/images/gotop.png" data-src="/template/kuangyu/home/bai_web/images/gotop.png" alt="返回顶部"
|
||||
<img src="/template/kuangyu/home/bai_web/images/gotop.png"
|
||||
data-src="/template/kuangyu/home/bai_web/images/gotop.png" alt="返回顶部"
|
||||
ysrc="/template/kuangyu/home/bai_web/images/gotop.png">
|
||||
</span>
|
||||
@@ -1,11 +1,13 @@
|
||||
{extend name="basePcUser" /}
|
||||
{block name="title"}{$strTitle??''}{/block}
|
||||
{block name="keywords"}{$strKeywords??''}{/block}
|
||||
{block name="description"}{$strDescription??''}{/block}
|
||||
|
||||
{block name="title"}我的书架{/block}
|
||||
{block name="keywords"}我的书架{/block}
|
||||
{block name="description"}我的书架{/block}
|
||||
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$strTitle??''}" />
|
||||
<meta property="og:description" content="{$strDescription??''}" />
|
||||
<meta property="og:title" content="我的书架" />
|
||||
<meta property="og:description" content="我的书架" />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strBookShelfUrlTemp}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<!-- 结构化数据 -->
|
||||
@@ -13,8 +15,8 @@
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}{$strBookShelfUrlTemp}",
|
||||
"@type": "article",
|
||||
"headline": "{$strTitle??''}",
|
||||
"description": "{$strDescription??''}",
|
||||
"headline": "我的书架",
|
||||
"description": "我的书架",
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</script>
|
||||
@@ -22,6 +24,7 @@
|
||||
|
||||
|
||||
{block name="main"}
|
||||
{site:grm page_code="pc_bookshekf" diff="0" num="10" g_key="arrGrm" /}
|
||||
{$arrGrm[0]|raw}
|
||||
<div class="i-right">
|
||||
<!--我的书架 mod -->
|
||||
@@ -56,9 +59,9 @@
|
||||
</div>
|
||||
{$arrGrm[2]|raw}
|
||||
<script>
|
||||
const strNovelUrlTemp = `{$strNovelUrlTemp}`;
|
||||
const strNovelChapterUrlTemp = `{$strNovelChapterUrlTemp}`;
|
||||
const strSearchUrlTemp = `{$strSearchUrlTemp}`;
|
||||
const strNovelUrlTemp = `{site:replace code="NOVEL_INFO_URL"}`;
|
||||
const strNovelChapterUrlTemp = `{site:replace code="CONTENT_INFO_URL"}`;
|
||||
const strSearchUrlTemp = `{site:replace code="SEARCH_INFO_URL"}`;
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
|
||||
displayBookshelf()
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{extend name="basePcUser" /}
|
||||
{block name="title"}{$strTitle??''}{/block}
|
||||
{block name="keywords"}{$strKeywords??''}{/block}
|
||||
{block name="description"}{$strDescription??''}{/block}
|
||||
{block name="title"}我的阅读记录{/block}
|
||||
{block name="keywords"}我的阅读记录{/block}
|
||||
{block name="description"}我的阅读记录{/block}
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$strTitle??''}" />
|
||||
<meta property="og:description" content="{$strDescription??''}" />
|
||||
<meta property="og:title" content="我的阅读记录" />
|
||||
<meta property="og:description" content="我的阅读记录" />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strHistoryUrlTemp}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<!-- 结构化数据 -->
|
||||
@@ -13,8 +13,8 @@
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}{$strHistoryUrlTemp}",
|
||||
"@type": "article",
|
||||
"headline": "{$strTitle??''}",
|
||||
"description": "{$strDescription??''}",
|
||||
"headline": "我的阅读记录",
|
||||
"description": "我的阅读记录",
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</script>
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
|
||||
{block name="main"}
|
||||
{site:grm page_code="pc_history" diff="0" num="10" g_key="arrGrm" /}
|
||||
{$arrGrm[0]|raw}
|
||||
<div class="i-right">
|
||||
<div class="i-title" style="padding-left:30px;">
|
||||
@@ -54,9 +55,9 @@
|
||||
</div>
|
||||
{$arrGrm[3]|raw}
|
||||
<script>
|
||||
const strNovelUrlTemp = `{$strNovelUrlTemp}`;
|
||||
const strNovelChapterUrlTemp = `{$strNovelChapterUrlTemp}`;
|
||||
const strSearchUrlTemp = `{$strSearchUrlTemp}`;
|
||||
const strNovelUrlTemp = `{site:replace code="NOVEL_INFO_URL"}`;
|
||||
const strNovelChapterUrlTemp = `{site:replace code="CONTENT_INFO_URL"}`;
|
||||
const strSearchUrlTemp = `{site:replace code="SEARCH_INFO_URL"}`;
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
|
||||
displayHistory()
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
{extend name="basePcUser" /}
|
||||
{block name="title"}{$strTitle??''}{/block}
|
||||
{block name="keywords"}{$strKeywords??''}{/block}
|
||||
{block name="description"}{$strDescription??''}{/block}
|
||||
|
||||
{block name="title"}个人中心{/block}
|
||||
{block name="keywords"}个人中心{/block}
|
||||
{block name="description"}个人中心{/block}
|
||||
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$strTitle??''}" />
|
||||
<meta property="og:description" content="{$strDescription??''}" />
|
||||
<meta property="og:title" content="个人中心" />
|
||||
<meta property="og:description" content="个人中心" />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strUserUrlTemp}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<!-- 结构化数据 -->
|
||||
@@ -13,8 +15,8 @@
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}{$strUserUrlTemp}",
|
||||
"@type": "article",
|
||||
"headline": "{$strTitle??''}",
|
||||
"description": "{$strDescription??''}",
|
||||
"headline": "个人中心",
|
||||
"description": "个人中心",
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</script>
|
||||
@@ -22,6 +24,9 @@
|
||||
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{site:grm page_code="userinfo" diff="0" num="100" g_key="arrGrm" /}
|
||||
|
||||
<div class="i-right">
|
||||
<!--bot mod -->
|
||||
<div class="i-bot">
|
||||
@@ -57,9 +62,9 @@
|
||||
</div>
|
||||
<div class="tabBd">
|
||||
<ul class="hotBookBd ">
|
||||
{volist name="arrMoonRankNovel" id="Novel" key="key"}
|
||||
{novel:list count="10" sort_type="news" d_key="key" d_val="Novel" cache_life="86400"}
|
||||
{include file="pc/public/endNovelList" start="0"/}
|
||||
{/volist}
|
||||
{/novel:list}
|
||||
|
||||
</ul>
|
||||
|
||||
@@ -73,10 +78,10 @@
|
||||
<div class="myWorks myLike">
|
||||
<div class="i-title">推荐作品</div>
|
||||
<ul>
|
||||
{volist name="arrRecommendEndNovel" id="Novel" key="key"}
|
||||
{novel:list count="10" sort_type="tuijian" d_key="key" d_val="Novel" cache_life="86400"}
|
||||
{$arrGrm[$key]|raw}
|
||||
<li>
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel[n_id]" n_py="$Novel[n_name_pinyin]"/}'
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin"/}'
|
||||
title="{$Novel.n_name ?? ''}">
|
||||
<img src="{$Novel.n_cover_path ?? ''}" alt="{$Novel.n_name ?? ''}">
|
||||
</a>
|
||||
@@ -84,14 +89,14 @@
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>
|
||||
<span class="bookName other">{$Novel.n_name ?? ''}</span>
|
||||
</a>
|
||||
<a href='{$strPcPath}{site:souurl key="$Novel[n_author]" p="1"/}'>
|
||||
<a href='{$strPcPath}{site:souurl key="$Novel.n_author" p="1"/}'>
|
||||
<span class="bookStatus other">{$Novel->n_author ?? ''}</span>
|
||||
</a>
|
||||
<span class="bookBrief">
|
||||
{$Novel.n_description ?? ''}</span>
|
||||
</p>
|
||||
</li>
|
||||
{/volist}
|
||||
{/novel:list}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
@@ -100,9 +105,9 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const strNovelUrlTemp = `{$strNovelUrlTemp}`;
|
||||
const strNovelChapterUrlTemp = `{$strNovelChapterUrlTemp}`;
|
||||
const strSearchUrlTemp = `{$strSearchUrlTemp}`;
|
||||
const strNovelUrlTemp = `{site:replace code="NOVEL_INFO_URL"}`;
|
||||
const strNovelChapterUrlTemp = `{site:replace code="CONTENT_INFO_URL"}`;
|
||||
const strSearchUrlTemp = `{site:replace code="SEARCH_INFO_URL"}`;
|
||||
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
@@ -112,9 +117,10 @@
|
||||
|
||||
// 展示 书架
|
||||
function displayBookshelfInUser() {
|
||||
|
||||
const strBookshelfKey = window.location.hostname + 'strBookshelfKey';
|
||||
// 获取书架数据
|
||||
const arrBookshelf = JSON.parse(localStorage.getItem('strBookshelfKey')) || [];
|
||||
const arrBookshelf = JSON.parse(localStorage.getItem(strBookshelfKey)) || [];
|
||||
console.log(arrBookshelf)
|
||||
|
||||
if (arrBookshelf.length === 0) {
|
||||
console.log('书架为空');
|
||||
@@ -188,18 +194,18 @@
|
||||
});
|
||||
}
|
||||
|
||||
// 展示 书架
|
||||
// 展示 最近阅读
|
||||
function displayHistoryInUser() {
|
||||
|
||||
// 获取书架数据
|
||||
const arrBookshelf = JSON.parse(localStorage.getItem('strHistoryKey')) || [];
|
||||
const strHistoryKey = window.location.hostname + 'strHistoryKey';
|
||||
// 获取最近阅读数据
|
||||
const arrBookshelf = JSON.parse(localStorage.getItem(strHistoryKey)) || [];
|
||||
|
||||
if (arrBookshelf.length === 0) {
|
||||
console.log('书架为空');
|
||||
return;
|
||||
}
|
||||
|
||||
// 渲染书籍列表
|
||||
// 渲染最近阅读列表
|
||||
const DomBookshelfContainer = document.getElementById('history-ul');
|
||||
DomBookshelfContainer.innerHTML = ''
|
||||
arrBookshelf.forEach(book => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{if !empty($arrPaginator)}
|
||||
{if !empty($resData.p_data.pager)}
|
||||
<div class="page_num">
|
||||
{volist name="arrPaginator" id="item"}
|
||||
{volist name="$resData.p_data.pager" id="item"}
|
||||
{eq name="item.type" value="prev"}
|
||||
{$arrGrm[$key]|raw}
|
||||
<a href="{$item.url ?: '#'}"
|
||||
@@ -11,8 +11,9 @@
|
||||
{/volist}
|
||||
|
||||
<select onchange="self.location.href=options[selectedIndex].value">
|
||||
{volist name="arrPaginator" id="item"}
|
||||
{volist name="$resData.p_data.pager" id="item"}
|
||||
{eq name="item.type" value="page"}
|
||||
<?php $intLimit = $resData['p_data']['limit']; ?>
|
||||
<?php $start = ($item['label'] - 1) * $intLimit + 1; ?>
|
||||
<?php $end = $item['label'] * $intLimit; ?>
|
||||
<option value="{$item.url}" {$item.current ? 'selected' : ''}>
|
||||
@@ -22,7 +23,7 @@
|
||||
{/volist}
|
||||
</select>
|
||||
|
||||
{volist name="arrPaginator" id="item"}
|
||||
{volist name="$resData.p_data.pager" id="item"}
|
||||
{eq name="item.type" value="next"}
|
||||
{$arrGrm[$key]|raw}
|
||||
<a href="{$item.url ?: '#'}"
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
<div class="footer">
|
||||
<div class="links">
|
||||
{if $DomainModel->info_id > 0}
|
||||
<a href="/">首页</a>
|
||||
<a href="/nindex/">小说首页
|
||||
</a>
|
||||
{else}
|
||||
<a href="/">首页</a>
|
||||
{/if}
|
||||
|
||||
<a href="{$strNanUrlTemp}">男生</a>
|
||||
<a href="{$strNvUrlTemp}">女生</a>
|
||||
<a href="{$strCategoryIndexUrlTemp}">书库</a>
|
||||
@@ -10,7 +17,13 @@
|
||||
友情连接:
|
||||
<a href="/sitemap_index.xml">XML地图</a>
|
||||
<a href="/site.txt">网站地图</a>
|
||||
|
||||
{site:forgelist count="30" d_key="d_key" d_val="ForgeNovel" cache_life="86400"}
|
||||
<a
|
||||
href='{$strPcPath}{site:nnurl n_id="$ForgeNovel.n_id" n_py="$ForgeNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>
|
||||
{$ForgeNovel.n_forge_title}
|
||||
</a>
|
||||
{/site:forgelist}
|
||||
|
||||
</div>
|
||||
<div class="copyright">
|
||||
<p>精彩小说推荐尽在{$DomainModel->d_text_logo}!</p>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{extend name="baseH5User" /}
|
||||
{block name="title"}{$strTitle??''}{/block}
|
||||
{block name="keywords"}{$strKeywords??''}{/block}
|
||||
{block name="description"}{$strDescription??''}{/block}
|
||||
{block name="title"}我的书架{/block}
|
||||
{block name="keywords"}我的书架{/block}
|
||||
{block name="description"}我的书架{/block}
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$strTitle??''}" />
|
||||
<meta property="og:description" content="{$strDescription??''}" />
|
||||
<meta property="og:title" content="我的书架" />
|
||||
<meta property="og:description" content="我的书架" />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strBookShelfUrlTemp}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<!-- 结构化数据 -->
|
||||
@@ -13,8 +13,8 @@
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}{$strBookShelfUrlTemp}",
|
||||
"@type": "article",
|
||||
"headline": "{$strTitle??''}",
|
||||
"description": "{$strDescription??''}",
|
||||
"headline": "我的书架",
|
||||
"description": "我的书架",
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</script>
|
||||
@@ -22,6 +22,8 @@
|
||||
|
||||
{block name="head-name"}我的书架{/block}
|
||||
{block name="main"}
|
||||
{site:grm page_code="h5_bookshekf" diff="0" num="10" g_key="arrGrm" /}
|
||||
|
||||
{$arrGrm[0]|raw}
|
||||
<div class="app_body">
|
||||
{$arrGrm[3]|raw}
|
||||
@@ -42,9 +44,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
const strNovelUrlTemp = `{$strNovelUrlTemp}`;
|
||||
const strNovelChapterUrlTemp = `{$strNovelChapterUrlTemp}`;
|
||||
const strSearchUrlTemp = `{$strSearchUrlTemp}`;
|
||||
const strNovelUrlTemp = `{site:replace code="NOVEL_INFO_URL"}`;
|
||||
const strNovelChapterUrlTemp = `{site:replace code="CONTENT_INFO_URL"}`;
|
||||
const strSearchUrlTemp = `{site:replace code="SEARCH_INFO_URL"}`;
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
|
||||
displayBookshelf()
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{extend name="baseH5User" /}
|
||||
{block name="title"}{$strTitle??''}{/block}
|
||||
{block name="keywords"}{$strKeywords??''}{/block}
|
||||
{block name="description"}{$strDescription??''}{/block}
|
||||
{block name="title"}我的阅读记录{/block}
|
||||
{block name="keywords"}我的阅读记录{/block}
|
||||
{block name="description"}我的阅读记录{/block}
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$strTitle??''}" />
|
||||
<meta property="og:description" content="{$strDescription??''}" />
|
||||
<meta property="og:title" content="我的阅读记录" />
|
||||
<meta property="og:description" content="我的阅读记录" />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strHistoryUrlTemp}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<!-- 结构化数据 -->
|
||||
@@ -13,8 +13,8 @@
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}{$strHistoryUrlTemp}",
|
||||
"@type": "article",
|
||||
"headline": "{$strTitle??''}",
|
||||
"description": "{$strDescription??''}",
|
||||
"headline": "我的阅读记录",
|
||||
"description": "我的阅读记录",
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</script>
|
||||
@@ -22,6 +22,9 @@
|
||||
|
||||
{block name="head-name"}最近阅读{/block}
|
||||
{block name="main"}
|
||||
|
||||
{site:grm page_code="h5_history" diff="0" num="10" g_key="arrGrm" /}
|
||||
|
||||
{$arrGrm[0]|raw}
|
||||
<div class="app_body">
|
||||
{$arrGrm[1]|raw}
|
||||
@@ -44,9 +47,9 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const strNovelUrlTemp = `{$strNovelUrlTemp}`;
|
||||
const strNovelChapterUrlTemp = `{$strNovelChapterUrlTemp}`;
|
||||
const strSearchUrlTemp = `{$strSearchUrlTemp}`;
|
||||
const strNovelUrlTemp = `{site:replace code="NOVEL_INFO_URL"}`;
|
||||
const strNovelChapterUrlTemp = `{site:replace code="CONTENT_INFO_URL"}`;
|
||||
const strSearchUrlTemp = `{site:replace code="SEARCH_INFO_URL"}`;
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
|
||||
displayHistory()
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{extend name="baseH5User" /}
|
||||
{block name="title"}{$strTitle??''}{/block}
|
||||
{block name="keywords"}{$strKeywords??''}{/block}
|
||||
{block name="description"}{$strDescription??''}{/block}
|
||||
{block name="title"}个人中心{/block}
|
||||
{block name="keywords"}个人中心{/block}
|
||||
{block name="description"}个人中心{/block}
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$strTitle??''}" />
|
||||
<meta property="og:description" content="{$strDescription??''}" />
|
||||
<meta property="og:title" content="个人中心" />
|
||||
<meta property="og:description" content="个人中心" />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strUserUrlTemp}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<!-- 结构化数据 -->
|
||||
@@ -13,8 +13,8 @@
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}{$strUserUrlTemp}",
|
||||
"@type": "article",
|
||||
"headline": "{$strTitle??''}",
|
||||
"description": "{$strDescription??''}",
|
||||
"headline": "个人中心",
|
||||
"description": "个人中心",
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</script>
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
{block name="head-name"}用户中心{/block}
|
||||
{block name="main"}
|
||||
{site:grm page_code="userinfo" diff="0" num="10" g_key="arrGrm" /}
|
||||
{$arrGrm[0]|raw}
|
||||
<div class="app_body">
|
||||
{$arrGrm[1]|raw}
|
||||
@@ -58,7 +59,6 @@
|
||||
<a href="{$strHistoryUrlTemp}"><i class="iconfont"></i>最近阅读</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
首页-head
|
||||
站点名字
|
||||
站点域名
|
||||
站点域名
|
||||
站点全局通用关键词
|
||||
站点描述 丰富首页内容
|
||||
title
|
||||
|
||||
199
code/app/home/view/shikong/baseH5.html
Normal file
199
code/app/home/view/shikong/baseH5.html
Normal file
@@ -0,0 +1,199 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
|
||||
<title>{block name="title"}{/block}</title>
|
||||
<meta name="keywords" content='{block name="keywords"}{/block}'>
|
||||
<meta name="description" content='{block name="description"}{/block}'>
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="theme-color" content="#000">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta http-equiv="Cache-Control" content="no-transform">
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp">
|
||||
<meta name="applicable-device" content="mobile">
|
||||
<meta name="c" c="0">
|
||||
<meta name="my" k="aporn">
|
||||
<!-- <base target="_blank"> -->
|
||||
|
||||
|
||||
<link rel="apple-touch-icon" href="/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" type="text/css" href="/template/shikong/css/bootstrap.px.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/template/shikong/css/bootstrap-icons.css">
|
||||
<link href="/template/shikong/huiyuan/js/plugin/layer/need/layer.css" rel="stylesheet">
|
||||
<link rel="stylesheet" type="text/css" href="/template/shikong/css/atom.css">
|
||||
<link rel="stylesheet" type="text/css" href="/template/shikong/css/bstyle-v5.pp.css">
|
||||
<link rel="stylesheet" type="text/css" href="/template/shikong/css/mobile.css">
|
||||
<link rel="stylesheet" type="text/css" href='/template/shikong/css/style.css?version={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'>
|
||||
<link rel="stylesheet" type="text/css" href='/template/shikong/css/sbm.css?version={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'>
|
||||
<link rel="stylesheet" type="text/css" href='/template/shikong/css/pretty.css?version={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'>
|
||||
<link rel="stylesheet" type="text/css" href='/template/shikong/css/index-247463.css?version={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'>
|
||||
{block name="head-css"}{/block}
|
||||
|
||||
<script type="text/javascript" src="/template/shikong/js/jquery-2.2.4.min.js"></script>
|
||||
<script type="application/javascript"
|
||||
src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/Swiper/8.0.6/swiper-bundle.min.js" defer></script>
|
||||
<script type="text/javascript" src="/template/shikong/js/lozad.min.js"></script>
|
||||
<script src="/template/shikong/vendor/layer/layer.js" type="module" charset="utf-8"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
|
||||
<script type="text/javascript" src="/template/shikong/js/qrcode.min.js"></script>
|
||||
<script type="text/javascript" src="/template/shikong/js/enc/public.min.js"></script>
|
||||
<script type="text/javascript" src='/template/shikong/js/enc/qd.min.js?version={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'></script>
|
||||
<script type="text/javascript" src='/template/shikong/js/index-247463.js?version=1{site:cfg code="STATIC_FILE_VERSION" encode="false"/}'></script>
|
||||
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
</head>
|
||||
|
||||
<body style="font-size: 14px;" {block name="body-class"}{/block} >
|
||||
<div class="v-s-nav-box-h">
|
||||
<div class="s-main-box">
|
||||
<div class="s-logo">
|
||||
<a href="/">
|
||||
<h1 >—{$DomainModel->d_name}—</h1>
|
||||
<p>{$DomainModel->d_domain}</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="v-s-nav-search-box3">
|
||||
<a href="/searchhome/0.html">
|
||||
<div class="s-search">
|
||||
<i class="s-icon-search"></i>
|
||||
<span class="s-tips">点击搜索</span>
|
||||
<div class="s-tags">
|
||||
<span class="s-link-tag"></span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="s-main-box-middle" style="max-height:1rem">
|
||||
<div
|
||||
class="swiper swiper-top-zxcv swiper-initialized swiper-horizontal swiper-pointer-events swiper-ios swiper-backface-hidden">
|
||||
<div class="swiper-wrapper">
|
||||
|
||||
|
||||
<div class="swiper-slide" style="max-height:1rem">
|
||||
<a href="{gg_tiao_zhuan_di_zhi}" target="_blank">
|
||||
<img src="{gg_tu_pian}" style="display: block;width:100%;max-height:1rem" alt="">
|
||||
<div class="content">{gg_wen_zi|customEntities|raw}</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="swiper-pagination"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
let pageId = "#{block name='nav-active-class'}{/block}" +"-page"
|
||||
$(pageId).addClass("nav-menu-selected")
|
||||
})
|
||||
</script>
|
||||
<div class="v-s-ul-time-vs_442378ea5a0a0b9d99bed43dc146baa0">
|
||||
{if $DomainModel->info_id > 0}
|
||||
<a href="/">
|
||||
<div class="v-s-li-nav-link-vs_442378ea5a0a0b9d99bed43dc146baa0 " id="novelindex-page">首页</div>
|
||||
</a>
|
||||
<a href="/nindex">
|
||||
<div class="v-s-li-nav-link-vs_442378ea5a0a0b9d99bed43dc146baa0 " id="home-page">小说首页</div>
|
||||
</a>
|
||||
{else}
|
||||
<a href="/">
|
||||
<div class="v-s-li-nav-link-vs_442378ea5a0a0b9d99bed43dc146baa0 " id="home-page">首页</div>
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
|
||||
<a href='{$strPcPath}{site:nflurl category="$strCategoryPinyin" status="all" order="all" page="1"/}'>
|
||||
<div class="v-s-li-nav-link-vs_442378ea5a0a0b9d99bed43dc146baa0 " id="novel{$strCategoryPinyin}-page">{$strCategoryName}</div>
|
||||
</a>
|
||||
{/novel:category}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="v-s-ul-category-tag">
|
||||
{block name="subcategory"}
|
||||
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
<div style="margin-top:0px;width:100%;">
|
||||
<div class="main-box">
|
||||
<div class="alert alert-primary" style="padding: 5px 10px;margin-bottom:0;border-radius:0px;"><strong><i
|
||||
class="bi bi-bell-fill"></i></strong>
|
||||
<div id="scroll-outer" class="scroll__outer">
|
||||
<div id="scroll-inner" class="scroll__inner"
|
||||
style="transform: translate3d(-180.5px, 0px, 0px);">
|
||||
<div class="scroll__text">
|
||||
{site:wz wz="本站永久域名" /}:{$DomainModel->d_domain},{site:wz wz="请收藏!发送任意邮件至" /}{site:site valcode='site_email' encode='false'/} {site:wz wz="也可秒得最新地址!" /}
|
||||
</div>
|
||||
|
||||
<div class="scroll__text" id="last-text">
|
||||
{site:wz wz="本站永久域名" /}:{$DomainModel->d_domain},{site:wz wz="请收藏!发送任意邮件至" /}{site:site valcode='site_email' encode='false'/} {site:wz wz="也可秒得最新地址!" /}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="item-box" style="margin-top:0;">
|
||||
<div class="main-box">
|
||||
<div class="index-items-wrap">
|
||||
<div class="grid-box-s2">
|
||||
|
||||
<div>
|
||||
<img class="pre-img lozad"
|
||||
data-src="{gg_tu_pian}?v={site:cfg code='STATIC_FILE_VERSION' encode='false'/}"
|
||||
src="/template/shikong/images/loading_img_bg_default.jpg?v={site:cfg code='STATIC_FILE_VERSION' encode='false'/}">
|
||||
<a href="{gg_tiao_zhuan_di_zhi}" rel="external nofollow" target="_blank" alt="12">
|
||||
<div class="name">{gg_wen_zi|customEntities|raw}</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="p-card-box">
|
||||
<dl>
|
||||
|
||||
<dt>
|
||||
<div class="item">
|
||||
<a href="{gg_tiao_zhuan_di_zhi}" alt="19"
|
||||
target="_blank">
|
||||
<b>{gg_wen_zi|customEntities|raw}</b>
|
||||
</a>
|
||||
</div>
|
||||
</dt>
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{block name="main"} {site:wz wz="主内容" /}{/block}
|
||||
|
||||
{include file="public/footer" /}
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
{/block}
|
||||
|
||||
{site:site valcode="site_tongji" encode="false"/}
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
110
code/app/home/view/shikong/basePc.html
Normal file
110
code/app/home/view/shikong/basePc.html
Normal file
@@ -0,0 +1,110 @@
|
||||
<html lang="zh">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta http-equiv="Cache-Control" content="no-cache,must-revalidate">
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp">
|
||||
<meta http-equiv="Cache-Control" content="no-transform">
|
||||
<meta name="robots" content="index, follow" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{block name="title"}{/block}</title>
|
||||
<meta name="keywords" content='{block name="keywords"}{/block}'>
|
||||
<meta name="description" content='{block name="description"}{/block}'>
|
||||
<meta http-equiv="mobile-agent" content="format=html5; url={$DomainModel->d_domain}">
|
||||
<meta name="shenma-site-verification" content="941546c24f6fa26aab1a1c67341a9e07_1653579597">
|
||||
<link rel="alternate" type="application/vnd.wap.xhtml+xml" media="handheld"
|
||||
href="{$DomainModel->d_domain}">
|
||||
|
||||
<link rel="shortcut icon" href="/template/default/img/favicon.ico" type="image/x-icon">
|
||||
<link href="/public/layer/need/layer.css" rel="stylesheet">
|
||||
<link href="/template/default/pc/css/style.css" rel="stylesheet" type="text/css">
|
||||
{block name="meta-other"}{/block}
|
||||
{block name="head"}{/block}
|
||||
{block name="head-css"}{/block}
|
||||
{block name="head-js"}{/block}
|
||||
<script>
|
||||
const strPcPath = `{$strPcPath}`;
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="novel_home {block name='body-class'}{/block}" id="{block name='body-id'}{/block}">
|
||||
<div class="topbar">
|
||||
<div class="topbar-con">
|
||||
<div class="topbar-sethome"><a href="javascript:winSetHP();">将本站设为首页</a></div>
|
||||
<div class="topbar-addfavorite"><a href="javascript:winAddFav()">收藏{$DomainModel->d_name}</a></div>
|
||||
<div class="topbar-right" id="qs_login"><a href="{$strPcPath}{$strBookShelfUrlTemp}">我的书架</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<h1 class="logo"><a href="{$strPcPath}"><span>{$DomainModel->d_name}</span></a></h1>
|
||||
<form id="novel_search" class="search-form" method="get" action="{$strPcPath}{$strSearchIndexUrlTemp}"><input type="text"
|
||||
class="input-text input-key" name="keyword" placeholder="输入书名/作者进行搜索"><button type="submit"
|
||||
class="btn-tosearch" form="novel_search" value="submit">搜索</button></form>
|
||||
</div>
|
||||
<ul class="nav">
|
||||
{if $DomainModel->info_id > 0}
|
||||
<li><a href="{$strPcPath}/">首 页</a></li>
|
||||
<li><a href="{$strPcPath}/nindex/">小说首页</a></li>
|
||||
{else}
|
||||
<li><a href="{$strPcPath}/">首 页</a></li>
|
||||
{/if}
|
||||
<!-- <li><a href="/">首 页</a></li>
|
||||
<li><a href="/nindex">小说首页</a></li> -->
|
||||
<!-- <li><a href="{$strPcPath}/">首 页</a></li> -->
|
||||
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
|
||||
<li><a href='{$strPcPath}{site:nflurl category="$strCategoryPinyin" status="all" order="all" page="1"/}'>{$strCategoryName}</a></li>
|
||||
{/novel:category}
|
||||
<li><a href="{$strPcPath}{$strHistoryUrlTemp}">阅读记录</a></li>
|
||||
</ul>
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{/block}
|
||||
|
||||
<div class="row">
|
||||
<div class="layout layout3 layout-col3">
|
||||
<h2 class="layout-tit">最新标签</h2>
|
||||
<ul class="txt-list txt-list-row5 tag_news">
|
||||
{site:forgelist count="50" d_key="d_key" d_val="ForgeNovel" cache_life="86400"}
|
||||
<a
|
||||
href='{$strPcPath}{site:nnurl n_id="$ForgeNovel.n_id" n_py="$ForgeNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>
|
||||
{$ForgeNovel.n_forge_title}
|
||||
</a>
|
||||
{/site:forgelist}
|
||||
<a href="/sitemap_index.xml">XML地图</a>
|
||||
<a href="/site.txt">网站地图</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer" id="footer">
|
||||
<div class="pc-footer">
|
||||
<p>本站所有内容来源于互联网公开且无需登录即可获取的网页内容,本站爬虫遵循robots协议,若您的网站不希望被本站爬虫抓取,可通过屏蔽novelspider字段实现。<br>本站仅对抓取到的内容由程序自动进行排版处理再展现,不涉及更改内容,不针对任何内容表述任何立场。<br>同时您可手动提交相关目标站点网址给我们(站点内容必须允许游客访问,本站爬虫不会抓取需要登录后才展现内容的站点),爬虫程序会依据负载状态自动爬取相关页面。<br>如内容有违规,请通过本站反馈邮箱提交给我们进行删除处理。
|
||||
</p>
|
||||
<p> 反馈邮箱:
|
||||
{site:cfg code="YOU_XIANG" encode="false"/} Inc. All Rights Reserved. </p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="shuqian"></div>
|
||||
<script>
|
||||
const strPushApi = `{site:cfg code="PUSH_API_DOMAIN" encode="false"/}`;
|
||||
</script>
|
||||
<script src="/template/default/pc/js/jquery.min.js"></script>
|
||||
<script src="/public/layer/layer.js" type="module" charset="utf-8"></script>
|
||||
<script src="/template/default/pc/js/common.js"></script>
|
||||
<script src="/template/default/js/common.js"></script>
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
{/block}
|
||||
|
||||
<!-- 全局统计 -->
|
||||
{site:cfg code="PUBLIC_TONGJI_CODE" encode="false"/}
|
||||
|
||||
<!-- 站点统计 -->
|
||||
{$DomainModel->d_statis|raw}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
3
code/app/home/view/shikong/index.md
Normal file
3
code/app/home/view/shikong/index.md
Normal file
@@ -0,0 +1,3 @@
|
||||
时空小说模板-
|
||||
|
||||
|
||||
120
code/app/home/view/shikong/index/index.html
Normal file
120
code/app/home/view/shikong/index/index.html
Normal file
@@ -0,0 +1,120 @@
|
||||
{extend name="baseH5" /}
|
||||
{block name="title"}{site:replace code="INDEX@INDEX@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="INDEX@INDEX@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="INDEX@INDEX@DESCRIPTION"}{/block}
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content='{site:replace code="INDEX@INDEX@TITLE"}' />
|
||||
<meta property="og:description" content='{site:replace code="INDEX@INDEX@DESCRIPTION"}' />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}" />
|
||||
<meta property="og:type" content="website" />
|
||||
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebSite",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}",
|
||||
"headline": '{site:replace code="INDEX@INDEX@TITLE"}',
|
||||
"description": '{site:replace code="INDEX@INDEX@DESCRIPTION"}',
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
|
||||
"potentialAction": {
|
||||
"@type": "SearchAction",
|
||||
"target": 'https://{$DomainModel->d_domain}{site:souurl key="search_term_string" p="1"/}',
|
||||
"query-input": "required name=search_term_string"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h1 class="bookname">
|
||||
<a href="/" style="color:#ffffff">{$DomainModel->d_name}</a>-免费在线阅读热门小说
|
||||
</h1>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{site:grm page_code="h5_index" diff="0" num="100" g_key="arrGrm" /}
|
||||
|
||||
<h2 class="site-description">{$DomainModel->d_index_description}</h2>
|
||||
<div class="wrap-box" style="margin-top:0;">
|
||||
<h3 class="wrap-title"><span>封面推荐</span></h3>
|
||||
<div class="rec-focus">
|
||||
{novel:list count="8" sort_type="tuijian" d_key="d_key" d_val="Novel" p_val="page_data" cache_life="86400"}
|
||||
<dl class="rec-focus-book">
|
||||
<dt class="book-img">
|
||||
{$arrGrm[$d_key]|raw}
|
||||
<a href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>
|
||||
<img height="100" width="80" alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读"
|
||||
src="{$Novel.n_cover_path ?? ''}">
|
||||
</a>
|
||||
</dt>
|
||||
<dd class="book-info">
|
||||
<h2><a href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel.n_name}</a></h2>
|
||||
<p>作者:{$Novel.n_author}</p>
|
||||
<p>{$Novel.n_description}</p>
|
||||
</dd>
|
||||
</dl>
|
||||
{/novel:list}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
|
||||
<div class="wrap-box">
|
||||
<h3 class="wrap-title">
|
||||
<span>{$strCategoryName}</span>
|
||||
<a class="more" href='{site:nflurl category="$strCategoryPinyin" status="all" order="all" page="1"/}'>更多..</a>
|
||||
</h3>
|
||||
<div class="sort-box">
|
||||
<dl class="sort-book-first">
|
||||
|
||||
<?php $start = 1 ;$start +=1 ;?>
|
||||
|
||||
{novel:list count="1" n_category="$strCategoryPinyin" sort_type="news" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
<dt class="book-img">
|
||||
|
||||
{$arrGrm[$d_key+8+10*$start]|raw}
|
||||
|
||||
<a href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'><img
|
||||
height="100" width="80" class="lazyload-img" data-encrypted="false"
|
||||
src="/static/img/default.jpg" data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读"></a></dt>
|
||||
<dd class="book-info">
|
||||
<h4><a href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel.n_name}</a></h4>
|
||||
<p>作者:{$Novel.n_author}</p>
|
||||
<p>{$Novel.n_description}</p>
|
||||
</dd>
|
||||
{/novel:list}
|
||||
</dl>
|
||||
<ul class="sort-book-list">
|
||||
{novel:list count="9" n_category="$strCategoryPinyin" sort_type="news" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
<li>
|
||||
{$arrGrm[$d_key+8+10*$start]|raw}
|
||||
<a
|
||||
href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel.n_name}</a><span>{$Novel.n_author}</span>
|
||||
</li>
|
||||
{/novel:list}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/novel:category}
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
|
||||
{/block}
|
||||
18
code/app/home/view/shikong/novel/getArticleInfo.html
Normal file
18
code/app/home/view/shikong/novel/getArticleInfo.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{extend name="baseH5" /}
|
||||
{block name='nav-active-class'}home{/block}
|
||||
{block name="title"}{/block}
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h1 class="logo">
|
||||
<a href="/">狂雨小说</a>
|
||||
</h1>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
<div style="height:50px"></div>
|
||||
|
||||
article.........
|
||||
{/block}
|
||||
|
||||
{block name="customize"} {/block}
|
||||
46
code/app/home/view/shikong/novel/getArticleList.html
Normal file
46
code/app/home/view/shikong/novel/getArticleList.html
Normal file
@@ -0,0 +1,46 @@
|
||||
{extend name="baseH5" /}
|
||||
{block name='nav-active-class'}home{/block}
|
||||
{block name="title"}{/block}
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h1 class="logo">
|
||||
<a href="/">狂雨小说</a>/文章
|
||||
</h1>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
<div style="height:50px"></div>
|
||||
|
||||
<div class="mod mod-nav">
|
||||
<div id="book-nav" class="book-nav">
|
||||
<ul class="clearfix">
|
||||
<li><a class="on" href="/article/list.html" btn="search_category">全部</a></li>
|
||||
<li><a href="/article/list-1-1.html" btn="search_category">高考作文</a></li>
|
||||
<li><a href="/article/list-2-1.html" btn="search_category">小说解读</a></li>
|
||||
<li><a href="/article/list-3-1.html" btn="search_category">影视解说</a></li>
|
||||
<li><a href="/article/list-4-1.html" btn="search_category">王者荣耀</a></li>
|
||||
<li><a href="/article/list-5-1.html" btn="search_category">日常八卦</a></li>
|
||||
<li><a href="/article/list-6-1.html" btn="search_category">其它</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="mod new-book">
|
||||
<div class="mod-head">
|
||||
<h3>深度解说列表</h3>
|
||||
</div>
|
||||
<div class="top-index">
|
||||
<ul class="clearfix">
|
||||
{foreach $arrNewsNovel as $key => $vo}
|
||||
{include file="Public/articleList" /}
|
||||
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name="customize"} {/block}
|
||||
178
code/app/home/view/shikong/novel/getLibrary.html
Normal file
178
code/app/home/view/shikong/novel/getLibrary.html
Normal file
@@ -0,0 +1,178 @@
|
||||
{extend name="baseH5" /}
|
||||
|
||||
{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 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://{$DomainModel->d_domain}{$strCategoryIndexUrlTemp}",
|
||||
"@type": "book",
|
||||
"headline": '{site:replace code="NOVEL@GETLIBRARY@TITLE"}'
|
||||
"description": '{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}',
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</script>
|
||||
{else}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": 'https://{$DomainModel->d_domain}{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" page="$Request.route.intPage"/}',
|
||||
"@type": "book",
|
||||
"headline": '{site:replace code="NOVEL@GETLIBRARY@TITLE"}',
|
||||
"description": '{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}',
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="head-js"}{/block}
|
||||
{block name='nav-active-class'}home{/block}
|
||||
{block name="body-class"}novel_home{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h1 class="bookname">
|
||||
<a href="/"
|
||||
style="color:#ffffff">{$DomainModel->d_name}</a>-{$Request.route.strCategory}{$Request.route.strOrder}{$Request.route.strStatus}免费阅读
|
||||
</h1>
|
||||
{/block}
|
||||
|
||||
{block name="nav-html"}{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{novel:pagerexp page="$Request.get.page" limit="30"
|
||||
n_category="$Request.route.strCategory"
|
||||
sort_type="$Request.route.strOrder"
|
||||
n_status="$Request.route.strStatus" d_key="d_key"
|
||||
d_key="d_key"
|
||||
d_val="Novel" n_num="total"
|
||||
button_num="5" cache_life="86400" func="generateCategoryPager" export_name="resData" /}
|
||||
|
||||
{site:grm page_code="h5_novel_library" diff="$resData.p_data.page" num="40" g_key="arrGrm" /}
|
||||
|
||||
<p class="site-description">{$strDescription??''}</p>
|
||||
|
||||
<div class="navpf">
|
||||
<nav class="sortChannel_nav">
|
||||
<a class="on">分类:</a>
|
||||
<a class='{eq name="$Request.route.strCategory" value="all"}on on2 {/eq} {if !$Request.route.strCategory || $Request.route.strCategory == ""}on on2 {/if}'
|
||||
href='{site:nflurl category="all" status="$Request.route.strStatus" order="$Request.route.strOrder" page="$Request.route.intPage"/}'>全部分类</a>
|
||||
|
||||
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
|
||||
|
||||
<a class='{eq name="$Request.route.strCategory" value="$strCategoryPinyin"}on on2 {/eq}'
|
||||
href='{site:nflurl category="$strCategoryPinyin" status="$Request.route.strStatus" order="$Request.route.strOrder" page="$Request.route.intPage"/}'>{$strCategoryName}</a>
|
||||
{/novel:category}
|
||||
</nav>
|
||||
<nav class="sortChannel_nav">
|
||||
<a class="on">排序:</a>
|
||||
{novel:sort d_key="key" d_val="strSortName"}
|
||||
<a href='{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" order="$key" page="$Request.route.intPage"/}'
|
||||
class='{eq name="$Request.route.strOrder" value="$key"}on on2 {/eq} {if $key == "all" && $Request.route.strOrder == ""}on on2 {/if}'>{$strSortName}</a>
|
||||
{/novel:sort}
|
||||
</nav>
|
||||
<nav class="sortChannel_nav">
|
||||
<a class="on">状态:</a>
|
||||
{novel:status d_key="key" d_val="strStatusName"}
|
||||
<a href='{site:nflurl category="$Request.route.strCategory" status="$key" order="$Request.route.strOrder" page="$Request.route.intPage"/}'
|
||||
class='{eq name="$Request.route.strStatus" value="$key"}on on2 {/eq} {if $key == "all" && $Request.route.strStatus == ""}on on2 {/if}'
|
||||
btn="search_category">{$strStatusName}</a>
|
||||
{/novel:status}
|
||||
</nav>
|
||||
</div>
|
||||
<div class="wrap-box">
|
||||
<h3 class="wrap-title"><span>更新列表</span></h3>
|
||||
<ul class="sort_list">
|
||||
{foreach $resData.data as $key=>$Novel}
|
||||
|
||||
<li>
|
||||
<span class="s1">[{$Novel.n_category}]</span>
|
||||
<span class="s2">
|
||||
{$arrGrm[$key]|raw}
|
||||
<a href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}' data-toggle="tooltip"
|
||||
data-placement="right" title="{$Novel.n_name}">
|
||||
{$Novel.n_name}
|
||||
</a>
|
||||
</span>
|
||||
<span class="s4">{$Novel.n_author}</span>
|
||||
<span class="s5">{:date('m-d')}</span>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row 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 href="{$vo.url}">«</a>
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="下一页"}
|
||||
{if $resData.p_data.page >= $resData.p_data.total}
|
||||
<span>»</span>
|
||||
{else}
|
||||
<a 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 class="wrap-box">
|
||||
<h3 class="wrap-title">
|
||||
<span>封面推荐</span>
|
||||
</h3>
|
||||
<div class="rec-focus">
|
||||
{novel:list count="8" sort_type="tuijian" d_key="d_key" d_val="Novel" p_val="page_data" cache_life="86400"}
|
||||
<dl class="rec-focus-book">
|
||||
<dt class="book-img">
|
||||
{$arrGrm[$d_key+30]|raw}
|
||||
<a href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>
|
||||
<img height="100" width="80" class="lazyload-img" src="/static/img/default.jpg"
|
||||
data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读">
|
||||
</a>
|
||||
</dt>
|
||||
<dd class="book-info">
|
||||
<h2>
|
||||
<a href='{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>
|
||||
{$Novel.n_name}
|
||||
</a>
|
||||
</h2>
|
||||
<p>作者:{$Novel.n_author}</p>
|
||||
<p>{$Novel.n_description}</p>
|
||||
</dd>
|
||||
</dl>
|
||||
{/novel:list}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="customize"} {/block}
|
||||
@@ -133,7 +133,7 @@
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{chapter:pagerexp page="$Request.route.intPage" page="1" limit="100" n_id="$Request.route.intNovelId" d_key="d_key" d_val="chapter"
|
||||
{chapter:pagerexp page="$Request.route.intPage" limit="100" n_id="$Request.route.intNovelId" d_key="d_key" d_val="chapter"
|
||||
cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="generateChapterPager" export_name="resData" /}
|
||||
|
||||
<h1 class="site-description ">{$arrNovel['n_name']}最新章节 - {$arrNovel['n_author']} - {$DomainModel->d_name}</h1>
|
||||
@@ -1,4 +1,5 @@
|
||||
{extend name="baseH5" /}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELCHAPTER@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELCHAPTER@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}{/block}
|
||||
@@ -134,7 +135,7 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
|
||||
<ul>
|
||||
{if $arrChapter.c_sort_num == 1}
|
||||
<li><a href='javascript:'>上一页</a></li>
|
||||
{else}
|
||||
{elseif $arrChapter['pre_chapter'] && $arrChapter['pre_chapter']['c_sort_num']}
|
||||
<li><a
|
||||
href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.pre_chapter.c_sort_num" c_page="$arrChapter.pre_chapter.c_page"/}'>上一页</a>
|
||||
</li>
|
||||
@@ -159,7 +160,7 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
|
||||
<ul>
|
||||
{if $arrChapter.c_sort_num == 1}
|
||||
<li><a href='javascript:'>上一页</a></li>
|
||||
{else}
|
||||
{elseif $arrChapter['pre_chapter'] && $arrChapter['pre_chapter']['c_sort_num']}
|
||||
<li><a
|
||||
href='{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.pre_chapter.c_sort_num" c_page="$arrChapter.pre_chapter.c_page"/}'>上一页</a>
|
||||
</li>
|
||||
@@ -5,7 +5,12 @@ $Novel.n_id{extend name="baseH5" /}
|
||||
|
||||
{block name="head"}
|
||||
|
||||
{if $Request.route.intNovelId}
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
{else}
|
||||
{novel:info n_id="$DomainModel->info_id" n_key="arrNovel" n_forge_id="0" /}
|
||||
{/if}
|
||||
|
||||
{site:grm page_code="h5_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
|
||||
|
||||
|
||||
119
code/app/home/view/shikong/novel/getSearchNovel.html
Normal file
119
code/app/home/view/shikong/novel/getSearchNovel.html
Normal file
@@ -0,0 +1,119 @@
|
||||
{extend name="baseH5" /}
|
||||
{block name="title"}{site:replace code="NOVEL@GETSEARCHNOVEL@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETSEARCHNOVEL@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content=‘{site:replace code="NOVEL@GETSEARCHNOVEL@TITLE"} />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}' />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{site:souurl key='$Request.get.keyword' p='1'/}" />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}">
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="{$Request.get.keyword} - {$DomainModel->d_name}搜索 - 第{$Request.get.intPage}页">
|
||||
<meta name="twitter:description" content="{$Request.get.keyword}搜索结果第{$Request.get.intPage}页,免费阅读小说,快来体验!">
|
||||
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "SearchResultsPage",
|
||||
"url": "https://{$DomainModel->d_name}{site:souurl key='$Request.get.keyword' p='1'/}",
|
||||
"name": "{$DomainModel->d_name} - {$DomainModel->d_name}搜索 第{$Request.get.intPage}页",
|
||||
"description": "搜索‘{$Request.get.keyword}’结果第{$Request.get.intPage}页,提供{$Request.get.keyword}创作的小说免费阅读。",
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"mainEntity": {
|
||||
"@type": "Book",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$DomainModel->d_name}"
|
||||
},
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name='nav-active-class'}home{/block}
|
||||
{block name="body-class"}novel_so novel_search_page{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2 class="bookname">
|
||||
<a href="/" style="color:#ffffff">{$DomainModel->d_name}</a>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{novel:pagerexp page="$Request.get.page" limit="30"
|
||||
key="$Request.get.keyword"
|
||||
d_key="d_key"
|
||||
d_val="Novel"
|
||||
p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager" export_name="resData" /}
|
||||
|
||||
{site:grm page_code="h5_novel_search" diff="$Request.url" num="30" g_key="arrGrm" /}
|
||||
|
||||
<div class="wrap-box">
|
||||
<h1><span>{$Request.get.keyword}</span>搜索结果 - {$DomainModel->d_name} 第{$resData.p_data.page}页</h1>
|
||||
{if $resData.p_data.total < 1} <p style="text-align: center;line-height: 60px">没有相关数据</p>
|
||||
{else}
|
||||
|
||||
<div class="rec-focus">
|
||||
{foreach $resData.data as $key=>$Novel}
|
||||
<dl class="rec-focus-book">
|
||||
<dt class="book-img">
|
||||
{$arrGrm[$key]|raw}
|
||||
<a href='{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>
|
||||
<img height="100" width="80" src="/static/img/default.jpg"
|
||||
data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel['n_name'] ?? ''}小说封面 - {$Novel.n_author}最新章节" class="lazy lazyload-img">
|
||||
</a>
|
||||
</dt>
|
||||
<dd class="book-info">
|
||||
<h2><a href='{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>{$Novel.n_name}</a></h2>
|
||||
<p>作者:{$Novel.n_author}</p>
|
||||
<p>{$Novel.n_description}</p>
|
||||
</dd>
|
||||
</dl>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row 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 href="{$vo.url}">«</a>
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="下一页"}
|
||||
{if $resData.p_data.page >= $resData.p_data.total}
|
||||
<span>»</span>
|
||||
{else}
|
||||
<a href="{$vo.url}">»</a>
|
||||
{/if}
|
||||
{/case}
|
||||
{default /}
|
||||
{if preg_match('/^\d+$/', $vo.label)}
|
||||
<a href="{$vo.url}">{$vo.label}</a>
|
||||
{/if}
|
||||
{/switch}
|
||||
{/volist}
|
||||
</div>
|
||||
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
|
||||
{/block}
|
||||
14
code/app/home/view/shikong/pc/getArticleInfo.html
Normal file
14
code/app/home/view/shikong/pc/getArticleInfo.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{extend name="basePc" /}
|
||||
{block name='nav-active-class'}home{/block}
|
||||
{block name="title"}{/block}
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
|
||||
|
||||
{block name="main"}
|
||||
|
||||
<div>article.......</div>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="customize"} {/block}
|
||||
88
code/app/home/view/shikong/pc/getArticleList.html
Normal file
88
code/app/home/view/shikong/pc/getArticleList.html
Normal file
@@ -0,0 +1,88 @@
|
||||
{extend name="basePc" /}
|
||||
{block name='nav-active-class'}home{/block}
|
||||
{block name="title"}{/block}
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
|
||||
{block name="main"}
|
||||
<div class="content">
|
||||
|
||||
<!--选择搜索 开始-->
|
||||
<div class="find">
|
||||
<!-- <div class="fi_t">
|
||||
<div class="boFi">
|
||||
<span><s></s></span>
|
||||
<input type="text" class="search-val" url="/search.html" name="search_keyword" value=""
|
||||
placeholder="我要搜.. " maxlength="100" autocomplete="off">
|
||||
<a href="javascript:;" btn="search_keyword">搜索</a>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="opt">
|
||||
|
||||
<div class="optCl" mod="search_channel">
|
||||
<span class="optTit">所属分类</span>
|
||||
<ul>
|
||||
<li><a class="on" href="/pc/article/list.html" btn="search_category">全部</a></li>
|
||||
<li><a href="/pc/article/list-1-1.html" btn="search_category">高考作文</a></li>
|
||||
<li><a href="/pc/article/list-2-1.html" btn="search_category">小说解读</a></li>
|
||||
<li><a href="/pc/article/list-3-1.html" btn="search_category">影视解说</a></li>
|
||||
<li><a href="/pc/article/list-4-1.html" btn="search_category">王者荣耀</a></li>
|
||||
<li><a href="/pc/article/list-5-1.html" btn="search_category">日常八卦</a></li>
|
||||
<li><a href="/pc/article/list-6-1.html" btn="search_category">其它</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!--选择搜索 结束-->
|
||||
|
||||
<div class="f4 area">
|
||||
|
||||
<div class="f4_L">
|
||||
<div class="new_list">
|
||||
<ol class="cur">
|
||||
<li>
|
||||
<ul class="list_h">
|
||||
<li class="lb">分类</li>
|
||||
<li class="sm">书名</li>
|
||||
<li class="gx">描述</li>
|
||||
<li class="zz">作者</li>
|
||||
<li class="sj">更新时间</li>
|
||||
</ul>
|
||||
</li>
|
||||
{foreach $arrNewsNovel as $key=>$Novel}
|
||||
{include file="Pc/Public/articleList" /}
|
||||
{/foreach}
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--搜索结果 开始-->
|
||||
<div class="result" mod="search_data_list">
|
||||
|
||||
<!--页码切换 开始-->
|
||||
<div class="changepage">
|
||||
<ul class="pagination">
|
||||
<li class="disabled"><span>«</span></li>
|
||||
<li class="active"><span>1</span></li>
|
||||
<li><a href="/pc/article/list--2.html">2</a></li>
|
||||
<li><a href="/pc/article/list--3.html">3</a></li>
|
||||
<li><a href="/pc/article/list--4.html">4</a></li>
|
||||
<li><a href="/pc/article/list--5.html">5</a></li>
|
||||
<li><a href="/pc/article/list--6.html">6</a></li>
|
||||
<li><a href="/pc/article/list--7.html">7</a></li>
|
||||
<li><a href="/pc/article/list--8.html">8</a></li>
|
||||
<li class="disabled"><span>...</span></li>
|
||||
<li><a href="/pc/article/list--33.html">33</a></li>
|
||||
<li><a href="/pc/article/list--34.html">34</a></li>
|
||||
<li><a href="/pc/article/list--2.html">»</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--页码切换 结束-->
|
||||
</div>
|
||||
<!--选择结果 结束-->
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name="customize"} {/block}
|
||||
@@ -1,7 +1,9 @@
|
||||
{extend name="basePc" /}
|
||||
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELCATALOG@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELCATALOG@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
@@ -9,7 +11,7 @@
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
||||
<meta property="og:description" content="{$strDescription??'暂无简介'}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
@@ -28,7 +30,7 @@
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name'] ?? '未知小说'}" />
|
||||
<meta name="twitter:description" content="{$strDescription ?? '暂无简介'}" />
|
||||
<meta name="twitter:description" content='{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}' />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
@@ -62,6 +64,7 @@
|
||||
</script>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="head-css"}
|
||||
<link rel="canonical" href='{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
{/block}
|
||||
@@ -80,8 +83,8 @@
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{chapter:pagerexp page="$Request.route.intPage" page="1" limit="100" n_id="$Request.route.intNovelId" d_key="d_key" d_val="chapter"
|
||||
cache_life="1000" button_num="3" sort_type="$Request.route.strOrder" func="generateChapterPager" export_name="resData" /}
|
||||
{chapter:pagerexp page="$Request.route.intPage" limit="100" n_id="$Request.route.intNovelId" d_key="d_key" d_val="chapter"
|
||||
cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="generateChapterPager" export_name="resData" /}
|
||||
|
||||
<div class="container biqunaicc">
|
||||
<div class="row row-detail">
|
||||
@@ -3,12 +3,19 @@
|
||||
{block name="title"}{site:replace code="NOVEL@GETNOVELINFO@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETNOVELINFO@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
|
||||
{if $Request.route.intNovelId}
|
||||
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
||||
{else}
|
||||
{novel:info n_id="$DomainModel->info_id" n_key="arrNovel" n_forge_id="0" /}
|
||||
{/if}
|
||||
|
||||
{site:grm page_code="pc_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
||||
<meta property="og:description" content="{$strDescription??'暂无简介'}" />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION"}' />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
||||
<meta property="og:type" content="book" />
|
||||
@@ -27,7 +34,7 @@
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['n_name'] ?? '未知小说'}" />
|
||||
<meta name="twitter:description" content="{$strDescription ?? '暂无简介'}" />
|
||||
<meta name="twitter:description" content="'{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION"}' />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
@@ -61,10 +68,12 @@
|
||||
</script>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="head-css"}
|
||||
<link rel="canonical"
|
||||
href='{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
||||
{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="{$strPcPath}/">
|
||||
133
code/app/home/view/shikong/pc/getSearchNovel.html
Normal file
133
code/app/home/view/shikong/pc/getSearchNovel.html
Normal file
@@ -0,0 +1,133 @@
|
||||
{extend name="basePc" /}
|
||||
{block name="title"}{site:replace code="NOVEL@GETSEARCHNOVEL@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="NOVEL@GETSEARCHNOVEL@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content=‘{site:replace code="NOVEL@GETSEARCHNOVEL@TITLE"} />
|
||||
<meta property="og:description" content='{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}' />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{site:souurl key='$Request.get.keyword' p='1'/}" />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}">
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="{$Request.get.keyword} - {$DomainModel->d_name}搜索 - 第{$Request.get.intPage}页">
|
||||
<meta name="twitter:description" content="{$Request.get.keyword}搜索结果第{$Request.get.intPage}页,免费阅读小说,快来体验!">
|
||||
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "SearchResultsPage",
|
||||
"url": "https://{$DomainModel->d_name}{site:souurl key='$Request.get.keyword' p='1'/}",
|
||||
"name": "{$DomainModel->d_name} - {$DomainModel->d_name}搜索 第{$Request.get.intPage}页",
|
||||
"description": "搜索‘{$Request.get.keyword}’结果第{$Request.get.intPage}页,提供{$Request.get.keyword}创作的小说免费阅读。",
|
||||
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
||||
"mainEntity": {
|
||||
"@type": "Book",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$DomainModel->d_name}"
|
||||
},
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name='nav-active-class'}home{/block}
|
||||
|
||||
{block name="title"}{/block}
|
||||
{block name="meta-other"}{/block}
|
||||
{block name="body-class"}novel_home novel_search_page{/block}
|
||||
{block name="main"}
|
||||
|
||||
|
||||
{novel:pagerexp page="$Request.get.page" limit="30"
|
||||
key="$Request.get.keyword"
|
||||
d_key="d_key"
|
||||
d_val="Novel" n_num="total"
|
||||
p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager" export_name="resData" /}
|
||||
|
||||
{site:grm page_code="pc_novel_search" diff="$Request.url" num="30" g_key="arrGrm" /}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="layout layout3 layout-col3 fl">
|
||||
<h1>{$Request.get.keyword}搜索结果 - {$DomainModel->d_name} 第{$resData.p_data.page}页</h1>
|
||||
<div class="result search_tip">
|
||||
搜索<span style="color:red">“{$Request.get.keyword}”</span>相关结果共有 <span
|
||||
style="color:red">{$resData.p_data.total}</span> 部小说
|
||||
</div>
|
||||
{if $resData.p_data.total <1} <p style="text-align: center;line-height: 60px">没有相关数据</p>
|
||||
{else}
|
||||
<div class="layout layout-col3">
|
||||
|
||||
{foreach $resData.data as $key=>$Novel}
|
||||
<div class="item">
|
||||
<div class="image">
|
||||
{$arrGrm[$key]|raw}
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>
|
||||
<img style="min-height:120px;" src="/static/img/default.jpg"
|
||||
data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel['n_name'] ?? ''}小说封面 - {$Novel.n_author}最新章节"
|
||||
class="lazy lazyload-img">
|
||||
</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 style="height:90px"><a
|
||||
href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'
|
||||
style="color: #555">{$Novel.n_description}</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 分页 -->
|
||||
<div class="row 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 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>
|
||||
{/block}
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
{/block}
|
||||
179
code/app/home/view/shikong/pc/index.html
Normal file
179
code/app/home/view/shikong/pc/index.html
Normal file
@@ -0,0 +1,179 @@
|
||||
{extend name="basePc" /}
|
||||
{block name="title"}{site:replace code="INDEX@INDEX@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="INDEX@INDEX@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="INDEX@INDEX@DESCRIPTION"}{/block}
|
||||
|
||||
{block name="head-css"}
|
||||
<link rel="canonical" href="https://{$DomainModel->d_domain}/">
|
||||
{/block}
|
||||
{block name="head"}
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content='{site:replace code="INDEX@INDEX@TITLE"}' />
|
||||
<meta property="og:description" content='{site:replace code="INDEX@INDEX@DESCRIPTION"}' />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}" />
|
||||
<meta property="og:type" content="website" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebSite",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}",
|
||||
"headline": '{site:replace code="INDEX@INDEX@TITLE"}',
|
||||
"description": '{site:replace code="INDEX@INDEX@DESCRIPTION"}',
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
|
||||
"potentialAction": {
|
||||
"@type": "SearchAction",
|
||||
"target": 'https://{$DomainModel->d_domain}{site:souurl key="search_term_string" p="1"/}',
|
||||
"query-input": "required name=search_term_string"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
{site:grm page_code="pc_index" diff="0" num="150" g_key="arrGrm" /}
|
||||
|
||||
<div class="container biqunaicc">
|
||||
<div class="row">
|
||||
<div class="layout layout-col2">
|
||||
{novel:list count="4" sort_type="tuijian" n_status="lianzai" d_key="d_key" d_val="Novel" p_val="page_data"
|
||||
cache_life="86400"}
|
||||
<div class="item">
|
||||
<div class="image">
|
||||
{$arrGrm[$d_key]|raw}
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>
|
||||
<img style="min-height:120px;" class="lazyload-img" src="/static/img/default.jpg"
|
||||
data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读">
|
||||
</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 style="height:90px">
|
||||
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'
|
||||
style="color: #555">
|
||||
{$Novel.n_description ?? ''}
|
||||
</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
{/novel:list}
|
||||
</div>
|
||||
<div class="layout layout-col1">
|
||||
<h2 class="layout-tit">经典推荐</h2>
|
||||
<ul class="txt-list txt-list-row3">
|
||||
{novel:list count="9" sort_type="tuijian" n_status="wanjie" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
<li>
|
||||
<span class="s1">[{$Novel->n_category ?? ''}</span>
|
||||
<span class="s2">
|
||||
{$arrGrm[$d_key+4]|raw}
|
||||
<a
|
||||
href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel->n_name}</a></span>
|
||||
<span class="s5">
|
||||
<a href='{site:souurl key="$Novel->n_author" p="1"/}'>{$Novel->n_author}</a>
|
||||
</span>
|
||||
</li>
|
||||
{/novel:list}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="layout">
|
||||
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
|
||||
<div class="tp-box">
|
||||
<h2>{$strCategoryName}</h2> <!-- 分类标题 -->
|
||||
<div class="top">
|
||||
|
||||
<?php $start = 1 ;$start +=1 ;?>
|
||||
|
||||
{novel:list count="1" n_category="$strCategoryPinyin" sort_type="news" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
<div class="image">
|
||||
{$arrGrm[$d_key+9+10*$start]|raw}
|
||||
<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 ?? ''}最新章节在线免费阅读">
|
||||
</a>
|
||||
</div>
|
||||
<dl>
|
||||
<dt><a
|
||||
href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel->n_name}</a>
|
||||
</dt>
|
||||
<dd><a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'
|
||||
style="color: #555">{$Novel.n_description ?? ''}</a></dd>
|
||||
</dl>
|
||||
{/novel:list}
|
||||
</div>
|
||||
<ul>
|
||||
{novel:list count="12" n_category="$strCategoryPinyin" sort_type="news" d_key="d_key" d_val="Novel"
|
||||
p_val="page_data" cache_life="86400"}
|
||||
<li>
|
||||
{$arrGrm[$d_key+9+10*$start]|raw}
|
||||
<a
|
||||
href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel->n_name}</a>/<a
|
||||
href='{site:souurl key="$Novel->n_author" p="1"/}'>{$Novel->n_author}</a></li>
|
||||
{/novel:list}
|
||||
</ul>
|
||||
</div>
|
||||
{/novel:category}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="layout layout2 layout-col1 fr">
|
||||
<h2 class="layout-tit">最新入库小说</h2>
|
||||
<ul class="txt-list txt-list-row3">
|
||||
{novel:list count="50" sort_type="news" d_key="d_key" d_val="Novel" p_val="page_data"
|
||||
cache_life="86400"}
|
||||
<li>
|
||||
<span class="s1">[{$Novel->n_category ?? ''}]</span>
|
||||
<span class="s2">
|
||||
{$arrGrm[$d_key+100]|raw}
|
||||
<a
|
||||
href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel->n_name}</a></span>
|
||||
<span class="s5"><a href='{site:souurl key="$Novel->n_author" p="1"/}'>{$Novel->n_author}</a></span>
|
||||
</li>
|
||||
{/novel:list}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="layout layout2 layout-col2 fl">
|
||||
<h2 class="layout-tit">最近更新小说列表</h2>
|
||||
<ul class="txt-list txt-list-row5">
|
||||
{novel:list count="50" sort_type="update" d_key="d_key" d_val="Novel" p_val="page_data"
|
||||
cache_life="86400"}
|
||||
<li>
|
||||
<span class="s1">[{$Novel->n_category ?? ''}]</span>
|
||||
<span class="s2">
|
||||
{$arrGrm[$d_key+100]|raw}
|
||||
<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" /}'
|
||||
title="{$Novel->n_latest_chapter_name ?? 'null'}">{$Novel->n_latest_chapter_name ??
|
||||
'null'}</a></span>
|
||||
<span class="s4"><a href='{site:souurl key="$Novel->n_author" p="1"/}'>{$Novel->n_author}</a></span>
|
||||
<span class="s5">{:date('m-d')}</span>
|
||||
</li>
|
||||
{/novel:list}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
|
||||
{/block}
|
||||
11
code/app/home/view/shikong/pc/public/adBanner.html
Normal file
11
code/app/home/view/shikong/pc/public/adBanner.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!-- <div class="adv">
|
||||
<a href="#" title="" target="_blank">
|
||||
<img src="/template/kuangyu/home/bai_web/images/grey.gif"
|
||||
data-src="/template/kuangyu/home/bai_web/images/1120x100.png" class="lazyload" alt="">
|
||||
</a>
|
||||
</div> -->
|
||||
|
||||
<a href="#" title="" target="_blank">
|
||||
<img src="/template/kuangyu/home/bai_web/images/grey.gif"
|
||||
data-src="/template/kuangyu/home/bai_web/images/1120x100.png" class="lazyload" alt="">
|
||||
</a>
|
||||
35
code/app/home/view/shikong/pc/public/allChapterPage.html
Normal file
35
code/app/home/view/shikong/pc/public/allChapterPage.html
Normal file
@@ -0,0 +1,35 @@
|
||||
{if !empty($resData.p_data.pager)}
|
||||
<div class="page_num">
|
||||
{volist name="$resData.p_data.pager" id="item"}
|
||||
{eq name="item.type" value="prev"}
|
||||
<a href="{$item.url ? $strPcPath . $item.url: 'javascript:void(0)'}"
|
||||
class="z {$item.disabled ? 'disabled' : ''}">
|
||||
{$item.label}
|
||||
</a>
|
||||
{/eq}
|
||||
{/volist}
|
||||
|
||||
<select onchange="self.location.href=options[selectedIndex].value">
|
||||
{volist name="$resData.p_data.pager" id="item"}
|
||||
{eq name="item.type" value="page"}
|
||||
|
||||
<?php $intLimit = $resData['p_data']['limit']; ?>
|
||||
<?php $start = ($item['label'] - 1) * $intLimit + 1; ?>
|
||||
<?php $end = $item['label'] * $intLimit; ?>
|
||||
<option value="{$strPcPath}{$item.url}" {$item.current ? 'selected' : ''}>
|
||||
第{$start}-{$end}章
|
||||
</option>
|
||||
{/eq}
|
||||
{/volist}
|
||||
</select>
|
||||
|
||||
{volist name="$resData.p_data.pager" id="item"}
|
||||
{eq name="item.type" value="next"}
|
||||
<a href="{$item.url ? $strPcPath . $item.url: 'javascript:void(0)'}"
|
||||
class="y {$item.disabled ? 'disabled' : ''}">
|
||||
{$item.label}
|
||||
</a>
|
||||
{/eq}
|
||||
{/volist}
|
||||
</div>
|
||||
{/if}
|
||||
12
code/app/home/view/shikong/pc/public/articleList.html
Normal file
12
code/app/home/view/shikong/pc/public/articleList.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<li>
|
||||
<ul>
|
||||
<li class="lb"><a href="/pc/article/info-332.html" target="_blank">耽美百合</a></li>
|
||||
<li class="sm">
|
||||
<h3><a href="/pc/article/info-332.html" title="我真是一条龙" target="_blank">我真是一条龙</a></h3>
|
||||
</li>
|
||||
<li class="gx"><a href="/pc/article/info-332.html" title="老读者必看公告!!!"
|
||||
target="_blank">老读者必看公告!!!</a></li>
|
||||
<li class="zz">兔子很淡定</li>
|
||||
<li class="sj">1天前</li>
|
||||
</ul>
|
||||
</li>
|
||||
@@ -0,0 +1,6 @@
|
||||
<li id="chapter-4b2d5aab58d71" class="on">
|
||||
<a href="chapter/1-1-1.html">01 天龙问世</a>
|
||||
</li>
|
||||
<li id="chapter-486ef2abee55d">
|
||||
<a href="/chapter/1-1-1.html">02 沧武的小霸王</a>
|
||||
</li>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user