Skip to main content

Ivan Teoh

Something personal yet public

53-header.php

(Source)

<?php
/**
 * @package WordPress
 * @subpackage Your_Theme
 */
?>
<!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">
    <title><?php wp_title('&laquo;', true, 'right'); ?>
      <?php bloginfo('name'); ?></title>

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>;
      charset=<?php bloginfo('charset'); ?>" />
    <meta name="description" content="<?php bloginfo('name'); _e(' - ');
        if ( is_single() ) {
            single_post_title('', true);
        } else {
            bloginfo('description');
        } ?>" />

    <link rel="stylesheet" type="text/css" href="<?php
      bloginfo('stylesheet_url'); ?>"  media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php
      bloginfo('name'); ?> Blog RSS Feed" href="<?php
      bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    <?php wp_head(); ?>
</head>
<body>
    <h1><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
    <p><?php bloginfo('description'); ?></p>
<!-- end header -->