~mhall119/developer-ubuntu-com/wpml-enablement

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
80
81
82
83
84
85
86
87
<?php global $template_id; if (!$template_id) { $template_id = 'default'; } ?>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu:300,400,400italic">
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu+Mono:400">
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_template_directory_uri(); ?>/css/reset.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_template_directory_uri(); ?>/css/960.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_template_directory_uri(); ?>/css/base.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_template_directory_uri(); ?>/css/<?php echo $template_id; ?>.css" />

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<!--[if lt IE 9]>
<script type="text/javascript" src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<?php wp_head(); ?>

<link href='https://fonts.googleapis.com/css?family=Ubuntu:400,300,300italic,400italic,700,700italic|Ubuntu+Mono' rel='stylesheet' type='text/css' />
<script src="http://assets.ubuntu.com/sites/ubuntu/latest/u/js/plugins/yui-min.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="http://assets.ubuntu.com/sites/ubuntu/latest/u/css/global.css" />
<script src="http://assets.ubuntu.com/sites/ubuntu/latest/u/js/global.js"></script>

</head>

<body class="<?php echo $template_id; ?>">

<header>
	<div class="header-login">
		<ul>
			<li><a href="https://myapps.developer.ubuntu.com/openid/login/?next=/dev">Sign in or register</a></li>
		</ul>
	</div>
	<div class="header-navigation">
		<div>
			<nav role="navigation">
				<ul>
					<?php wp_list_pages('sort_column=menu_order&title_li=&depth=1&exclude=2301,2339'); ?>
					<li><a href="https://myapps.developer.ubuntu.com/dev">My Apps</a></li>
					<li>
						<form id="form-search" method="get" action="/">
							<fieldset>
								<input id="input-search" type="text" name="s" value="Search" />
							</fieldset>
						</form>
					</li>
				</ul>
			</nav>
			<a class="logo-ubuntu" href="/"><img src="<?php echo get_template_directory_uri(); ?>/img/logo-ubuntu.png" width="119" height="27" alt="Ubuntu logo" /></a>
			<h2><a href="/">App Developer</a></h2>
		</div>
	</div>
	<div class="header-content">
		<div class="clearfix">
			<img class="arrow-nav" src="<?php echo get_template_directory_uri(); ?>/img/arrow-nav.png" width="9" height="5" alt="" />
			<div class="header-navigation-secondary">
			<?php 
			// If the page has children, display the children in the nav.
			// If the page has a parent, display the children of the parent in the nav.
			// If the page doesn't have children, or a parent, don't display the nav.
			// If the page is 'resources', or a descendant, don't display the nav.
			// If the page is 'search', don't display the nav.
			$pages = get_pages("sort_column=menu_order&depth=1&child_of=" . $post->ID) ? $post->ID : $post->post_parent;
			if ($pages && !preg_match("/resources/", $_SERVER['REQUEST_URI']) && !is_search()) { ?>
				<div>
					<nav role="navigation">
						<ul class="clearfix">
							<?php wp_list_pages('sort_column=menu_order&title_li=&depth=1&child_of=' . $pages); ?>
						</ul>
					</nav>
				</div>
			<?php } ?>
			</div>
			<?php get_template_part('part', 'header-' . $template_id); ?>
		</div>
	</div>
	
</header>

<div id="content" class="container-12">