* @version $Id$ */ use EGroupware\Api; if ($GLOBALS['egw_info']['user']['apps']['notifications']) { $notification_config = Api\Config::read('notifications'); Api\Translation::add_app('notifications'); $langRequire = array ( 'app' => 'notifications', 'lang' => Api\Translation::$userlang, 'etag' => Api\Translation::etag('notifications', Api\Translation::$userlang) ); $popup_poll_interval = empty($notification_config['popup_poll_interval']) ? 60 : $notification_config['popup_poll_interval']; $path = '/notifications/js/notificationajaxpopup'; $path .= file_exists(EGW_SERVER_ROOT.$path.'.min.js') ? '.min.js' : '.js'; echo ''; echo '
'; unset($notification_config); }