10 if( !defined( 'MEDIAWIKI' ) )
14 require_once('MonoBook.php');
21 class SkinSimple
extends SkinTemplate
{
22 function initPage( &$out ) {
23 SkinTemplate
::initPage( $out );
24 $this->skinname
= 'simple';
25 $this->stylename
= 'simple';
26 $this->template
= 'MonoBookTemplate';
29 function reallyDoGetUserStyles() {
32 if (($undopt = $wgUser->getOption("underline")) != 2) {
33 $underline = $undopt ?
'underline' : 'none';
34 $s .= "a { text-decoration: $underline; }\n";
36 if ($wgUser->getOption('highlightbroken')) {
37 $s .= "a.new, #quickbar a.new { text-decoration: line-through; }\n";
40 a.new, #quickbar a.new,
41 a.stub, #quickbar a.stub {
43 text-decoration: inherit;
45 a.new:after, #quickbar a.new:after {
48 text-decoration: $underline;
50 a.stub:after, #quickbar a.stub:after {
53 text-decoration: $underline;
57 if ($wgUser->getOption('justify')) {
58 $s .= "#article, #bodyContent { text-align: justify; }\n";
60 if (!$wgUser->getOption('showtoc')) {
61 $s .= "#toc { display: none; }\n";
63 if (!$wgUser->getOption('editsection')) {
64 $s .= ".editsection { display: none; }\n";