Index: trunk/extensions/LiquidThreads/lqt.css |
— | — | @@ -1,3 +1,10 @@ |
| 2 | +/* @noflip */.lqt_post_ltr { |
| 3 | + direction: ltr; |
| 4 | +} |
| 5 | +/* @noflip */.lqt_post_rtl { |
| 6 | + direction: rtl; |
| 7 | +} |
| 8 | + |
2 | 9 | .lqt_watchlist_messages_notice { |
3 | 10 | background-color: #eee; |
4 | 11 | border: 1px solid #ddd; |
Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -1419,6 +1419,8 @@ |
1420 | 1420 | $signature = Xml::tags( 'span', array( 'class' => 'lqt-thread-user-signature' ), |
1421 | 1421 | $signature ); |
1422 | 1422 | |
| 1423 | + $signature .= $wgLang->getDirMark(); |
| 1424 | + |
1423 | 1425 | $timestamp = $wgLang->timeanddate( $thread->created(), true ); |
1424 | 1426 | $signature .= Xml::element( 'span', |
1425 | 1427 | array( 'class' => 'lqt-thread-toolbar-timestamp' ), |
— | — | @@ -1530,11 +1532,13 @@ |
1531 | 1533 | } |
1532 | 1534 | |
1533 | 1535 | function postDivClass( $thread ) { |
| 1536 | + global $wgContLang; |
1534 | 1537 | $levelClass = 'lqt-thread-nest-' . $this->threadNestingLevel; |
1535 | 1538 | $alternatingType = ( $this->threadNestingLevel % 2 ) ? 'odd' : 'even'; |
1536 | 1539 | $alternatingClass = "lqt-thread-$alternatingType"; |
| 1540 | + $dir = $wgContLang->getDir(); |
1537 | 1541 | |
1538 | | - return "lqt_post $levelClass $alternatingClass"; |
| 1542 | + return "lqt_post $levelClass $alternatingClass lqt_post_$dir"; |
1539 | 1543 | } |
1540 | 1544 | |
1541 | 1545 | static function anchorName( $thread ) { |
Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php |
— | — | @@ -271,6 +271,15 @@ |
272 | 272 | $this->showHeader(); |
273 | 273 | } |
274 | 274 | |
| 275 | + global $wgLang, $wgBetterDirectionality; |
| 276 | + if( $wgBetterDirectionality ) { |
| 277 | + // This closes the div of mw-content-ltr/rtl containing lang and dir attributes |
| 278 | + $this->output->addHTML( Html::closeElement( 'div' ) ); |
| 279 | + } |
| 280 | + $this->output->addHTML( Html::openElement( 'div', |
| 281 | + array( 'class' => 'lqt-talkpage', 'lang' => $wgLang->getCode(), 'dir' => wfUILang()->getDir() ) |
| 282 | + ) ); |
| 283 | + |
275 | 284 | $html = ''; |
276 | 285 | |
277 | 286 | // Set up a per-page header for new threads, search box, and sorting stuff. |