Introduce page-specific titles for all pages, this makes navigation easier.
1.1 --- a/templates/header.tpl Sat Mar 08 15:37:03 2008 +0100
1.2 +++ b/templates/header.tpl Sat Mar 08 18:29:31 2008 +0100
1.3 @@ -1,7 +1,7 @@
1.4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1.5 <html xmlns="http://www.w3.org/1999/xhtml">
1.6 <head>
1.7 - <title>Diablo2 Lives!</title>
1.8 + <title>Diablo2 Lives!{if $title!=""} - {$title}{/if}</title>
1.9 <link href="style.css" rel="Stylesheet" type="text/css" />
1.10 </head>
1.11 <body>
2.1 --- a/www/category.php Sat Mar 08 15:37:03 2008 +0100
2.2 +++ b/www/category.php Sat Mar 08 18:29:31 2008 +0100
2.3 @@ -32,5 +32,6 @@
2.4
2.5 $GLOBALS["smarty"]->assign("catname", $catname);
2.6 $GLOBALS["smarty"]->assign("items", $item);
2.7 + $GLOBALS["smarty"]->assign("title", "Items / " . $catname);
2.8 $GLOBALS["smarty"]->display("cat_items.tpl");
2.9 ?>
3.1 --- a/www/cats.php Sat Mar 08 15:37:03 2008 +0100
3.2 +++ b/www/cats.php Sat Mar 08 18:29:31 2008 +0100
3.3 @@ -20,5 +20,6 @@
3.4 }
3.5
3.6 $GLOBALS["smarty"]->assign("cats", $cats);
3.7 + $GLOBALS["smarty"]->assign("title", "Items");
3.8 $GLOBALS["smarty"]->display("cats.tpl");
3.9 ?>
4.1 --- a/www/char.php Sat Mar 08 15:37:03 2008 +0100
4.2 +++ b/www/char.php Sat Mar 08 18:29:31 2008 +0100
4.3 @@ -36,5 +36,6 @@
4.4
4.5 $GLOBALS["smarty"]->assign("char", $char);
4.6 $GLOBALS["smarty"]->assign("items", $item);
4.7 + $GLOBALS["smarty"]->assign("title", "Charachters / " . $char);
4.8 $GLOBALS["smarty"]->display("char.tpl");
4.9 ?>
5.1 --- a/www/chars.php Sat Mar 08 15:37:03 2008 +0100
5.2 +++ b/www/chars.php Sat Mar 08 18:29:31 2008 +0100
5.3 @@ -11,5 +11,6 @@
5.4 }
5.5
5.6 $GLOBALS["smarty"]->assign("chars", $chars);
5.7 + $GLOBALS["smarty"]->assign("title", "Charachters");
5.8 $GLOBALS["smarty"]->display("chars.tpl");
5.9 ?>
6.1 --- a/www/item.php Sat Mar 08 15:37:03 2008 +0100
6.2 +++ b/www/item.php Sat Mar 08 18:29:31 2008 +0100
6.3 @@ -54,5 +54,10 @@
6.4 }
6.5
6.6 $GLOBALS["smarty"]->assign("item", $item[$a["itemid"]]);
6.7 + if ($item[$a["itemid"]]["itemsetid"] != "") {
6.8 + $GLOBALS["smarty"]->assign("title", "Sets / " . $item[$a["itemid"]]["setname"] . " / " . $item[$a["itemid"]]["name"]) ;
6.9 + } else {
6.10 + $GLOBALS["smarty"]->assign("title", "Items / " . $item[$a["itemid"]]["catname"] . " / " . $item[$a["itemid"]]["name"]) ;
6.11 + }
6.12 $GLOBALS["smarty"]->display("item.tpl");
6.13 ?>
7.1 --- a/www/search.php Sat Mar 08 15:37:03 2008 +0100
7.2 +++ b/www/search.php Sat Mar 08 18:29:31 2008 +0100
7.3 @@ -169,5 +169,6 @@
7.4 $GLOBALS["smarty"]->assign("modops", $modops);
7.5 $GLOBALS["smarty"]->assign("spellops", $spellops);
7.6 $GLOBALS["smarty"]->assign("in", $in);
7.7 + $GLOBALS["smarty"]->assign("title", "Search");
7.8 $GLOBALS["smarty"]->display("search.tpl");
7.9 ?>
8.1 --- a/www/set.php Sat Mar 08 15:37:03 2008 +0100
8.2 +++ b/www/set.php Sat Mar 08 18:29:31 2008 +0100
8.3 @@ -34,5 +34,6 @@
8.4
8.5 $GLOBALS["smarty"]->assign("setname", $setname);
8.6 $GLOBALS["smarty"]->assign("setitems", $item);
8.7 + $GLOBALS["smarty"]->assign("title", "Sets / " . $setname);
8.8 $GLOBALS["smarty"]->display("set.tpl");
8.9 ?>
9.1 --- a/www/sets.php Sat Mar 08 15:37:03 2008 +0100
9.2 +++ b/www/sets.php Sat Mar 08 18:29:31 2008 +0100
9.3 @@ -32,5 +32,6 @@
9.4 }
9.5
9.6 $GLOBALS["smarty"]->assign("sets", $sets);
9.7 + $GLOBALS["smarty"]->assign("title", "Sets");
9.8 $GLOBALS["smarty"]->display("sets.tpl");
9.9 ?>
10.1 --- a/www/type.php Sat Mar 08 15:37:03 2008 +0100
10.2 +++ b/www/type.php Sat Mar 08 18:29:31 2008 +0100
10.3 @@ -42,5 +42,6 @@
10.4
10.5 $GLOBALS["smarty"]->assign("catname", $catname);
10.6 $GLOBALS["smarty"]->assign("types", $types);
10.7 + $GLOBALS["smarty"]->assign("title", "Types / " . $catname);
10.8 $GLOBALS["smarty"]->display("item-type.tpl");
10.9 ?>
11.1 --- a/www/types.php Sat Mar 08 15:37:03 2008 +0100
11.2 +++ b/www/types.php Sat Mar 08 18:29:31 2008 +0100
11.3 @@ -10,5 +10,6 @@
11.4 }
11.5
11.6 $GLOBALS["smarty"]->assign("types", $types);
11.7 + $GLOBALS["smarty"]->assign("title", "Types");
11.8 $GLOBALS["smarty"]->display("types.tpl");
11.9 ?>