Location: PHPKode > scripts > Photospace Gallery > photospace theme download/photospace/header.php
<?php
$ua = $_SERVER['HTTP_USER_AGENT'];

if (!(ereg("Windows",$ua) && ereg("MSIE",$ua)) || ereg("MSIE 7",$ua)) {
     echo '<?xml version="1.0" encoding="' . get_settings('blog_charset') .'"?>' . "\n";
}

$options = get_option('pb_options');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

<title>
	<?php if (is_home()) {
		echo bloginfo('name');
	} elseif (is_category()) {
		echo __('Category &raquo; ', 'blank'); wp_title(' | ', TRUE, 'right');
		echo bloginfo('name');
	} elseif (is_tag()) {
		echo __('Tag &raquo; ', 'blank'); wp_title(' | ', TRUE, 'right');
		echo bloginfo('name');
	} elseif (is_search()) {
		echo __('Search results &raquo; ', 'blank');
		echo the_search_query();
		echo ' | ';
		echo bloginfo('name');
	} elseif (is_404()) {
		echo '404 '; wp_title(' | ', TRUE, 'right');
		echo bloginfo('name');
	} else {
		echo wp_title(' | ', TRUE, 'right');
		echo bloginfo('name'); 
	} ?>
</title>

<meta name="description" content="<?php bloginfo('description'); ?>" />

<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.png" type="image/x-icon" /> 

<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'); ?>" />

<?php if ($options['theme'] == 2){ ?>
	<link href="<?php echo get_bloginfo('template_directory')?>/theme_black.css" rel="stylesheet" type="text/css" /> 
<?php }else{ ?>
	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php } ?>

<?php
wp_enqueue_script('jquery'); 

if ( !is_admin() ) { // instruction to only load if it is not the admin area
	wp_register_script('galleriffic', 	 get_bloginfo('template_directory') . '/js/jquery.galleriffic.js');
	wp_enqueue_script('galleriffic');
	   
	wp_register_script('opacityrollover', get_bloginfo('template_directory') . '/js/jquery.opacityrollover.js');
	wp_enqueue_script('opacityrollover');
}

wp_head(); 
?>

<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/comment-style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/gallery.css" type="text/css" media="screen" />

<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jscript.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/comment.js"></script>




		
		
<!--[if lt IE 7]>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/ie6.css" type="text/css" media="screen" />
<![endif]-->

<!--[if IE 7]>
<link href="<?php bloginfo('template_directory'); ?>/ie7.css" rel="stylesheet" type="text/css" />  
<![endif]-->

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> 

<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/superfish.js"></script>

<script type="text/javascript">
	jQuery(document).ready(function($) {
									
	 	$('#main-nav ul').superfish();
		
		
		$("ul#portflio li").click(function() {
			$("ul#portflio li ul").toggle();
		});
		 
		$(document).bind('click', function(e) {
			var $clicked = $(e.target);
			if (! $clicked.parents().hasClass("dropdown"))
				$("ul#portflio li ul").hide(); 
		});		
		
		//clear search on click
		defaultValue = jQuery('#SearchForm').val();  
		jQuery('#SearchForm').click(function() {
			if( this.value == defaultValue ) {
				jQuery(this).val("");
			}
		});		
		
	});
</script>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1737647-22']); 
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>   



</head>
<body>
<div id="wrapper">

    <div id="header">
    	 
         <div id="header_wrap">	
         
        
			<?php if ($options['use_logo']) : ?>
                <div id="logo_image"> 
                    <div id="logo">
                    	<a href="<?php echo get_option('home'); ?>/"><img src="<?php bloginfo('template_url'); ?>/img-black/logo.png" title="<?php bloginfo('name'); ?>" alt="<?php bloginfo('name'); ?>" /></a>
                   	</div>
                     <h3><?php bloginfo('description'); ?></h3>
                </div>
                
            <?php else : ?>
                <div id="logo_text">
                    <a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a>
                    <h1><?php bloginfo('description'); ?></h1>
                </div>
            <?php endif; ?>
            
            <div id="main-nav">    
                <ul>
                    
                    <?php 			 
                     wp_list_pages('sort_column=menu_order&depth=0&title_li=&exclude=' . $options['exclude_pages']);
                     //wp_list_pages();
                     ?>
                </ul>
            </div>
    	
        </div>
        
    </div><!-- #header end --> 
    
    <div id="contents">



Return current item: Photospace Gallery