This repository was archived by the owner on Nov 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·87 lines (71 loc) · 3.37 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
80
81
82
83
84
85
86
87
<?php
/**
* The Header for our theme.
*
* @package Hipoul
* @since hipoul 1.0
*/
global $hipoul_settings;?>
<html <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<title><?php wp_title( '' ); ?></title>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<!-- Bootstrap Core CSS -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- Custom Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:200,300,400,700,300italic,400italic,700italic|Roboto:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body>
<?php if (!is_front_page()): ?>
<div id="header" style="background-image:url(<?php echo get_template_directory_uri(); ?>/img/background.jpg); background-size: cover;">
<a href="<?php echo home_url(); ?>" id="home-logo" title="<?php esc_attr_e('Go back to the front page', 'hipoul'); ?>">
<img src="<?php bloginfo('template_directory'); ?>/img/newlogo.svg" alt="Politecnico Open unix Labs Logo">
</a>
<?php else: /* little trick to hide the search bar in the homepage, and the "home" element */ ?>
<style>
.nav-justified > li.menu-item-search, .nav-justified > li:first-child {
display: none;
}
</style>
<div id="landing" class="row front-page">
<?php endif; ?>
<!-- Fixed navbar -->
<div class="navbar navbar-custom navbar-inverse navbar-static-top" id="<?php if (is_front_page()) echo "landing-"; ?>nav">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse">
<?php
/* Header menu */
wp_nav_menu(array(
'theme_location' => 'header-menu',
'container' => false,
'menu_id' => '',
'menu_class' => 'nav navbar-nav nav-justified',
'depth' => 1,
// This one is the important part:
'walker' => new Hipoul_Walker_Nav_Menu
)); ?>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
<?php if (!is_front_page()): ?>
</div>
<div class="container" id="blog">
<?php endif; ?>