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 $s .= "/* highlightbroken: " . $wgUser->getOption('highlightbroken') . " */\n";
33 if (($undopt = $wgUser->getOption("underline")) != 2) {
34 $underline = $undopt ?
'underline' : 'none';
35 $s .= "a { text-decoration: $underline; }\n";
37 if (!$wgUser->getOption('highlightbroken')) {
38 $s .= "a.new, #quickbar a.new { text-decoration: line-through; }\n";
41 a.new, #quickbar a.new,
42 a.stub, #quickbar a.stub {
44 text-decoration: inherit;
46 a.new:after, #quickbar a.new:after {
49 text-decoration: $underline;
51 a.stub:after, #quickbar a.stub:after {
54 text-decoration: $underline;
58 if ($wgUser->getOption('justify')) {
59 $s .= "#article, #bodyContent { text-align: justify; }\n";
61 if (!$wgUser->getOption('showtoc')) {
62 $s .= "#toc { display: none; }\n";
64 if (!$wgUser->getOption('editsection')) {
65 $s .= ".editsection { display: none; }\n";