This file contains hidden or 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
<t:set id="lastcat" value="null" /> | |
<t:list> | |
<t:list id="resource_type"> | |
<t:if test="lastcat != name">${label}<t:set id="lastcat" value="name" /></t:if> | |
</t:list> | |
</t:list> |
This file contains hidden or 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
<t:if test="length > 0"> | |
<t:set id="randomOne" value="random(length)+1" /> | |
<t:list> | |
<t:if test="index == randomOne"> | |
<div class="blue"> | |
<h4 class="fact">Did You Know...</h4> | |
<div class="content">${description}</div> | |
</div> | |
</t:if> | |
</t:list> |
This file contains hidden or 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
<t:if test="length > 0"> | |
<div class="list"><h3>My Heading</h3> | |
<t:list> | |
<div class="list-item"><a href="${url}">${title}</a></div> | |
<t:list> | |
</div> | |
</t:if> | |
<t:else> | |
<p>No results for your parameters</p> | |
</t:else> |
This file contains hidden or 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
<t:if test="length > 0"><!-- is there a list? --> | |
<t:set id="iRandom" value="random(length)+1" /><!-- set a variable equal to a number between 1 and the length of the list --> | |
<!-- if random number is within 2 of the last item in the list, subtract 2 --> | |
<t:if test="iRandom >= (length-2) && iRandom <= length"> | |
<t:set id="iRandom" value="iRandom-2" /> | |
</t:if> | |
<!-- if the variable is now negative due to the subtraction above, reset it to 1 (the first list item) --> | |
<t:if test="iRandom <= 0"> |
This file contains hidden or 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
<form action="/blog/" class="topics-filter" > | |
<select name="topics"> | |
<option value="">Filter by Issue</option> | |
<t:data name="issue" class="categories" parent="/topics" /> | |
<t:list id="issue"> | |
<t:if test="param.topics == name"> | |
<option value="${name}" selected="selected">${label}</option> | |
</t:if> | |
<t:else> | |
<option value="${name}">${label}</option> |
This file contains hidden or 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
<t:set id="strippedbody" value="toText(body, '')" /> | |
<t:set id="blurb" value="substring(strippedbody, 0, 256) " /> | |
<div class="blurb"><t:value id="blurb"/></div> |
This file contains hidden or 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
<ul class="list"> | |
<t:list id="rss.channel.item" maxlength="5"> | |
<li><a href="${link}" target="_blank">${title}</a></li> | |
</t:list> | |
</ul> |
This file contains hidden or 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
<a href="${url}?templateName=template-35423733">${title}</a> |