3 * Hooks for Usability Initiative extensions
14 * BeforePageDisplay hook
17 public static function addResources( $out ) {
18 global $wgTitle, $wgJsMimeType, $wgScriptPath, $wgSVGZoomScriptVersion;
21 * We should probably check if we are in the image namespace, and if the $wgTitle->getText() ends in .svg
28 'type' => $wgJsMimeType,
29 'src' => "{$wgScriptPath}/extensions/SVGZoom/SVGZoom.js?{$wgSVGZoomScriptVersion}",