1
|
1 |
<!-- header START --> |
|
2 |
<div id="header"> |
|
3 |
|
|
4 |
<!-- banner START --> |
|
5 |
<?php if( $options['banner_content'] && ( |
|
6 |
($options['banner_registered'] && $user_ID) || |
|
7 |
($options['banner_commentator'] && !$user_ID && isset($_COOKIE['comment_author_'.COOKIEHASH])) || |
|
8 |
($options['banner_visitor'] && !$user_ID && !isset($_COOKIE['comment_author_'.COOKIEHASH])) |
|
9 |
) ) : ?> |
|
10 |
<div class="banner"> |
|
11 |
<?php echo($options['banner_content']); ?> |
|
12 |
</div> |
|
13 |
<?php endif; ?> |
|
14 |
<!-- banner END --> |
|
15 |
|
|
16 |
<div id="caption"> |
|
17 |
<h1 id="title"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1> |
|
18 |
<div id="tagline"><?php bloginfo('description'); ?></div> |
|
19 |
</div> |
|
20 |
|
|
21 |
<div class="fixed"></div> |
|
22 |
</div> |
|
23 |
<!-- header END --> |
|
24 |
|
|
25 |
<!-- navigation START --> |
|
26 |
<div id="navigation"> |
|
27 |
<!-- menus START --> |
|
28 |
<ul id="menus"> |
|
29 |
<li class="<?php echo($home_menu); ?>"><a class="home" title="<?php _e('Home', 'inove'); ?>" href="<?php echo get_settings('home'); ?>/"><?php _e('Home', 'inove'); ?></a></li> |
|
30 |
<?php |
|
31 |
if($options['menu_type'] == 'categories') { |
|
32 |
wp_list_categories('title_li=0&orderby=name&show_count=0'); |
|
33 |
} else { |
|
34 |
wp_list_pages('title_li=0&sort_column=menu_order'); |
|
35 |
} |
|
36 |
?> |
|
37 |
<li><a class="lastmenu" href="javascript:void(0);"></a></li> |
|
38 |
</ul> |
|
39 |
<!-- menus END --> |
|
40 |
|
|
41 |
<!-- searchbox START --> |
|
42 |
<div id="searchbox"> |
|
43 |
<?php if($options['google_cse'] && $options['google_cse_cx']) : ?> |
|
44 |
<form action="http://www.google.com/cse" method="get"> |
|
45 |
<div class="content"> |
|
46 |
<input type="text" class="textfield" name="q" size="24" /> |
|
47 |
<input type="submit" class="button" name="sa" value="" /> |
|
48 |
<input type="hidden" name="cx" value="<?php echo $options['google_cse_cx']; ?>" /> |
|
49 |
<input type="hidden" name="ie" value="UTF-8" /> |
|
50 |
</div> |
|
51 |
</form> |
|
52 |
<?php else : ?> |
|
53 |
<form action="<?php bloginfo('home'); ?>" method="get"> |
|
54 |
<div class="content"> |
|
55 |
<input type="text" class="textfield" name="s" size="24" value="<?php echo wp_specialchars($s, 1); ?>" /> |
|
56 |
<input type="submit" class="button" value="" /> |
|
57 |
</div> |
|
58 |
</form> |
|
59 |
<?php endif; ?> |
|
60 |
</div> |
|
61 |
<script type="text/javascript"> |
|
62 |
//<![CDATA[ |
|
63 |
var searchbox = MGJS.$("searchbox"); |
|
64 |
var searchtxt = MGJS.getElementsByClassName("textfield", "input", searchbox)[0]; |
|
65 |
var searchbtn = MGJS.getElementsByClassName("button", "input", searchbox)[0]; |
|
66 |
var tiptext = "<?php _e('Type text to search here...', 'inove'); ?>"; |
|
67 |
if(searchtxt.value == "" || searchtxt.value == tiptext) { |
|
68 |
searchtxt.className += " searchtip"; |
|
69 |
searchtxt.value = tiptext; |
|
70 |
} |
|
71 |
searchtxt.onfocus = function(e) { |
|
72 |
if(searchtxt.value == tiptext) { |
|
73 |
searchtxt.value = ""; |
|
74 |
searchtxt.className = searchtxt.className.replace(" searchtip", ""); |
|
75 |
} |
|
76 |
} |
|
77 |
searchtxt.onblur = function(e) { |
|
78 |
if(searchtxt.value == "") { |
|
79 |
searchtxt.className += " searchtip"; |
|
80 |
searchtxt.value = tiptext; |
|
81 |
} |
|
82 |
} |
|
83 |
searchbtn.onclick = function(e) { |
|
84 |
if(searchtxt.value == "" || searchtxt.value == tiptext) { |
|
85 |
return false; |
|
86 |
} |
|
87 |
} |
|
88 |
//]]> |
|
89 |
</script> |
|
90 |
<!-- searchbox END --> |
|
91 |
|
|
92 |
<div class="fixed"></div> |
|
93 |
</div> |
|
94 |
<!-- navigation END --> |