Index: trunk/phase3/skins/MonoBook.php |
— | — | @@ -203,12 +203,6 @@ |
204 | 204 | <div class="pBody"> |
205 | 205 | <ul><?php |
206 | 206 | foreach($this->data['content_actions'] as $key => $tab) { |
207 | | - echo ' |
208 | | - <li id="' . Sanitizer::escapeId( "ca-$key" ) . '"'; |
209 | | - if( $tab['class'] ) { |
210 | | - echo ' class="'.htmlspecialchars($tab['class']).'"'; |
211 | | - } |
212 | | - echo '>'; |
213 | 207 | $linkAttribs = array( 'href' => $tab['href'] ); |
214 | 208 | |
215 | 209 | if( isset( $tab["tooltiponly"] ) && $tab["tooltiponly"] ) { |
— | — | @@ -219,8 +213,15 @@ |
220 | 214 | } else { |
221 | 215 | $linkAttribs += $skin->tooltipAndAccesskeyAttribs( "ca-$key" ); |
222 | 216 | } |
223 | | - echo Html::element( 'a', $linkAttribs, $tab['text'] ); |
224 | | - echo '</li>'; |
| 217 | + $linkHtml = Html::element( 'a', $linkAttribs, $tab['text'] ); |
| 218 | + |
| 219 | + /* Surround with a <li> */ |
| 220 | + $liAttribs = array( 'id' => Sanitizer::escapeId( "ca-$key" ) ); |
| 221 | + if( $tab['class'] ) { |
| 222 | + $liAttribs['class'] = $tab['class']; |
| 223 | + } |
| 224 | + echo ' |
| 225 | + ' . Html::rawElement( 'li', $liAttribs, $linkHtml ); |
225 | 226 | } ?> |
226 | 227 | |
227 | 228 | </ul> |