-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
106 lines (103 loc) · 4.76 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
<?php
/*
* =====================================================
* Afrique Televison: header.php Template file
* =====================================================
*/
?>
<!DOCTYPE html >
<html <?php language_attributes(); ?> >
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> >
<div class=" mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="aftv-prim-head mdl-layout__header mdl-layout__header--waterfall">
<!-- Top row, always visible -->
<div class="mdl-layout__header-row aftv-header">
<!-- Title -->
<span class="mdl-layout-title">
<?php
//echo get_bloginfo('name');
if( has_custom_logo() ) {
the_custom_logo();
}
else {
echo get_bloginfo('name');
}
?>
</span>
<div class="mdl-layout-spacer"></div>
<button onclick="toggle_player()" id="toggle_player" class="aftv-live_tv mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect">
<?php _e('la chaîne web','afrique-television') ?> <i class="material-icons">live_tv</i>
</button>
<div class="aftv-search mdl-textfield mdl-js-textfield mdl-textfield--expandable
mdl-textfield--floating-label mdl-textfield--align-right">
<label class=" mdl-buwtton mdl-js-button mdl-button--icon"
for="waterfall-exp">
<i class="material-icons">search</i>
</label>
<div class="mdl-textfield__expandable-holder">
<input class="mdl-textfield__input" type="text" name="sample"
id="waterfall-exp">
</div>
</div>
</div>
<!-- Bottom row, not visible on scroll -->
<div class="mdl-layout__header-row mdl-layout--large-screen-only aftv_menu">
<!-- <div class="mdl-layout-spacer"></div> -->
<!-- Navigation -->
<?php
// Define AFTV top headr Menu Configuration
/*$aftv_menu_parameters = array(
'theme_location' => 'aftv-header-menu',
'container' => FALSE,
'menu_class' => 'mdl-navigation',
'items_wrap' => '<nav id="%1$s" class="%2$s">%3$s</nav>',
'echo' => FALSE
//'walker' => new Aftv_Menu_Walker()
);
echo strip_tags(wp_nav_menu($aftv_menu_parameters), '<a><nav>');
* /
*
*/
$aftv_menu_parameters = array(
'theme_location' => "aftv-header-menu",
'container' => 'nav',
'items_wrap' => '%3$s',
'container_class' => 'mdl-navigation aftv-menu__principal',
'walker' => new AFTV_walker()
);
if (has_nav_menu('aftv-header-menu') ){
wp_nav_menu($aftv_menu_parameters);
}
?>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title material-image__background">
<?php
//echo get_bloginfo('name');
if( has_custom_logo() ) {
the_custom_logo();
}
else {
echo get_bloginfo('name');
}
?>
</span>
<?php
$aftv_drawer_menu_parameters = array(
'theme_location' => 'aftv-drawer-menu',
'container' => 'nav',
'container_class' => 'mdl-navigation',
'items_wrap' => '%3$s',
'walker' => new AFTV_walker()
);
if (has_nav_menu('aftv-drawer-menu')) {
wp_nav_menu($aftv_drawer_menu_parameters);
}
?>
</div>