Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!-- 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('&lt;?php readfile(&quot;http://events.uthsc.edu/widgets/uthsc-events-feed-emerald.php?category=',replace(tbody/tr[2]/td[2]/node(),' ',''),'&amp;return_limit=',tbody/tr[3]/td[2]/node(),'&quot;); ?&gt;')" 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