~ubuntu-branches/ubuntu/saucy/kopete/saucy-proposed

« back to all changes in this revision

Viewing changes to plugins/webpresence/webpresence_html_images.xsl

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-06-21 02:22:39 UTC
  • Revision ID: package-import@ubuntu.com-20130621022239-63l3zc8p0nf26pt6
Tags: upstream-4.10.80
ImportĀ upstreamĀ versionĀ 4.10.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<xsl:stylesheet version="1.0"
 
3
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
4
 
 
5
        <!--
 
6
                HTML 4.01 Transitional - protocol text replaced with icons
 
7
 
 
8
                NOTE: You will have to create a dir 'images' at the
 
9
                upload location containing the files named below.
 
10
        -->
 
11
 
 
12
        <!--
 
13
                Import the HTML XSL sheet, and replace the <protocol>
 
14
                handling with our own template.
 
15
        -->
 
16
 
 
17
        <xsl:import href="webpresence_html.xsl"/>
 
18
 
 
19
        <!--
 
20
                You can change the image directory with this variable.
 
21
        -->
 
22
 
 
23
        <xsl:variable name="images">images</xsl:variable>
 
24
 
 
25
        <xsl:template match="protocol">
 
26
                <xsl:choose>
 
27
                        <xsl:when test=".='MSNProtocol'">
 
28
                                <img src="{$images}/msn_protocol.png" alt="MSN" title="MSN"/>
 
29
                        </xsl:when>
 
30
                        <xsl:when test=".='ICQProtocol'">
 
31
                                <img src="{$images}/icq_protocol.png" alt="ICQ" title="ICQ"/>
 
32
                        </xsl:when>
 
33
                        <xsl:when test=".='JabberProtocol'">
 
34
                                <img src="{$images}/jabber_protocol.png" alt="Jabber" title="Jabber"/>
 
35
                        </xsl:when>
 
36
                        <xsl:when test=".='YahooProtocol'">
 
37
                                <img src="{$images}/yahoo_protocol.png" alt="Yahoo" title="Yahoo"/>
 
38
                        </xsl:when>
 
39
                        <xsl:when test=".='AIMProtocol'">
 
40
                                <img src="{$images}/aim_protocol.png" alt="AIM" title="AIM"/>
 
41
                        </xsl:when>
 
42
                        <xsl:when test=".='IRCProtocol'">
 
43
                                <img src="{$images}/irc_protocol.png" alt="IRC" title="IRC"/>
 
44
                        </xsl:when>
 
45
                        <xsl:when test=".='SMSProtocol'">
 
46
                                <img src="{$images}/sms_protocol.png" alt="SMS" title="SMS"/>
 
47
                        </xsl:when>
 
48
                        <xsl:when test=".='GaduProtocol'">
 
49
                                <img src="{$images}/gadu_protocol.png" alt="Gadu-Gadu" title="Gadu-Gadu"/>
 
50
                        </xsl:when>
 
51
                        <xsl:when test=".='WPProtocol'">
 
52
                                <img src="{$images}/winpopup_protocol.png" alt="WinPopup" title="WinPopup"/>
 
53
                        </xsl:when>
 
54
                </xsl:choose>
 
55
        </xsl:template>
 
56
 
 
57
</xsl:stylesheet>
 
58
 
 
59
<!-- vim: set ts=4 sts=4 sw=4: -->