diff options
author | Nick White <git@njw.me.uk> | 2009-11-08 16:39:12 +0000 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2009-11-08 16:39:12 +0000 |
commit | e34e1a01f3989a6e5bdfe73922384db62d6b332e (patch) | |
tree | d6683dafe4ab4b71376a5485a24b0e162037db54 /includes/header.php | |
parent | 6880203b6435bf81b25999b51ba307853751226a (diff) | |
download | njw-website-source-e34e1a01f3989a6e5bdfe73922384db62d6b332e.tar.bz2 njw-website-source-e34e1a01f3989a6e5bdfe73922384db62d6b332e.zip |
Diffstat (limited to 'includes/header.php')
-rw-r--r-- | includes/header.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/includes/header.php b/includes/header.php index e03a7d6..3452612 100644 --- a/includes/header.php +++ b/includes/header.php @@ -22,7 +22,7 @@ if (stristr($_SERVER["HTTP_ACCEPT"], "application/xhtml+xml")) else header("Content-Type: text/html; charset=utf-8"); -function xhtml_header($title) +function xhtml_header($title, $headlinks = null) { $newtitle = str_replace("&", "&", stripslashes($title)); @@ -37,7 +37,13 @@ function xhtml_header($title) <link rel="stylesheet" type="text/css" href="/includes/default.css" /> <link rel="alternate" type="application/atom+xml" href="/atom-excerpt.php" title="Excerpt feed" /> <link rel="alternate" type="application/atom+xml" href="/atom.php" title="Full feed" /> - <link rel="icon" href="/graphics/candles.ico" /> + <link rel="icon" href="/graphics/candles.ico" />'); + if(!empty($headlinks)) { + foreach($headlinks as $headlink) { + print("\n\t" . $headlink); + } + } + print(' </head> <body> |