Title ... 加几个字 ?
By
abcd
at 2016-01-21 • 0人收藏 • 2217人看过
title现在是调用 设置的 网站名字
但,网站名字还在其他很多地方有调用。所以写太长(超过10个字)不好看
哪个文件,可以给title再加几个字 ?
7 个回复 | 最后更新于 2016-02-17
<?php require(__DIR__ . '/common.php'); require(__DIR__ . '/language/' . ForumLanguage . '/home.php'); $Page = intval(Request('Get', 'page')); $TotalPage = ceil($Config['NumTopics'] / $Config['TopicsPerPage']); if (($Page < 0 || $Page == 1) && !$IsApp) { header('location: ' . $Config['WebsitePath'] . '/'); exit; } if ($Page > $TotalPage) { header('location: ' . $Config['WebsitePath'] . '/page/' . $TotalPage); exit; } if ($Page == 0) $Page = 1; $TopicsArray = array(); if ($MCache && $Page == 1) { $TopicsArray = $MCache->get(MemCachePrefix . 'Homepage'); } if (!$TopicsArray) { if ($Page <= 10) { $TopicsArray = $DB->query('SELECT `ID`, `Topic`, `Tags`, `UserID`, `UserName`, `LastName`, `LastTime`, `Replies` FROM ' . $Prefix . 'topics force index(LastTime) WHERE IsDel=0 ORDER BY LastTime DESC LIMIT ' . ($Page - 1) * $Config['TopicsPerPage'] . ',' . $Config['TopicsPerPage']); if ($MCache && $Page == 1) { $MCache->set(MemCachePrefix . 'Homepage', $TopicsArray, 600); } } else { $TopicsArray = $DB->query('SELECT `ID`, `Topic`, `Tags`, `UserID`, `UserName`, `LastName`, `LastTime`, `Replies` FROM ' . $Prefix . 'topics force index(LastTime) WHERE LastTime<=(SELECT LastTime FROM ' . $Prefix . 'topics force index(LastTime) WHERE IsDel=0 ORDER BY LastTime DESC LIMIT ' . ($Page - 1) * $Config['TopicsPerPage'] . ',1) and IsDel=0 ORDER BY LastTime DESC LIMIT ' . $Config['TopicsPerPage']); } } $DB->CloseConnection(); $PageTitle = $Page > 1 ? ' Page' . $Page . '-' : ''; $PageTitle .= $Config['SiteName']; $PageMetaDesc = htmlspecialchars(mb_substr($Config['SiteDesc'], 0, 150, 'utf-8')); $ContentFile = $TemplatePath . 'home.php'; include($TemplatePath . 'layout.php');
这个 index.php里,title 要往哪写 。。。 lin大
登录后方可回帖
layout.php
找到对应标签添加即可。