Slight change to the way $site_title works
Christoph Cullmann
cullmann at babylon2k.de
Sat Mar 1 21:04:36 UTC 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 01 March 2003 19:21, Chris Howells wrote:
> Hi,
>
> I would like to make a slight change the way that the $site_title variable
> works.
>
> I would like to make it so that you $site_title always remains constant for
> a individual site (kde.org, usability.kde.org), but an additional variable
> called $page_title is introduced for each page.
>
> The header.inc file would be modified to look something like this:
>
> print "<title>$site_title - $page_title</title>\n";
>
> print "<h1>$page_title</h1>\n";
>
> e.g. each page would automatically get a <h1> with the correct value:
>
> It would also ensure that all pages get a decent <title> so when looking
> through logs, all the pages don't have the same title.
>
> If nobody objects, I will work on implementing this change shortly.
k, but please make a check if $page_title is set and if not don't print the
<h1></h1> or the "-" in the title, that will make it save for any page not
using that var atm.
- --
Christoph Cullmann
KDE Developer, kde.org Co-Maintainer
http://www.babylon2k.de, cullmann at kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+YSBnyPjDGePm9UIRAm+YAJ4+bT9TBJBq7jcjdJ58WJwkhoXR6QCgwe8o
vNtkbfDDahgwLrv6vx33gRY=
=qdtg
-----END PGP SIGNATURE-----
More information about the kde-www
mailing list