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

Simplifying speedbar into text links

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-05-2007, 12:49 PM
 
kanjigirl kanjigirl is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 51
 

Default Simplifying speedbar into text links

I'm using one of the templates from X-Cart (Crystal Blue) and I want to simplify the speedbar from the large 3-box graphic to just three simple text links, but I can't see how to do this. What's the actual link for one of the speedbar items?

This is what I'm starting with from the template (top_menu.tpl):

Code:
{if $printable ne ''} {include file="customer/top_menu_printable.tpl"} {elseif $speed_bar} {assign var="total" value="0"} {section name=sb loop=$speed_bar} {if $speed_bar[sb].active eq "Y"}{math equation="x+1" assign="total" x=$total}{/if} {/section} <table cellpadding="0" cellspacing="0"> <tr> {if $total >= "4"} {math assign="first_color" equation="x-3" x=$total} {else} {section name=sp_images loop="4" start=$total} <td class="SpeedBarBox{math equation="y+3-x" y=$total x=$smarty.section.sp_images.index}"><img src="{$ImagesDir}/spacer.gif" width="60" height="79" alt="" /></td> {/section} {assign var="first_color" value="1"} {/if} {assign var="current_row" value="1"} {section name=sb loop=$speed_bar} {if $speed_bar[sb].active eq "Y"} {if $current_row >= $first_color} {math equation="x-y" x=$total y=$current_row assign="colorid"} <td> <table cellpadding="0" cellspacing="0" class="SpeedBarBox{$colorid}"> <tr> <td><img src="{$ImagesDir}/spacer.gif" width="60" height="12" alt="" /></td> </tr> {else} {assign var="colorid" value="3"} <td> <table cellpadding="0" cellspacing="0"> <tr> <td><img src="{$ImagesDir}/spacer.gif" width="1" height="12" alt="" /></td> </tr> {/if} <tr> <td valign="top" height="67"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td class="SpeedLink{$colorid}" align="center" width="100%"><a class="SpeedBar" href="{$speed_bar[sb].link}">{$speed_bar[sb].title}</a></td> <td class="SpeedLinkBorder"><img src="{$ImagesDir}/spacer.gif" width="1" height="23" alt="" /></td> </tr> <tr> <td class="SpeedLinkBorder"><img src="{$ImagesDir}/spacer.gif" width="1" height="1" alt="" /></td> <td><img src="{$ImagesDir}/spacer.gif" width="1" height="1" alt="" /></td> </tr> </table> </td> </tr> </table> </td> {math equation="x+1" assign="current_row" x=$current_row} {/if} {/section} </tr> </table> {else} <table cellpadding="0" cellspacing="0"> <tr> {section name=sp_images loop="4"} <td class="SpeedBarBox{math equation="3-x" x=$smarty.section.sp_images.index}"><img src="{$ImagesDir}/spacer.gif" width="60" height="79" alt="" /></td> {/section} </tr> </table> {/if}

I haven't done anything to this yet. Help?
__________________
Debbie Campbell
www.redkitecreative.com
X-Cart Version 4.1.6
Reply With Quote
  #2  
Old 06-05-2007, 12:57 PM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: Simplifying speedbar into text links

I think it's line 43...

<td class="SpeedLink{$colorid}" align="center" width="100%"><a class="SpeedBar" href="{$speed_bar[sb].link}">{$speed_bar[sb].title}</a></td>

That creates the link...
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #3  
Old 06-05-2007, 01:43 PM
 
kanjigirl kanjigirl is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 51
 

Default Re: Simplifying speedbar into text links

I tried that. It gives me a blank TD, no links.
__________________
Debbie Campbell
www.redkitecreative.com
X-Cart Version 4.1.6
Reply With Quote
  #4  
Old 06-05-2007, 02:39 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Simplifying speedbar into text links

{section name=sb loop=$speed_bar}
<span style="padding-left:7px"><a class="SpeedBar" href="{$speed_bar[sb].link}">{$speed_bar[sb].title}</a></span>
{/section}
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
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 08:35 PM.

   

 
X-Cart forums © 2001-2020