diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-04-13 17:25:36 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-04-13 17:25:36 -0700 |
commit | c5cdd07ba609ba6ab661cf14b47219099553bb5f (patch) | |
tree | e3acfd1a35df71344a46f042c2da5c72fe21fc49 /includes/header.php | |
parent | 5aa045473d919ecc87cc2defebb665b24a4d2d95 (diff) | |
download | pathery-c5cdd07ba609ba6ab661cf14b47219099553bb5f.tar.xz |
Added meta description to htmlHeader function
Diffstat (limited to 'includes/header.php')
-rw-r--r-- | includes/header.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/includes/header.php b/includes/header.php index 69df6f8..8beac75 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,22 +1,24 @@ <?php
-function htmlHeader($css = array(), $title = 'Pathery') {
+function htmlHeader($css = array(), $title = 'Pathery', $desc = '') {
?>
<!DOCTYPE html>
<html xml:lang="en" lang="en">
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <title><? echo $title; ?></title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title><? echo $title; ?></title>
- <link href="css/page.css" rel="stylesheet" type="text/css" />
- <link href="css/maps.css" rel="stylesheet" type="text/css" />
- <?php
+ <link href="css/page.css" rel="stylesheet" type="text/css" />
+ <link href="css/maps.css" rel="stylesheet" type="text/css" />
+<?php
foreach ($css as $c) {
- echo "<link href=\"css/$c.css\" rel=\"stylesheet\" type=\"text/css\" />";
+ echo " <link href=\"css/$c.css\" rel=\"stylesheet\" type=\"text/css\" />\n";
}
- ?>
- <script src="js/ajax.js" async="async"></script>
- <script src="js/mapspecs.js"></script>
+ if ($desc !== '')
+ echo " <meta name='Description' content='$desc'>";
+?>
+ <script src="js/ajax.js" async="async"></script>
+ <script src="js/mapspecs.js"></script>
</head>
<?php
}
|