product($id)) { header("Location: catalog.html"); exit; } $breadcrumb = ""; if(count($product['categories']) > 0) { $cat = $product['categories'][0]; if($cat['parent']['id'] > 0) { if(strlen($breadcrumb) > 0) $breadcrumb .= " | "; $breadcrumb .= "title_to_url($cat['parent']['name']) . "\">{$cat['parent']['name']}"; } if($cat['id'] > 0) { if(strlen($breadcrumb) > 0) $breadcrumb .= " | "; $breadcrumb .= "title_to_url($cat['name']) . "\">{$cat['name']}"; } } if(strlen($product['model']) > 0) { if(strlen($breadcrumb) > 0) $breadcrumb .= " | "; $breadcrumb .= $product['model']; } if(strlen($breadcrumb) == 0) { $breadcrumb = "Products"; } ?> Brian's Botanicals

Catalog

draw_product_detail($id); ?>