Header

From MovableType

The Header module includes all the header material and the first part of the body section that makes up the web page. Links to the stylesheet and RSS feed pages are incorporated using the MTLink tag. The variables referred to in the name attribute of the MTIf tags should be previously defined by the template that includes the Header module.

This template is included by:

This template creates links to the following modules:

HTML Head

<!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" id="sixapart-standard">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" />
<meta name="generator" content="<$MTProductName version="1"$>" />
<$MTInclude identifier="styles" trim_to="0"$>
<link rel="stylesheet" href="<$MTLink template="styles"$>" type="text/css" />
<MTIf name="main_template">
<link rel="alternate" type="application/atom+xml" title="Atom" href="<$MTLink template="atom"$>" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="<$MTLink template="rss"$>" />
</MTIf>
<MTIf name="search_results_template">
<link rel="alternate" type="application/atom+xml" title="<$MTBlogName encode_html="1"$>: Search Results" href="<$MTCGIPath$><$MTSearchScript$>?<$MTGetVar name="search_type"$>=<$MTSearchString encode_url="1"$>&Template=feed&IncludeBlogs=<$MTSearchIncludeBlogs$>" />
</MTIf>

Set the page title depending on the type of page being generated (determined by variables set in the including template)

    <title>
<MTIf name="entry_template">
    <$MTGetVar name="page_title"$> - <$MTBlogName encode_html="1"$>
<MTElse>
        <MTIf name="main_index">
    <$MTBlogName encode_html="1"$>
        <MTElse>
    <$MTBlogName encode_html="1"$>: <$MTGetVar name="page_title"$>
        </MTIf>
</MTIf>
    </title>

Set various link relationships depending on the type of page being generated (determined by variables set in the including template)

<MTIf name="main_index">
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$MTLink template="rsd"$>" />
</MTIf>
<MTIf name="main_template">
<MTUnless name="main_index">
<link rel="start" href="<$MTBlogURL$>" title="Home" />
</MTUnless>
</MTIf>
<MTIf name="datebased_archive">
<MTArchivePrevious><link rel="prev" href="<$MTArchiveLink$>" title="<$MTArchiveTitle encode_html="1"$>" /></MTArchivePrevious>
<MTArchiveNext><link rel="next" href="<$MTArchiveLink$>" title="<$MTArchiveTitle encode_html="1"$>" /></MTArchiveNext>
</MTIf>
<MTIf name="entry_template">
<MTEntryPrevious><link rel="prev" href="<$MTEntryPermalink$>" title="<$MTEntryTitle encode_html="1"$>" /></MTEntryPrevious>
<MTEntryNext><link rel="next" href="<$MTEntryPermalink$>" title="<$MTEntryTitle encode_html="1"$>" /></MTEntryNext>
</MTIf>
<MTIf name="feedback_template">
<$MTEntryTrackbackData$>
<script type="text/javascript" src="<$MTLink template="javascript"$>"></script>
</MTIf>
<MTIf name="main_template">
<$MTCCLicenseRDF$>
</MTIf>
</head>

Start of the HTML body

<body class="<MTIf name="body_class"><$MTGetVar name="body_class"$> </MTIf><$MTGetVar name="page_layout" default="layout-wtt"$>"<MTIf name="body_onload"> onload="<$MTGetVar name="body_onload"$>"</MTIf>>
    <div id="container">
        <div id="container-inner">
            <div id="header">
                <div id="header-inner">
                    <div id="header-content">
<MTIf name="main_index">
                        <h1 id="header-name"><a href="<$MTBlogURL$>" accesskey="1"><$MTBlogName encode_html="1"$></a></h1>
                        <h2 id="header-description"><$MTBlogDescription$></h2>
<MTElse>
                        <div id="header-name"><a href="<$MTBlogURL$>" accesskey="1"><$MTBlogName encode_html="1"$></a></div>
                        <div id="header-description"><$MTBlogDescription$></div>
</MTIf>
                    </div>
                </div>
            </div>
            <div id="content">
                <div id="content-inner">
                    <div id="alpha">
                        <div id="alpha-inner">