Location: PHPKode > projects > OsQuestions > osQuestions-0.5.0.0/templates/default/question_list.tpl
{foreach item=question key=key from=$messages}
		<h2><a href="{$question->URL}" class="question">{$question->title}</a></h2>

	<div class="posted">
		<p>
		Asked by <a href="{$question->user->URL}">{$question->user->username}</a> at {$question->displayDateCreated} at {$question->displayTimeCreated} &nbsp;

		<br/>
		{foreach item=tag key=key2 from=$question->tags}
		<a href="{$tag->URL}">{$tag->tag}</a>&nbsp;
		{/foreach}
		</p>

		<p class="comments">
		{if $question->answers|@count == 0}
			{$question->answers|@count} Answers
		{else}
			<a href="{$question->URL}">{$question->answers|@count} Answers</a>
		{/if}

	</div>
<p>
		{if ($question->displayComment|@strlen != 0)}
			{$question->displayComment}
		{/if}

</p>
{/foreach}


Return current item: OsQuestions