-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy path_footer.php
More file actions
67 lines (65 loc) · 2.84 KB
/
_footer.php
File metadata and controls
67 lines (65 loc) · 2.84 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<div id="ad_blocker_notice" style="display:none">
<div class="alert alert-danger alert-dismissable">
<button class="close" type="button" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">
×
</span>
</button>
<div class="text-center">
<strong><?php echo $I18N->msg( 'adblock-error-title' ); ?></strong>
<br>
<?php echo $I18N->msg( 'adblock-error-body1' ); ?>
<br>
<?php echo $I18N->msg( 'adblock-error-body2' ); ?>
</div>
</div>
</div>
<div class="spacer"></div>
<footer>
<hr>
<span>
<?php $MusikAnimal = "<a href='https://en.wikipedia.org/wiki/User:MusikAnimal'>MusikAnimal</a>"; ?>
<?php $Kaldari = "<a href='https://en.wikipedia.org/wiki/User:Kaldari'>Kaldari</a>"; ?>
<?php $MarcelRuizForns = "<a href='https://en.wikipedia.org/wiki/User:Mforns_(WMF)'>Marcel Ruiz Forns</a>"; ?>
<?php echo $I18N->msg( 'credits', [ 'variables' => [ $MusikAnimal, $Kaldari, $MarcelRuizForns ], 'parsemag' => true ] );; ?>
</span>
<div>
<span class="nowrap">
<?php $heart = "<span class='heart'>♥</span>"; ?>
<?php $host = "<a href='https://wikitech.wikimedia.org/wiki/Portal:Tool_Labs'>" . $I18N->msg( 'tool-labs' ) . "</a>"; ?>
<?php echo $I18N->msg( 'hosted', [ 'variables' => [ $heart, $host ], 'parsemag' => true ] );; ?>
</span>
<span class="nowrap">
<?php $translateWiki = "<a href='https://translatewiki.net/'>translatewiki.net</a>"; ?>
<?php $jqueryI18n = "<a href='https://github.com/wikimedia/jquery.i18n'>jQuery.i18n</a>"; ?>
<?php $intuition = "<a href='https://intuition.toolforge.org#tab-about'>Intuition</a>"; ?>
<?php echo $I18N->msg( 'translation-credits', [ 'variables' => [ $translateWiki, $jqueryI18n, $intuition ], 'parsemag' => true ] ); ?>
</span>
</div>
<div>
<?php if ( $currentApp !== 'metaviews' ) { ?>
<a href="/<?php echo $currentApp; ?>/faq"><?php echo $I18N->msg( 'faq' ); ?></a>
·
<a href="/<?php echo $currentApp; ?>/url_structure"><?php echo $I18N->msg( 'url-structure' ); ?></a>
·
<?php } ?>
<a href="https://github.com/MusikAnimal/pageviews"><?php echo $I18N->msg( 'view-source' ); ?></a>
·
<a href="https://meta.wikimedia.org/wiki/Talk:Pageviews_Analysis"><?php echo $I18N->msg( 'report-issue' ); ?></a>
</div>
</footer>
<?php if ( strpos( $_SERVER['PHP_SELF'], 'faq' ) !== false ) { ?>
<script type="text/javascript">
//<![CDATA[
if (location.hash) $(location.hash).addClass('flash');
//]]>
</script>
<?php } ?>
<script type="text/javascript">
//<![CDATA[
if ( !window.noAdBlockers ) {
var noticeContent = document.getElementById('ad_blocker_notice');
document.querySelector('.site-header').innerHTML = noticeContent.innerHTML + document.querySelector('.site-header').innerHTML;
}
//]]>
</script>