X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=skins%2FVector.php;h=3479ba58f7941a2f2ec503f82e0a74fcb031ecc7;hb=25b3c477503a47d5b20023c5a07b336474a12749;hp=5c99165988cd8ffa0603d2dcf4d534122ad2f677;hpb=7b612418955fd71502a4f43de71e9770712045e7;p=lhc%2Fweb%2Fwiklou.git diff --git a/skins/Vector.php b/skins/Vector.php index 5c99165988..3479ba58f7 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -37,7 +37,7 @@ class SkinVector extends SkinTemplate { $out->addScript( '' + "/{$this->stylename}/csshover.htc\")}" ); } @@ -52,14 +52,14 @@ class SkinVector extends SkinTemplate { parent::setupSkinUserCss( $out ); // Append skin-specific styles - $out->addStyle( 'vector/main-rtl.css', 'screen', '', 'rtl' ); - $out->addStyle( 'vector/main-ltr.css', 'screen', '', 'ltr' ); + $out->addStyle( "{$this->stylename}/main-rtl.css", 'screen', '', 'rtl' ); + $out->addStyle( "{$this->stylename}/main-ltr.css", 'screen', '', 'ltr' ); // Add extra stylesheets // THIS IS ONLY USEFUL FOR EXPERIMENTING WITH DIFFERNT STYLE OPTIONS! THIS WILL BE REMOVED IN THE NEAR FUTURE. if ( is_array( $wgVectorExtraStyles ) ) { foreach ( $wgVectorExtraStyles as $style ) { - $out->addStyle( 'vector/' . $style, 'screen' ); + $out->addStyle( "vector/$style", 'screen' ); } } } @@ -103,7 +103,6 @@ class SkinVector extends SkinTemplate { } else { $talkId = "{$subjectId}_talk"; } - $currentId = $isTalk ? $talkId : $subjectId; // Adds namespace links $links['namespaces'][$subjectId] = $this->tabAction( @@ -367,7 +366,7 @@ class VectorTemplate extends QuickTemplate { * Outputs the entire contents of the XHTML page */ public function execute() { - global $wgRequest, $wgOut, $wgContLang; + global $wgRequest, $wgContLang; $this->skin = $this->data['skin']; $action = $wgRequest->getText( 'action' ); @@ -487,7 +486,7 @@ class VectorTemplate extends QuickTemplate {
-

msg( 'tagline' ) ?>

+
msg( 'tagline' ) ?>
html('userlangattributes') ?>>html( 'subtitle' ) ?>
@@ -675,7 +674,7 @@ class VectorTemplate extends QuickTemplate { * when UI is in RTL mode */ private function renderNavigation( $elements ) { - global $wgContLang, $wgVectorUseSimpleSearch, $wgVectorShowVariantName, $wgUser; + global $wgVectorUseSimpleSearch, $wgVectorShowVariantName, $wgUser; // If only one element was given, wrap it in an array, allowing more // flexible arguments @@ -771,7 +770,7 @@ class VectorTemplate extends QuickTemplate { getOption( 'vector-simplesearch' ) ): ?>
skin->tooltipAndAccesskey( 'search' ); ?> data['search'] ) ): ?> value="text( 'search' ) ?>" /> - +
skin->tooltipAndAccesskey( 'search' ); ?> data['search'] ) ): ?> value="text( 'search' ) ?>" />