Skip to content

Instantly share code, notes, and snippets.

@ctbarber
Created March 27, 2017 18:53
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 ctbarber/6a662fef5e45891f8da08f1c77b617de to your computer and use it in GitHub Desktop.
Save ctbarber/6a662fef5e45891f8da08f1c77b617de to your computer and use it in GitHub Desktop.
<!-- 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