<div class="sidebar">
	<div class="sidebartop">STATS</div>
	<div class="sidebarcontent">
		Pending Links - {$stat_pending}<br>
		Links Today - {$stat_todays}<br>
		Active Links - {$stat_active}<br>
		Featured Links - {$stat_featured}<br>
		Categories - {$stat_cats}<br>
	</div>
	<img src="{$smarty.const.DOC_ROOT}/templates/images/sidebarbckbottom.gif" alt="" height="25" width="165" border="0"/>
</div>
<div class="sidebar">
	<div class="sidebartop">PARTNERS</div>
	<div class="sidebarcontent">
		{include file="edit/partners.tpl"}
	</div>
	<img src="{$smarty.const.DOC_ROOT}/templates/images/sidebarbckbottom.gif" alt="" height="25" width="165" border="0"/>
</div>

{php}
if(strstr($_SERVER['PHP_SELF'], 'index.php')) {
{/php}
<div class="sidebar">
	<div class="sidebartop">RANDOM FEATURED</div>
	<div class="sidebarcontent">
		{foreach from=$randFeat item=link name=links}
		{include file="randfeat.tpl" link=$link}
		{/foreach}
	</div>
	<img src="{$smarty.const.DOC_ROOT}/templates/images/sidebarbckbottom.gif" alt="" height="25" width="165" border="0"/>
</div>
{php}
}
{/php}
