X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Format speedbar with border off on last tab (https://forum.x-cart.com/showthread.php?t=46241)

leekaye 03-13-2009 06:24 AM

Format speedbar with border off on last tab
 
Hi, newbie working on my first cart. I'm trying to mod the speedbar to check for the last tab so I can turn off the right border. Added this IF statement.

{if $speed_bar}
<div class="tabs">
<ul>
{foreach from=$speed_bar item=sb}
{if $smarty.section.sb.last}
<li class="tab_last"><a href="{$sb.link|amp}">{$sb.title}</a></li>
{else}
<li><a href="{$sb.link|amp}">{$sb.title}</a></li>
{/if}
{/foreach}
</ul>

</div>
{/if}


Still showing the last border. Am I formatting this correctly?

TIA!
Lisa

abeight 03-14-2009 07:05 AM

Re: Format speedbar with border off on last tab
 
I'm trying to figure out the same thing. The smarty code that Phil provided in this thread doesn't seem to work in 4.2: http://forum.x-cart.com/showthread.php?t=45183

Hi Lisa!! :)


All times are GMT -8. The time now is 06:53 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.