<?php global $shortname; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title><?php warrior_title(); ?></title>
<?php warrior_meta(); ?>
<?php if( get_option($shortname.'_maintenance_status') == 'No' || current_user_can('administrator') ): // Check if the site is in maintenance mod ?>
<?php if ( get_option($shortname.'_ie6_warning') == "Yes" && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.') == true) : ?>
<link href="<?php echo get_template_directory_uri(); ?>/css/ie6-warning.css" rel="stylesheet" type="text/css" media="screen" />
<?php else: ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
<?php endif; ?>
<?php else: ?>
<link href="<?php echo get_template_directory_uri(); ?>/css/maintenance.css" rel="stylesheet" type="text/css" media="screen" />
<?php endif; ?>
</head>
<body <?php body_class(); ?>>
<?php warrior_maintenance(); warrior_ie6_warning(); ?>
<!-- START: MAIN CONTAINER -->
<div id="main-container" class="clearfix">
<!-- START: TOP -->
<div id="top" class="clearfix">
<div class="container">
<?php if ( has_nav_menu('top-menu') ) {
echo '<h4 class="menu-control"><a href="#top-menu">Top Menu</a></h4>';
wp_nav_menu( array ('theme_location' => 'top-menu', 'menu_id' => 'top-menu', 'menu_class' => 'sf-menu', 'fallback_cb' => null, 'container' => null) );
} ?>
<form role="search" method="get" id="searchform" class="topsearch" action="<?php echo home_url( '/' ); ?>">
<div>
<input type="text" value="" name="s" id="s" />
<span class="icon-search"></span>
</div>
</form>
</div>
</div>
<!-- END: TOP -->
<div class="container">
<!-- START: HEADER -->
<div id="header" class="clearfix">
<div class="logo">
<?php warrior_logo(); ?>
</div>
<div class="ad">
<?php
if ( get_option($shortname.'_ad_468x60_adsense') != "" ) {
echo get_option($shortname.'_ad_468x60_adsense');
} else {
if ( get_option($shortname.'_ad_468x60') != "" ) {
echo '<a href="'. stripslashes(get_option($shortname.'_ad_468x60_url')) .'"><img src="'. stripslashes(get_option($shortname.'_ad_468x60')) .'" alt="" /></a>';
}
}
?>
</div>
</div>
<!-- END: HEADER -->
<!-- START: ACCESS -->
<div id="access" class="clearfix">
<?php if ( has_nav_menu('main-menu') ) {
echo '<h4 class="menu-control"><a href="#main-menu">Main Menu</a></h4>';
wp_nav_menu( array ('theme_location' => 'main-menu', 'menu_id' => 'main-menu', 'menu_class' => 'sf-menu', 'fallback_cb' => null, 'container_class' => 'float-wrapper') );
} ?>
<div class="access-line"></div>
</div>
<!-- END: ACCESS -->