This commit is contained in:
make
2025-04-29 21:14:02 +08:00
parent 471772b969
commit bb25d58619
6 changed files with 40 additions and 18 deletions

View File

@@ -30,6 +30,11 @@
</script>
</head>
{block name="strPageCode"}
<?php $strPageCode = 'home'; ?>
{/block}
<body class="novel_home {block name='body-class'}{/block}" id="{block name='body-id'}{/block}">
<div class="topbar">
<div class="topbar-con">
@@ -47,17 +52,14 @@
</div>
<ul class="nav">
{if $DomainModel->info_id > 0}
<li><a href="{$strPcPath}/">首 页</a></li>
<li class='{if $strPageCode == "home"}active_nav_btn{/if}'><a href="{$strPcPath}/">首 页</a></li>
<li><a href="{$strPcPath}/nindex/">小说首页</a></li>
{else}
<li><a href="{$strPcPath}/">首 页</a></li>
<li class='{if $strPageCode == "home"}active_nav_btn{/if}'><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}
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
<li class='{if $strPageCode == "library" && $strCategoryPinyin == $Request.route.strCategory }active_nav_btn{/if}'><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>

View File

@@ -74,6 +74,11 @@ button_num="10" cache_life="86400" func="generateCategoryPager" export_name="res
{block name='nav-active-class'}home{/block}
{block name="strPageCode"}
<?php $strPageCode = 'library'; ?>
{/block}
{block name="main"}

View File

@@ -69,13 +69,17 @@
<div class="nav">
<ul>
{if $DomainModel->info_id > 0}
<li><a href="{$strPcPath}/">首 页</a></li>
<li class='{if $strPageCode == "home"}active_nav_btn{/if}'><a href="{$strPcPath}/">首 页</a></li>
<li><a href="{$strPcPath}/nindex/">小说首页</a></li>
{else}
<li><a href="{$strPcPath}/">{$DomainModel->d_name}首页</a></li>
<li class='{if $strPageCode == "home"}active_nav_btn{/if}'><a href="{$strPcPath}/">{$DomainModel->d_name}首页</a></li>
{/if}
{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>
<li class='{if $strPageCode == "library" && $strCategoryPinyin == $Request.route.strCategory }active_nav_btn{/if}'>
<a href='{$strPcPath}{site:nflurl category="$strCategoryPinyin" status="all" order="all" page="1"/}'>
{$strCategoryName}
</a>
</li>
{/novel:category}
<li><a href='{$strPcPath}{site:nflurl category="all" status="wanjie" order="all" page="1"/}'>完本榜</a></li>
</ul>

View File

@@ -33,19 +33,19 @@
<div class="nav">
<div class="wp">
{if $DomainModel->info_id > 0}
<li class="home">
<li class='{if $strPageCode == "home"}home{/if}'>
<a href="{$strPcPath}/">首 页</a>
</li>
<li><a href="{$strPcPath}/nindex/">小说首页</a></li>
{else}
<li class="home">
<li class='{if $strPageCode == "home"}home{/if}'>
<a href="{$strPcPath}/">首 页</a>
</li>
{/if}
{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>
<li class='{if $strPageCode == "library" && $strCategoryPinyin == $Request.route.strCategory }home{/if}'>
<a href='{$strPcPath}{site:nflurl category="$strCategoryPinyin" status="all" order="all" page="1"/}'>{$strCategoryName}</a></li>
{/novel:category}
<div class="nav-right" id="qs_login">
@@ -53,7 +53,6 @@
<span class="ico ico-login"></span>
个人中心
</a>
</div>
</div>
</div>