function smarty_modifier_addonnavbar($token, $from = '') { $api = new TikiAddons_Api_NavBar(); if ($ret = $api->getNavBar($token, $from)) { return $ret; } else { return ''; } }
private static function initializeNavbarApi($package) { if (!empty(self::$installed[$package]->api->navbar)) { $tpl = self::$installed[$package]->api->navbar->tpl; TikiAddons_Api_NavBar::setNavBar($package, $tpl); } }