當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。