本文整理汇总了PHP中wfLoadSkin函数的典型用法代码示例。如果您正苦于以下问题:PHP wfLoadSkin函数的具体用法?PHP wfLoadSkin怎么用?PHP wfLoadSkin使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wfLoadSkin函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: die
<?php
/**
* This PHP entry point is deprecated. Please use wfLoadSkin() and the skin.json file
* instead. See https://www.mediawiki.org/wiki/Manual:Extension_registration for more details.
*/
if (!function_exists('wfLoadSkin')) {
die('The Timeless skin requires MediaWiki 1.25 or newer.');
}
wfLoadSkin('Timeless');
开发者ID:CMDM-Lab,项目名称:lab_website,代码行数:10,代码来源:Timeless.php
示例2: string
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";
# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "en-gb";
$wgSecretKey = "[removed]";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "[removed]";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = "";
# Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
# The following permissions were set based on your choice in the installer
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "monobook";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin('Modern');
wfLoadSkin('MonoBook');
# End of automatically generated settings.
# Add more configuration options below.
开发者ID:WikiMissing,项目名称:mw-config,代码行数:31,代码来源:LSTemplate.php
示例3: wfLoadSkin
<?php
if (function_exists('wfLoadSkin')) {
wfLoadSkin('Metrolook');
// Keep i18n globals so mergeMessageFileList.php doesn't break
$GLOBALS['wgMessagesDirs']['Metrolook'] = __DIR__ . '/i18n';
/* wfWarn(
'Deprecated PHP entry point used for Metrolook skin. Please use wfLoadSkin instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
); */
return true;
} else {
die('This version of the Metrolook skin requires MediaWiki 1.25+');
}
开发者ID:paladox,项目名称:mediawiki-skins-Metrolook,代码行数:14,代码来源:Metrolook.php
示例4: wfLoadSkin
<?php
/**
* Foreground Skin
*
* @file
* @ingroup Skins
* @author Garrick Van Buren, Jamie Thingelstad, Tom Hutchison
* @license 2-clause BSD
*/
if (function_exists('wfLoadSkin')) {
wfLoadSkin('foreground');
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['SkinForeground'] = __DIR__ . '/i18n';
/* wfWarn(
'Deprecated PHP entry point used for foreground skin. Please use wfLoadSkin instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
); */
return;
}
$wgExtensionCredits['skin'][] = array('path' => __FILE__, 'name' => 'Foreground', 'url' => 'http://foreground.thingelstad.com/', 'author' => array('Garrick Van Buren', 'Jamie Thingelstad', 'Tom Hutchison', '...'), 'version' => '2.0.0 (Albert)', 'descriptionmsg' => 'foreground-desc');
$wgValidSkinNames['foreground'] = 'Foreground';
$wgAutoloadClasses['SkinForeground'] = __DIR__ . '/Foreground.skin.php';
$wgAutoloadClasses['foregroundTemplate'] = __DIR__ . '/Foreground.skin.php';
$wgMessagesDirs['SkinForeground'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['SkinForeground'] = __DIR__ . '/Foreground.i18n.php';
$wgResourceModules['skins.foreground.styles'] = array('position' => 'top', 'styles' => array('foreground/assets/stylesheets/normalize.css', 'foreground/assets/stylesheets/font-awesome.css', 'foreground/assets/stylesheets/foundation.css', 'foreground/assets/stylesheets/foreground.css', 'foreground/assets/stylesheets/foreground-print.css'), 'remoteBasePath' => &$GLOBALS['wgStylePath'], 'localBasePath' => &$GLOBALS['wgStyleDirectory']);
$wgResourceModules['skins.foreground.modernizr'] = array('position' => 'top', 'scripts' => array('foreground/assets/scripts/vendor/modernizr.js'), 'remoteBasePath' => &$GLOBALS['wgStylePath'], 'localBasePath' => &$GLOBALS['wgStyleDirectory']);
$wgResourceModules['skins.foreground.js'] = array('position' => 'bottom', 'scripts' => array('foreground/assets/scripts/vendor/fastclick.js', 'foreground/assets/scripts/vendor/placeholder.js', 'foreground/assets/scripts/foundation/foundation.js', 'foreground/assets/scripts/foundation/foundation.topbar.js', 'foreground/assets/scripts/foundation/foundation.dropdown.js', 'foreground/assets/scripts/foundation/foundation.joyride.js', 'foreground/assets/scripts/foundation/foundation.accordion.js', 'foreground/assets/scripts/foundation/foundation.alert.js', 'foreground/assets/scripts/foundation/foundation.clearing.js', 'foreground/assets/scripts/foundation/foundation.equalizer.js', 'foreground/assets/scripts/foundation/foundation.interchange.js', 'foreground/assets/scripts/foundation/foundation.offcanvas.js', 'foreground/assets/scripts/foundation/foundation.orbit.js', 'foreground/assets/scripts/foundation/foundation.reveal.js', 'foreground/assets/scripts/foundation/foundation.tab.js', 'foreground/assets/scripts/foundation/foundation.tooltip.js', 'foreground/assets/scripts/foreground.js'), 'dependencies' => array('jquery.cookie', 'skins.foreground.modernizr'), 'remoteBasePath' => &$GLOBALS['wgStylePath'], 'localBasePath' => &$GLOBALS['wgStyleDirectory']);
开发者ID:piousbox,项目名称:foreground,代码行数:29,代码来源:foreground.php
示例5: wfLoadSkin
<?php
if (function_exists('wfLoadSkin')) {
wfLoadSkin('LiquiFlow');
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['LiquiFlow'] = __DIR__ . '/i18n';
/* wfWarn(
'Deprecated PHP entry point used for LiquiFlow skin. Please use wfLoadSkin instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
); */
return true;
} else {
die('This version of the Vector skin requires MediaWiki 1.25+');
}
开发者ID:chapatiyaq,项目名称:flow,代码行数:14,代码来源:LiquiFlow.php
示例6: wfLoadSkin
<?php
/**
* Aebian Wiki Theme
*
* @file
* @ingroup Skins
* @author Alexander Knight (https://Aebian.org/)
* @license https://Aebian.org/licenses/nm
*/
if (function_exists('wfLoadSkin')) {
wfLoadSkin('AebianTheme');
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['AebianTheme'] = __DIR__ . '/i18n';
/* wfWarn(
'Deprecated PHP entry point used for AebianTheme skin. ' .
'Please use wfLoadSkin instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
); */
return true;
} else {
die('This version of the AebianTheme skin requires MediaWiki 1.25+');
}
开发者ID:Aebian,项目名称:AebianTheme,代码行数:23,代码来源:AebianTheme.php
示例7: htmlspecialchars
if ($wmgUseClusterJobqueue) {
# Cluster-dependent files for job queue and job queue aggregator
require $wmfRealm === 'labs' ? "{$wmfConfigDir}/jobqueue-labs.php" : "{$wmfConfigDir}/jobqueue-{$wmfDatacenter}.php";
}
if ($wgDBname == 'nostalgiawiki') {
# Link back to current version from the archive funhouse
if (isset($_REQUEST['title']) && ($title = $_REQUEST['title']) || isset($_SERVER['PATH_INFO']) && ($title = substr($_SERVER['PATH_INFO'], 1))) {
if (preg_match('/^(.*)\\/Talk$/', $title, $matches)) {
$title = 'Talk:' . $matches[1];
}
$wgSiteNotice = "[//en.wikipedia.org/wiki/" . htmlspecialchars(urlencode($title)) . ' See the current version of this page on Wikipedia]';
} else {
$wgSiteNotice = "[//en.wikipedia.org/ See current Wikipedia]";
}
// Nostalgia skin
wfLoadSkin('Nostalgia');
}
$wgCopyrightIcon = '<a href="//wikimediafoundation.org/">' . '<img src="/static/images/wikimedia-button.png" ' . 'srcset="' . '/static/images/wikimedia-button-1.5x.png 1.5x, ' . '/static/images/wikimedia-button-2x.png 2x' . '" ' . 'width="88" height="31" alt="Wikimedia Foundation"/></a>';
# :SEARCH:
# All wikis are special and get Cirrus :)
require_once "{$IP}/extensions/Elastica/Elastica.php";
require_once "{$IP}/extensions/CirrusSearch/CirrusSearch.php";
include "{$wmfConfigDir}/CirrusSearch-common.php";
// Various DB contention settings
if (in_array($wgDBname, array('testwiki', 'test2wiki', 'mediawikiwiki', 'commonswiki'))) {
$wgSiteStatsAsyncFactor = 1;
}
# Deferred update still broken
$wgMaxSquidPurgeTitles = 500;
$wgInvalidateCacheOnLocalSettingsChange = false;
// General Cache Epoch
开发者ID:nomoa,项目名称:operations-mediawiki-config,代码行数:31,代码来源:CommonSettings.php
示例8: wfLoadSkin
<?php
if (function_exists('wfLoadSkin')) {
wfLoadSkin('MinervaNeue');
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['MinervaNeue'] = __DIR__ . '/i18n';
return true;
} else {
die('The Minerva Neue skin requires MediaWiki 1.25+');
}
开发者ID:jdlrobson,项目名称:MinervaNeue,代码行数:10,代码来源:MinervaNeue.php
示例9: wfLoadSkin
<?php
if (function_exists('wfLoadSkin')) {
wfLoadSkin('erudite');
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['Erudite'] = __DIR__ . '/i18n';
wfWarn('Deprecated PHP entry point used for erudite skin. Please use wfLoadExtension instead, ' . 'see https://www.mediawiki.org/wiki/Extension_registration for more details.');
return;
} else {
die('This version of the erudite skin requires MediaWiki 1.25+');
}
开发者ID:CMDM-Lab,项目名称:lab_website,代码行数:11,代码来源:erudite.php
示例10: string
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";
# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "en";
$wgSecretKey = "4234ee8c290e8148d33fa56bda9de154c43b771ac4f0aef4e040623e0410e6fe";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "4cc36aceeeaea158";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = "";
# Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin('CologneBlue');
wfLoadSkin('Modern');
wfLoadSkin('MonoBook');
wfLoadSkin('Vector');
# End of automatically generated settings.
# Add more configuration options below.
开发者ID:nayrslohcin,项目名称:wiki,代码行数:31,代码来源:LocalSettings.php
示例11: string
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
#$wgHashedUploadDirectory = false;
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";
# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "en";
$wgSecretKey = "623cf9898acfe0d2ea2030002131969be05d97ade872662746c7c9e83db52aa6";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "f3f1df5aee7abfd3";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = "";
# Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";
# End of automatically generated settings.
# Add more configuration options below.
wfLoadSkin("Vector");
开发者ID:stevebritton,项目名称:catapult-release-management,代码行数:30,代码来源:LocalSettings.php
注:本文中的wfLoadSkin函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论