***SORRY*** new preference to disable "jump to" links (forgive my sin oh lord [brion...
authorTom Gilder <tomgilder@users.mediawiki.org>
Thu, 27 Oct 2005 00:11:41 +0000 (00:11 +0000)
committerTom Gilder <tomgilder@users.mediawiki.org>
Thu, 27 Oct 2005 00:11:41 +0000 (00:11 +0000)
includes/SkinTemplate.php
languages/Language.php
skins/MonoBook.php

index 3074d3a..4098d5f 100644 (file)
@@ -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']);
index 8cac926..9b48c99 100644 (file)
@@ -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',
index d8ff280..1c06eab 100644 (file)
@@ -85,7 +85,7 @@ class MonoBookTemplate extends QuickTemplate {
            <div id="contentSub"><?php $this->html('subtitle') ?></div>
            <?php if($this->data['undelete']) { ?><div id="contentSub2"><?php     $this->html('undelete') ?></div><?php } ?>
            <?php if($this->data['newtalk'] ) { ?><div class="usermessage"><?php $this->html('newtalk')  ?></div><?php } ?>
-           <div id="jump-to-nav"><?php $this->msg('jumpto') ?> <a href="#column-one"><?php $this->msg('jumptonavigation') ?></a>, <a href="#searchInput"><?php $this->msg('jumptosearch') ?></a></div>
+           <?php if($this->data['showjumplinks']) { ?><div id="jump-to-nav"><?php $this->msg('jumpto') ?> <a href="#column-one"><?php $this->msg('jumptonavigation') ?></a>, <a href="#searchInput"><?php $this->msg('jumptosearch') ?></a></div><?php } ?>
            <!-- start content -->
            <?php $this->html('bodytext') ?>
            <?php if($this->data['catlinks']) { ?><div id="catlinks"><?php       $this->html('catlinks') ?></div><?php } ?>