Make LTR wgLang do the right thing on RTL wgContLang wikis. See bug 6100 and dupes...
[lhc/web/wiklou.git] / skins / Vector.php
index f97392e..fc9f3c3 100644 (file)
@@ -157,7 +157,7 @@ class SkinVector extends SkinTemplate {
                                                // Adds new section link
                                                //$links['actions']['addsection']
                                                $links['views']['addsection'] = array(
-                                                       'class' => $section == 'new' ? 'selected' : false,
+                                                       'class' => 'collapsible ' . ( $section == 'new' ? 'selected' : false ),
                                                        'text' => wfMsg( 'vector-action-addsection' ),
                                                        'href' => $this->mTitle->getLocalUrl(
                                                                'action=edit&section=new'
@@ -183,7 +183,7 @@ class SkinVector extends SkinTemplate {
                        if ( $this->mTitle->exists() ) {
                                // Adds history view link
                                $links['views']['history'] = array(
-                                       'class' => ($action == 'history') ? 'selected' : false,
+                                       'class' => 'collapsible ' . ( ($action == 'history') ? 'selected' : false ),
                                        'text' => wfMsg( 'vector-view-history' ),
                                        'href' => $this->mTitle->getLocalUrl( 'action=history' ),
                                        'rel' => 'archives',
@@ -463,9 +463,9 @@ class VectorTemplate extends QuickTemplate {
                <div id="page-base" class="noprint"></div>
                <div id="head-base" class="noprint"></div>
                <!-- content -->
-               <div id="content">
+               <div id="content" <?php $this->html('specialpageattributes') ?>>
                        <a id="top"></a>
-                       <div id="mw-js-message" style="display:none;"></div>
+                       <div id="mw-js-message" style="display:none;" <?php $this->html('userlangattributes') ?>></div>
                        <?php if ( $this->data['sitenotice'] ): ?>
                        <!-- sitenotice -->
                        <div id="siteNotice"><?php $this->html( 'sitenotice' ) ?></div>
@@ -480,7 +480,7 @@ class VectorTemplate extends QuickTemplate {
                                <h3 id="siteSub"><?php $this->msg( 'tagline' ) ?></h3>
                                <!-- /tagline -->
                                <!-- subtitle -->
-                               <div id="contentSub"><?php $this->html( 'subtitle' ) ?></div>
+                               <div id="contentSub" <?php $this->html('userlangattributes') ?>><?php $this->html( 'subtitle' ) ?></div>
                                <!-- /subtitle -->
                                <?php if ( $this->data['undelete'] ): ?>
                                <!-- undelete -->
@@ -538,7 +538,7 @@ class VectorTemplate extends QuickTemplate {
                        </div>
                <!-- /panel -->
                <!-- footer -->
-               <div id="footer">
+               <div id="footer" <?php $this->html('userlangattributes') ?>>
                        <?php foreach( $validFooterLinks as $category => $links ): ?>
                                <?php if ( count( $links ) > 0 ): ?>
                                <ul id="footer-<?php echo $category ?>">