@@ 44-54 (lines=11) @@ | ||
41 | return $item; |
|
42 | } |
|
43 | ||
44 | if ($category == 'new_category') { |
|
45 | include OLEDRION_PATH . 'include/common.php'; |
|
46 | $category = null; |
|
47 | $category = $h_oledrion_cat->get($item_id); |
|
48 | if (is_object($category)) { |
|
49 | $item['name'] = $category->getVar('cat_title'); |
|
50 | $item['url'] = OLEDRION_URL . 'category.php?cat_cid=' . $item_id; |
|
51 | } |
|
52 | ||
53 | return $item; |
|
54 | } |
|
55 | ||
56 | if ($category == 'new_product') { |
|
57 | include OLEDRION_PATH . 'include/common.php'; |
|
@@ 56-66 (lines=11) @@ | ||
53 | return $item; |
|
54 | } |
|
55 | ||
56 | if ($category == 'new_product') { |
|
57 | include OLEDRION_PATH . 'include/common.php'; |
|
58 | $product = null; |
|
59 | $product = $h_oledrion_products->get($item_id); |
|
60 | if (is_object($product)) { |
|
61 | $item['name'] = $product->getVar('product_title'); |
|
62 | $item['url'] = OLEDRION_URL . 'product.php?product_id=' . $item_id; |
|
63 | } |
|
64 | ||
65 | return $item; |
|
66 | } |
|
67 | } |
|
68 |