RSS for UploadList

main
Inga 🏳‍🌈 14 years ago
parent 0ca2c88e67
commit aa3008def2
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      templates/Full/UploadList.xslt
  3. 11
      templates/Rss/UploadList.xslt
  4. 36
      templates/Rss/elems/UploadInfo.xslt

@ -3,6 +3,8 @@
<xsl:import href="elems\Main.xslt"/> <xsl:import href="elems\Main.xslt"/>
<xsl:import href="elems\UploadInfo.xslt"/> <xsl:import href="elems\UploadInfo.xslt"/>
<xsl:template name="specificTitle">Ŕďëîŕä</xsl:template> <xsl:template name="specificTitle">Ŕďëîŕä</xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template>
<xsl:template name="rssRelativeLink"><xsl:value-of select="/root/currentBaseUrl"/>0-reversed</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr> <tr>

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="Windows-1251"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="elems\Main.xslt"/>
<xsl:import href="elems\UploadInfo.xslt"/>
<xsl:template name="specificTitle">
<xsl:text>Àïëîàä</xsl:text>
</xsl:template>
<xsl:template name="specific">
<xsl:apply-templates select="uploads/upload"/>
</xsl:template>
</xsl:stylesheet>

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="Windows-1251"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="upload">
<xsl:if test="not(uploader/user/name = /root/session/user/name)">
<item>
<title>
<xsl:value-of select="filename"/>
<xsl:text> îò </xsl:text>
<xsl:value-of select="uploader/user/name"/>
</title>
<description>
<xsl:text><![CDATA[<img src="]]></xsl:text>
<xsl:value-of select="$mainUrl"/>
<xsl:text>/Upload/Item/</xsl:text>
<xsl:value-of select="id"/>
<xsl:text><![CDATA[" border="0" style="max-width:200px;max-height:150px;"/>]]></xsl:text>
</description>
<link>
<xsl:value-of select="$mainUrl"/>
<xsl:text>/Upload/Info/</xsl:text>
<xsl:value-of select="id"/>
<xsl:text>/</xsl:text>
</link>
<guid>
<xsl:text>upload-</xsl:text>
<xsl:value-of select="id"/>
</guid>
<pubDate>
<xsl:apply-templates select="uploadDate/date" mode="dateTime"/>
</pubDate>
</item>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Loading…
Cancel
Save