forked from andreiluca/LightWord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
44 lines (39 loc) · 1.92 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php wp_title('«', true, 'right'); ?><?php bloginfo('name'); ?></title>
<link rel="shortcut icon" href="<?php global $path_to_favicon; echo ($path_to_favicon !== null) ? bloginfo('wpurl') . $path_to_favicon : get_template_directory_uri() . '/favicon.ico'; ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php global $lw_header_content; echo "\n".$lw_header_content."\n"; ?>
<?php wp_enqueue_script('jquery'); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="wrapper">
<?php lightword_header_image(); ?>
<div id="header">
<?php lightword_rss_feed(); ?>
<div id="top_bar">
<div class="center_menu">
<?php # Top menu logic
global $lw_remove_searchbox, $lw_use_dumb_menu;
if( $lw_use_dumb_menu == 'true' || !function_exists('wp_nav_menu') ) { # Don't use WP custom menu
lightword_dumb_menu();
} else {
# Yay, we get to be fancy (and a bit lazy ;-)
# No home button is auto-inserted; custom menus should be completely
# defined by the menu and the menu only.
#
# Falls back to LightWord's "dumb" menu if something's amiss.
$lw_menuclass = ( $lw_remove_searchbox == 'true' ) ? 'menu expand' : 'menu';
wp_nav_menu( array( 'menu' => 'lightword_top_menu', 'echo' => true, 'menu_id' => 'front_menu', 'menu_class' => $lw_menuclass, 'container' => '', 'theme_location' => 'lightword_top_menu', 'link_before' => '<span>', 'link_after' => '</span>', 'fallback_cb' => 'lightword_dumb_menu' ) );
}
?>
</div>
<?php echo lightword_searchbox(); ?>
</div>
</div>
<div id="content">