<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib uri="infoglue-management" prefix="management" %>
<%@ taglib uri="infoglue-content" prefix="content" %>
<%@ taglib uri="infoglue-common" prefix="common" %>
<%@ taglib uri="infoglue-page" prefix="page" %>
<%@ taglib uri="infoglue-structure" prefix="structure" %>
 
<page:deliveryContext id="deliveryContext"/>    
<page:pageContext id="pc"/>

<c:set var="metaInfoContentId" value="${pc.metaInformationContentId}"/>
<content:content id="articleContent" propertyName="Article" useInheritance="true"/>
<c:if test="${articleContent != null}">
	<content:contentVersion id="articleContentVersion" content="${articleContent}"/>
	<c:if test="${articleContentVersion != null}">
		<management:principal id="articleEditor" contentVersion="${articleContentVersion}"/>
	</c:if>
</c:if>
<content:contentAttribute id="keywords" contentId="${metaInfoContentId}" attributeName="MetaInfo" disableEditOnSight="true"/>
<content:contentAttribute id="keywordsArticle" contentId="${articleContent.contentId}" attributeName="MetaDescription" disableEditOnSight="true"/>
<content:contentAttribute id="description" contentId="${metaInfoContentId}" attributeName="Description" disableEditOnSight="true"/>
<content:contentAttribute id="articleTitle" contentId="${articleContent.contentId}" attributeName="Title" disableEditOnSight="true"/>

