// smarty foreach limit iterations
// http://stackoverflow.com/questions/3474927/smarty-foreach-loop-10-times-and-stop
{foreach from=$entries key=i item=topic name=foo}
{if $smarty.foreach.foo.index == 10}
{php}break;{/php}
{/if}
{if $topic.topic_style == question}
<li>
<a href="topic.php?id={$topic.id}">{$topic.title}</a>
</li>
{/if}
{/foreach}