]> git.openstreetmap.org Git - stateofthemap.git/blob - header.php
Update http -> https img links
[stateofthemap.git] / header.php
1 <?php require_once get_template_directory()."/BX_functions.php"; ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 <head>
6
7 <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
8 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
9 <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen,projection" />
10 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
11 <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
12 <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
13 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
14 <?php wp_head(); ?>
15
16 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?> </title>
17
18         
19 </head>
20
21 <body>
22 <!-- wrap starts here -->
23 <div id="wrap">
24                 
25                 <!--header -->
26                 <div id="header">                       
27                                 
28                         <h1 id="logo-text"><a href="https://2007.stateofthemap.org"><?php bloginfo('name'); ?></a></h1>         
29                         <h2 id="slogan"><?php bloginfo('description'); ?></h2>
30                         <p>     
31 <!--                    <?php include (TEMPLATEPATH . "/searchform.php"); ?> -->                        
32                         </p>
33                 </div>
34                 
35                 <!-- menu -->   
36                 <div  id="menu">
37                         <ul>
38                                 <li <?php if (is_home()) echo " id=\"current\""; ?>><a href="<?php echo get_settings('home'); ?>">Latest News</a></li>
39                                 <?php
40                 $pages = BX_get_pages();
41                 if ($pages) {
42                         foreach ($pages as $page) {
43                                 $page_id = $page->ID;
44                                 $page_title = $page->post_title;
45                                 $page_name = $page->post_name;
46                                 if ($page_name == "archives") {
47                                         (is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ' id="current"':$selected='';
48                                         echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Archives</a></li>\n";
49                                 }
50                                 elseif($page_name == "about") {
51                                         (is_page($page_id))?$selected = ' id="current"':$selected='';
52                                         echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">About</a></li>\n";
53                                 }
54                                 elseif ($page_name == "contact") {
55                                         (is_page($page_id))?$selected = ' id="current"':$selected='';
56                                         echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Contact</a></li>\n";
57                                 }
58                                 elseif ($page_name == "about_short") {/*ignore*/}
59                         else {
60                         (is_page($page_id))?$selected = ' id="current"':$selected='';
61                         echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">$page_title</a></li>\n";
62                 }
63                 }
64         }
65                 ?>
66                         </ul>
67                 </div>