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


PHP wfLoadSkin函數代碼示例

本文整理匯總了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;未經允許,請勿轉載。