aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/page_header.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-02-27 18:50:36 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-02-27 18:50:36 +0000
commitad9d4d2605a2f1b448876f922d0cc20790c90f39 (patch)
treecd2fe131b457c288676ceb4470f954685ca82f04 /phpBB/page_header.php
parentcb964c96c74c0b8bd47ff01f2e45616d8c2413b8 (diff)
downloadforums-ad9d4d2605a2f1b448876f922d0cc20790c90f39.tar
forums-ad9d4d2605a2f1b448876f922d0cc20790c90f39.tar.gz
forums-ad9d4d2605a2f1b448876f922d0cc20790c90f39.tar.bz2
forums-ad9d4d2605a2f1b448876f922d0cc20790c90f39.tar.xz
forums-ad9d4d2605a2f1b448876f922d0cc20790c90f39.zip
Move jumpbox to separate template
git-svn-id: file:///svn/phpbb/trunk@67 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/page_header.php')
-rw-r--r--phpBB/page_header.php56
1 files changed, 33 insertions, 23 deletions
diff --git a/phpBB/page_header.php b/phpBB/page_header.php
index e1b0dc19a0..8cb4282362 100644
--- a/phpBB/page_header.php
+++ b/phpBB/page_header.php
@@ -34,6 +34,7 @@ else
{
$logged_in_status = "You are not logged in.";
}
+
$template->set_var(array("SITENAME" => $sitename,
"PHPEX" => $phpEx,
"PAGE_TITLE" => $page_title,
@@ -44,29 +45,38 @@ $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)
{
- case 'index':
- $template->set_file(array("header" => "index_header.tpl",
- "body" => "index_body.tpl",
- "footer" => "index_footer.tpl"));
-
- $template->set_var(array("TOTAL_POSTS" => $total_posts,
- "TOTAL_USERS" => $total_users,
- "NEWEST_USER" => $newest_user,
- "NEWEST_UID" => $newest_uid,
- "USERS_BROWSING" => $users_browsing));
-
- $template->pparse("output", "header");
-
- break;
- case 'viewforum':
- $template->set_file(array("header" => "viewforum_header.tpl",
- "body" => "viewforum_body.tpl",
- "footer" => "viewforum_footer.tpl"));
- $template->set_var(array("FORUM_ID" => $forum_id,
- "FORUM_NAME" => $forum_name,
- "MODERATORS" => $forum_moderators));
- $template->pparse("output", "header");
- break;
+ case 'index':
+ $template->set_file(array("header" => "index_header.tpl",
+ "body" => "index_body.tpl",
+ "footer" => "index_footer.tpl"));
+
+ $template->set_var(array("TOTAL_POSTS" => $total_posts,
+ "TOTAL_USERS" => $total_users,
+ "NEWEST_USER" => $newest_user,
+ "NEWEST_UID" => $newest_uid,
+ "USERS_BROWSING" => $users_browsing));
+
+ $template->pparse("output", "header");
+ break;
+
+ case 'viewforum':
+ $template->set_file(array("header" => "viewforum_header.tpl",
+ "body" => "viewforum_body.tpl",
+ "jumpbox" => "jumpbox.tpl",
+ "footer" => "viewforum_footer.tpl"));
+
+ $jumpbox = make_jumpbox($db);
+ $template->set_var(array("JUMPBOX_LIST" => $jumpbox,
+ "JUMPBOX_ACTION" => "viewforum.".$phpEx,
+ "SELECT_NAME" => "forum_id"));
+ $template->parse("JUMPBOX","jumpbox");
+
+ $template->set_var(array("FORUM_ID" => $forum_id,
+ "FORUM_NAME" => $forum_name,
+ "MODERATORS" => $forum_moderators));
+
+ $template->pparse("output", "header");
+ break;
}
?>