Skip to content

Instantly share code, notes, and snippets.

@c01nd01r
Created June 18, 2014 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c01nd01r/940658c2ef7a2df92a2e to your computer and use it in GitHub Desktop.
Save c01nd01r/940658c2ef7a2df92a2e to your computer and use it in GitHub Desktop.
<time> xslt в UMI.CMS
<xsl:template name="time" >
<xsl:param name="unix-timestamp"/>
<time datetime="{document(concat('udata://system/convertDate/', $unix-timestamp ,'/(Y-m-d)'))/udata}">
<xsl:value-of select="document(concat('udata://system/convertDate/', $unix-timestamp ,'/(d.m.Y)'))/udata"/>
</time>
</xsl:template>
<!-- Вызов шаблона-->
<xsl:call-template name="time">
<xsl:with-param select="//property[@name='publish_time']/value/@unix-timestamp" name="unix-timestamp"/>
</xsl:call-template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment