Пример #1
0
 /**
  * Displays the (good old) adminmenu
  *
  * @param int  $currentoption  The current option of the admin menu
  * @param string  $breadcrumb  The breadcrumb trail
  * @param bool  $submenus  Show the submenus!
  * @param int  $currentsub  The current submenu
  *
  * @return datatype  description
  */
 public function displayAdminMenu($currentoption = 0, $breadcrumb = '', $submenus = false, $currentsub = -1)
 {
     global $icmsModule, $icmsConfig;
     icms_loadLanguageFile($icmsModule->getVar('dirname'), 'modinfo');
     icms_loadLanguageFile($icmsModule->getVar('dirname'), 'admin');
     $tpl = new icms_view_Tpl();
     $tpl->assign(array('headermenu' => $this->getAdminHeaderMenu(), 'adminmenu' => $this->getAdminMenu(), 'current' => $currentoption, 'breadcrumb' => $breadcrumb, 'headermenucount' => count($this->getAdminHeaderMenu()), 'submenus' => $submenus, 'currentsub' => $currentsub, 'submenuscount' => count($submenus)));
     $tpl->display(ICMS_ROOT_PATH . '/modules/system/templates/admin/system_adm_modulemenu.html');
 }
Пример #2
0
 /**
  * Render the feed and display it directly
  */
 public function render()
 {
     icms::$logger->disableLogger();
     //header ('Content-Type:text/xml; charset='._CHARSET);
     $xoopsOption['template_main'] = "db:system_rss.html";
     $tpl = new icms_view_Tpl();
     $tpl->assign('channel_title', $this->title);
     $tpl->assign('channel_link', $this->url);
     $tpl->assign('channel_desc', $this->description);
     $tpl->assign('channel_webmaster', $this->webMaster);
     $tpl->assign('channel_editor', $this->channelEditor);
     $tpl->assign('channel_category', $this->category);
     $tpl->assign('channel_generator', $this->generator);
     $tpl->assign('channel_language', $this->language);
     $tpl->assign('channel_lastbuild', $this->lastbuild);
     $tpl->assign('channel_copyright', $this->copyright);
     $tpl->assign('channel_width', $this->width);
     $tpl->assign('channel_height', $this->height);
     $tpl->assign('channel_ttl', $this->ttl);
     $tpl->assign('image_url', $this->image['url']);
     foreach ($this->feeds as $feed) {
         $tpl->append('items', $feed);
     }
     $tpl->display('db:system_rss.html');
 }