doc/en_US.ISO8859-1/htdocs/index.xsl
Glen Barber 11e3c1e757 Per request of deb@, put the "Donate to FreeBSD" button in
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]
2012-12-12 21:32:25 +00:00

341 lines
12 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" [
<!ENTITY title "The FreeBSD Project">
]>
<!-- $FreeBSD$ -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="http://www.FreeBSD.org/XML/www/lang/share/xml/libcommon.xsl"/>
<xsl:import href="http://www.FreeBSD.org/XML/www/share/xml/xhtml.xsl"/>
<!-- these params should be externally bound. The values
here are not used actually -->
<xsl:param name="advisories.xml" select="'none'"/>
<xsl:param name="notices.xml" select="'none'"/>
<xsl:param name="mirrors.xml" select="'none'"/>
<xsl:param name="news.press.xml-master" select="'none'"/>
<xsl:param name="news.press.xml" select="'none'"/>
<xsl:param name="news.project.xml-master" select="'none'"/>
<xsl:param name="news.project.xml" select="'none'"/>
<xsl:param name="events.xml-master" select="'none'"/>
<xsl:param name="events.xml" select="'none'"/>
<xsl:param name="html.header.script.google" select="'IGNORE'"/>
<xsl:variable name="title">&title;</xsl:variable>
<xsl:template name="process.content">
<div id="frontcontainer">
<div id="frontmain">
<div id="frontfeaturecontainer">
<div id="frontfeatureleft">
<div id="frontfeaturecontent">
<h1>
Based on BSD &unix;
</h1>
<p>FreeBSD&reg; is an advanced
operating system for modern server,
desktop, and embedded computer <a
href="&base;/platforms/">platforms</a>.
FreeBSD's code base has undergone
over thirty years of continuous
development, improvement, and
optimization. It is developed and
maintained by a <a
href="&base;/doc/en_US.ISO8859-1/articles/contributors/staff-committers.html">large
team of individuals</a>. FreeBSD
provides advanced networking,
impressive security features, and
world class performance and is used
by some of the world's <a
href="&base;/doc/en_US.ISO8859-1/books/handbook/nutshell.html#introduction-nutshell-users">busiest
web sites</a> and most pervasive
embedded networking and storage
devices.</p>
<div
id="txtfrontfeaturelink"> &#187;<a
href="&base;/about.html"
title="Learn More">Learn More</a>
</div> <!-- TXTFRONTFEATURELINK -->
<div
style="width:640px; margin: 16px 16px 16px 32px; auto">
<h2>Security Notice</h2>
<p align="justify">On Sunday
11th of November, an intrusion
was detected on two machines
within the FreeBSD.org cluster.
We have found
no evidence of any modifications
that would put any end user at
risk. Please read our <a
href="&base;/news/2012-compromise.html">
report</a> for more details.</p>
</div>
</div> <!-- FRONTFEATURECONTENT -->
</div> <!-- FRONTFEATURELEFT -->
<div id="frontfeaturemiddle">
<div class="frontgetroundbox">
<div class="frontgettop"><div><b style="display: none">.</b></div></div>
<div class="frontgetcontent">
<a href="&base;/where.html">Get FreeBSD Now</a>
</div> <!-- frontgetcontent -->
<div class="frontgetbot"><div><b style="display: none">.</b></div></div>
</div> <!-- frontgetroundbox -->
<div id="frontreleases">
<div id="frontreleasescontent" class="txtshortcuts">
<h2><a href="&base;/releases/">LATEST RELEASES</a></h2>
<ul id="frontreleaseslist">
<li>Production:&nbsp;<a
href="&u.rel.announce;">&rel.current;</a>,&nbsp;<a href="&u.rel2.announce;">&rel2.current;</a></li>
<li>Legacy: <a
href="&u.rel3.announce;">&rel3.current;</a></li>
<xsl:if test="'&beta.testing;' != 'IGNORE'">
<li>Upcoming: <a
href="&base;/where.html#helptest">&betarel.current;-&betarel.vers;</a></li>
</xsl:if>
<xsl:if test="'&beta2.testing;' != 'IGNORE'">
<li>Upcoming: <a
href="&base;/where.html#helptest">&betarel2.current;-&betarel2.vers;</a></li>
</xsl:if>
</ul>
</div> <!-- FRONTRELEASESCONTENT -->
</div> <!-- FRONTRELEASES -->
</div> <!-- FRONTFEATUREMIDDLE -->
<div id="frontfeatureright">
<h2 class="blockhide">Language Links</h2>
<div id="languagenav">
<ul id="languagenavlist">
<li>
<a href="&base;/de/" title="German">de</a>
</li>
<li>
<a href="&base;/" title="English">en</a>
</li>
<li>
<a href="&base;/es/" title="Spanish">es</a>
</li>
<li>
<a href="&base;/fr/" title="French">fr</a>
</li>
<li>
<a href="&base;/hu/" title="Hungarian">hu</a>
</li>
<li>
<a href="&base;/it/" title="Italian">it</a>
</li>
<li>
<a href="&base;/ja/" title="Japanese">ja</a>
</li>
<li>
<a href="&base;/nl/" title="Dutch">nl</a>
</li>
<li>
<a href="&base;/ru/" title="Russian">ru</a>
</li>
<li class="last-child">
<a href="&base;/zh_CN/" title="Chinese (Simplified)">zh_CN</a>
</li>
</ul>
</div> <!-- LANGUAGENAV -->
<div id="mirror">
<form action="&cgibase;/mirror.cgi" method="get">
<div>
<h2 class="blockhide"><label for="MIRRORSEL">Mirror</label></h2>
<select id="mirrorsel" name="goto">
<xsl:call-template name="html-index-mirrors-options-list">
<xsl:with-param name="mirrors.xml" select="$mirrors.xml" />
</xsl:call-template>
</select>
</div> <!-- unnamed -->
<input type="submit" value="Go" />
</form>
</div> <!-- MIRROR -->
<div id="frontshortcuts">
<div id="frontshortcutscontent" class="txtshortcuts">
<h2>SHORTCUTS</h2>
<ul id="frontshortcutslist">
<li>
<a href="&base;/community/mailinglists.html" title="Mailing Lists">Mailing Lists</a>
</li>
<li>
<a href="&base;/support/bugreports.html" title="Report a Bug">Report a Bug</a>
</li>
<li>
<a href="&base;/doc/en_US.ISO8859-1/books/faq/index.html" title="FAQ">FAQ</a>
</li>
<li>
<a href="&base;/doc/en_US.ISO8859-1/books/handbook/index.html" title="Handbook">Handbook</a>
</li>
<li>
<a href="&base;/ports/index.html" title="Ports">Ports</a>
</li>
</ul>
</div> <!-- FRONTSHORTCUTSCONTENT -->
</div> <!-- FRONTSHORTCUTS -->
<div class="frontnewroundbox">
<div class="frontnewtop"><div><b style="display: none">.</b></div></div>
<div class="frontnewcontent">
<a href="&base;/projects/newbies.html">New to FreeBSD?</a>
</div> <!-- frontnewcontent -->
<div class="frontnewbot"><div><b style="display: none">.</b></div></div>
</div> <!-- frontnewroundbox -->
</div> <!-- FEATURERIGHT -->
</div> <!-- FRONTFEATURECONTAINER -->
<br class="clearboth" />
<div id="frontnemscontainer">
<div id="frontnews">
<div id="frontnewscontent" class="txtnewsevent">
<h2>LATEST NEWS</h2>
<div class="newseventswrap">
<xsl:call-template name="html-index-news-project-items">
<xsl:with-param name="news.project.xml-master" select="$news.project.xml-master" />
<xsl:with-param name="news.project.xml" select="$news.project.xml" />
</xsl:call-template>
<div>
<ul class="newseventslist">
<li class="first-child">
<a href="&base;/news/newsflash.html" title="More News">More News</a>
</li>
<li class="last-child">
<a href="&base;/news/rss.xml" title="News RSS Feed"><img class="rssimage" src="&base;/layout/images/ico_rss.png" width="27" height="12" alt="News RSS Feed" /></a>
</li>
</ul>
</div> <!-- unnamed -->
</div> <!-- newseventswrap -->
</div> <!-- FRONTNEWSCONTENT -->
</div> <!-- FRONTNEWS -->
<div class="frontseparator"><b style="display: none">.</b></div>
<div id="frontevents">
<div id="fronteventscontent" class="txtnewsevent">
<h2>UPCOMING EVENTS</h2>
<div class="newseventswrap">
<xsl:call-template name="html-index-events-items">
<xsl:with-param name="events.xml-master" select="$events.xml-master" />
<xsl:with-param name="events.xml" select="$events.xml" />
</xsl:call-template>
<div>
<ul class="newseventslist">
<li class="only-child">
<a href="&base;/events/" title="More Events">More Events</a>
</li>
</ul>
</div> <!-- unnamed -->
</div> <!-- newseventswrap -->
</div> <!-- FRONTEVENTSCONTENT -->
</div> <!-- FRONTEVENTS -->
<div class="frontseparator"><b style="display: none">.</b></div>
<div id="frontmedia">
<div id="frontmediacontent" class="txtnewsevent">
<h2>IN THE MEDIA</h2>
<div class="newseventswrap">
<xsl:call-template name="html-index-news-press-items">
<xsl:with-param name="news.press.xml-master" select="$news.press.xml-master" />
<xsl:with-param name="news.press.xml" select="$news.press.xml" />
</xsl:call-template>
<div>
<ul class="newseventslist">
<li class="only-child">
<a href="&base;/news/press.html" title="More Media">More Media</a>
</li>
</ul>
</div> <!-- unnamed -->
</div> <!-- newseventswrap -->
</div> <!-- FRONTMEDIACONTENT -->
</div> <!-- FRONTMEDIA -->
<div class="frontseparator"><b style="display: none">.</b></div>
<div id="frontsecurity">
<div id="frontsecuritycontent" class="txtnewsevent">
<h2>SECURITY ADVISORIES</h2>
<div class="newseventswrap">
<xsl:call-template name="html-index-advisories-items">
<xsl:with-param name="advisories.xml" select="$advisories.xml" />
<xsl:with-param name="type" select="'advisory'" />
</xsl:call-template>
<div>
<ul class="newseventslist">
<li class="first-child">
<a href="&base;/security/advisories.html" title="More Security Advisories">More</a>
</li>
<li class="last-child">
<a href="&base;/security/rss.xml" title="Security Advisories RSS Feed"><img class="rssimage" src="&base;/layout/images/ico_rss.png" width="27" height="12" alt="Security Advisories RSS Feed" /></a>
</li>
</ul>
</div> <!-- unnamed -->
</div> <!-- newseventswrap -->
<br />
<h2>ERRATA NOTICES</h2>
<div class="newseventswrap">
<xsl:call-template name="html-index-advisories-items">
<xsl:with-param name="advisories.xml" select="$notices.xml" />
<xsl:with-param name="type" select="'notice'" />
</xsl:call-template>
<div>
<ul class="newseventslist">
<li class="first-child">
<a href="&base;/security/notices.html" title="More Errata Notices">More</a>
</li>
<li class="last-child">
<a href="&base;/security/errata.xml" title="Errata Notices RSS Feed"><img class="rssimage" src="&base;/layout/images/ico_rss.png" width="27" height="12" alt="Errata Notices RSS Feed" /></a>
</li>
</ul>
</div> <!-- unnamed -->
</div> <!-- newseventswrap -->
</div> <!-- FRONTSECURITYCONTENT -->
</div> <!-- FRONTSECURITY -->
<br class="clearboth" />
</div> <!-- FRONTNEMSCONTAINER -->
</div> <!-- FRONTMAIN -->
</div> <!-- FRONTCONTAINER -->
</xsl:template>
<xsl:template name="process.footer">
&copyright;
The mark FreeBSD is a registered trademark of The FreeBSD
Foundation and is used by The FreeBSD Project with the
permission of <a
href="http://www.freebsdfoundation.org/documents/Guidelines.shtml">The
FreeBSD Foundation</a>.
<a href="&base;/mailto.html" title="&header2.word.contact;">&header2.word.contact;</a>
</xsl:template>
</xsl:stylesheet>