本文整理汇总了PHP中Skin::doGetUserStyles方法的典型用法代码示例。如果您正苦于以下问题:PHP Skin::doGetUserStyles方法的具体用法?PHP Skin::doGetUserStyles怎么用?PHP Skin::doGetUserStyles使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Skin
的用法示例。
在下文中一共展示了Skin::doGetUserStyles方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: doGetUserStyles
/**
*
*/
function doGetUserStyles()
{
global $wgStylePath;
$s = parent::doGetUserStyles();
$qb = $this->qbSetting();
if (2 == $qb) {
# Right
$s .= "#quickbar { position: absolute; top: 4px; right: 4px; " . "border-left: 2px solid #000000; }\n" . "#article { margin-left: 4px; margin-right: 152px; }\n";
} else {
if (1 == $qb || 3 == $qb) {
$s .= "#quickbar { position: absolute; top: 4px; left: 4px; " . "border-right: 1px solid gray; }\n" . "#article { margin-left: 152px; margin-right: 4px; }\n";
} else {
if (4 == $qb) {
$s .= "#quickbar { border-right: 1px solid gray; }\n" . "#article { margin-right: 152px; margin-left: 4px; }\n";
}
}
}
return $s;
}
示例2: doGetUserStyles
function doGetUserStyles() {
global $wgOut;
$s = parent::doGetUserStyles();
$qb = $this->qbSetting();
return $s;
}
示例3: doGetUserStyles
function doGetUserStyles()
{
global $wgOut, $wgStyleSheetPath;
$s = parent::doGetUserStyles();
$qb = $this->qbSetting();
if (2 == $qb) {
# Right
$s .= "#quickbar { position: absolute; right: 4px; }\n" . "#article { margin-left: 4px; margin-right: 148px; }\n";
} else {
if (1 == $qb) {
$s .= "#quickbar { position: absolute; left: 4px; }\n" . "#article { margin-left: 148px; margin-right: 4px; }\n";
} else {
if (3 == $qb) {
# Floating left
$s .= "#quickbar { position:absolute; left:4px } \n" . "#topbar { margin-left: 148px }\n" . "#article { margin-left:148px; margin-right: 4px; } \n" . "body>#quickbar { position:fixed; left:4px; top:4px; overflow:auto ;bottom:4px;} \n";
# Hides from IE
} else {
if (4 == $qb) {
# Floating right
$s .= "#quickbar { position: fixed; right: 4px; } \n" . "#topbar { margin-right: 148px }\n" . "#article { margin-right: 148px; margin-left: 4px; } \n" . "body>#quickbar { position: fixed; right: 4px; top: 4px; overflow: auto ;bottom:4px;} \n";
# Hides from IE
}
}
}
}
return $s;
}