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)
-   -   Sectioning the speed bar (https://forum.x-cart.com/showthread.php?t=46350)

DanUK 03-18-2009 06:34 AM

Sectioning the speed bar
 
In the same way that there is a hack to split the categories, is there one to turn the speedbar into sections? For example, if orderby greater than 70 display it a certain way.

Basically, I'm trying to create two sections to the speedbar each with their own font class and alignment. e.g.

--------------------------------------------------------------------------
LINK 1 | LINK 2 | LINK 3 link4 link5 link6
--------------------------------------------------------------------------

Any ideas?

Thanks

Dan

Victor D 03-18-2009 08:18 AM

Re: Sectioning the speed bar
 
skin1/customer/top_menu.tpl
Code:

{section name=sb loop=$speed_bar}
{if $speed_bar[sb].active eq "Y"}
{if $speed_bar[sb].orderby lte 70}{assign var=sbclass value="sbstyle1"}
{else}{assign var=sbclass value="sbstyle2"}{/if}
<td valign="top">{include file="customer/tab.tpl" tab_title="<a class=\"`$sbclass`\" href=\"`$speed_bar[sb].link`\">`$speed_bar[sb].title`</a>"}</td>
<td width="1"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td>
{/if}
{/section}

and then in main.css
Code:

a.sbclass1{text-transform:uppercase}
a.sbclass2{/*extra styles here*/}


DanUK 03-18-2009 09:02 AM

Re: Sectioning the speed bar
 
Thanks Victor, that looks like it'll work and save me hard coding a seperate menu!

Dan


All times are GMT -8. The time now is 08:52 PM.

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