1
0
Fork 0
GalleryShare/GalleryShare/Embed/DirectoryListing.xslt

39 lines
1.0 KiB
HTML
Raw Normal View History

2016-07-08 08:30:42 +00:00
<?xml version="1.0" encoding="UTF-8"?>
2016-07-06 20:08:28 +00:00
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
2016-07-06 20:14:39 +00:00
<xsl:output method="html" encoding="utf-8" indent="yes" />
<xsl:template match="/">
2016-07-06 20:14:39 +00:00
<xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;</xsl:text>
<html>
<head>
2016-07-06 20:08:28 +00:00
<title><xsl:value-of select="/DirectoryListing/CurrentDirectory" /> - GalleryShare</title>
</head>
<body>
2016-07-06 20:08:28 +00:00
<h1><xsl:value-of select="/DirectoryListing/CurrentDirectory" /> - GalleryShare</h1>
2016-07-06 20:14:39 +00:00
2016-07-08 08:30:42 +00:00
<main>
<xsl:apply-templates select="//ListingEntry" />
</main>
2016-07-06 20:08:28 +00:00
<style>
html, body { font-size: 100%; }
body
{
font-family: sans-serif;
}
</style>
</body>
</html>
</xsl:template>
2016-07-08 08:30:42 +00:00
<xsl:template match="ListingEntry[@Type='File']">
<figure class='preview file'>
<img src="{Name}?thumbnail" />
</figure>
</xsl:template>
<xsl:template match="ListingEntry[@Type='Directory']">
<figure class='preview directory'>
(coming soon)
</figure>
</xsl:template>
2016-07-06 20:08:28 +00:00
</xsl:stylesheet>