getPluginPath() . '/settings.xml'; } /** * Install default settings on journal creation. * @return string */ function getContextSpecificPluginSettingsFile() { return $this->getPluginPath() . '/settings.xml'; } /** * Get the display name of this plugin. * @return String */ function getDisplayName() { return __('plugins.block.user.displayName'); } /** * Get a description of the plugin. */ function getDescription() { return __('plugins.block.user.description'); } function getContents(&$templateMgr) { if (!defined('SESSION_DISABLE_INIT')) { $session =& Request::getSession(); $templateMgr->assign_by_ref('userSession', $session); $templateMgr->assign('loggedInUsername', $session->getSessionVar('username')); $loginUrl = Request::url(null, 'login', 'signIn'); if (Config::getVar('security', 'force_login_ssl')) { $loginUrl = String::regexp_replace('/^http:/', 'https:', $loginUrl); } $templateMgr->assign('userBlockLoginUrl', $loginUrl); } return parent::getContents($templateMgr); } } ?>