Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Sectioning the speed bar

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-18-2009, 06:34 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default 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
__________________
4.4.2

and

4.6.1
Reply With Quote
  #2  
Old 03-18-2009, 08:18 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default 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*/}
__________________
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

The following user thanks Victor D for this useful post:
DanUK (03-18-2009)
  #3  
Old 03-18-2009, 09:02 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default Re: Sectioning the speed bar

Thanks Victor, that looks like it'll work and save me hard coding a seperate menu!

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:44 PM.

   

 
X-Cart forums © 2001-2020