11e3c1e757
the default page header. The following changes were made: - Remove the Donate to FreeBSD button added a few days ago - Add stylesheet entries for the new button. Note this button is pure CSS, and does not use background images for the rounded boarders. - Move the 'Donate' and 'Contact' links from the header: o 'Donate' is now 'Hardware Donations' in the menu dropdown. o 'Contact' is now in the footer. o The 'Donate' link that existed in the menu dropdown is now 'Monetary Donations'. - The header2.donatebutton entity is now used for this button, so translation teams can modify localized header.l10n.ent for the button text. - Comment the header2.searchnav entity entries in header.ent for now, until I figure out what to do with them. This change should have zero UI regressions, and solves the problem of the previously added button pushing the 'New to FreeBSD' button down into the security text.[1] Requested by: deb Reported by: emaste[1], gavin[1]
170 lines
5.1 KiB
XML
170 lines
5.1 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!DOCTYPE xsl:stylesheet PUBLIC "-//FreeBSD//DTD FreeBSD XSLT 1.0 DTD//EN"
|
|
"http://www.FreeBSD.org/XML/www/share/xml/xslt10-freebsd.dtd">
|
|
<!-- $FreeBSD$ -->
|
|
|
|
<xsl:stylesheet version="1.0"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:cvs="http://www.FreeBSD.org/XML/CVS"
|
|
xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
xmlns:str="http://exslt.org/strings"
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
exclude-result-prefixes="cvs xhtml"
|
|
extension-element-prefixes="str">
|
|
|
|
<xsl:variable name="rsslink" select="''"/>
|
|
|
|
<xsl:variable name="rsstitle" select="''"/>
|
|
|
|
<xsl:variable name="svnKeyword">
|
|
<xsl:value-of select="normalize-space(//cvs:keyword[1])"/>
|
|
</xsl:variable>
|
|
|
|
<xsl:variable name="date">
|
|
<xsl:value-of select="str:split($svnKeyword, ' ')[4]"/>
|
|
</xsl:variable>
|
|
|
|
<xsl:variable name="title">
|
|
<xsl:value-of select="/xhtml:html/xhtml:head/xhtml:title"/>
|
|
</xsl:variable>
|
|
|
|
<xsl:output type="xml" encoding="&xml.encoding;"
|
|
indent="yes"
|
|
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
|
|
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" />
|
|
|
|
<xsl:template match="/">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title><xsl:value-of select="$title" /></title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=&xml.encoding;" />
|
|
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
|
|
<xsl:copy-of select="/xhtml:html/xhtml:head/xhtml:meta"/>
|
|
<link rel="shortcut icon" href="&enbase;/favicon.ico" type="image/x-icon" />
|
|
<link rel="stylesheet" media="screen" href="&stylesheet;" type="text/css"/>
|
|
<link rel="icon" href="&enbase;/favicon.ico" type="image/x-icon" />
|
|
<xsl:copy-of select="/xhtml:html/xhtml:head/xhtml:link"/>
|
|
<xsl:call-template name="process.rss.link"/>
|
|
&header1.googlejs;
|
|
</head>
|
|
|
|
<body>
|
|
<div id="containerwrap">
|
|
<div id="container">
|
|
&header2.skipnav;
|
|
|
|
<div id="headercontainer">
|
|
<div id="header">
|
|
|
|
&header2.logo-red.label;
|
|
|
|
<div id="headerlogoleft">
|
|
&header2.logo-red;
|
|
</div> <!-- HEADERLOGOLEFT -->
|
|
|
|
<div id="headerlogoright">
|
|
&header2.donatebutton;
|
|
|
|
&header2.searchnav.label;
|
|
|
|
&header2.searchnav;
|
|
|
|
<div id="search">
|
|
<form action="&cgibase;/search.cgi" method="get">
|
|
<div>
|
|
<h2 class="blockhide"><label for="words">&header2.word.search;</label></h2>
|
|
|
|
&header2.searchinputs;
|
|
</div>
|
|
</form>
|
|
</div> <!-- SEARCH -->
|
|
</div> <!-- HEADERLOGORIGHT -->
|
|
</div> <!-- HEADER -->
|
|
|
|
&header2.topnav.label;
|
|
|
|
&header2.topnav;
|
|
|
|
</div> <!-- HEADERCONTAINER -->
|
|
|
|
<div id="content">
|
|
<xsl:call-template name="process.content"/>
|
|
</div> <!-- CONTENT -->
|
|
|
|
<div id="footer">
|
|
<xsl:call-template name="process.footer"/>
|
|
</div> <!-- FOOTER -->
|
|
</div> <!-- CONTAINER -->
|
|
</div> <!-- CONTAINERWRAP -->
|
|
</body>
|
|
</html>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="process.rss.link">
|
|
<xsl:if test="$rsslink != ''">
|
|
<link rel="alternate" type="application/rss+xml"
|
|
title="{$rsstitle}" href="{$rsslink}" />
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="process.sidewrap">
|
|
<xsl:choose xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
|
<xsl:when test="xhtml:html/xhtml:body/@class = 'navinclude.about'">
|
|
&nav.about;
|
|
</xsl:when>
|
|
|
|
<xsl:when test="xhtml:html/xhtml:body/@class = 'navinclude.community'">
|
|
&nav.community;
|
|
</xsl:when>
|
|
|
|
<xsl:when test="xhtml:html/xhtml:body/@class = 'navinclude.developers'">
|
|
&nav.developers;
|
|
</xsl:when>
|
|
|
|
<xsl:when test="xhtml:html/xhtml:body/@class = 'navinclude.docs'">
|
|
&nav.docs;
|
|
</xsl:when>
|
|
|
|
<xsl:when test="xhtml:html/xhtml:body/@class = 'navinclude.download'">
|
|
&nav.download;
|
|
</xsl:when>
|
|
|
|
<xsl:when test="xhtml:html/xhtml:body/@class = 'navinclude.gnome'">
|
|
&nav.gnome;
|
|
</xsl:when>
|
|
|
|
<xsl:when test="xhtml:html/xhtml:body/@class = 'navinclude.ports'">
|
|
&nav.ports;
|
|
</xsl:when>
|
|
|
|
<xsl:when test="xhtml:html/xhtml:body/@class = 'navinclude.support'">
|
|
&nav.support;
|
|
</xsl:when>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="process.content">
|
|
<div id="sidewrap">
|
|
<xsl:call-template name="process.sidewrap"/>
|
|
</div> <!-- SIDEWRAP -->
|
|
|
|
<div id="contentwrap">
|
|
<xsl:call-template name="process.contentwrap"/>
|
|
</div> <!-- CONTENTWRAP -->
|
|
|
|
<br class="clearboth" />
|
|
</xsl:template>
|
|
|
|
<xsl:template name="process.contentwrap">
|
|
<h1><xsl:value-of select="$title" /></h1>
|
|
|
|
<xsl:copy-of xmlns:xhtml="http://www.w3.org/1999/xhtml" select="xhtml:html/xhtml:body/*" />
|
|
</xsl:template>
|
|
|
|
<xsl:template name="process.footer">
|
|
©right;<br/>
|
|
<xsl:if test="$date != ''">
|
|
&lastmod; <xsl:value-of select="$date"/>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|