function getNewSystemGiftLink() { global $wgUser, $wgScriptPath; $gift_count = UserSystemGifts::getNewSystemGiftCount( $wgUser->getID() ); $gifts_title = SpecialPage::getTitleFor( 'ViewSystemGifts' ); $output = ''; if ( $gift_count > 0 ) { $output .= '<p> <img src="' . $wgScriptPath . '/extensions/SocialProfile/images/awardIcon.png" alt="" border="0" /> <span class="profile-on"><a href="' . $gifts_title->escapeFullURL() . '" rel="nofollow">' . wfMsgExt( 'mp-request-new-award', 'parsemag', $gift_count ) . '</a></span> </p>'; } return $output; }