Index: trunk/phase3/includes/ChangeTags.php |
— | — | @@ -13,11 +13,15 @@ |
14 | 14 | $tags = explode( ',', $tags ); |
15 | 15 | $displayTags = array(); |
16 | 16 | foreach( $tags as $tag ) { |
17 | | - $displayTags[] = self::tagDescription( $tag ); |
| 17 | + $displayTags[] = Xml::tags( 'span', |
| 18 | + array( 'class' => "mw-tag-marker mw-tag-marker-$tag" ), |
| 19 | + self::tagDescription( $tag ) ); |
18 | 20 | $classes[] = Sanitizer::escapeClass( "mw-tag-$tag" ); |
19 | 21 | } |
20 | 22 | |
21 | | - return array( '(' . implode( ', ', $displayTags ) . ')', $classes ); |
| 23 | + $markers = '(' . implode( ', ', $displayTags ) . ')'; |
| 24 | + $markers = Xml::tags( 'span', array( 'class' => 'mw-tag-markers' ), $markers ); |
| 25 | + return array( $markers, $classes ); |
22 | 26 | } |
23 | 27 | |
24 | 28 | static function tagDescription( $tag ) { |