massive css beauty
git-svn-id: http://yolanda.mister-muffin.de/svn@256 7eef14d0-6ed0-489d-bf55-20463b2d70dbmain
Before Width: | Height: | Size: 223 B After Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 699 B |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 582 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 477 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 788 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.0 KiB |
@ -1,98 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://web.resource.org/cc/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
>
|
||||
|
||||
<xsl:template name="frontpage">
|
||||
|
||||
<img class="logo-big" src="/images/logo-big.png" alt="Yolanda logo (320x100)" />
|
||||
|
||||
<div class="search">
|
||||
<form method="get" enctype="text/plain">
|
||||
<xsl:attribute name="action">
|
||||
<xsl:value-of select="$site_strings[@id='path_results']" />
|
||||
</xsl:attribute>
|
||||
<fieldset>
|
||||
<input type="text" name="query" size="40" /><br />
|
||||
<input type="submit">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$locale_strings[@id='button_find']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<input type="submit" name="lucky">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$locale_strings[@id='button_lucky']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<input type="submit" name="advanced">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$locale_strings[@id='button_advanced']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="toplists">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_query_latestadditions']" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$locale_strings[@id='query_latestadditions']" />
|
||||
</a>
|
||||
<xsl:value-of select="$locale_strings[@id='separator']" />
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_query_mostdownloads']" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$locale_strings[@id='query_mostdownloads']" />
|
||||
</a>
|
||||
<xsl:value-of select="$locale_strings[@id='separator']" />
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_query_mostviews']" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$locale_strings[@id='query_mostviews']" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<xsl:call-template name="tagcloud"/>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="tagcloud">
|
||||
<xsl:variable name="max" select="//tagcloud/tag/count[not(//tagcloud/tag/count > .)]" />
|
||||
<xsl:variable name="min" select="//tagcloud/tag/count[not(//tagcloud/tag/count < .)]" />
|
||||
<div class="tagcloud">
|
||||
<xsl:for-each select="//tagcloud/tag">
|
||||
<xsl:sort select="text" order="ascending" data-type="text" />
|
||||
<a class="tag">
|
||||
<xsl:attribute name="style">
|
||||
<!--
|
||||
scale *should* be logarihmic, but that's not widely supportet
|
||||
-->
|
||||
font-size:<xsl:value-of select="round((32-12)*(number(count)-number($min))div (number($max)-number($min)))+12" />px
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_results']" />
|
||||
tag:
|
||||
<xsl:value-of select="text" />
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:value-of select="text" />
|
||||
<!--
|
||||
unnecessary, except for debug purposes
|
||||
(<xsl:value-of select="count" />)
|
||||
-->
|
||||
</a>
|
||||
‌
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://web.resource.org/cc/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
>
|
||||
|
||||
<xsl:template name="message">
|
||||
|
||||
<div class="messagebox">
|
||||
<xsl:attribute name="id">
|
||||
<xsl:value-of select="/page/message/@type" />
|
||||
</xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="/page/message/@type='error'">
|
||||
</xsl:when>
|
||||
<xsl:when test="/page/message/@type='information'">
|
||||
</xsl:when>
|
||||
<xsl:when test="/page/message/@type='warning'">
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
<xsl:variable name="messagetext" select="/page/message/@text" />
|
||||
<strong>
|
||||
<xsl:value-of select="$locale_strings[@id=$messagetext]" />
|
||||
<xsl:value-of select="/page/message/@value" />
|
||||
<!-- probably one can do this on one line, dunno how -->
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
@ -0,0 +1,72 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://web.resource.org/cc/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
>
|
||||
|
||||
<xsl:template name="searchbar">
|
||||
|
||||
<div class="searchbar">
|
||||
|
||||
<form method="get" enctype="text/plain">
|
||||
<xsl:attribute name="action">
|
||||
<xsl:value-of select="$site_strings[@id='path_results']" />
|
||||
</xsl:attribute>
|
||||
<fieldset>
|
||||
<label for="query">
|
||||
<xsl:value-of select="$locale_strings[@id='search']" />:<br />
|
||||
</label>
|
||||
<input type="text" name="query">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:if test="//results/@argument='query'">
|
||||
<xsl:value-of select="//results/@value" />
|
||||
</xsl:if>
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<input type="submit">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$locale_strings[@id='button_find']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<ul id="queries" role="navigation">
|
||||
|
||||
<li id="latestadditions">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_query_latestadditions']" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$locale_strings[@id='query_latestadditions']" />
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li id="mostviews">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_query_mostviews']" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$locale_strings[@id='query_mostviews']" />
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li id="mostdownloads">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_query_mostdownloads']" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$locale_strings[@id='query_mostdownloads']" />
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://web.resource.org/cc/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
>
|
||||
|
||||
<xsl:template name="splashbox">
|
||||
|
||||
<div class="splashbox">
|
||||
|
||||
<!--
|
||||
This is placeholder content,
|
||||
final content will be OH HELO THAR.
|
||||
-->
|
||||
|
||||
<h1>Welcome to the Yolanda Video CMS Demo Platform</h1>
|
||||
|
||||
<p>Weit hinten, hinter den Wortbergen, fern der Länder Vokalien und Konsonantien leben die Blindtexte. Abgeschieden wohnen Sie in Buchstabhausen an der Küste des Semantik, eines großen Sprachozeans. Ein kleines Bächlein namens Duden fließt durch ihren Ort und versorgt sie mit den nötigen Regelialien. Es ist ein paradiesmatisches Land, in dem einem gebratene Satzteile in den Mund fliegen. Nicht einmal von der allmächtigen Interpunktion werden die Blindtexte beherrscht - ein geradezu unorthographisches Leben.Doch alles Gutzureden konnte es nicht überzeugen und so dauerte es nicht lange, bis ihm ein paar heimtückische Werbetexter auflauerten, es mit Longe und Parole betrunken machten und es dann in ihre Agentur schleppten, wo sie es für ihre Projekte wieder und wieder mißbrauchten. Und wenn es nicht umgeschrieben wurde, dann benutzen Sie es immernoch.</p>
<p>Unterwegs traf es eine Copy. Die Copy warnte das Blindtextchen, da, wo sie herkäme wäre sie zigmal umgeschrieben worden und alles, was von ihrem Ursprung noch übrig wäre, sei das Wort „und“ und das Blindtextchen solle umkehren und wieder in sein eigenes, sicheres Land zurückkehren.</p>
<p>Doch alles Gutzureden konnte es nicht überzeugen und so dauerte es nicht lange, bis ihm ein paar heimtückische Werbetexter auflauerten, es mit Longe und Parole betrunken machten und es dann in ihre Agentur schleppten, wo sie es für ihre Projekte wieder und wieder mißbrauchten. Und wenn es nicht umgeschrieben wurde, dann benutzen Sie es immernoch.</p>
|
||||
</div>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://web.resource.org/cc/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
>
|
||||
|
||||
<xsl:template name="tagcloud">
|
||||
|
||||
<xsl:variable name="max" select="//tagcloud/tag/count[not(//tagcloud/tag/count > .)]" />
|
||||
<xsl:variable name="min" select="//tagcloud/tag/count[not(//tagcloud/tag/count < .)]" />
|
||||
<div class="tagcloud">
|
||||
<xsl:for-each select="//tagcloud/tag">
|
||||
<xsl:sort select="text" order="ascending" data-type="text" />
|
||||
<a class="tag">
|
||||
<xsl:attribute name="style">
|
||||
<!--
|
||||
scale /should/ be logarithmic, but that's not widely supported
|
||||
-->
|
||||
font-size:<xsl:value-of select="round((32-12)*(number(count)-number($min))div (number($max)-number($min)))+12" />px
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_results']" />
|
||||
tag:
|
||||
<xsl:value-of select="text" />
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:value-of select="text" />
|
||||
<!--
|
||||
unnecessary, except for debug purposes
|
||||
(<xsl:value-of select="count" />)
|
||||
-->
|
||||
</a>
|
||||
‌
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|