if (!defined('WEBPATH')) include $_SERVER['DOCUMENT_ROOT'].'/system/default.php'; $path = isset($_GET['path']) ? $_GET['path'] : ""; $path = explode('/',$path); $tmp=array();$catid=0; $cat_item=array(); $product_item=array(); $itemid = 0; $page=0; $products = new Content(); $categories = new Content_Categories(); if (!empty($path)) { foreach ($path as $item) { if ($item) { $tmp[] = $item; } } } $path = $tmp; $last_item = array_pop($path); if (is_numeric($last_item)) { $page = intval($last_item); $last_item = array_pop($path); } //Is it category ? $cat_item = $categories -> getItem($last_item, 'sef'); if (!empty($cat_item)) { $catid = $cat_item['id']; } else { $tmp = explode('-', $last_item, 2); $pid = isset($tmp[0]) ? intval($tmp[0]) : 0; if ($pid) { $product_item = $products -> getItem($pid); } if (!empty($product_item)) { $itemid = $product_item['id']; } $last_item = array_pop($path); $cat_item = $categories -> getItem($last_item, 'sef'); if (!empty($cat_item)) { $catid = $cat_item['id']; } } $Template = new Common_Template('Default'); /* $Template->title= $L->StrT('video_categories','title', $cat_item['id'], $cat_item['title']); */ if(isset($search_string)) $Template->title= $search_string; $Template->OutputHtml(); $Template->OutputHead(); define ('catid', $catid); if($catid=='8') $itemid=12; define ('product_id', $itemid); //define ('page', $page); ?>
//include PLUGINPATH . 'leftVideoMenu.php'; echo $m_return; include PLUGINPATH . 'newProducts.php'; echo $m_return; include PLUGINPATH . 'saleProducts.php'; echo $m_return; include PLUGINPATH . 'resent_searches.php'; echo $m_return; ?> | include PLUGINPATH . 'contentCategoriesPath.php'; if (product_id) { $open=1; include PLUGINPATH . 'exibitionsListingOpen.php'; echo $m_return; } else { if($catid) { // include PLUGINPATH . 'productCategoriesPath.php'; if($catid=='1' && $catid='5' ) { $type='exibition'; include PLUGINPATH . 'exibitionsListing.php'; } if($catid='6' && $catid='7') { $type='press'; include PLUGINPATH . 'exibitionsListing.php'; } if($catid=='8') { $type='about'; include PLUGINPATH . 'exibitionsListingOpen.php'; } } else { include PLUGINPATH . 'contentCategories.php'; } echo $m_return; } ?> | include PLUGINPATH . 'newProducts.php'; echo $m_return; //include PLUGINPATH . 'rightColumn.php'; echo $m_return; ?> |