<h1 class="underline">Latest News</h1>
<p>Needs a new DB table created, using tips for now..</p>

{select_query assign="tips"}
	*
FROM tips
ORDER BY RAND()
{/select_query}

{assign var="intNewCol" value=$tips|@count|math:"round(x / 2) + 1"}

<table width="95%" cellpadding="5" align="center">
<tr><td valign="top">
{foreach name="tips" from=$tips item="current"}
{if $smarty.foreach.tips.iteration eq $intNewCol}</td><td valign="top">{/if}
{* cycle name="marginTypeCycler" values="margin-left,margin-right" delimiter="," assign="marginType" *}
{* style="padding:17px;{$marginType}:30px;margin-top:20px;margin-bottom:20px;" *}
{* <b>{$current.category} Tip</b><br /><br /> *}
<div class="notepaperBG" style="padding:17px;">
	{$current.tip}<br />
</div><br />
{/foreach}
</td></tr>
</table>