mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
*** empty log message ***
git-svn-id: file:///svn/phpbb/trunk@14 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
8918532a13
commit
7cde919ef0
3 changed files with 29 additions and 10 deletions
|
@ -22,26 +22,29 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
// Parse and show the overall header.
|
||||||
|
$template->set_file(array("overall_header" => "overall_header.tpl",
|
||||||
|
"overall_footer" => "overall_footer.tpl"));
|
||||||
|
$template->set_var(array("SITENAME" => $sitename,
|
||||||
|
"PAGE_TITLE" => $page_title,
|
||||||
|
"META_INFO" => $meta_tags));
|
||||||
|
$template->pparse("output", "overall_header");
|
||||||
|
|
||||||
|
// Do a switch on page type, this way we only load the templates that we need at the time
|
||||||
switch($pagetype)
|
switch($pagetype)
|
||||||
{
|
{
|
||||||
case 'index':
|
case 'index':
|
||||||
$page_title = "Forum Index";
|
$page_title = "Forum Index";
|
||||||
$template->set_file(array("overall_header" => "overall_header.tpl",
|
$template->set_file(array("header" => "index_header.tpl",
|
||||||
"header" => "index_header.tpl",
|
|
||||||
"body" => "index_body.tpl",
|
"body" => "index_body.tpl",
|
||||||
"footer" => "index_footer.tpl",
|
"footer" => "index_footer.tpl"));
|
||||||
"overall_footer" => "overall_footer.tpl"));
|
|
||||||
$template->set_var(array("SITENAME" => $sitename,
|
$template->set_var(array("TOTAL_POSTS" => $total_posts,
|
||||||
"PAGE_TITLE" => $page_title,
|
|
||||||
"META_INFO" => $meta_tags,
|
|
||||||
"TOTAL_POSTS" => $total_posts,
|
|
||||||
"TOTAL_USERS" => $total_users,
|
"TOTAL_USERS" => $total_users,
|
||||||
"NEWEST_USER" => $newest_user,
|
"NEWEST_USER" => $newest_user,
|
||||||
"NEWEST_UID" => $newest_uid,
|
"NEWEST_UID" => $newest_uid,
|
||||||
"USERS_BROWSING" => $users_browsing));
|
"USERS_BROWSING" => $users_browsing));
|
||||||
|
|
||||||
$template->pparse("output", "overall_header");
|
|
||||||
$template->pparse("output", "header");
|
$template->pparse("output", "header");
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -22,6 +22,22 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
// Load/parse the footer template we need based on pagetype.
|
||||||
|
switch($pagetype)
|
||||||
|
{
|
||||||
|
case 'index':
|
||||||
|
$template->pparse("output", "footer");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Show the overall footer.
|
||||||
|
if($user_logged_in)
|
||||||
|
{
|
||||||
|
$admin_link = "<a href=\"admin/index.php\">Administration Panel</a>";
|
||||||
|
}
|
||||||
|
$template->set_var(array("PHPBB_VERSION" => "2.0-alpha",
|
||||||
|
"ADMIN_LINK" => $admin_link));
|
||||||
|
$template->pparse("output", "overall_footer");
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<td>
|
<td>
|
||||||
<div align="center" style="{font-size: 8pt;}">
|
<div align="center" style="{font-size: 8pt;}">
|
||||||
{ADMIN_LINK}<br>
|
{ADMIN_LINK}<br>
|
||||||
Powered by: <a href="http://www.phpbb.com">phpBB</a> Version 1.9<br>
|
Powered by: <a href="http://www.phpbb.com">phpBB</a> Version {PHPBB_VERSION}<br>
|
||||||
Copyright © 2001 <a href="http://www.phpbb.com/credits.php">The phpBB Group</a></div>
|
Copyright © 2001 <a href="http://www.phpbb.com/credits.php">The phpBB Group</a></div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Add table
Reference in a new issue