More RSS feeds

main
Inga 🏳‍🌈 14 years ago
parent 41f9ed3c67
commit 61f20dcb91
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      templates/Full/Conversations.xslt
  3. 7
      templates/Full/Thread.xslt
  4. 1
      templates/Full/WhoIsOnline.xslt
  5. 11
      templates/Rss/Conversations.xslt
  6. 11
      templates/Rss/Thread.xslt
  7. 34
      templates/Rss/WhoIsOnline.xslt
  8. 42
      templates/Rss/elems/ConversationInfo.xslt

@ -4,6 +4,8 @@
<xsl:import href="elems\ConversationInfo.xslt"/>
<xsl:template name="specificTitle">Ëè÷íûå ñîîáùåíèÿ</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template>
<xsl:template name="rssRelativeLink">/My/Conversations/</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -6,6 +6,9 @@
<xsl:value-of select="currentLocation/thread/name"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template>
<xsl:variable name="baseLink">/Thread/<xsl:value-of select="/root/currentLocation/thread/id"/>/</xsl:variable>
<xsl:template name="rssRelativeLink"><xsl:value-of select="$baseLink"/>0/reversed</xsl:template>
<xsl:template name="specific">
<xsl:if test="not(get/param[@name='headers'] = 'false')">
<xsl:call-template name="threadInfo"/>
@ -22,7 +25,7 @@
<td>
<xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent">
<xsl:with-param name="baseLink">/Thread/<xsl:value-of select="currentLocation/thread/id"/>/</xsl:with-param>
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
</td>
</tr>
@ -39,7 +42,7 @@
<td>
<xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent">
<xsl:with-param name="baseLink">/Thread/<xsl:value-of select="currentLocation/thread/id"/>/</xsl:with-param>
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
</td>
</tr>

@ -2,6 +2,7 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="elems\Main.xslt"/>
<xsl:template name="specificTitle">Ïîëüçîâàòåëè</xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<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\ConversationInfo.xslt"/>
<xsl:template name="specificTitle">
<xsl:text>Ëè÷íûå ñîîáùåíèÿ</xsl:text>
</xsl:template>
<xsl:template name="specific">
<xsl:apply-templates select="conversations/conversation"/>
</xsl:template>
</xsl:stylesheet>

@ -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\PostInfo.xslt"/>
<xsl:template name="specificTitle">
<xsl:value-of select="currentLocation/thread/name"/>
</xsl:template>
<xsl:template name="specific">
<xsl:apply-templates select="posts/post"/>
</xsl:template>
</xsl:stylesheet>

@ -0,0 +1,34 @@
<?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:template name="specificTitle">Êòî â îíëàéíå</xsl:template>
<xsl:template name="specific">
<xsl:apply-templates select="users/user"/>
</xsl:template>
<xsl:template match="users/user">
<item>
<title>
<xsl:value-of select="name"/>
</title>
<description>
<xsl:text>Ïîñåùàåò </xsl:text>
<xsl:value-of select="lastUrl"/>
</description>
<link>
<xsl:value-of select="$mainUrl"/>
<xsl:text>/Users/Online/</xsl:text>
</link>
<guid>
<xsl:text>online-</xsl:text>
<xsl:value-of select="id"/>
<xsl:text>-</xsl:text>
<xsl:value-of select="lastActivity/date/ticks"/>
</guid>
<pubDate>
<xsl:apply-templates select="lastActivity/date" mode="dateTime"/>
</pubDate>
</item>
</xsl:template>
</xsl:stylesheet>

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="Windows-1251"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="conversation">
<item>
<title>
<xsl:text>Íîâîå ñîîáùåíèå â îáùåíèè ñ ïîëüçîâàòåëåì </xsl:text>
<xsl:value-of select="interlocutor/account/user/name"/>
</title>
<description>
<xsl:text>Âñåãî â îáñóæäåíèè </xsl:text>
<xsl:value-of select="totalMessages"/>
<xsl:text> ñîîáùåíèé</xsl:text>
<xsl:if test="totalNewMessages &gt; 0">
<xsl:text>, èç íèõ </xsl:text>
<xsl:value-of select="totalNewMessages"/>
<xsl:text> íåïðî÷èòàííûõ</xsl:text>
</xsl:if>
</description>
<link>
<xsl:value-of select="$mainUrl"/>
<xsl:text>/My/Conversations/Conversation/</xsl:text>
<xsl:value-of select="interlocutor/account/id"/>
<xsl:text>/</xsl:text>
<xsl:if test="afterLastRead&lt;=lastMessageId">
<xsl:text>p</xsl:text>
<xsl:value-of select="afterLastRead"/>
</xsl:if>
</link>
<guid>
<xsl:text>conversation-</xsl:text>
<xsl:value-of select="interlocutor/account/id"/>
<xsl:text>-</xsl:text>
<xsl:value-of select="lastMessageId"/>
</guid>
<pubDate>
<xsl:apply-templates select="lastMessageDate/date" mode="dateTime"/>
</pubDate>
</item>
</xsl:template>
</xsl:stylesheet>
Loading…
Cancel
Save