_title = $osC_Language->get('recently_visited_title'); } function initialize() { global $osC_RecentlyVisited, $osC_Language, $osC_Image; if ($osC_RecentlyVisited->hasHistory()) { $this->_content = '' . ' '; if ($osC_RecentlyVisited->hasProducts()) { $this->_content .= ' '; } if ($osC_RecentlyVisited->hasCategories()) { $this->_content .= ' '; } if ($osC_RecentlyVisited->hasSearches()) { $this->_content .= ' '; } $this->_content .= ' ' . '
' . '
' . $osC_Language->get('recently_visited_products_title') . '
' . '
    '; foreach ($osC_RecentlyVisited->getProducts() as $product) { $this->_content .= '
  1. '; if (SERVICE_RECENTLY_VISITED_SHOW_PRODUCT_IMAGES == '1') { $this->_content .= '' . osc_link_object(osc_href_link(FILENAME_PRODUCTS, $product['keyword']), $osC_Image->show($product['image'], $product['name'], null, 'mini')) . ''; } $this->_content .= '
    ' . osc_link_object(osc_href_link(FILENAME_PRODUCTS, $product['keyword']), $product['name']) . '
    '; if (SERVICE_RECENTLY_VISITED_SHOW_PRODUCT_PRICES == '1') { $this->_content .= $product['price'] . ' '; } $this->_content .= '(' . sprintf($osC_Language->get('recently_visited_item_in_category'), osc_link_object(osc_href_link(FILENAME_DEFAULT, 'cPath=' . $product['category_path']), $product['category_name'])) . ')
  2. '; } $this->_content .= '
' . '
' . '
' . $osC_Language->get('recently_visited_categories_title') . '
' . '
    '; foreach ($osC_RecentlyVisited->getCategories() as $category) { $this->_content .= '
  1. ' . osc_link_object(osc_href_link(FILENAME_DEFAULT, 'cPath=' . $category['path']), $category['name']); if (!empty($category['parent_id'])) { $this->_content .= ' (' . sprintf($osC_Language->get('recently_visited_item_in_category'), osc_link_object(osc_href_link(FILENAME_DEFAULT, 'cPath=' . $category['parent_id']), $category['parent_name'])) . ')'; } $this->_content .= '
  2. '; } $this->_content .= '
' . '
' . '
' . $osC_Language->get('recently_visited_searches_title') . '
' . '
    '; foreach ($osC_RecentlyVisited->getSearches() as $searchphrase) { $this->_content .= '
  1. ' . osc_link_object(osc_href_link(FILENAME_SEARCH, 'keywords=' . $searchphrase['keywords']), osc_output_string_protected($searchphrase['keywords'])) . ' (' . number_format($searchphrase['results']) . ' results)
  2. '; } $this->_content .= '
' . '
'; } } } ?>