X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=skins%2FVector.php;h=3479ba58f7941a2f2ec503f82e0a74fcb031ecc7;hb=13632f8082ecae3d70c749d6093b2b4f691fdb5f;hp=2217de8dbc2400fa1237bc848f27a95fcdcf406b;hpb=2111b141c3c56eaf2e4d1e973dcd6e8743575971;p=lhc%2Fweb%2Fwiklou.git diff --git a/skins/Vector.php b/skins/Vector.php index 2217de8dbc..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( @@ -293,7 +292,7 @@ class SkinVector extends SkinTemplate { // Checks if the user is logged in if ( $this->loggedin ) { if ( $wgVectorUseIconWatch ) { - $class = 'icon '; + $class = 'icon'; $place = 'views'; } else { $class = ''; @@ -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' ) ?>
@@ -639,7 +638,7 @@ class VectorTemplate extends QuickTemplate {
@@ -675,14 +674,14 @@ class VectorTemplate extends QuickTemplate { * when UI is in RTL mode */ private function renderNavigation( $elements ) { - global $wgContLang, $wgVectorUseSimpleSearch, $wgVectorShowVariantName; + global $wgVectorUseSimpleSearch, $wgVectorShowVariantName, $wgUser; // If only one element was given, wrap it in an array, allowing more // flexible arguments if ( !is_array( $elements ) ) { $elements = array( $elements ); // If there's a series of elements, reverse them when in RTL mode - } else if ( $wgContLang->isRTL() ) { + } else if ( wfUILang()->isRTL() ) { $elements = array_reverse( $elements ); } // Render elements @@ -695,7 +694,7 @@ class VectorTemplate extends QuickTemplate {
msg('namespaces') ?>
html('userlangattributes') ?>> data['namespace_urls'] as $key => $link ): ?> -
  • >>
  • +
  • >>
  • @@ -730,7 +729,7 @@ class VectorTemplate extends QuickTemplate {
    msg('views') ?>
    html('userlangattributes') ?>> data['view_urls'] as $key => $link ): ?> - >>' : ''.htmlspecialchars( $link['text'] ).'') ?> + >>' : htmlspecialchars( $link['text'] ) ) ?> @@ -768,10 +767,10 @@ class VectorTemplate extends QuickTemplate { html('userlangattributes') ?>>
    - + getOption( 'vector-simplesearch' ) ): ?>
    skin->tooltipAndAccesskey( 'search' ); ?> data['search'] ) ): ?> value="text( 'search' ) ?>" /> - +
    skin->tooltipAndAccesskey( 'search' ); ?> data['search'] ) ): ?> value="text( 'search' ) ?>" />