本文整理汇总了PHP中SkinTemplate::setupSkinUserCss方法的典型用法代码示例。如果您正苦于以下问题:PHP SkinTemplate::setupSkinUserCss方法的具体用法?PHP SkinTemplate::setupSkinUserCss怎么用?PHP SkinTemplate::setupSkinUserCss使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SkinTemplate
的用法示例。
在下文中一共展示了SkinTemplate::setupSkinUserCss方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setupSkinUserCss
function setupSkinUserCss(OutputPage $out)
{
global $wgStylePath;
parent::setupSkinUserCss($out);
$out->addModuleStyles('skins.modern-skylight');
if ($out->getTitle()->isMainPage()) {
$out->addModuleStyles('skins.modern-skylight.mainpage');
$out->addModuleStyles('skins.modern-skylight.sidebar');
}
switch ($out->getTitle()->getNamespace()) {
case NS_MAIN:
case NS_SANDBOX:
case NS_PROJECT:
case NS_IMAGE:
case NS_TEMPLATE:
case NS_HELP:
$out->addModuleStyles('skins.modern-skylight.article');
break;
case NS_PORTAL:
$out->addModuleStyles('skins.modern-skylight.portal');
break;
case NS_CATEGORY:
$out->addModuleStyles('skins.modern-skylight.article');
$out->addModuleStyles('skins.modern-skylight.catpage');
}
}
示例2: setupSkinUserCss
function setupSkinUserCss(OutputPage $out)
{
global $wgHandheldStyle, $wgStyleVersion, $wgJsMimeType, $wgStylePath;
parent::setupSkinUserCss($out);
// Append to the default screen common & print styles...
$out->addStyle('ewg/main.css', 'screen');
}
示例3: setupSkinUserCss
function setupSkinUserCss(OutputPage $out)
{
parent::setupSkinUserCss($out);
// Add CSS & JS
$out->addModuleStyles(array('skins.nimbus', 'skins.monobook'));
$out->addModuleScripts('skins.nimbus');
}
示例4: setupSkinUserCss
/**
* Loads skin and user CSS files.
* @param $out OutputPage object
*/
function setupSkinUserCss( OutputPage $out ) {
parent::setupSkinUserCss( $out );
$styles = array( 'skins.vector' );
wfRunHooks( 'SkinVectorStyleModules', array( &$this, &$styles ) );
$out->addModuleStyles( $styles );
}
示例5: setupSkinUserCss
/**
* Loads skin and user CSS files.
* @param OutputPage $out
*/
function setupSkinUserCss(OutputPage $out)
{
parent::setupSkinUserCss($out);
$styles = array('mediawiki.skinning.interface', 'skins.mediawikibootstrap');
wfRunHooks('SkinMediawikibootstrapStyleModules', array($this, &$styles));
$out->addModuleStyles($styles);
}
示例6: setupSkinUserCss
/**
* Loads skin and user CSS files.
* @param OutputPage $out
*/
function setupSkinUserCss(OutputPage $out)
{
parent::setupSkinUserCss($out);
$styles = array('skins.libre.styles');
wfRunHooks('SkinLibreStyleModules', array($this, &$styles));
$out->addModuleStyles($styles);
}
示例7: setupSkinUserCss
/**
* @param $out OutputPage
*/
function setupSkinUserCss(OutputPage $out)
{
parent::setupSkinUserCss($out);
$out->addModuleStyles('skins.chick');
// TODO: Migrate all of these to RL
$out->addStyle('chick/IE60Fixes.css', 'screen,handheld', 'IE 6');
}
示例8: setupSkinUserCss
function setupSkinUserCss(OutputPage $out)
{
global $wgLocalStylePath;
parent::setupSkinUserCss($out);
$out->addStyle('scratchwikiskin/main.css', 'screen');
$out->addHeadItem('skinscript', "<script type='text/javascript' src='{$wgLocalStylePath}/scratchwikiskin/skin.js'></script>");
}
示例9: setupSkinUserCss
/**
* Loads skin and user CSS files.
* @param OutputPage $out
*/
function setupSkinUserCss(OutputPage $out)
{
parent::setupSkinUserCss($out);
$styles = array('mediawiki.skinning.interface', 'skins.vector.styles');
Hooks::run('SkinVectorStyleModules', array($this, &$styles));
$out->addModuleStyles($styles);
}
示例10: setupSkinUserCss
function setupSkinUserCss(OutputPage $out)
{
parent::setupSkinUserCss($out);
$out->addHeadItem('font-awesome', '<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" />');
$out->addHeadItem('google-ads', '<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>');
$out->addModuleStyles(array('skins.liberty.styles'));
}
示例11: setupSkinUserCss
function setupSkinUserCss(OutputPage $out)
{
global $wgHandheldStyle;
parent::setupSkinUserCss($out);
// Append to the default screen common & print styles...
$out->addStyle('cavendishmw/main.css', 'screen');
}
示例12: setupSkinUserCss
/**
* Load skin and user CSS files in the correct order
* @param $out OutputPage object
*/
function setupSkinUserCss(OutputPage $out)
{
parent::setupSkinUserCss($out);
// Use the monobook styles as the basis.
//$out->addModuleStyles( 'skins.monobook' );
// Load the cavendish stylesheets.
$out->addModuleStyles('skins.cavendishmw');
}
示例13: setupSkinUserCss
/**
* prepares the skin's CSS
*/
public function setupSkinUserCss(OutputPage $out)
{
global $wgSiteCSS;
parent::setupSkinUserCss($out);
$out->addModuleStyles('skins.bootstrapmediawiki');
// we need to include this here so the file pathing is right
$out->addStyle('bootstrap-mediawiki/font-awesome/css/font-awesome.min.css');
}
示例14: setupSkinUserCss
/**
* @param $out OutputPage
*/
function setupSkinUserCss(OutputPage $out)
{
parent::setupSkinUserCss($out);
$out->addModuleStyles('skins.monobook');
// TODO: Migrate all of these
$out->addStyle('monobook/IE60Fixes.css', 'screen', 'IE 6');
$out->addStyle('monobook/IE70Fixes.css', 'screen', 'IE 7');
}
示例15: setupSkinUserCss
/**
* @param OutputPage $out
*/
function setupSkinUserCss(OutputPage $out)
{
parent::setupSkinUserCss($out);
$out->addModuleStyles(array('mediawiki.skinning.interface', 'mediawiki.skinning.content.externallinks', 'skins.archlinux.styles'));
// TODO: Migrate all of these
$out->addStyle($this->stylename . '/IE60Fixes.css', 'screen', 'IE 6');
$out->addStyle($this->stylename . '/IE70Fixes.css', 'screen', 'IE 7');
}