Index: trunk/extensions/ApprovedRevs/ApprovedRevs.hooks.php |
— | — | @@ -140,9 +140,14 @@ |
141 | 141 | return false; |
142 | 142 | } |
143 | 143 | |
| 144 | + ApprovedRevs::addCSS(); |
144 | 145 | wfLoadExtensionMessages( 'ApprovedRevs' ); |
145 | 146 | if ( $revisionID == $article->getLatest() ) { |
146 | | - $text = wfMsg( 'approvedrevs-approvedandlatest' ); |
| 147 | + $text = Xml::element( |
| 148 | + 'span', |
| 149 | + array( 'class' => 'approvedAndLatestMsg' ), |
| 150 | + wfMsg( 'approvedrevs-approvedandlatest' ) |
| 151 | + ); |
147 | 152 | } else { |
148 | 153 | $text = wfMsg( 'approvedrevs-notlatest' ); |
149 | 154 | global $wgUser; |
— | — | @@ -155,6 +160,11 @@ |
156 | 161 | array( 'known', 'noclasses' ) |
157 | 162 | ); |
158 | 163 | $text .= ' ' . $curRevLink; |
| 164 | + $text = Xml::tags( |
| 165 | + 'span', |
| 166 | + array( 'class' => 'notLatestMsg' ), |
| 167 | + $text |
| 168 | + ); |
159 | 169 | } |
160 | 170 | global $wgOut; |
161 | 171 | if ( $wgOut->getSubtitle() != '' ) { |
— | — | @@ -180,8 +190,9 @@ |
181 | 191 | $approvedRevID = ApprovedRevs::getApprovedRevID( $title ); |
182 | 192 | $latestRevID = $title->getLatestRevID(); |
183 | 193 | if ( ! empty( $approvedRevID ) && $approvedRevID != $latestRevID ) { |
| 194 | + ApprovedRevs::addCSS(); |
184 | 195 | global $wgOut; |
185 | | - $wgOut->addHTML( '<p><strong>' . wfMsg( 'approvedrevs-editwarning' ) . "</strong></p>\n" ); |
| 196 | + $wgOut->addHTML( '<p class="approvedRevsEditWarning">' . wfMsg( 'approvedrevs-editwarning' ) . "</p>\n" ); |
186 | 197 | } |
187 | 198 | return true; |
188 | 199 | } |
— | — | @@ -198,6 +209,7 @@ |
199 | 210 | $approvedRevID = ApprovedRevs::getApprovedRevID( $wgTitle ); |
200 | 211 | $latestRevID = $wgTitle->getLatestRevID(); |
201 | 212 | if ( ! empty( $approvedRevID ) && $approvedRevID != $latestRevID ) { |
| 213 | + ApprovedRevs::addCSS(); |
202 | 214 | $preFormHTML .= '<p><strong>' . wfMsg( 'approvedrevs-editwarning' ) . "</strong></p>\n"; |
203 | 215 | } |
204 | 216 | return true; |