dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added hook SkinTemplateNavigation which provides a way to tweak the navigation before...
[lhc/web/wiklou.git]
/
skins
/
Vector.php
diff --git
a/skins/Vector.php
b/skins/Vector.php
index
7f93e1f
..
d5910e2
100644
(file)
--- a/
skins/Vector.php
+++ b/
skins/Vector.php
@@
-35,8
+35,13
@@
class SkinVector extends SkinTemplate {
* @param object $out Output page to add styles to
*/
public function setupSkinUserCss( OutputPage $out ) {
* @param object $out Output page to add styles to
*/
public function setupSkinUserCss( OutputPage $out ) {
+ global $wgContLang;
// Append to the default screen common & print styles...
// Append to the default screen common & print styles...
- $out->addStyle( 'vector/main.css', 'screen' );
+ if ( $wgContLang->isRTL() ) {
+ $out->addStyle( 'vector/main-rtl.css', 'screen' );
+ } else {
+ $out->addStyle( 'vector/main-ltr.css', 'screen' );
+ }
// Add common styles
parent::setupSkinUserCss( $out );
}
// Add common styles
parent::setupSkinUserCss( $out );
}
@@
-80,7
+85,7
@@
class SkinVector extends SkinTemplate {
}
$talkId = "{$subjectId}_talk";
$currentId = $isTalk ? $talkId : $subjectId;
}
$talkId = "{$subjectId}_talk";
$currentId = $isTalk ? $talkId : $subjectId;
-
+
// Adds namespace links
$links['namespaces'][$subjectId] = $this->tabAction(
$subjectPage, 'vector-namespace-' . $subjectId, !$isTalk, '', true
// Adds namespace links
$links['namespaces'][$subjectId] = $this->tabAction(
$subjectPage, 'vector-namespace-' . $subjectId, !$isTalk, '', true
@@
-287,7
+292,10
@@
class SkinVector extends SkinTemplate {
);
}
}
);
}
}
-
+
+ // This is instead of SkinTemplateTabs - which uses a flat array
+ wfRunHooks( 'SkinTemplateNavigation', array( &$this, &$links ) );
+
// If it's not content, it's got to be a special page
} else {
$links['namespaces']['special'] = array(
// If it's not content, it's got to be a special page
} else {
$links['namespaces']['special'] = array(