Пример #1
0
 public function addShop($tpl = null)
 {
     if ($this->context == null) {
         $this->context = JeproshopContext::getContext();
     }
     $display_group_list = true;
     if ($display_group_list) {
         $shop_groups = JeproshopShopGroupModelShopGroup::getShopGroups();
         $this->assignRef('shop_groups', $shop_groups);
     }
     $categories = JeproshopCategoryModelCategory::getRootCategories($this->context->language->lang_id);
     $themes = JeproshopThemeModelTheme::getThemes();
     $this->assignRef('themes', $themes);
     $this->assignRef('categories', $categories);
     $this->addToolBar();
     $this->sideBar = JHtmlSidebar::render();
     parent::display($tpl);
 }