cleanup, monobook
authorGabriel Wicke <gwicke@users.mediawiki.org>
Tue, 30 Mar 2004 00:25:14 +0000 (00:25 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Tue, 30 Mar 2004 00:25:14 +0000 (00:25 +0000)
includes/SkinPHPTal.php

index 8ada94c..acff599 100644 (file)
                        
                                $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'));
 
                                                } else {
                                                        $content_actions['move'] = array('class' => 'inactive',
                                                        'text' => wfMsg('move'),
-                                                       'href' => '',
-                                                       'akey' => '');
+                                                       'href' => false,
+                                                       'akey' => false);
 
                                                }
                                        }
                                        }
                                }
                        } 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);
 
                }
        }
        
+       class SkinMonoBook extends SkinPHPTal {
+               function initPage() {
+                       SkinPHPTal::initPage();
+                       $this->skinname = "monobook";
+                       $this->template = "xhtml_slim";
+               }
+       }
+       
 ?>