Changeset 3489

Show
Ignore:
Timestamp:
03/03/12 22:06:03
Author:
johnsa
Message:

public client: support for uploaded event images in detailed event view

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/event.xsl

    r3448 r3489  
    266266 
    267267      <xsl:if test="xproperties/node()[name()='X-BEDEWORK-IMAGE']"> 
     268        <xsl:variable name="imgPrefix"> 
     269          <xsl:choose> 
     270            <xsl:when test="starts-with(xproperties/X-BEDEWORK-IMAGE/values/text,'http')"></xsl:when> 
     271            <xsl:otherwise><xsl:value-of select="$bwEventImagePrefix"/></xsl:otherwise> 
     272          </xsl:choose> 
     273        </xsl:variable> 
    268274        <img class="bwEventImage"> 
    269           <xsl:attribute name="src"><xsl:value-of select="xproperties/node()[name()='X-BEDEWORK-IMAGE']/values/text" /></xsl:attribute> 
     275          <xsl:attribute name="src"><xsl:value-of select="$imgPrefix"/><xsl:value-of select="xproperties/node()[name()='X-BEDEWORK-IMAGE']/values/text" /></xsl:attribute> 
    270276        </img> 
    271277      </xsl:if>