﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    
    <xsl:output omit-xml-declaration ="yes"/>
    
     <xsl:template match="/">
          <xsl:variable name ="FirstName" select ="normalize-space(AjaxRequest/Params/FirstName)"/>
          <xsl:variable name ="PromoteKey" select ="normalize-space(AjaxRequest/Params/PromoteKey)"/>
          <xsl:variable name ="Ticket" select ="normalize-space(AjaxRequest/Params/Ticket)"/>
          <xsl:variable name ="Mode" select ="normalize-space(AjaxRequest/Params/Mode)"/>
          <xsl:variable name ="ItemName" select ="normalize-space(AjaxRequest/Params/ItemName)"/>
          <xsl:variable name ="ItemID" select ="normalize-space(AjaxRequest/Params/ItemID)"/>
         <xsl:variable name ="HostName" select ="normalize-space(AjaxRequest/HostName)"/>
          <xsl:variable name ="Item" select ="normalize-space(AjaxRequest/Params/Item)"/>
          <div>
               <div style="margin:10px;font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <xsl:value-of select ="AjaxRequest/Params/EmailContent" disable-output-escaping ="yes"/>
               </div>
               <!--<div style="margin:10px;">
                    <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                         <b>
                              <xsl:if test ="$Mode = 'Brand' or $Mode = 'BrandSuggestedLinks'">
                              You have been added to&#xa0;<xsl:value-of select ="$PromoteKey"/>&#xa0;on LifeSpace by&#xa0;<xsl:value-of select ="$FirstName"/>.
                              </xsl:if>
                              --><!--<xsl:if test ="$Mode = 'Publication'">
                                   You have been added to&#xa0;<xsl:value-of select ="$ItemName"/>&#xa0;on LifeSpace by&#xa0;<xsl:value-of select ="$FirstName"/>.
                              </xsl:if>--><!--
                         </b>
                    </span>
               </div>-->
               <xsl:if test ="$Mode = 'Brand' or $Mode = 'BrandSuggestedLinks'">
                    <div style="margin:10px;">
                         <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                              <b>View the&#xa0;<xsl:value-of select ="$Item"/>&#xa0;Community: </b>
                              <a href="http://{$HostName}/validateTicket.aspx?ticket={$Ticket}&amp;returnurl=http://{$HostName}/{$PromoteKey}" target="_blank">
                                   http://<xsl:value-of select ="$HostName"/>/<xsl:value-of select ="$PromoteKey"/>
                              </a>
                         </span>
                    </div>
               </xsl:if>
               <xsl:if test ="$Mode = 'Publication'">
                    <div style="margin:10px;">
                         <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                              <b>View the Publication: </b>
                              <a href="http://{$HostName}/validateTicket.aspx?ticket={$Ticket}&amp;returnurl=http://{$HostName}/{$PromoteKey}" target="_blank">
                                   http://<xsl:value-of select ="$HostName"/>/<xsl:value-of select ="$PromoteKey"/>
                              </a>
                         </span>
                    </div>
               </xsl:if>
               <xsl:if test ="$Mode = 'Template'">
                    <div style="margin:10px;">
                         <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                              <b>View the Template: </b>
                              <a href="http://{$HostName}/validateTicket.aspx?ticket={$Ticket}&amp;returnurl=http://{$HostName}/{$PromoteKey}" target="_blank">
                                   http://<xsl:value-of select ="$HostName"/>/<xsl:value-of select ="$PromoteKey"/>
                              </a>
                         </span>
                    </div>
               </xsl:if>
               <!--<xsl:if test ="$Mode = 'Brand'">
                    <div style="margin:10px;">
                         <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                              <b>
                                   Alter My Settings for&#xa0;<xsl:value-of select ="$PromoteKey"/>: 
                              </b>
                              <a href="http://{$HostName}/validateTicket.aspx?ticket={$Ticket}&amp;returnurl=http://{$HostName}/{$PromoteKey}/UserSettings" target="_blank">
                                   http://<xsl:value-of select ="$HostName"/>/<xsl:value-of select ="$PromoteKey"/>/UserSettings
                              </a>
                         </span>
                    </div>
               </xsl:if>-->
               <xsl:if test ="$Mode = 'Brand' or $Mode = 'BrandSuggestedLinks'">
                    <div style="margin-left:10px;margin-top:15px;">
                         <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                              Alter My Notification Settings: 
                              <a href="http://{$HostName}/validateTicket.aspx?ticket={$Ticket}&amp;returnurl=http://{$HostName}/Settings.aspx" target="_blank">
                                   http://<xsl:value-of select ="$HostName"/>/Settings.aspx
                              </a>
                         </span>
                    </div>
               </xsl:if>
               <div style="margin-left:10px;margin-top:15px;">
                    <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                         Open LifeSpace: 
                         <a href="http://{$HostName}/validateTicket.aspx?ticket={$Ticket}&amp;returnurl=http://{$HostName}" target="_blank">http://<xsl:value-of select ="$HostName"/>
                     </a>
                    </span>
               </div>
               <div style="margin-left:10px;margin-top:20px;">
                    <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                         *** Please do not reply to this automated message ***
                    </span>
               </div>
          </div>
     </xsl:template>
</xsl:stylesheet>
