if( $disclaimer ) {
$s .= ' | ' . $disclaimer;
}
+ $privacy = $this->privacyLink(); # may be empty too
+ if( $privacy ) {
+ $s .= ' | ' . $privacy;
+ }
if ( $wgOut->isArticleRelated() ) {
if ( $wgTitle->getNamespace() == NS_IMAGE ) {
return $s;
}
+ function privacyLink() {
+ $privacy = wfMsg( 'privacy' );
+ if ($privacy == '-') {
+ return '';
+ } else {
+ return $this->makeKnownLink( wfMsgForContent( 'privacypage' ), $privacy);
+ }
+ }
+
function aboutLink() {
$s = $this->makeKnownLink( wfMsgForContent( 'aboutpage' ),
wfMsg( 'aboutsite' ) );
return $s;
}
-
function disclaimerLink() {
$disclaimers = wfMsg( 'disclaimers' );
if ($disclaimers == '-') {
$tpl->set( 'copyrightico', $this->getCopyrightIcon() );
$tpl->set( 'poweredbyico', $this->getPoweredBy() );
$tpl->set( 'disclaimer', $this->disclaimerLink() );
+ $tpl->set( 'privacy', $this->privacyLink() );
$tpl->set( 'about', $this->aboutLink() );
$tpl->setRef( 'debug', $out->mDebugtext );
'disclaimers' => 'Disclaimers',
'disclaimerpage' => 'Project:General_disclaimer',
+'privacy' => 'Privacy policy',
+'privacypage' => 'Project:Privacy_policy',
'errorpagetitle' => 'Error',
'returnto' => 'Return to $1.',
'tagline' => 'From {{SITENAME}}',
<?php if($this->data['numberofwatchingusers' ]) { ?><li id="f-numberofwatchingusers"><?php $this->html('numberofwatchingusers') ?></li><?php } ?>
<?php if($this->data['credits' ]) { ?><li id="f-credits"><?php $this->html('credits') ?></li><?php } ?>
<?php if($this->data['copyright' ]) { ?><li id="f-copyright"><?php $this->html('copyright') ?></li><?php } ?>
+ <?php if($this->data['privacy' ]) { ?><li id="f-privacy"><?php $this->html('privacy') ?></li><?php } ?>
<?php if($this->data['about' ]) { ?><li id="f-about"><?php $this->html('about') ?></li><?php } ?>
<?php if($this->data['disclaimer']) { ?><li id="f-disclaimer"><?php $this->html('disclaimer') ?></li><?php } ?>
<?php if($this->data['tagline']) { ?><li id="f-tagline"><?php echo $this->data['tagline'] ?></li><?php } ?>
div#f-copyrightico,
li#f-viewcount,
li#f-about,
-li#f-disclaimer {
+li#f-disclaimer,
+li#f-privacy {
/* Hides all the elements irrelevant for printing */
display: none;
}