function wfCOBeforePageDisplay(OutputPage &$out, &$sk) { global $wgExtensionsPath; if (wfCOCheck()) { $out->addExtensionStyle("{$wgExtensionsPath}/wikia/CommentsOnly/CommentsOnly.css"); } return true; }
/** * Adds required JavaScript & CSS files to the HTML output of a page if AjaxLogin is enabled * * @param $out OutputPage object * @return true */ function AjaxLoginJS(OutputPage $out) { global $wgEnableAjaxLogin, $wgScriptPath; # Don't load anything if AjaxLogin isn't enabled or if we're on login page if (!isset($wgEnableAjaxLogin) || $out->getTitle()->isSpecial('Userlogin')) { return true; } // Our custom CSS $out->addExtensionStyle($wgScriptPath . '/extensions/AjaxLogin/AjaxLogin.css'); // jQuery and JQModal scripts $out->includeJQuery(); $out->addScriptFile($wgScriptPath . '/extensions/AjaxLogin/jqModal.js'); $out->addScriptFile($wgScriptPath . '/extensions/AjaxLogin/AjaxLogin.js'); return true; }
/** * @static * @param OutputPage $out * @param Skin $sk * @return bool */ public static function ArticleCommentAddJS(&$out, &$sk) { global $wgExtensionsPath; wfProfileIn(__METHOD__); if (self::ArticleCommentCheck()) { //FB#21244 this should run only for MonoBook, Oasis and WikiaMobile have their own SASS-based styling if ($sk instanceof SkinMonoBook) { $out->addExtensionStyle("{$wgExtensionsPath}/wikia/ArticleComments/css/ArticleComments.css"); } } wfProfileOut(__METHOD__); return true; }
/** * @param OutputPage $out * @param $skin * @return bool */ function wfWikiAnswersAddStyle(&$out, &$skin) { global $wgExtensionsPath; $out->addExtensionStyle("{$wgExtensionsPath}/wikia/WikiAnswers/WikiAnswers.css"); return true; }