-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
80 lines (55 loc) · 2.04 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html" charset="utf-8" />
<?php if (is_search()) { ?>
<meta name="robots" content="noindex, nofollow" />
<?php } ?>
<title>
<?php
if (function_exists('is_tag') && is_tag()) {
single_tag_title("Tag Archive for ""); echo '" - '; }
elseif (is_archive()) {
wp_title(''); echo ' Archive - '; }
elseif (is_search()) {
echo 'Search for "'.wp_specialchars($s).'" - '; }
elseif (!(is_404()) && (is_single()) || (is_page())) {
wp_title(''); echo ' - '; }
elseif (is_404()) {
echo 'Not Found - '; }
if (is_home()) {
bloginfo('name'); echo ' - '; bloginfo('description'); }
else {
bloginfo('name'); }
if ($paged>1) {
echo ' - page '. $paged; }
?>
</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php if (is_front_page()){ ?>
<div id="map">
<ul class="points">
<?php
query_posts( array(
'post_type' => array( 'post', 'destination' ),
'meta_key' => 'map_id' )
);
// The Loop
while ( have_posts() ) : the_post();?>
<li id="<?php echo get_post_meta(get_the_ID(),'map_id',true);?>">
<a href="<?php the_permalink();?>">
<point_header><?php the_title();?></point_header>
</a>
</li>
<?php endwhile;
// Reset Query
wp_reset_query();
?>
</ul>
</div>
<?php } ?>
<div id="wrapper" <?php if(!is_front_page()) { echo 'class="inner_bg"';} ?>>