> * * @author: Arnaud Fontaine */ if (!defined('MY_JABBER_ID')) define('MY_JABBER_ID', $GLOBALS['request']->_user->UserName() . "@jabber.com"); // or "@netflint.net" class WikiPlugin_JabberPresence extends WikiPlugin { function getDescription() { return _("Display Jabber presence."); } // Establish default values for each of this plugin's arguments. function getDefaultArguments() { return array('scripturl' => "http://edgar.netflint.net/status.php", 'jid' => MY_JABBER_ID, 'type' => 'image', 'iconset' => "gabber"); } function run($dbi, $argstr, $request) { extract($this->getArgs($argstr, $request)); // Any text that is returned will not be further transformed, // so use html where necessary. if (empty($jid)) $html = HTML(); else $html = HTML::img(array('src' => urlencode($scripturl) . '&jid=' . urlencode($jid) . '&type=' . urlencode($type) . '&iconset=' . ($iconset), 'alt' => "")); return $html; } } // Local Variables: // mode: php // tab-width: 8 // c-basic-offset: 4 // c-hanging-comment-ender-p: nil // indent-tabs-mode: nil // End: