if (defined('catid')) { $bread = $categories -> getPath(catid, 'title'); $tmp=array(); //$tmp[] = array('link' => '/shop/', 'title' => $L->Str('All products')); if (!empty($bread)) { $k=array(); foreach ($bread as $key => $item) { if ($item) { $key = explode('_', $key); $k[] = $key[0]; $id= $key[1]; $item = $L->StrT('partners_categories','title',$id,$item); $tmp[] = array('link'=>implode('/',$k), 'title' => $item); } } } if (defined('product_id')) { if (product_id > 0) { $goods = new Products(); $item = $goods -> getItem(product_id); if (!empty($item)) { $title = $L->StrT('partners','title',product_id, $item['title']); $tmp[] = array('link'=>'', 'title' => $title); } } } $tmp2=array(); if (!empty($tmp)) { $i=0; foreach ($tmp as $item) { if ($i >= count($tmp)-1) { $tmp2[] = '