9 if( !defined( 'MEDIAWIKI' ) )
13 require_once( dirname(__FILE__
) . '/MonoBook.php' );
19 class SkinSimple
extends SkinTemplate
{
20 function initPage( &$out ) {
21 SkinTemplate
::initPage( $out );
22 $this->skinname
= 'simple';
23 $this->stylename
= 'simple';
24 $this->template
= 'MonoBookTemplate';
27 function reallyDoGetUserStyles() {
30 if (($undopt = $wgUser->getOption("underline")) != 2) {
31 $underline = $undopt ?
'underline' : 'none';
32 $s .= "a { text-decoration: $underline; }\n";
34 if ($wgUser->getOption('highlightbroken')) {
35 $s .= "a.new, #quickbar a.new { text-decoration: line-through; }\n";
38 a.new, #quickbar a.new,
39 a.stub, #quickbar a.stub {
41 text-decoration: inherit;
43 a.new:after, #quickbar a.new:after {
46 text-decoration: $underline;
48 a.stub:after, #quickbar a.stub:after {
51 text-decoration: $underline;
55 if ($wgUser->getOption('justify')) {
56 $s .= "#article, #bodyContent { text-align: justify; }\n";
58 if (!$wgUser->getOption('showtoc')) {
59 $s .= "#toc { display: none; }\n";
61 if (!$wgUser->getOption('editsection')) {
62 $s .= ".editsection { display: none; }\n";