<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<?php /* Fusion/digitalnature */
if(get_option('fusion_meta')<>'') {
if (is_home()) {
$metakeywords = get_option('fusion_meta');
} else if (is_single()) {
$metakeywords = "";
$tags = wp_get_post_tags($post->ID);
foreach ($tags as $tag ) {
$metakeywords = $metakeywords . $tag->name . ", ";
}
}
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" <?php // language_attributes('xhtml'); // -> generates invalid markup :( ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php if($metakeywords<>'') { ?>
<meta name="keywords" content="<?php echo $metakeywords; ?>" />
<meta name="description" content="<?php bloginfo('description'); ?>" />
<?php } ?>
<title><?php wp_title('«', true, 'right'); ?><?php bloginfo('name'); ?></title>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
<?php
if(!defined("PHP_EOL")) define("PHP_EOL", strtoupper(substr(PHP_OS,0,3) == "WIN") ? "\r\n" : "\n");
print '<style type="text/css" media="all">'.PHP_EOL;
print '@import "'.get_bloginfo('stylesheet_url').'";'.PHP_EOL;
if(get_option('fusion_sidebarpos')=='left')
print '@import "'.get_bloginfo('template_url').'/options/leftsidebar.css";'.PHP_EOL;
if(get_option('fusion_header')=='user') {
if(get_option('fusion_headerimage')<>'')
print '#page-wrap2{ background: transparent url("'.get_option('fusion_headerimage').'") no-repeat center top; }'.PHP_EOL;
if(get_option('fusion_headerimage2')<>'')
print '#page-wrap1{ background: transparent url("'.get_option('fusion_headerimage2').'") repeat-x center top; }'.PHP_EOL;
}
else if(get_option('fusion_header')=='user2') {
print '#page-wrap2{ background: #'.get_option('fusion_headercolor').'; }'.PHP_EOL;
print '#page-wrap1{ background: none; }'.PHP_EOL;
}
$usercss = get_option('fusion_css');
if($usercss<>'') print $usercss;
print '</style>'.PHP_EOL;
?>
<!--[if lte IE 6]>
<script type="text/javascript">
/* <![CDATA[ */
blankimgpath = '<?php bloginfo('template_url'); ?>/images/blank.gif';
/* ]]> */
</script>
<style type="text/css" media="screen">
@import "<?php bloginfo('template_url'); ?>/ie6.css";
body{ behavior:url("<?php bloginfo('template_url'); ?>/js/ie6hoverfix.htc"); }
img{ behavior: url("<?php bloginfo('template_url'); ?>/js/ie6pngfix.htc"); }
</style>
<![endif]-->
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php if(get_option('fusion_jquery')<>'no') { ?>
<?php wp_enqueue_script('jquery'); ?>
<?php wp_enqueue_script('fusion',get_bloginfo('template_url').'/js/fusion.js',array(),false,true); ?>
<?php } ?>
<?php wp_head(); ?>
</head>
<body <?php if (is_home()) { ?>class="home"<?php } else { ?>class="<?php echo $post->post_name; ?>"<?php } ?>>
<!-- page wrappers (100% width) -->
<div id="page-wrap1">
<div id="page-wrap2">
<!-- page (actual site content, custom width) -->
<div id="page"<?php if((is_page_template('page-3col.php') || (get_option('fusion_3col')=='yes')) && (!is_page_template('page-nosidebar.php')) && (!is_page_template('page-2col.php'))) { ?> class="with-sidebar2"<?php } else if(!is_page_template('page-nosidebar.php')) { ?> class="with-sidebar"<?php } ?>>
<!-- main wrapper (side & main) -->
<div id="main-wrap">
<!-- mid column wrap -->
<div id="mid-wrap">
<!-- sidebar wrap -->
<div id="side-wrap">
<!-- mid column -->
<div id="mid">
<!-- header -->
<div id="header">
<?php if(get_bloginfo('description')<>'') { ?><div id="topnav" class="description"> <?php bloginfo('description'); ?></div><?php } ?>
<?php
// logo image?
if(get_option('fusion_logo')=='yes' && get_option('fusion_logoimage')) { ?>
<a id="logo" href="<?php bloginfo('url'); ?>/"><img src="<?php print get_option('fusion_logoimage'); ?>" title="<?php bloginfo('name'); ?>" alt="<?php bloginfo('name'); ?>" /></a>
<?php } else { ?>
<h1 id="title"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
<?php } ?>
<!-- top tab navigation -->
<div id="tabs">
<ul>
<?php
if((get_option('show_on_front')<>'page') && (get_option('fusion_topnav')<>'categories')) {
if(is_home() && !is_paged()){ ?>
<li id="nav-homelink" class="current_page_item"><a href="<?php echo get_settings('home'); ?>" title="<?php _e('You are Home','fusion'); ?>"><span><span><?php _e('Home','fusion'); ?></span></span></a></li>
<?php } else { ?>
<li id="nav-homelink"><a href="<?php echo get_option('home'); ?>" title="<?php _e('Click for Home','fusion'); ?>"><span><span><?php _e('Home','fusion'); ?></span></span></a></li>
<?php
}
} ?>
<?php
if(get_option('fusion_topnav')=='categories') { echo preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i', '<li$1><a$2><span><span>$3</span></span></a>', wp_list_categories('show_count=0&echo=0&title_li=')); }
else { echo preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i', '<li$1><a$2><span><span>$3</span></span></a>', wp_list_pages('echo=0&title_li=&')); }
?>
</ul>
</div>
<!-- /top tabs -->
</div><!-- /header -->