当前位置: 首页>>代码示例>>PHP>>正文


PHP SkinTemplate::setupSkinUserCss方法代码示例

本文整理汇总了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');
     }
 }
开发者ID:jdssem,项目名称:modern-skylight,代码行数:26,代码来源:modern-skylight.php

示例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');
 }
开发者ID:saper,项目名称:organic-extensions,代码行数:7,代码来源:EWG.php

示例3: setupSkinUserCss

 function setupSkinUserCss(OutputPage $out)
 {
     parent::setupSkinUserCss($out);
     // Add CSS & JS
     $out->addModuleStyles(array('skins.nimbus', 'skins.monobook'));
     $out->addModuleScripts('skins.nimbus');
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:7,代码来源:Nimbus.skin.php

示例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 );
	}
开发者ID:nahoj,项目名称:mediawiki_ynh,代码行数:11,代码来源:Vector.php

示例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);
 }
开发者ID:Azany,项目名称:mediawiki-bootstrap,代码行数:11,代码来源:MediaWikiBootstrap.skin.php

示例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);
 }
开发者ID:NessunKim,项目名称:MW_Skins,代码行数:11,代码来源:SkinLibre.php

示例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');
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:10,代码来源:Chick.php

示例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>");
 }
开发者ID:pluzsu,项目名称:scratchwikiskin,代码行数:7,代码来源:ScratchWikiSkin.php

示例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);
 }
开发者ID:MediaWiki-stable,项目名称:1.26.1,代码行数:11,代码来源:SkinVector.php

示例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'));
 }
开发者ID:librewiki,项目名称:liberty-skin,代码行数:7,代码来源:SkinLiberty.php

示例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');
 }
开发者ID:AmeBel,项目名称:opencog.org,代码行数:7,代码来源:CavendishMW.php

示例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');
 }
开发者ID:cleberps,项目名称:cavendishmw,代码行数:12,代码来源:CavendishMW.skin.php

示例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');
 }
开发者ID:chrishoke,项目名称:bootstrap-mediawiki,代码行数:11,代码来源:BootstrapMediaWiki.skin.php

示例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');
 }
开发者ID:mangowi,项目名称:mediawiki,代码行数:11,代码来源:MonoBook.php

示例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');
 }
开发者ID:kynikos,项目名称:archlinux-mediawiki,代码行数:11,代码来源:SkinArchLinux.php


注:本文中的SkinTemplate::setupSkinUserCss方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。