-<?
+<?php
# See skin.doc
class SkinStandard extends Skin {
function getHeadScripts()
{
- global $wgStyleSheetPath;
+ global $wgStylePath;
$s = parent::getHeadScripts();
if ( 3 == $this->qbSetting() ) { # Floating left
$s .= "<script language='javascript' type='text/javascript' " .
- "src='{$wgStyleSheetPath}/sticky.js'></script>\n";
+ "src='{$wgStylePath}/sticky.js'></script>\n";
}
return $s;
}
function getUserStyles()
{
- global $wgStyleSheetPath;
+ global $wgStylePath;
$s = parent::getUserStyles();
if ( 3 == $this->qbSetting() ) { # Floating left
- $s .= "<style type='text/css' media='screen'>\n" .
- "@import '{$wgStyleSheetPath}/quickbar.css';\n</style>\n";
+ $s .= "<style type='text/css'>\n" .
+ "@import '{$wgStylePath}/quickbar.css';\n</style>\n";
}
return $s;
}
function doGetUserStyles()
{
- global $wgUser, $wgOut, $wgStyleSheetPath;
+ global $wgUser, $wgOut, $wgStylePath;
$s = parent::doGetUserStyles();
$qb = $this->qbSetting();
"#article { margin-left: 4px; margin-right: 152px; }\n";
} else if ( 1 == $qb || 3 == $qb ) {
$s .= "#quickbar { position: absolute; top: 4px; left: 4px; " .
- "border-right: 2px solid #000000; }\n" .
+ "border-right: 1px solid gray; }\n" .
"#article { margin-left: 152px; margin-right: 4px; }\n";
}
return $s;
$a = parent::getBodyOptions();
if ( 3 == $this->qbSetting() ) { # Floating left
- $a["onload"] = "setup(\"quickbar\")";
+ $qb = "setup(\"quickbar\")";
+ if($a["onload"]) {
+ $a["onload"] .= ";$qb";
+ } else {
+ $a["onload"] = $qb;
+ }
}
return $a;
}