父节点
abf9e227b7
当前提交
20fd94b5ad
|
@ -1,9 +1,6 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": [
|
||||
"Isarra",
|
||||
"WaitSpring"
|
||||
]
|
||||
"authors": [ "Isarra", "WaitSpring" ]
|
||||
},
|
||||
"skinname-gongbi": "Gongbi",
|
||||
"gongbi-desc": "A new skin for Qiuwen Baike based on Timeless skin",
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
"gongbi-projects": "其他项目",
|
||||
"gongbi-menus-hover-title": "关闭菜单",
|
||||
"gongbi.css": "/* 这里放置的CSS将应用于Gongbi皮肤 */",
|
||||
"gongbi.js": "/* 将为Gongbi皮肤的用户加载此处的所有JavaScript */",
|
||||
"gongbi.js": "/* 将为Gongbi皮肤的用户加载此处的所有JavaScript */",
|
||||
"gongbi-view-history": "历史",
|
||||
"gongbi-action-undelete": "还原{{PLURAL:$1|1|$1}}次编辑"
|
||||
}
|
||||
|
|
文件差异内容过多而无法显示
加载差异
|
@ -1,10 +1,12 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Gongbi Skin
|
||||
* includes/GongbiTemplate.php
|
||||
* © 2015-2021 Isarra
|
||||
* © 2021-2022 WaitSpring
|
||||
*/
|
||||
|
||||
namespace MediaWiki\Skin\Gongbi;
|
||||
|
||||
use ResourceLoaderContext;
|
||||
|
@ -13,37 +15,40 @@ use ResourceLoaderSkinModule;
|
|||
/**
|
||||
* ResourceLoader module to set some LESS variables for the skin
|
||||
*/
|
||||
class GongbiVariablesModule extends ResourceLoaderSkinModule {
|
||||
/**
|
||||
* Add our LESS variables
|
||||
*
|
||||
* @param ResourceLoaderContext $context
|
||||
* @return array LESS variables
|
||||
*/
|
||||
protected function getLessVars( ResourceLoaderContext $context ) {
|
||||
$vars = parent::getLessVars( $context );
|
||||
$config = $this->getConfig();
|
||||
class GongbiVariablesModule extends ResourceLoaderSkinModule
|
||||
{
|
||||
/**
|
||||
* Add our LESS variables
|
||||
*
|
||||
* @param ResourceLoaderContext $context
|
||||
* @return array LESS variables
|
||||
*/
|
||||
protected function getLessVars(ResourceLoaderContext $context)
|
||||
{
|
||||
$vars = parent::getLessVars($context);
|
||||
$config = $this->getConfig();
|
||||
|
||||
return array_merge(
|
||||
$vars,
|
||||
[
|
||||
// 'logo-image' => ''
|
||||
// 'wordmark-image' => ''
|
||||
// +width cutoffs ...
|
||||
]
|
||||
);
|
||||
}
|
||||
return array_merge(
|
||||
$vars,
|
||||
[
|
||||
// 'logo-image' => ''
|
||||
// 'wordmark-image' => ''
|
||||
// +width cutoffs ...
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the config var with the caching stuff so it properly updates the cache
|
||||
*
|
||||
* @param ResourceLoaderContext $context
|
||||
* @return array
|
||||
*/
|
||||
public function getDefinitionSummary( ResourceLoaderContext $context ) {
|
||||
$summary = parent::getDefinitionSummary( $context );
|
||||
$summary[] = [];
|
||||
|
||||
return $summary;
|
||||
}
|
||||
/**
|
||||
* Register the config var with the caching stuff so it properly updates the cache
|
||||
*
|
||||
* @param ResourceLoaderContext $context
|
||||
* @return array
|
||||
*/
|
||||
public function getDefinitionSummary(ResourceLoaderContext $context)
|
||||
{
|
||||
$summary = parent::getDefinitionSummary($context);
|
||||
$summary[] = [];
|
||||
|
||||
return $summary;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Gongbi Skin
|
||||
* includes/GongbiTemplate.php
|
||||
* © 2015-2021 Isarra
|
||||
* © 2021-2022 WaitSpring
|
||||
*/
|
||||
|
||||
namespace MediaWiki\Skin\Gongbi;
|
||||
|
||||
use SkinTemplate;
|
||||
|
@ -14,13 +16,14 @@ use SkinTemplate;
|
|||
*
|
||||
* @ingroup Skins
|
||||
*/
|
||||
class SkinGongbi extends SkinTemplate {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function __construct(
|
||||
array $options = []
|
||||
) {
|
||||
parent::__construct( $options );
|
||||
}
|
||||
class SkinGongbi extends SkinTemplate
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function __construct(
|
||||
array $options = []
|
||||
) {
|
||||
parent::__construct($options);
|
||||
}
|
||||
}
|
||||
|
|
正在加载...
在新工单中引用