Changeset 3088

Show
Ignore:
Timestamp:
12/10/10 14:11:41
Author:
johnsa
Message:

public web client: prefix featured event images that need it

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • releases/bedework-3.7/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/featuredEvents.xsl

    r3086 r3088  
    6060  <xsl:template match="image"> 
    6161    <xsl:param name="singleMode">false</xsl:param> 
     62    <xsl:variable name="imgPrefix"><xsl:choose><xsl:when test="not(starts-with(name,'http') or starts-with(name,'/'))"><xsl:value-of select="$resourcesRoot"/>/featured/</xsl:when></xsl:choose></xsl:variable> 
    6263    <xsl:choose> 
    6364      <xsl:when test="link = ''"> 
    6465        <img width="241" height="189"> 
    65           <xsl:attribute name="src"><xsl:value-of select="$resourcesRoot"/>/featured/<xsl:value-of select="name"/></xsl:attribute> 
     66          <xsl:attribute name="src"><xsl:value-of select="$imgPrefix"/><xsl:value-of select="name"/></xsl:attribute> 
    6667          <xsl:attribute name="alt"><xsl:value-of select="toolTip"/></xsl:attribute> 
    6768          <xsl:if test="$singleMode = 'true'"> 
     
    7475          <xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute> 
    7576          <img width="241" height="189"> 
    76             <xsl:attribute name="src"><xsl:value-of select="$resourcesRoot"/>/featured/<xsl:value-of select="name"/></xsl:attribute> 
     77            <xsl:attribute name="src"><xsl:value-of select="$imgPrefix"/><xsl:value-of select="name"/></xsl:attribute> 
    7778            <xsl:attribute name="alt"><xsl:value-of select="toolTip"/></xsl:attribute> 
    7879            <xsl:if test="$singleMode = 'true'">