From f8f34124e9cacc73dbd6a55cc85f28ed799bb5fb Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Tue, 30 Mar 2004 00:25:14 +0000 Subject: [PATCH] cleanup, monobook --- includes/SkinPHPTal.php | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index 8ada94cd53..acff5990c1 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -159,7 +159,7 @@ $content_actions['article'] = array('class' => (!Namespace::isTalk( $wgTitle->getNamespace())) ? 'selected' : '', 'text' => wfMsg('article'), - 'href' => $this->makeArticleUrl($wgTitle->getPrefixedDbKey()), + 'href' => $this->makeArticleUrl($thispage), 'ttip' => wfMsg('tooltip-article'), 'akey' => wfMsg('accesskey-article')); @@ -241,8 +241,8 @@ } else { $content_actions['move'] = array('class' => 'inactive', 'text' => wfMsg('move'), - 'href' => '', - 'akey' => ''); + 'href' => false, + 'akey' => false); } } @@ -265,20 +265,13 @@ } } } else { - /* show special page actions */ + /* show special page tab */ $content_actions['article'] = array('class' => 'selected', 'text' => wfMsg('specialpage'), - 'href' => 'javascript:void()', + 'href' => false, 'ttip' => wfMsg('tooltip-specialpage'), - 'akey' => ''); - - /*if ($wgTitle->getDbKey() == 'Movepage') { - $content_actions['move'] = array('class' => 'selected', - 'i18n_key' => 'move', - 'href' => '', - 'akey' => ''); - }*/ + 'akey' => false); } $tpl->setRef('content_actions', &$content_actions); @@ -359,4 +352,12 @@ } } + class SkinMonoBook extends SkinPHPTal { + function initPage() { + SkinPHPTal::initPage(); + $this->skinname = "monobook"; + $this->template = "xhtml_slim"; + } + } + ?> -- 2.20.1