-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·92 lines (48 loc) · 2.16 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
<?php
/**
* Template for Fixed header Bar
*/
global $loopPageAbout;
global $loopPageProcess;
global $loopProcess;
global $loopPageCasestudies;
global $loopCaseStudies;
global $loopPageContact;
$count = 0;
$countcasestudies = 0;
echo '<nav class="js-nav-fixed fixed--bottom fixed--fit bar">';
echo '<span class="js-nav-trigger nav-trigger" ></span>';
echo '<ul class="nav nav--banner js-trigger-scroll">';
echo '<li class="float--left logo--small "><a class="home" href="#home"></a> </li>';
if ($loopPageAbout->have_posts()) :
while ($loopPageAbout->have_posts()) : $loopPageAbout->the_post(); $count++;
echo '<li class="link-pageabout"><a href="' . $post->post_name . '">' . get_the_title() . '</a></li>';
endwhile;
endif;
if ($loopPageProcess->have_posts()) :
while ($loopPageProcess->have_posts()) : $loopPageProcess->the_post(); $count++;
echo '<li class="link-pageprocess"><a href="' . $post->post_name . '">' . get_the_title() . '</a></li>';
endwhile;
endif;
if ($loopProcess->have_posts()) : $count = 0;
while ($loopProcess->have_posts()) : $loopProcess->the_post(); $count++;
echo '<li class="link-process"><a href="' . $post->post_name . '">' . $count . '</a></li>';
endwhile;
endif;
if ($loopPageCasestudies->have_posts()) :
while ($loopPageCasestudies->have_posts()) : $loopPageCasestudies->the_post(); $count++;
echo '<li class="link-pagecasestudy"><a href="' . $post->post_name . '">' . get_the_title() . '</a></li>';
endwhile;
endif;
if ($loopCaseStudies->have_posts()) : $count = 0;
while ($loopCaseStudies->have_posts()) : $loopCaseStudies->the_post(); $count++; $countcasestudies++;
echo '<li class="link-casestudies"><a href="' . $post->post_name . '">' . $countcasestudies . '</a></li>';
endwhile;
endif;
if ($loopPageContact->have_posts()) :
while ($loopPageContact->have_posts()) : $loopPageContact->the_post(); $count++;
echo '<li class="link-pagecontact"><a href="' . $post->post_name . '">' . get_the_title() . '</a></li>';
endwhile;
endif;
echo '</ul>';
echo '</nav>';