Created
March 27, 2017 18:53
-
-
Save ctbarber/6a662fef5e45891f8da08f1c77b617de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- begin template match for event boxes snippet --> | |
<xsl:template match="table[@class='snippet-event-boxes']" mode="copy"> | |
<div class="row uthsc-events"> | |
<xsl:choose> | |
<xsl:when test="$ou:action = 'pub'"> | |
<xsl:value-of select="concat('<?php readfile("http://events.uthsc.edu/widgets/uthsc-events-feed-emerald.php?category=',replace(tbody/tr[2]/td[2]/node(),' ',''),'&return_limit=',tbody/tr[3]/td[2]/node(),'"); ?>')" disable-output-escaping="yes"/> | |
</xsl:when> | |
<xsl:otherwise> | |
<div class="callout secondary"><p><span class="fa fa-info-circle fa-2x" style="vertical-align: -20%;margin-right: 0.3em;color:#002664;" aria-hidden="true"></span> The Events will only show up once the page has been published.</p></div> | |
</xsl:otherwise> | |
</xsl:choose> | |
</div> | |
</xsl:template> | |
<!-- end template match for event boxes snippet --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment