summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/webpresence/webpresence_xhtml_images.xsl
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /kopete/plugins/webpresence/webpresence_xhtml_images.xsl
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/plugins/webpresence/webpresence_xhtml_images.xsl')
-rw-r--r--kopete/plugins/webpresence/webpresence_xhtml_images.xsl60
1 files changed, 60 insertions, 0 deletions
diff --git a/kopete/plugins/webpresence/webpresence_xhtml_images.xsl b/kopete/plugins/webpresence/webpresence_xhtml_images.xsl
new file mode 100644
index 00000000..8254a674
--- /dev/null
+++ b/kopete/plugins/webpresence/webpresence_xhtml_images.xsl
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml">
+
+ <!--
+ XHTML 1.0 Strict - protocol text replaced with icons
+
+ NOTE: You will have to create a dir 'images' at the
+ upload location containing the files named below.
+ -->
+
+ <!--
+ Import the XHTML XSL sheet, and replace the <protocol>
+ handling with our own template.
+ -->
+
+ <xsl:import href="webpresence_xhtml.xsl"/>
+
+ <!--
+ You can change the image directory with this variable.
+ -->
+
+ <xsl:variable name="images">images</xsl:variable>
+
+ <xsl:template match="protocol">
+ <xsl:choose>
+ <xsl:when test=".='MSNProtocol'">
+ <img src="{$images}/msn_protocol.png" alt="MSN" title="MSN"/>
+ </xsl:when>
+ <xsl:when test=".='ICQProtocol'">
+ <img src="{$images}/icq_protocol.png" alt="ICQ" title="ICQ"/>
+ </xsl:when>
+ <xsl:when test=".='JabberProtocol'">
+ <img src="{$images}/jabber_protocol.png" alt="Jabber" title="Jabber"/>
+ </xsl:when>
+ <xsl:when test=".='YahooProtocol'">
+ <img src="{$images}/yahoo_protocol.png" alt="Yahoo" title="Yahoo"/>
+ </xsl:when>
+ <xsl:when test=".='AIMProtocol'">
+ <img src="{$images}/aim_protocol.png" alt="AIM" title="AIM"/>
+ </xsl:when>
+ <xsl:when test=".='IRCProtocol'">
+ <img src="{$images}/irc_protocol.png" alt="IRC" title="IRC"/>
+ </xsl:when>
+ <xsl:when test=".='SMSProtocol'">
+ <img src="{$images}/sms_protocol.png" alt="SMS" title="SMS"/>
+ </xsl:when>
+ <xsl:when test=".='GaduProtocol'">
+ <img src="{$images}/gadu_protocol.png" alt="Gadu-Gadu" title="Gadu-Gadu"/>
+ </xsl:when>
+ <xsl:when test=".='WPProtocol'">
+ <img src="{$images}/winpopup_protocol.png" alt="WinPopup" title="WinPopup"/>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:template>
+
+</xsl:stylesheet>
+
+<!-- vim: set ts=4 sts=4 sw=4: -->