-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfigPoweredBy.php
34 lines (28 loc) · 1.01 KB
/
ConfigPoweredBy.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* ConfigPoweredBy
*
* @package MediaWiki
* @subpackage Extensions
* @author Jack D. Pond, psitex.com
* @copyright © 2011 Jack D. Pond
* @license GNU General Public Licence 2.0 or later
*/
if ( !defined( 'MEDIAWIKI' ) ) {
echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
die( 1 );
}
$wgExtensionCredits['other'][] = array(
'path' => __FILE__,
'name' => 'ConfigPoweredBy',
'author' => array( 'Jack D. Pond'),
'description' => 'Add Powered By Tags',
'descriptionmsg' => 'ConfigPoweredBy',
);
$wgHooks['SkinGetPoweredBy'][] = 'ConfigPoweredBy';
function ConfigPoweredBy( &$text, $skin ) {
# $url = htmlspecialchars( "$smwgScriptPath/resources/images/smw_button.png" );
$url = htmlspecialchars( dirname(__FILE__)."/smw_button.png" );
$text .= '<a href="http://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki"><img src="' . $url . '" height="31" width="88" alt="Powered by SemanticMediaWiki" /></a>';
return true;
}