當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Skin::doGetUserStyles方法代碼示例

本文整理匯總了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;
 }
開發者ID:negabaro,項目名稱:alfresco,代碼行數:22,代碼來源:Standard.php

示例2: doGetUserStyles

	function doGetUserStyles() {
		global $wgOut;
		$s = parent::doGetUserStyles();
		$qb = $this->qbSetting();

		return $s;
	}
開發者ID:renemilk,項目名稱:spring-website,代碼行數:7,代碼來源:SpringNew.php

示例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;
 }
開發者ID:BackupTheBerlios,項目名稱:openzaurus-svn,代碼行數:27,代碼來源:CologneBlue.php


注:本文中的Skin::doGetUserStyles方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。