From: Tom Gilder Date: Thu, 27 Oct 2005 00:11:41 +0000 (+0000) Subject: ***SORRY*** new preference to disable "jump to" links (forgive my sin oh lord [brion... X-Git-Tag: 1.6.0~1297 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=1f4e3194158d94cd87a5033581183f9c02d81404;p=lhc%2Fweb%2Fwiklou.git ***SORRY*** new preference to disable "jump to" links (forgive my sin oh lord [brion]) ***SORRY*** --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 3074d3a705..4098d5f57d 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -255,6 +255,7 @@ class SkinTemplate extends Skin { $tpl->set( 'dir', $wgContLang->isRTL() ? "rtl" : "ltr" ); $tpl->set( 'rtl', $wgContLang->isRTL() ); $tpl->set( 'langname', $wgContLang->getLanguageName( $wgContLanguageCode ) ); + $tpl->set( 'showjumplinks', $wgUser->getOption( 'showjumplinks' ) ); $tpl->setRef( 'username', $this->username ); $tpl->setRef( 'userpage', $this->userpage); $tpl->setRef( 'userpageurl', $this->userpageUrlDetails['href']); diff --git a/languages/Language.php b/languages/Language.php index 8cac9265da..9b48c99bc9 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -81,6 +81,7 @@ if(isset($wgExtraNamespaces)) { 'fancysig' => 0, 'externaleditor' => 0, 'externaldiff' => 0, + 'showjumplinks' => 1, ); /* private */ $wgQuickbarSettingsEn = array( @@ -143,6 +144,7 @@ if(isset($wgExtraNamespaces)) { 'fancysig', 'externaleditor', 'externaldiff', + 'showjumplinks', ); /* private */ $wgBookstoreListEn = array( @@ -307,6 +309,7 @@ parent class in order maintain consistency across languages. 'tog-fancysig' => 'Raw signatures (without automatic link)', 'tog-externaleditor' => 'Use external editor by default', 'tog-externaldiff' => 'Use external diff by default', +'tog-showjumplinks' => 'Enable "jump to" accessibility links', 'underline-always' => 'Always', 'underline-never' => 'Never', diff --git a/skins/MonoBook.php b/skins/MonoBook.php index d8ff280492..1c06eab8c6 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -85,7 +85,7 @@ class MonoBookTemplate extends QuickTemplate {
html('subtitle') ?>
data['undelete']) { ?>
html('undelete') ?>
data['newtalk'] ) { ?>
html('newtalk') ?>
-
msg('jumpto') ?> msg('jumptonavigation') ?>, msg('jumptosearch') ?>
+ data['showjumplinks']) { ?>
msg('jumpto') ?> msg('jumptonavigation') ?>, msg('jumptosearch') ?>
html('bodytext') ?> data['catlinks']) { ?>