-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.php
57 lines (52 loc) · 1.69 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
<?php
// Get the ID of a given category
$news_and_thought = get_cat_ID( 'News and Thought' );
$campus_buzz = get_cat_ID( 'Campus Buzz' );
$fun_stuff = get_cat_ID( 'Fun Stuff' );
$creativity_wall = get_cat_ID( 'Creativity Wall' );
// Get the URL of this category
$category_link = get_category_link( $category_id );
?>
<div id="header">
<table id="herobar" width="80%" align="center">
<tr>
<td width="25%">
<span id="logo_hero"><a href="<?php bloginfo('url'); ?>">Ping!</a></span>
</td>
<td width="50%">
<table id="navbar" width="100%" align="center">
<tr>
<td width="25%">
<a href="<?php echo esc_url( get_category_link( $news_and_thought ) ); ?>" class="anim">News & Thought</a>
</td>
<td width="25%">
<a href="<?php echo esc_url( get_category_link( $campus_buzz ) ); ?>" class="anim">Campus Buzz</a>
</td>
<td width="25%">
<a href="<?php echo esc_url( get_category_link( $creativity_wall ) ); ?>" class="anim">Creativity Wall</a>
</td>
<td width="25%">
<a href="<?php echo esc_url( get_category_link( $fun_stuff ) ); ?>" class="anim">Fun Stuff</a>
</td>
</tr>
</table>
</td>
<td width="25%" style="text-align: right;">
<table id="searchbar" align="right" width="90%">
<tr>
<td align="right" width="10%">
<i id="searchicon" class="material-icons">search</i>
</td>
<form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<td width="90%">
<input type="text" name="s" id="searchvalue" value="<?php echo get_search_query(); ?>" />
</td>
</form>
</tr></table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>