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" />
|
2017-07-21 19:43:58 +00:00
|
|
|
|
|
|
|
<xsl:output method="html" doctype-system="about:legacy-compat" />
|
|
|
|
|
2016-07-06 19:03:37 +00:00
|
|
|
<xsl:template match="/">
|
|
|
|
<html>
|
|
|
|
<head>
|
2016-07-17 14:45:20 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
2017-07-21 19:43:58 +00:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<title><xsl:value-of select="/DirectoryListing/CurrentDirectory" /> • GalleryShare</title>
|
2016-07-06 19:03:37 +00:00
|
|
|
</head>
|
2016-07-06 19:23:56 +00:00
|
|
|
<body>
|
2016-07-17 20:38:31 +00:00
|
|
|
<h1><xsl:value-of select="/DirectoryListing/CurrentDirectory" /></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
|
|
|
|
2016-07-17 20:38:31 +00:00
|
|
|
<footer>
|
2017-07-21 19:56:23 +00:00
|
|
|
Powered by <a href="https://github.com/sbrl/GalleryShare">GalleryShare</a> •
|
|
|
|
Built by Starbeamrainbowlabs •
|
2016-07-17 20:38:31 +00:00
|
|
|
<img src="/!images/Badge-License.svg" />
|
|
|
|
</footer>
|
2016-07-17 17:14:29 +00:00
|
|
|
|
2016-07-08 08:50:08 +00:00
|
|
|
<link rel="stylesheet" href="/!Theme.css" />
|
2016-07-06 19:23:56 +00:00
|
|
|
</body>
|
2016-07-06 19:03:37 +00:00
|
|
|
</html>
|
|
|
|
</xsl:template>
|
2016-07-08 08:30:42 +00:00
|
|
|
|
|
|
|
<xsl:template match="ListingEntry[@Type='File']">
|
2016-07-18 19:46:51 +00:00
|
|
|
<a href="{Name}" class="preview-backdrop">
|
2016-07-17 17:05:33 +00:00
|
|
|
<figure class="preview file" style="background-image: url('{Name}?type=thumbnail');">
|
2016-08-10 16:53:29 +00:00
|
|
|
<figcaption><xsl:value-of select="DisplayName" /></figcaption>
|
2016-07-17 17:05:33 +00:00
|
|
|
</figure>
|
2016-07-18 19:46:51 +00:00
|
|
|
</a>
|
2016-07-08 08:30:42 +00:00
|
|
|
</xsl:template>
|
2017-07-21 19:56:23 +00:00
|
|
|
|
2016-07-08 08:30:42 +00:00
|
|
|
<xsl:template match="ListingEntry[@Type='Directory']">
|
2016-07-18 19:46:51 +00:00
|
|
|
<a href="{Name}" class="preview-backdrop">
|
2016-08-10 20:44:28 +00:00
|
|
|
<figure class="preview directory" style="background-image: url('{Name}?type=thumbnail');">
|
2016-08-10 16:53:29 +00:00
|
|
|
<figcaption><xsl:value-of select="DisplayName" /></figcaption>
|
2016-07-17 17:05:33 +00:00
|
|
|
</figure>
|
2016-07-18 19:46:51 +00:00
|
|
|
</a>
|
2016-07-08 08:30:42 +00:00
|
|
|
</xsl:template>
|
2016-07-06 20:08:28 +00:00
|
|
|
</xsl:stylesheet>
|