'iDo', 'email' => 'iDo@woow-fr.com', 'date' => '21/03/2006', 'name' => 'Social Mark Plugin', 'desc' => 'Add some link to social bookmarking page. syntaxe : {{socialmark}}', 'url' => 'http://wiki.splitbrain.org/plugin:socialmark', ); } /** * What kind of syntax are we? */ function getType(){ return 'substition'; } /** * Where to sort in? */ function getSort(){ return 108; } /** * Connect pattern to lexer */ function connectTo($mode) { $this->Lexer->addSpecialPattern("{{socialmark}}",$mode,'plugin_socialmark'); } /** * Handle the match */ function handle($match, $state, $pos, &$handler){ return true; } /** * Create output */ function render($mode, &$renderer, $data) { if($mode == 'xhtml'){ $renderer->doc .= '
'; $renderer->doc .= $this->_socialmark(); $renderer->doc .= '
'; return true; } return false; } function _socialmark() { global $conf; $r=''; } function _getfullURL() { return 'http'.(($_SERVER['HTTPS']=='on')?'s':'').'://'.$_SERVER['HTTP_HOST'].(($_SERVER['SERVER_PORT']!='80')?':'.$_SERVER['SERVER_PORT']:'').$_SERVER['REQUEST_URI']; } } //Setup VIM: ex: et ts=4 enc=utf-8 : ?>