10 if( !defined( 'MEDIAWIKI' ) )
14 require_once( dirname(__FILE__
) . '/MonoBook.php' );
20 class SkinSimple
extends SkinTemplate
{
21 function initPage( &$out ) {
22 SkinTemplate
::initPage( $out );
23 $this->skinname
= 'simple';
24 $this->stylename
= 'simple';
25 $this->template
= 'MonoBookTemplate';
28 function reallyDoGetUserStyles() {
31 if (($undopt = $wgUser->getOption("underline")) != 2) {
32 $underline = $undopt ?
'underline' : 'none';
33 $s .= "a { text-decoration: $underline; }\n";
35 if ($wgUser->getOption('highlightbroken')) {
36 $s .= "a.new, #quickbar a.new { text-decoration: line-through; }\n";
39 a.new, #quickbar a.new,
40 a.stub, #quickbar a.stub {
42 text-decoration: inherit;
44 a.new:after, #quickbar a.new:after {
47 text-decoration: $underline;
49 a.stub:after, #quickbar a.stub:after {
52 text-decoration: $underline;
56 if ($wgUser->getOption('justify')) {
57 $s .= "#article, #bodyContent { text-align: justify; }\n";
59 if (!$wgUser->getOption('showtoc')) {
60 $s .= "#toc { display: none; }\n";
62 if (!$wgUser->getOption('editsection')) {
63 $s .= ".editsection { display: none; }\n";