forked from creativecommons/commoners
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
137 lines (116 loc) · 6.39 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="apple-touch-icon" sizes="57x57" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/favicon-16x16.png">
<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/favicon.ico" type="image/x-icon">
<link rel="icon" href="<?php bloginfo('stylesheet_directory') ?>/assets/images/favicon.ico" type="image/x-icon">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="<?php bloginfo('stylesheet_directory') ?>/assets/images/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title(); ?></title>
<!--<link rel="profile" href="http://gmpg.org/xfn/11" />-->
<!--<link rel="pingback" href="<?php //bloginfo( 'pingback_url' ); ?>" />-->
<?php //if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
<link rel='stylesheet' id='cc-fontello-css' href='https://d15omoko64skxi.cloudfront.net/wp-content/themes/cc/fonts/fontello/css/cc-fontello.css?ver=4.9.1' type='text/css' media='all' />
</head>
<body <?php body_class(); ?> >
<header class="mobile-header show-for-small-only">
<div class="grid-container">
<div class="grid-x align-justify">
<div class="cell small-5">
<a href="<?php echo site_url(); ?>" class="logo"><h1>CC Network</h1></a>
</div>
<div class="cell small-3 mobile-buttons">
<a href="#" class="open-mobile-menu"><span class="dashicons dashicons-menu"></span></a>
<a href="#" class="open-mobile-search"><span class="dashicons dashicons-search"></span></a>
</div>
</div>
</div>
</header>
<div class="menu-mobile-container hide">
<a class="close" href="#">
<button class="close-button" aria-label="Close alert" type="button" data-close>
<span aria-hidden="true">×</span>
</button>
</a>
<nav class="mobile-navigation">
<?php
$args = array(
'theme_location' => 'top',
'container' => '',
'depth' => 1,
'items_wrap' => '<ul id = "%1$s" class = "menu vertical %2$s">%3$s</ul>'
);
wp_nav_menu($args);
?>
</nav>
</div>
<div class="search-mobile-container show-for-small-only">
<a class="close" href="#">
<button class="close-button search" aria-label="Close alert" type="button" data-close>
<span aria-hidden="true">×</span>
</button>
</a>
<?php get_search_form(); ?>
</div>
<header class="site-header hide-for-small-only" >
<div class="grid-container">
<div class="grid-x grid-padding-x align-center">
<div class="cell small-3">
<a href="<?php echo site_url(); ?>" class="logo"><h1>CC Network</h1></a>
</div>
</div>
</div>
<nav class="main-nav">
<div class="grid-container">
<div class="grid-x align-center">
<div class="cell small-12">
<?php wp_nav_menu( array(
'depth'=>1,
'theme_location' => 'top',
'menu_id' => 'top-menu',
'items_wrap' => '<ul id = "%1$s" class = "menu align-center %2$s">%3$s</ul>'
) ); ?>
</div>
</div>
</div>
</nav>
<?php get_search_form(); ?>
</div>
</header>
<?php if( is_page(array(24, 26, 63, 65, 55)) ) { ?>
<div class="signup-bg">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/i/bg-form-page.jpg">
</div>
<?php } ?>
<?php if( is_page( array(132, 134, 136) ) || is_page_template('page-platform.php') || is_page_template('page-chapter.php') ){ ?>
<?php
global $post;
?>
<div class="inner-section-title">
<h1><?php
if (is_search()) {
echo 'Search Results';
} else {
echo get_the_title($post->ID);
}
?></h1>
</div>
<?php } ?>
<!-- this 'push-page-body' class will be remove when all templating structure will be defined -->
<div class="page-body <?php if( is_front_page() || is_page( array(4, 121, 124) ) ){ echo ' push-page-body'; } ?>">