Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -811,9 +811,9 @@ |
812 | 812 | |
813 | 813 | $tl = "<span class='collapsible-expander'>" |
814 | 814 | . "<span class='mw-rc-openarrow'>" |
815 | | - . "<a href='#' title='$expandTitle'>{$this->arrow( 'd', '-', wfMsg( 'rc-enhanced-hide' ) )}</a>" |
| 815 | + . "<a href='#' title='$expandTitle'>{$this->sideArrow()}</a>" |
816 | 816 | . "</span><span class='mw-rc-closearrow'>" |
817 | | - . "<a href='#' title='$closeTitle'>{$this->arrow( 'd', '-', wfMsg( 'rc-enhanced-hide' ) )}</a>" |
| 817 | + . "<a href='#' title='$closeTitle'>{$this->downArrow()}</a>" |
818 | 818 | . "</span></span>"; |
819 | 819 | $r .= "<td>$tl</td>"; |
820 | 820 | |
— | — | @@ -1014,6 +1014,34 @@ |
1015 | 1015 | } |
1016 | 1016 | |
1017 | 1017 | /** |
| 1018 | + * Generate HTML for a right- or left-facing arrow, |
| 1019 | + * depending on language direction. |
| 1020 | + * @return String: HTML <img> tag |
| 1021 | + */ |
| 1022 | + protected function sideArrow() { |
| 1023 | + global $wgContLang; |
| 1024 | + $dir = $wgContLang->isRTL() ? 'l' : 'r'; |
| 1025 | + return $this->arrow( $dir, '+', wfMsg( 'rc-enhanced-expand' ) ); |
| 1026 | + } |
| 1027 | + |
| 1028 | + /** |
| 1029 | + * Generate HTML for a down-facing arrow |
| 1030 | + * depending on language direction. |
| 1031 | + * @return String: HTML <img> tag |
| 1032 | + */ |
| 1033 | + protected function downArrow() { |
| 1034 | + return $this->arrow( 'd', '-', wfMsg( 'rc-enhanced-hide' ) ); |
| 1035 | + } |
| 1036 | + |
| 1037 | + /** |
| 1038 | + * Generate HTML for a spacer image |
| 1039 | + * @return String: HTML <img> tag |
| 1040 | + */ |
| 1041 | + protected function spacerArrow() { |
| 1042 | + return $this->arrow( '', codepointToUtf8( 0xa0 ) ); // non-breaking space |
| 1043 | + } |
| 1044 | + |
| 1045 | + /** |
1018 | 1046 | * Enhanced RC ungrouped line. |
1019 | 1047 | * @return String: a HTML formated line (generated using $r) |
1020 | 1048 | */ |
— | — | @@ -1038,7 +1066,7 @@ |
1039 | 1067 | $r = Html::openElement( 'table', array( 'class' => $classes ) ) . |
1040 | 1068 | Html::openElement( 'tr' ); |
1041 | 1069 | |
1042 | | - $r .= '<td class="mw-enhanced-rc">' . $this->arrow( '', codepointToUtf8( 0xa0 ) ); |
| 1070 | + $r .= '<td class="mw-enhanced-rc">' . $this->spacerArrow(); |
1043 | 1071 | # Flag and Timestamp |
1044 | 1072 | if( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) { |
1045 | 1073 | $r .= '    '; // 4 flags -> 4 spaces |