View Single Post
  #14  
Old 10-16-2009, 01:43 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Breadcrumb Home Link

I got it. I had to add a <br /> tag because of the "hidden" JavaScript warning.... got the styles to work too.
Code:
{* $Id: bread_crumbs.tpl,v 1.5.2.1 2009/04/01 10:37:47 avg Exp $ vim: set ts=2 sw=2 sts=2 et: *} <br /> {if $location} <div id="location"><br /> {foreach from=$location item=l name=location} {if $l.1 && !$smarty.foreach.location.last} {if $l.0 eq $config.Company.company_name} <a href="{$l.1|amp}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">Home</a> {else} <a href="{$l.1|amp}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{if $webmaster_mode eq "editor"}{$l.0}{else}{$l.0|escape}{/if}</a> {/if} {else} <span class="current">{if $webmaster_mode eq "editor"}{$l.0}{else}{$l.0|escape}{/if}</span> {/if} {if !$smarty.foreach.location.last} <span> \ </span> {/if} {/foreach} </div> {/if}
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote