{*********************************************************
* Copyright (c) 2009 PHPLDTemplates.com
* Theme Author: http://www.PHPLDTemplates.com
* Theme URL: http://www.phpldtemplates.com/2009/07/free-phpld-template-dbs-3/
* 
* Report bug: Please email contact @ PHPLDTemplates.com
* License: Free, provided user keeps the footer links intake. Not to be resold.
* More free phpld templates are available at http://www.PHPLDTemplates.com
* 
**********************************************************}
{strip}
<div id="nav-left">
	<div id="nav-right">
		<div id="nav">
			<a href="{$smarty.const.DOC_ROOT}/index.php">{l}Home{/l}</a>
			<img class="left divider" src="{$smarty.const.FULL_TEMPLATE_PATH}/images/nav-divider.gif" align="top" alt="divider" border="0" />
 
{if $uLevel eq 1 && $catid > 0}
	<a href="{$smarty.const.DOC_ROOT}/quick_submit.php{if !empty ($category.ID) and $category.ID > 0}?c={$category.ID}{/if}" title="{l}Submit your link to the directory{/l}">{l}Submit Link{/l}</a>
{else}
	<a href="{$smarty.const.DOC_ROOT}/submit.php{if !empty ($category.ID) and $category.ID > 0}?c={$category.ID}{/if}" title="{l}Submit your link to the directory{/l}">{l}Submit Link{/l}</a>
{/if}
		      
			<img class="left divider" src="{$smarty.const.FULL_TEMPLATE_PATH}/images/nav-divider.gif" align="top" alt="divider" border="0" />
	      	<a href="{$smarty.const.DOC_ROOT}/index.php?list=latest" title="{l}Browse latest submitted links{/l}">{l}Latest Links{/l}</a>
			<img class="left divider" src="{$smarty.const.FULL_TEMPLATE_PATH}/images/nav-divider.gif" align="top" alt="divider" border="0" />
	    		<a href="{$smarty.const.DOC_ROOT}/submit_article.php{if !empty ($category.ID) and $category.ID > 0}?c={$category.ID}{/if}" title="{l}Submit your article to the directory{/l}">{l}Add Article{/l}</a>
			<img class="left divider" src="{$smarty.const.FULL_TEMPLATE_PATH}/images/nav-divider.gif" align="top" alt="divider" border="0" />
		     	<a href="{$smarty.const.DOC_ROOT}/index.php?list=latestarticles" title="{l}Browse latest articles{/l}">{l}Latest Articles{/l}</a>
			<img class="left divider" src="{$smarty.const.FULL_TEMPLATE_PATH}/images/nav-divider.gif" align="top" alt="divider" border="0" />
		     	<a href="{$smarty.const.DOC_ROOT}/index.php?list=top" title="{l}Browse most popular links{/l}">{l}Top Hits{/l}</a>
			<img class="left divider" src="{$smarty.const.FULL_TEMPLATE_PATH}/images/nav-divider.gif" align="top" alt="divider" border="0" />
			<a href="{$smarty.const.DOC_ROOT}/contact.php" title="{l}Contact directory owner{/l}">{l}Contact{/l}</a>					  
			<img class="left divider" src="{$smarty.const.FULL_TEMPLATE_PATH}/images/nav-divider.gif" align="top" alt="divider" border="0" />
			<a href="{$smarty.const.DOC_ROOT}/search.php?type=advanced" title="{l}Go to advanced search page{/l}" accesskey="4" rel="nofollow">{l}Advanced Search{/l}</a>
	
			<div id="searchbox">
				{* Search form *}
				<form action="{$smarty.const.DOC_ROOT}/index.php" method="get">
					<input class="searchtext" type="text" name="search" maxlength="250" value="{if !empty($search)}{$search|escape}{/if}" />
					<button class="btn-search" type="submit">{l}&nbsp;{/l}</button>
				</form>
			</div>			  
		</div>
	</div>
</div>

<div id="top-nav">
	<div id="trail">
   		{* Display current path *}
   		{assign var="current_path" value=""}
   		{foreach from=$path item=cat name=path}
      		{assign var="current_path" value="`$current_path``$cat.TITLE_URL`/"}
      		{if !$smarty.foreach.path.first} &raquo; {/if}
      		{if !$smarty.foreach.path.last}
         			<a href="{if $smarty.const.ENABLE_REWRITE}{$current_path}{else}index.php?c={$cat.ID}{/if}">{$cat.TITLE|escape|trim}</a>
      		{else}
      			{$cat.TITLE|escape|trim}
      		{/if}
		{/foreach}
	</div>

</div>

<div id="wrapper">
	<div id="right">
		{include file="sidebar-right.tpl"}
	</div>

	<div id="left">
		{include file="sidebar-left.tpl"}
	</div><!--middle End-->

	<div id="middle">
		{if !$uid & !$search & empty($category.ID) & !$list & $scriptname == "index"}
			{foreach from=$widgets.MAIN_ON_HOMEPAGE.TOP item=v}
				{if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'}
					{include file="widget_central_top.tpl" TITLE=$v.SETTINGS.TITLE}
				{/if}
				{$v.CONTENT}
				{if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'}
					{include file="widget_central_bot.tpl"}
				{/if}
			{/foreach}
		{else}
			{foreach from=$widgets.MAIN_NOT_ON_HOMEPAGE.TOP item=v}
				{if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'}
					{include file="widget_vertical_top.tpl"}
				{/if}
				{$v.CONTENT}
				{if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'}
					{include file="widget_vertical_bot.tpl"}
				{/if}
			{/foreach}
		{/if}
{/strip}