<!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">
<head>
	<title>
		<c:out value="${pc.pageTitle}"/> - The InfoGlue Community
	</title>
    <meta name="verify-v1" content="007AJLc48pVBiUBms3PfXzDCYu7WmgKlSzoCn0Sszf0=" />
	<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
	<meta http-equiv="content-language" content="<c:out value="${pc.locale.language}"/>"/>
	<meta name="generator" content="InfoGlue CMS"/>
  	<meta name="robots" content="all, index, follow"/>
	<meta name="description" content="<c:out value="${description}"/>"/>
	<meta name="keywords" content="<c:out value="${keywords}" />"/>
	<meta name="description" content="InfoGlue the Open Source Content Management System, based on Java , XML and Open Source Göteborg, Stockholm."/>
	<meta name="keywords" content="InfoGlue, CMS, Portal,Java, J2EE, Jarkarta, Apache, Tomcat, OSS, Open Source, Linux, Solution, Content, Management, Software, Development, Free, GPL, Portal, Portlets, Göteborg, Stockholm"/>
	<meta name="publisher-email" content="info@infoglue.org"/>
	<meta name="page-topic" content="java open source software"/>
	<meta name="classification" content="InfoGlue, Java, J2EE, Jakarta, Apache, Tomcat, OSS, Open Source, Linux, Solution, Content, Management, Software, Development, Free, GPL"/>
	<meta name="abstract" content="InfoGlue the Open Source Content Management System, based on Java , XML and Open Source."/>

	<c:if test=’${articleEditor != null}’><meta name="author" content="<c:out value="${articleEditor.firstName}"/> <c:out value="${articleEditor.lastName}"/>"/></c:if>
	<meta name="LAST-MODIFIED" content="<fmt:formatDate value=’${articleContentVersion.modifiedDateTime}’ pattern=’yyyy-MM-dd’/>"/>
	<meta name="copyright" content="Copyright InfoGlue Community 2008"/>
	
	<meta name="DC.Title" content="<c:out value="${pc.pageTitle}"/>"/>
	<link rel="SCHEMA.dc" href="http://purl.org/metadata/dublin_core_elements#title"/>
	
	<link rel="SCHEMA.dc" href="http://purl.org/metadata/dublin_core_elements#creator"/>
	<meta name="DC.Subject" content="<c:out value="${keywords}"/>"/>
	<link rel="SCHEMA.dc" href="http://purl.org/metadata/dublin_core_elements#subject"/>

	<meta name="DC.Subject" content="<c:out value="${keywordsArticle}"/>"/>
	<meta name="DC.Subject" content="<c:out value="${articleTitle}"/>"/>
	<link rel="SCHEMA.dc" href="http://purl.org/metadata/dublin_core_elements#subject"/>

	<meta name="DC.Description" content="<c:out value="${description}"/>"/>
	<link rel="SCHEMA.dc" href="http://purl.org/metadata/dublin_core_elements#description"/>

	<c:if test=’${articleEditor != null}’>
	<meta name="DC.Creator.PersonalName" content="<c:out value="${articleEditor.firstName}"/> <c:out value="${articleEditor.lastName}"/>"/>
	<link rel="SCHEMA.dc" href="http://purl.org/metadata/dublin_core_elements#creator"/>
	</c:if>

	<meta name="DC.Type" content="Text.Article"/>
	<link rel="SCHEMA.dc" href="http://purl.org/metadata/dublin_core_elements#type"/>

	<meta name="DC.Date" content="(SCHEME=ISO8601) <fmt:formatDate value=’${articleContent.publishDateTime}’ pattern=’yyyy-MM-dd’/>"/>
	<link rel="SCHEMA.dc" href="http://purl.org/metadata/dublin_core_elements#date"/>

	<meta name="DC.Format" content="(SCHEME=IMT) text/html"/>
	<link rel="SCHEMA.dc" href="http://purl.org/metadata/dublin_core_elements#format"/>

	<meta name="DC.Date.X-MetadataLastModified" content="(SCHEME=ISO8601) <fmt:formatDate value=’${articleContentVersion.modifiedDateTime}’ pattern=’yyyy-MM-dd’/>"/>
	<link rel="SCHEMA.dc" href="http://purl.org/metadata/dublin_core_elements#date"/>

	<meta name="DC.Language" content="(SCHEME=ISO639-1) <c:out value="${pc.locale}"/>"/>
	<link rel="SCHEMA.dc" href="http://purl.org/metadata/dublin_core_elements#language"/>

	<meta name="DC.Publisher" content="<c:out value="${articleEditor.firstName}"/> <c:out value="${articleEditor.lastName}"/>"/>
	<link rel="SCHEMA.dc" href="http://purl.org/metadata/dublin_core_elements#publisher"/>

	<meta name="DC.Creator.PersonalName.Address" content="<c:out value="${articleEditor.email}"/>"/>
	<link rel="SCHEMA.dc" href="http://sunsite.auc.dk/RFC/rfc/rfc2046.html"/>

	<meta name="DC.Identifier" content="<c:out value="${pc.currentPageUrl}"/>"/>
	<link rel="SCHEMA.dc" href="http://purl.org/metadata/dublin_core_elements#identifier"/>

	<meta name="DC.Rights" content="Copyright InfoGlue Community 2008"/>
	<link rel="SCHEMA.dc" href="http://purl.org/metadata/dublin_core_elements#rights"/>

	<link rel="shortcut icon" href="<content:assetUrl propertyName="favIcon"/>"/>
	
	<page:deliveryContext id="deliveryContext" disableNiceUri="true"/>
	<structure:boundPages id="cssPages" propertyName="CSS Pages"/>
	<c:forEach var="cssPage" items="${cssPages}"> 
	
	    <common:urlBuilder id="cssUrl" baseURL="${cssPage.url}" query="" excludedQueryStringParameters="siteNodeId"></common:urlBuilder>
	    <link href="<c:out value="${cssUrl}"/>" rel="stylesheet" type="text/css" />
	
	</c:forEach>
	<page:deliveryContext id="deliveryContext" disableNiceUri="false"/>
	
	<structure:boundPage id="startPage" propertyName="StartPage"/>
	<structure:boundPages id="topPages" propertyName="TopNavigationPages"/>
	<structure:boundPage id="startPage" propertyName="StartPage"/>
	<structure:boundPage id="siteMapPage" propertyName="SiteMapPage"/>
	<structure:boundPage id="searchResultPage" propertyName="SearchPage"/>
	<structure:boundPages id="footerPages" propertyName="FooterNavigationPages"/>
	
	<structure:siteNodeLanguages id="languages"/>
	<c:forEach var="language" items="${languages}" varStatus="count">
		<c:if test="${pc.languageId != language.id}">
	    	<structure:pageUrlAfterLanguageChange id="langUrl" languageCode="${language.languageCode}"/>
	       	<c:set var="langChangeLabel" value="${language.name}"/>
	    </c:if>
	</c:forEach>

