|
<xsl:template name="Estilo1" match="Row[@Style='Estilo1']" mode="itemstyle">
<xsl:variable name="Fecha_Noticia">
<xsl:value-of select="ddwrt:FormatDateTime(string(@ArticleStartDate) ,1033 ,'dd-MM-yyyy')" />
</xsl:variable>
<xsl:variable name="SafeLinkUrl">
<xsl:call-template name="OuterTemplate.GetSafeLink">
<xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="SafeImageUrl">
<xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
<xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="DisplayTitle">
<xsl:call-template name="OuterTemplate.GetTitle">
<xsl:with-param name="Title" select="@Title"/>
<xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="LinkTarget">
<xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
</xsl:variable>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="Estilo1Title" colspan="2">
<xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
<a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
<xsl:value-of select="$DisplayTitle"/>
</a>
</td>
</tr>
<tr class="Estilo1Border">
<xsl:if test="string-length($SafeImageUrl) != 0">
<td class="Estilo1Image">
<a href="{$SafeLinkUrl}" target="{$LinkTarget}">
<img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" /></a>
</td>
</xsl:if>
<td class="Estilo1Description" valign="top">
<span style="font-size: smaller;">
<xsl:value-of select="$Fecha_Noticia"/> - Publicado por: <xsl:value-of select="@ArticleByLine" />
</span><br/>
<xsl:value-of select="substring(@PublishingPageContent, 0, 200)" disable-output-escaping="yes"/>...
</td>
</tr>
</table>
</xsl:template> |