View Single Post
  #9  
Old 04-23-2007, 07:01 AM
  reachforlife's Avatar 
reachforlife reachforlife is offline
 

Member
  
Join Date: Apr 2007
Posts: 26
 

Default Re: New static page horizontal menu

Thanks for helping me with this -

Here is the files I am using:

skin1/bottom.tpl
<table width="100%" cellpadding="0" cellspacing="0">
<tr><td class="HeadThinLine"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td></tr>
<tr><td class="Bottom"><div align="center">{include file="customer/new_menu.tpl" }</div></td></tr>
<tr>
<td class="BottomBox">
<table width="100%" cellpadding="0" cellspacing="0"><tr>
<td class="Bottom" align="left">{include file="main/prnotice.tpl"}</td>
<td class="Bottom" align="right">{include file="copyright.tpl"}</td>
</tr></table>
</td>
</tr>
</table>

skin1/customer/new_menu.tpl
{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *}
{capture name=menu}
<div class="categories">
{include file="pages_menu.tpl"}
</div>
{/capture}
{ include file="menu.tpl" menu_title="" menu_content=$smarty.capture.menu }

pages_menu.tpl
{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *}
{section name=pg loop=$pages_menu}
{capture name=bullet}<a href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">{$pages_menu[pg].title}</a>{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet}
{/section}

menu.tpl
{if $usertype eq "C"}
{ include file="menu_customer.tpl"}
{else}
<table cellspacing="1" width="100%" class="VertMenuBorder">
<tr>
<td class="VertMenuTitle">
<table cellspacing="0" cellpadding="0" width="100%"><tr>
<td>{$link_begin}<img src="{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}" class="VertMenuTitleIcon" alt="{$menu_title|escape}" />{$link_end}</td>
<td width="100%">{if $link_href}<a href="{$link_href}">{/if}<font class="VertMenuTitle">{$menu_title}</font>{if $link_href}</a>{/if}</td>
</tr></table>
</td>
</tr>
<tr>
<td class="VertMenuBox">
<table cellpadding="{$cellpadding|default:"5"}" cellspacing="0" width="100%">
<tr><td>{$menu_content}<br /></td></tr>
</table>
</td></tr>
</table>
{/if}

customer/main/bullet.tpl
{* $Id: bullet.tpl,v 1.1 2006/01/19 13:35:09 max Exp $ *}
{if $usertype eq "C"}
<table cellspacing="0" cellpadding="0">
<tr>
<td><img src="{$ImagesDir}/customer_images/{if $welc}vert_menuwelc_bullet{elseif $catmenu}vert_menucat_bullet{else}vert_menu_bullet {/if}.gif" class="{if $welc || $catmenu}BulletWelc{else}Bullet{/if}" alt="" /></td>
<td valign="middle" height="18">{$content}</td>
</tr>
</table>
{else}
{$content}
{/if}

Thanks again for helping me with this.
__________________
Reach For Life
www.reachforlife.com
X-Cart Version # 4.1.6
Fashion Mosiac Skin
Reply With Quote