r94032 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94031‎ | r94032 | r94033 >
Date:19:59, 6 August 2011
Author:ashley
Status:ok
Tags:
Comment:
SocialProfile: add a span around all the links in UserWelcome; by default this element has no styling
Modified paths:
  • /trunk/extensions/SocialProfile/UserWelcome/UserWelcome.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/UserWelcome/UserWelcome.php
@@ -141,16 +141,16 @@
142142 if ( $friend_request_count > 0 ) {
143143 $output .= '<p>
144144 <img src="' . $wgScriptPath . '/extensions/SocialProfile/images/addedFriendIcon.png" alt="" border="0" />
145 - <a href="' . $relationship_request_link->escapeFullURL() . '" rel="nofollow">'
146 - . wfMsgExt( 'mp-request-new-friend', 'parsemag', $friend_request_count ) . '</a>
 145+ <span class="profile-on"><a href="' . $relationship_request_link->escapeFullURL() . '" rel="nofollow">'
 146+ . wfMsgExt( 'mp-request-new-friend', 'parsemag', $friend_request_count ) . '</a></span>
147147 </p>';
148148 }
149149
150150 if ( $foe_request_count > 0 ) {
151151 $output .= '<p>
152152 <img src="' . $wgScriptPath . '/extensions/SocialProfile/images/addedFoeIcon.png" alt="" border="0" />
153 - <a href="' . $relationship_request_link->escapeFullURL() . '" rel="nofollow">'
154 - . wfMsgExt( 'mp-request-new-foe', 'parsemag', $foe_request_count ) . '</a>
 153+ <span class="profile-on"><a href="' . $relationship_request_link->escapeFullURL() . '" rel="nofollow">'
 154+ . wfMsgExt( 'mp-request-new-foe', 'parsemag', $foe_request_count ) . '</a></span>
155155 </p>';
156156 }
157157
@@ -165,9 +165,9 @@
166166 if ( $gift_count > 0 ) {
167167 $output .= '<p>
168168 <img src="' . $wgScriptPath . '/extensions/SocialProfile/images/icon_package_get.gif" alt="" border="0" />
169 - <a href="' . $gifts_title->escapeFullURL() . '" rel="nofollow">'
 169+ <span class="profile-on"><a href="' . $gifts_title->escapeFullURL() . '" rel="nofollow">'
170170 . wfMsgExt( 'mp-request-new-gift', 'parsemag', $gift_count ) .
171 - '</a>
 171+ '</a></span>
172172 </p>';
173173 }
174174 return $output;
@@ -182,9 +182,9 @@
183183 if ( $gift_count > 0 ) {
184184 $output .= '<p>
185185 <img src="' . $wgScriptPath . '/extensions/SocialProfile/images/awardIcon.png" alt="" border="0" />
186 - <a href="' . $gifts_title->escapeFullURL() . '" rel="nofollow">'
 186+ <span class="profile-on"><a href="' . $gifts_title->escapeFullURL() . '" rel="nofollow">'
187187 . wfMsgExt( 'mp-request-new-award', 'parsemag', $gift_count ) .
188 - '</a>
 188+ '</a></span>
189189 </p>';
190190 }
191191
@@ -199,9 +199,9 @@
200200 $board_link = SpecialPage::getTitleFor( 'UserBoard' );
201201 $output .= '<p>
202202 <img src="' . $wgScriptPath . '/extensions/SocialProfile/images/emailIcon.gif" alt="" border="" />
203 - <a href="' . $board_link->escapeFullURL() . '" rel="nofollow">'
 203+ <span class="profile-on"><a href="' . $board_link->escapeFullURL() . '" rel="nofollow">'
204204 . wfMsg( 'mp-request-new-message' ) .
205 - '</a>
 205+ '</a></span>
206206 </p>';
207207 }
208208 return $output;

Status & tagging log