View Single Post
  #3  
Old 12-13-2002, 09:38 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

and the winner is....

new subcategories.tpl

Code:
{* $Id: subcategories.tpl,v 1.21 2002/09/10 12:36:34 zorg Exp $ *} { include file="location.tpl" } {if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"} {include file="modules/Bestsellers/bestsellers.tpl"} {/if} { include file="customer/main/navigation.tpl" } {if ($page eq "")||($page eq "1")}{$current_category.description|regex_replace:"/[\n]/":" "} {/if} {capture name=dialog} {if $subcategories} [img]../icon.php?categoryid={$cat}[/img] {/if} {if $current_category.categoryid eq 248} do this {else} {section name=cat_num loop=$subcategories} { if %cat_num.first% } <table border=0 cellspacing=5> {/if} <tr><td align=left nowrap width=95%> <font class="TableCenterSubCategoryListTitleBlue">{ $subcategories[cat_num].category|escape }</font> </td> <td align=right nowrap><font class="TableCenterSubCategoryListQuantityBlue">{ $subcategories[cat_num].product_count } {$lng.lbl_products}</font></td> </tr> { if %cat_num.last% } </table> {/if} {/section} {/if} {if $subcategories ne "" and $products ne ""} <hr size=1 noshade> {/if} {include file="customer/main/products.tpl" products=$products} {if $products eq "" and $subcategories eq ""} {$lng.txt_no_products_in_cat} {/if} {/capture} {include file="dialog.tpl" title=$current_category.category|regex_replace:"/.*\//":"" content=$smarty.capture.dialog extra="width=100%"} {if $products eq ""} {if $f_products ne ""} {include file="customer/main/featured.tpl"} {/if} {/if}

Added in the bits with spaces top and bottom.
__________________
ex x-cart guru
Reply With Quote