Location: PHPKode > projects > ExiteCMS > themes/exitecms8/templates/header.tpl
{***************************************************************************}
{* ExiteCMS Web Application Framework                                      *}
{***************************************************************************}
{* Copyright 2008-2009 Exite BV, The Netherlands                           *}
{* for support, please visit http://www.exitecms.org                       *}
{***************************************************************************}
{*                                                                         *}
{* Theme name: ExiteCMS v8 default theme                                   *}
{* Author    : Rollsroyce, ExiteCMS development team                       *}
{*                                                                         *}
{***************************************************************************}
<!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" xml:lang="{$_env.lang_code}" lang="{$_env.lang_code}" dir="{$_env.text_dir}">
<head>
	<title>ExiteCMS v8.0{if $_env.params.pageTitle != ""} - {$_env.params.pageTitle}{/if}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="Content-Language" content="{$_env.lang_code}" />
{if $_env.config.development}
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="expires" content="-1" />
	<meta http-equiv="cache-control" content="no-cache" />
{/if}
	<meta name="description" content="{$_env.params.pageDescription}" />
	<meta name="keywords" content="{$_env.params.pageKeywords}" />
	<meta name="generator" content="ExiteCMS v{$_env.config.version}.{$_env.config.revision}" />

	<link href="{$_env.theme}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
	<script type="text/javascript">
	/* <![CDATA[ */
		var ExiteCMS_baseurl = "{$_env.base_url}";
		var ExiteCMS_themeurl = "{$_env.theme}";
	/* ]]> */
	</script>
	{asset name="exitecms.js" type="js"}
	{asset name="exitecms.css" type="css"}
<!-- ADD_HEADERS -->
	{asset name=$_env.params.colorVariation|cat:".css" type="css"}

	{has_role_assigned role="__WEBMASTER__" description="Theme background"}
	<!-- Make clear to the user that we're in webmaster mode ! -->
	<style type="text/css">
	body{ldelim} background-image:url({$_env.theme}/images/adminbg.png); {rdelim}
	</style>
	{/has_role_assigned}

	{if_section name="bottomleft + bottomcenter + bottomright" count=2 exact=yes}
	<style type="text/css">
	#bottomleft, #bottomcenter, #bottomright {ldelim} width:49%; {rdelim}
	</style>
	{/if_section}

	{if_section name="bottomleft + bottomcenter + bottomright" count=1 exact=yes}
	<style type="text/css">
	#bottomleft, #bottomcenter, #bottomright {ldelim} float:none; width:100%; {rdelim}
	</style>
	{/if_section}

	{if_section name="left" count=0 exact=yes}
	<style type="text/css">
	#right {ldelim} width:100%; float:none; {rdelim}
	</style>
	{/if_section}

	{if_section name="centerleft + centerright" count=1 exact=yes}
	<style type="text/css">
	#centerleft, #centerright {ldelim} float:none; width:100%; {rdelim}
	</style>
	{/if_section}

	<!--[if IE 6]>
		{literal}
		<script type="text/javascript">
		/* <![CDATA[ */
			var fixIEHoverBehaviour = function() {
				var sfEls = document.getElementById("navwrapper").getElementsByTagName("LI");
				for (var i=0; i<sfEls.length; i++) {
					sfEls[i].onmouseover=function() {
						this.className+=" sfhover";
					}
					sfEls[i].onmouseout=function() {
						this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
					}
				}
			}
			addOnloadEvent(fixIEHoverBehaviour);
		/* ]]> */
		</script>
		{/literal}

	<![endif]-->
	<!--[if lte IE 7]>

		<style type="text/css">
		img {ldelim}behavior: url("{$_env.theme}/js/iepngfix.htc");{rdelim}
		</style>

		{literal}
		<script type="text/javascript">
		/* <![CDATA[ */
			function fixIEButtonBehaviour() {
				var buttons = document.getElementsByTagName('button');
				for (var i=0; i<buttons.length; i++) {
					if(buttons[i].onclick || buttons[i].type != 'submit') continue;
					buttons[i].onclick = function () {
						for(j=0; j<this.form.elements.length; j++)
							if( this.form.elements[j].tagName == 'BUTTON' )
						this.form.elements[j].disabled = true;
						this.disabled=false;
						this.value = this.attributes.getNamedItem("value").nodeValue ;
					}
				}
			}
			addOnloadEvent(fixIEButtonBehaviour);
		/* ]]> */
		</script>
		{/literal}

	<![endif]-->

</head>
{***************************************************************************}
{* End of Template                                                         *}
{***************************************************************************}
Return current item: ExiteCMS