Index: trunk/extensions/MetavidWiki/MV_LocalSettings.php |
— | — | @@ -11,4 +11,15 @@ |
12 | 12 | $mvExternalImages = true; |
13 | 13 | $mvExternalImgServerPath = 'http://metavid.ucsc.edu/wiki/index.php'; |
14 | 14 | |
| 15 | +//for sunlight network annalysis we include google analytics |
| 16 | +$mvExtraHeader = <<<'EOD' |
| 17 | +<script type="text/javascript"> |
| 18 | +var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); |
| 19 | +document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); |
| 20 | +</script> |
| 21 | +<script type="text/javascript"> |
| 22 | +var pageTracker = _gat._getTracker("UA-4281471-1"); |
| 23 | +pageTracker._trackPageview(); |
| 24 | +</script> |
| 25 | +EOD; |
15 | 26 | ?> |
Index: trunk/extensions/MetavidWiki/includes/MV_GlobalFunctions.php |
— | — | @@ -235,7 +235,7 @@ |
236 | 236 | * enables linkback and autocomplete for search |
237 | 237 | */ |
238 | 238 | function mvfAutoAllPageHeader(){ |
239 | | - global $mvgScriptPath, $wgJsMimeType, $wgOut; |
| 239 | + global $mvgScriptPath, $wgJsMimeType, $wgOut, $mvExtraHeader; |
240 | 240 | $mvgScriptPath = htmlspecialchars( $mvgScriptPath ); |
241 | 241 | $wgJsMimeType = htmlspecialchars( $wgJsMimeType) ; |
242 | 242 | /* (moved to on_dom ready) but here as well*/ |
— | — | @@ -247,6 +247,8 @@ |
248 | 248 | $wgOut->addScript("<script type=\"{$wgJsMimeType}\" src=\"{$mvgScriptPath}/skins/mv_allpages.js\"></script>"); |
249 | 249 | $wgOut->addScript("<script type=\"{$wgJsMimeType}\" src=\"{$mvgScriptPath}/skins/mv_search.js\"></script>"); |
250 | 250 | |
| 251 | + $wgOut->addScript($mvExtraHeader); |
| 252 | + |
251 | 253 | $mvCssUrl = $mvgScriptPath . '/skins/mv_custom.css'; |
252 | 254 | $wgOut->addLink(array( |
253 | 255 | 'rel' => 'stylesheet', |
Index: trunk/extensions/MetavidWiki/includes/MV_Stream.php |
— | — | @@ -1,5 +1,4 @@ |
2 | 2 | <?php |
3 | | - |
4 | 3 | /* |
5 | 4 | * MV_Stream.php Created on Apr 24, 2007 |
6 | 5 | * |