本文整理汇总了PHP中Wikia::isOasis方法的典型用法代码示例。如果您正苦于以下问题:PHP Wikia::isOasis方法的具体用法?PHP Wikia::isOasis怎么用?PHP Wikia::isOasis使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Wikia
的用法示例。
在下文中一共展示了Wikia::isOasis方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: wfMsg
<div class="ajax-login-slider-panel" id="AjaxLoginConnectMarketing">
<div class="clearfix">
<?php
if (Wikia::isOasis()) {
// add FB login button (RT #68846)
echo wfMsg('comboajaxlogin-log-in-with-facebook-oasis');
echo '<div class="ajax-login-fb-login">' . $fbButtton . '</div>';
echo wfMsg("comboajaxlogin-connectmarketing-oasis");
} else {
echo wfMsg("comboajaxlogin-connectmarketing");
}
?>
<a href="#" class="back"><?php
echo wfMsg("comboajaxlogin-connectmarketing-back");
?>
</a>
<a href="#" class="forward"><?php
echo wfMsg("comboajaxlogin-connectmarketing-forward");
?>
</a>
</div>
</div>
<div class="ajax-login-slider-panel" id='fbLoginAndConnect' style='display:none'>
<?php
echo wfMsg("comboajaxlogin-connectdirections");
?>
<form action="" method="post" name="userajaxconnectform" id="userajaxconnectform">
<label for="wpName3Ajax" style="display: block; font-weight: bold;"><?php
print wfMsg("yourname");
?>
</label>
示例2: setHeaders
function setHeaders()
{
global $wgOut, $wgUser;
$wgOut->addModules('mediawiki.action.edit');
if ($wgUser->getOption('uselivepreview', false)) {
$wgOut->addModules('mediawiki.legacy.preview');
}
/* Wikia change begin - @author: Marcin, #BugId: 7845 */
/* Move with MW 1.19 merge */
if (!Wikia::isOasis()) {
$wgOut->addScriptFile('edit.js');
}
/* Wikia change end */
// Bug #19334: textarea jumps when editing articles in IE8
$wgOut->addStyle('common/IE80Fixes.css', 'screen', 'IE 8');
$wgOut->setRobotPolicy('noindex,nofollow');
# Enabled article-related sidebar, toplinks, etc.
$wgOut->setArticleRelated(true);
if ($this->isConflict) {
$wgOut->setPageTitle(wfMessage('editconflict', $this->getContextTitle()->getPrefixedText()));
} elseif ($this->section != '') {
$msg = $this->section == 'new' ? 'editingcomment' : 'editingsection';
$wgOut->setPageTitle(wfMessage($msg, $this->getContextTitle()->getPrefixedText()));
} else {
# Use the title defined by DISPLAYTITLE magic word when present
if (isset($this->mParserOutput) && ($dt = $this->mParserOutput->getDisplayTitle()) !== false) {
$title = $dt;
} else {
$title = $this->getContextTitle()->getPrefixedText();
}
$wgOut->setPageTitle(wfMessage('editing', $title));
}
}