-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnav_menu.php
91 lines (82 loc) · 3.82 KB
/
nav_menu.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
<div class="headbar" id="headbar">
<!-- inspired by Nariman Adam http://codepen.io/nariman_adam/pen/MwRJop -->
<div id="toggle">
<input type="checkbox" id="input-toggle">
<span></span>
</div>
<nav class="logossocial">
<ul class="mylogossocial">
<li class="logofb logo-menu">
<a title="Mastodon Geek's Curiosity" rel="me" href="https://mastodon.xyz/@Julianoe" target="_blank">
<img src="<?php echo get_bloginfo('template_url') ?>/images/masto.png" alt="Mastodon"/><span>Mastodon</span>
</a>
</li>
<li class="logotw logo-menu">
<a title="Compte Twitter du blog" rel="me" href="https://twitter.com/geeks_curiosity" target="_blank">
<img src="<?php echo get_bloginfo('template_url') ?>/images/tw.png" alt="Twitter"/><span>Twitter</span>
</a>
</li>
<li class="logoyt logo-menu">
<a title="Chaîne Youtube du blog" rel="me" href="http://www.youtube.com/user/Frondlock" target="_blank">
<img src="<?php echo get_bloginfo('template_url') ?>/images/yt.png" alt="Youtube"/><span>Youtube</span>
</a>
</li>
<li class="logomail logo-menu">
<a title="Me contacter" href="<?php echo get_bloginfo('url'); ?>?page_id=85">
<img src="<?php echo get_bloginfo('template_url') ?>/images/mail.png" alt="Contact"/><span>Contact</span>
</a>
</li>
<li class="logogc logo-menu">
<a title="Quelques infos" href="<?php echo get_bloginfo('url'); ?>?page_id=86">
<img src="<?php echo get_bloginfo('template_url') ?>/images/gc.png" alt="À propos"/><span>À propos</span>
</a>
</li>
<li class="logogc logo-menu">
<a title="Flux RSS" href="<?php echo get_bloginfo('url'); ?>/feed">
<img src="<?php echo get_bloginfo('template_url') ?>/images/rss.png" alt="RSS"/><span>RSS</span>
</a>
</li>
</ul>
</nav>
<?php /*ajout du menu*/ $drapeaubefore = '<div class="drapeau"><div class="drapeau-haut"><div class="contenuonglet"><span>';
$drapeauafter = '</span></div></div><div class="drapeau-bas"></div></div>';
wp_nav_menu( array(
'theme_location' => '',
'menu' => 'menu-principal',
'container' => 'nav',
'container_class' => 'menu menu-large',
'container_id' => '#menu-large',
'menu_class' => NULL, //ul
'menu_id' => NULL,
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '', //avant le lien du li
'after' => '',
'link_before' => $drapeaubefore, //avant le texte du lien
'link_after' => $drapeauafter,
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0,
'walker' => ''
) );
wp_nav_menu( array(
'theme_location' => '',
'menu' => 'menu-principal',
'container' => 'nav',
'container_class' => 'menu menu-mobile',
'container_id' => 'menu-mobile',
'menu_class' => NULL,
'menu_id' => NULL,
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '', //avant le lien du li
'after' => '',
'link_before' => '<div class="contenuonglet"><span>', //avant le texte du lien
'link_after' => '</span></div>',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0,
'walker' => ''
) );
?>
<form method="get" class="searchform" action="<?php echo get_home_url(); ?>/"><span class="searchform-gauche"></span><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" /><input class="searchform-bouton" type="submit" id="searchsubmit" value="" /></form>
<div class="imgheadbar"></div>
</div> <!--fermeture de la headbar-->