</head>
<body>
<h1 style="display:none;">InfoGlue CMS</h1>
<div id="wrapper">
        <div id="header">
			<div class="toppIcons">
            	<ul>
                	<li class="<c:out value="${langChangeLabel}"/>"><a href="<c:out value="${langUrl}" escapeXml="false"/>" title="<c:out value="${langChangeLabel}" escapeXml="false"/>"><c:out value="${langChangeLabel}" escapeXml="false"/></a></li>
                    <li><a href="http://sourceforge.net/projects/infoglue" title="Sitemap"><img src="http://sourceforge.net/sflogo.php?group_id=73706&amp;type=1" border="0" alt="InfoGlue on Sourceforge"/></a></li>
                    <li class="sitemap"><a href="<c:out value="${siteMapPage.url}" escapeXml="false"/>" title="Sitemap">Sitemap</a></li>
                    <li class="logIn"><a href="javascript:alert(’Not yet implemented’);" title="Logga in">Log on</a></li>
                </ul>
            </div>
            <div id="menucontainer">
                <ul>
					<structure:isCurrentSiteNode id="isStartPage" siteNodeId="${startPage.siteNodeId}"/>
				    <li title=""><a <c:if test="${isStartPage}">class="selected"</c:if> href="<c:out value="${startPage.url}" escapeXml="false"/>" title="<c:out value="${startPage.navigationTitle}" escapeXml="false"/>"><c:out value="${startPage.navigationTitle}" escapeXml="false"/></a></li>
	                
	                <c:forEach var="childPage" items="${topPages}">
	                    <structure:isSiteNodeParentToCurrentSiteNode id="highLightPage" siteNodeId="${childPage.siteNodeId}"/>
	                    <li title=""><a <c:if test="${highLightPage}">class="selected"</c:if> href="<c:out value="${childPage.url}" escapeXml="false"/>" title="<c:out value="${childPage.navigationTitle}" escapeXml="false"/>"><c:out value="${childPage.navigationTitle}" escapeXml="false"/></a></li>
					</c:forEach>
                </ul>
            	<div class="searchField"><form style="padding: 0px; margin: 0px;" name="topSearchForm" action="<c:out value="${searchResultPage.url}" escapeXml="false"/>" method="post"><input type="text" id="query" name="query" size="20" class="topSearch" title="Search the site" value="&nbsp;Search the site" onfocus="this.value=’’;" onblur="if(this.value==’’)this.value=’&nbsp;Search the site’;"/><input type="button" class="searchbutton" onclick="document.topSearchForm.submit();" title="Search" /></form></div>
    		</div>
		</div>
        </div>
        
        <div id="container">
			<ig:slot id="layout"></ig:slot>           
        </div>        
    <br clear="all" />
    <div id="footer">
    	<div class="footerText">
	    	<div style="float: left; padding-left: 20px;">
	    		&copy; 2007 InfoGlue Community &nbsp;&nbsp; |&nbsp;&nbsp; <a href="mailto:info@infoglue.org">mailto:info@infoglue.org</a>
	    	</div>
	    	<div style="float: right; padding-right: 20px;">
                <c:forEach var="childPage" items="${footerPages}" varStatus="i">
                	<c:if test="${i.index != 0}"> &nbsp;&nbsp; | &nbsp;&nbsp; </c:if>
                	<a href="<c:out value="${childPage.url}" escapeXml="false"/>" title="<c:out value="${childPage.navigationTitle}" escapeXml="false"/>"><c:out value="${childPage.navigationTitle}" escapeXml="false"/></a>
				</c:forEach>
	    	</div>
    	</div>
    </div>
    
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
	</script>
	<script type="text/javascript">
	_uacct = "UA-2298068-1";
	urchinTracker();
	</script>
	    
</body>
</html>