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

Speedbar IF statement

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-29-2009, 07:37 AM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Question Speedbar IF statement

I'm applying styles to my speedbar, but I want either the first or last button to have a different style than the others. Is there an IF statement that says "if this is the last link - do this"?

This is for 4.1.11

TIA!
__________________
~ Andrea Beight
Reply With Quote
  #2  
Old 01-29-2009, 08:17 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Speedbar IF statement

Within...
Code:
{section name=sb loop=$speed_bar} ... {/section}
Use...
Code:
{if $smarty.section.sb.first} class="first_style"{/if}
And...
Code:
{if $smarty.section.sb.last} class="last_style"{/if}
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 01-29-2009, 08:25 AM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Default Re: Speedbar IF statement

Thanks so much, Phil!
__________________
~ Andrea Beight
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 06:12 AM.

   

 
X-Cart forums © 2001-2020