10 if( !defined( 'MEDIAWIKI' ) )
14 require_once( dirname(__FILE__
) . '/MonoBook.php' );
20 class SkinSimple
extends SkinTemplate
{
21 function initPage( OutputPage
$out ) {
22 SkinTemplate
::initPage( $out );
23 $this->skinname
= 'simple';
24 $this->stylename
= 'simple';
25 $this->template
= 'MonoBookTemplate';
28 function setupSkinUserCss( OutputPage
$out ){
29 $out->addStyle( 'simple/main.css', 'screen' );
30 $out->addStyle( 'simple/rtl.css', '', '', 'rtl' );
34 function reallyGenerateUserStylesheet() {
37 if (($undopt = $wgUser->getOption("underline")) != 2) {
38 $underline = $undopt ?
'underline' : 'none';
39 $s .= "a { text-decoration: $underline; }\n";
41 if ($wgUser->getOption('highlightbroken')) {
42 $s .= "a.new, #quickbar a.new { text-decoration: line-through; }\n";
45 a.new, #quickbar a.new,
46 a.stub, #quickbar a.stub {
48 text-decoration: inherit;
50 a.new:after, #quickbar a.new:after {
53 text-decoration: $underline;
55 a.stub:after, #quickbar a.stub:after {
58 text-decoration: $underline;
62 if ($wgUser->getOption('justify')) {
63 $s .= "#article, #bodyContent { text-align: justify; }\n";
65 if (!$wgUser->getOption('showtoc')) {
66 $s .= "#toc { display: none; }\n";
68 if (!$wgUser->getOption('editsection')) {
69 $s .= ".editsection { display: none; }\n";