This is an automated email from the ASF dual-hosted git repository. mseidel pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/openoffice-mwiki.git
commit 912aaf878a9dc7ea83341eb42e9a43068e6ee664 Author: mseidel <msei...@apache.org> AuthorDate: Tue Dec 15 16:18:31 2020 +0100 Initial commit --- OOoIDLtags_original.php | 88 +++++++++++++++++++++++++++++++++++ Updated graphics/asf_logo_simple.png | Bin 0 -> 14400 bytes Updated graphics/favicon.ico | Bin 0 -> 32038 bytes Updated graphics/header.png | Bin 0 -> 11377 bytes Updated graphics/readme | 8 ++++ 5 files changed, 96 insertions(+) diff --git a/OOoIDLtags_original.php b/OOoIDLtags_original.php new file mode 100644 index 0000000..6671f6a --- /dev/null +++ b/OOoIDLtags_original.php @@ -0,0 +1,88 @@ +<?php +/** + * IDL Tag extension + * The IDLTagExtension was written to manage the IDL links in the +OpenOffice.org Developer's Guide. + * The extension converts Java paths to links back to the online IDL +documentation. + * @version 1.0.2 + * @link http://wiki.openoffice.org/wiki/Wiki_maintenance/IDLTagExtension + */ + +if ( !defined( 'MEDIAWIKI' ) ) { + die( 'This file is a MediaWiki extension, it is not a valid entry +point' ); +} + +// Extension credits that will show up on Special:Version +$wgExtensionCredits['parserhook'][] = array( + 'name' => 'IDL Tags', + 'version' => '1.0.2', + 'author' => array( 'Clayton Cornell', 'Terry Ellison' ), + 'description' => 'Manage the IDL links in the OOo Dev Guide ', + 'url' => +'http://wiki.openoffice.org/wiki/Wiki_maintenance/IDLTagExtension', +); + +global $wgExtIDLtags; +$wgExtIDLtags = new RenderIDLtags; +$wgExtensionFunctions[] = array( &$wgExtIDLtags, 'oooIDLTags' ); + +class RenderIDLtags { + + function oooIDLTags() { + global $wgParser; + $wgParser->setHook( 'idl', array( &$this, 'renderIDL' ) ); + $wgParser->setHook( 'idlm', array( &$this, 'renderIDLM' ) ); + $wgParser->setHook( 'idls', array( &$this, 'renderIDLS' ) ); + $wgParser->setHook( 'idlmodule', array( &$this, +'renderIDLMODULE' ) ); + $wgParser->setHook( 'idltopic', array( &$this, 'renderIDLTOPIC' +) ); + } + + function renderIDL( $input, $args, $parser ) { + $parser->disableCache(); + $output = $parser->recursiveTagParse( $input ); + $output = '<a href="http://api.openoffice.org/docs/common/ref/' . + str_replace ('.','/',$output).'.html" class="external +text">'.$output.'</a>'; + return $output; + } + + function renderIDLM( $input, $args, $parser ) { + $parser->disableCache(); + $output = $parser->recursiveTagParse( $input ); + $page = ereg_replace ('\.','/',$output); + $anchor = ereg_replace (':','.html#',$page); + $function = ereg_replace ('^.*:','',$page); + $output = '<a href="http://api.openoffice.org/docs/common/ref/' . + $anchor.'" class="external text">'.$function.'</a>'; + return $output; + } + + function renderIDLS( $input, $args, $parser ) { + $parser->disableCache(); + $output = $parser->recursiveTagParse( $input ); + $function = ereg_replace ('^.*\.','',$output); + $output = '<a href="http://api.openoffice.org/docs/common/ref/' . + ereg_replace ('\.','/',$output).'.html" class="external +text">'.$function.'</a>'; + return $output; + } + + function renderIDLMODULE( $input, $args, $parser ) { + $parser->disableCache(); + $output = $parser->recursiveTagParse( $input ); + $function = ereg_replace ('^.*\.','',$output); + $output = '<a href="http://api.openoffice.org/docs/common/ref/' . + ereg_replace ('\.','/',$output).'/module-ix.html" +class="external text">'.$output.'</a>'; + return $output; + } + + function renderIDLTOPIC( $input, $args, $parser ) { + $parser->disableCache(); + return ''; + } +} \ No newline at end of file diff --git a/Updated graphics/asf_logo_simple.png b/Updated graphics/asf_logo_simple.png new file mode 100644 index 0000000..c72e34b Binary files /dev/null and b/Updated graphics/asf_logo_simple.png differ diff --git a/Updated graphics/favicon.ico b/Updated graphics/favicon.ico new file mode 100644 index 0000000..c6dbc5a Binary files /dev/null and b/Updated graphics/favicon.ico differ diff --git a/Updated graphics/header.png b/Updated graphics/header.png new file mode 100644 index 0000000..85a9772 Binary files /dev/null and b/Updated graphics/header.png differ diff --git a/Updated graphics/readme b/Updated graphics/readme new file mode 100644 index 0000000..c79d5c3 --- /dev/null +++ b/Updated graphics/readme @@ -0,0 +1,8 @@ + +Some new graphics for the Wiki: + + - header.png (to replace /w/skins/aoo/header.png) + + - asf_logo_simple.png (to replace /w/ASFLogo/asf_logo_simple.png) + + - favicon.ico (to replace /w/favicon.ico)