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


PHP Wikia::isOasis方法代碼示例

本文整理匯總了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>
開發者ID:schwarer2006,項目名稱:wikia,代碼行數:31,代碼來源:ajaxLoginMerge.tmpl.php

示例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));
     }
 }
開發者ID:schwarer2006,項目名稱:wikia,代碼行數:33,代碼來源:EditPage.php


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