Thread: Header banner
View Single Post
  #5  
Old 12-11-2008, 07:00 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Header banner

Not home.tpl, but head.tpl

For instance replace
{if $usertype eq "C"}
{include file="customer/top_menu.tpl"}
{/if}

with  

and insert one more table at the end head.tpl:

{if $usertype eq "C"}
<table width="100%"><tr><td>{include file="customer/top_menu.tpl"}
</td></tr></table>
{/if}

what concerns the second part of your question I can't catch the point.
If you want to have equal spaces between speedbar links you need to divide page width (or 100% if it isn't fixed) by total numer of links to get the one item width.
You may need
http://smarty.net/manual/en/language.function.math.php for reference
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote