Don't like ads? PRO users don't see any ads ;-)
Guest

header.php

By: a guest on May 2nd, 2011  |  syntax: None  |  size: 3.17 KB  |  hits: 79  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php global $vigilance; ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  3.         "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  4. <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6.         <?php if ( is_front_page() ) : ?>
  7.                 <title><?php bloginfo( 'name' ); ?></title>
  8.         <?php elseif ( is_404() ) : ?>
  9.                 <title><?php _e( 'Page Not Found |', 'vigilance' ); ?> <?php bloginfo( 'name' ); ?></title>
  10.         <?php elseif ( is_search() ) : ?>
  11.                 <title><?php printf( __("Search results for '%s'", "vigilance"), get_search_query()); ?> | <?php bloginfo( 'name' ); ?></title>
  12.         <?php else : ?>
  13.                 <title><?php wp_title($sep = '' ); ?> | <?php bloginfo( 'name' );?></title>
  14.         <?php endif; ?>
  15.  
  16.         <!-- Basic Meta Data -->
  17.         <meta name="copyright" content="Design is copyright 2008 - <?php echo date('Y'); ?> The Theme Foundry" />
  18.         <meta http-equiv="imagetoolbar" content="no" />
  19.         <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
  20.         <?php if ((is_single() || is_category() || is_page() || is_home()) && (!is_paged())) {} else { ?>
  21.                 <meta name="robots" content="noindex,follow" />
  22.         <?php } ?>
  23.  
  24.         <!-- Favicon -->
  25.         <link rel="shortcut icon" href="<?php bloginfo( 'stylesheet_directory' ); ?>/images/favicon.ico" />
  26.  
  27.         <!--Stylesheets-->
  28.         <link href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" rel="stylesheet" />
  29.         <!--[if lt IE 8]><link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo( 'template_url' ); ?>/stylesheets/ie.css" /><![endif]-->
  30.         <!--[if lte IE 6]><link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo( 'template_url' ); ?>/stylesheets/ie6.css" /><![endif]-->
  31.  
  32.         <!--WordPress-->
  33.         <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ); ?> RSS Feed" href="<?php bloginfo( 'rss2_url' ); ?>" />
  34.         <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  35.  
  36.         <!--WP Hook-->
  37.         <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  38.         <?php wp_head(); ?>
  39. </head>
  40. <body <?php body_class(); ?>>
  41.         <div class="skip-content"><a href="#content"><?php _e( 'Skip to content', 'vigilance' ); ?></a></div>
  42.         <div id="wrapper">
  43.                 <div id="header" class="clear">
  44.                         <?php if (is_home()) echo( '<h1 id="title">' ); else echo( '<div id="title">' );?><a href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' ); ?></a><?php if (is_home()) echo( '</h1>' ); else echo( '</div>' );?>
  45.                         <div id="description">
  46.                                 <h2><?php bloginfo( 'description' ); ?></h2>
  47.                         </div><!--end description-->
  48.                         <div id="nav">
  49.                                 <ul>
  50.                                         <li class="page_item <?php if (is_front_page()) echo( 'current_page_item' );?>"></li>
  51.                                         <?php if ($vigilance->hidePages() !== 'true' ) : ?>
  52.                                                 <?php wp_list_pages( 'title_li=&depth=1' ); ?>
  53.                                         <?php endif; ?>
  54.                                         <?php if ($vigilance->hideCategories() != 'true' ) : ?>
  55.                                                 <?php wp_list_categories( 'title_li=&depth=1' ); ?>
  56.                                         <?php endif; ?>
  57.                                 </ul>
  58.                         </div><!--end nav-->
  59.                 </div><!--end header-->
  60.                 <div id="content" class="pad">
  61.                 <?php if (is_file(STYLESHEETPATH . '/header-banner.php' )) include(STYLESHEETPATH . '/header-banner.php' ); else include(TEMPLATEPATH . '/header-banner.php' ); ?>