X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=skins%2FVector.php;h=f8d55c59f5c1a1fbdedb7f3e68bf9a623c52f2d9;hb=14fc5f5a937bda3b1cb3ba6a450359d723440283;hp=c4349c6c644c78d44895e6ad177cf115dbcfafbc;hpb=8b1f8034781640c22786304f305d8b007bfb10b5;p=lhc%2Fweb%2Fwiklou.git
diff --git a/skins/Vector.php b/skins/Vector.php
index c4349c6c64..f8d55c59f5 100644
--- a/skins/Vector.php
+++ b/skins/Vector.php
@@ -23,7 +23,7 @@
* @ingroup Skins
*/
-if( !defined( 'MEDIAWIKI' ) ) {
+if ( !defined( 'MEDIAWIKI' ) ) {
die( -1 );
}
@@ -57,7 +57,7 @@ class SkinVector extends SkinTemplate {
"/{$this->stylename}/csshover{$min}.htc\")}"
);
- $out->addModuleScripts( 'skins.vector' );
+ $out->addModules( 'skins.vector.js' );
}
/**
@@ -159,11 +159,11 @@ class VectorTemplate extends BaseTemplate {
html( 'userlangattributes' ) ?>>
- data['sitenotice'] ): ?>
+ data['sitenotice'] ) { ?>
html( 'sitenotice' ) ?>
-
+
- data['isarticle'] ): ?>
+ data['isarticle'] ) { ?>
msg( 'tagline' ) ?>
-
+
html( 'userlangattributes' ) ?>>html( 'subtitle' ) ?>
- data['undelete'] ): ?>
+ data['undelete'] ) { ?>
html( 'undelete' ) ?>
-
- data['newtalk'] ): ?>
+
+ data['newtalk'] ) { ?>
html( 'newtalk' ) ?>
-
- data['showjumplinks'] ): ?>
+
+ data['showjumplinks'] ) { ?>
-
+
html( 'bodycontent' ) ?>
- data['printfooter'] ): ?>
+ data['printfooter'] ) { ?>
-
- data['catlinks'] ): ?>
+
+ data['catlinks'] ) { ?>
html( 'catlinks' ); ?>
-
- data['dataAfterContent'] ): ?>
+
+ data['dataAfterContent'] ) { ?>
html( 'dataAfterContent' ); ?>
-
+
html( 'debughtml' ); ?>
@@ -230,7 +230,7 @@ class VectorTemplate extends BaseTemplate {
msg( 'navigation-heading' ) ?>
-
+
renderNavigation( 'PERSONAL' ); ?>
renderNavigation( array( 'NAMESPACES', 'VARIANTS' ) ); ?>
@@ -241,7 +241,7 @@ class VectorTemplate extends BaseTemplate {
-
+
@@ -251,26 +251,26 @@ class VectorTemplate extends BaseTemplate {
@@ -299,8 +299,9 @@ class VectorTemplate extends BaseTemplate {
}
// Render portals
foreach ( $portals as $name => $content ) {
- if ( $content === false )
+ if ( $content === false ) {
continue;
+ }
echo "\n\n";
switch( $name ) {
@@ -337,24 +338,24 @@ class VectorTemplate extends BaseTemplate {
html( 'userlangattributes' ) ?>>exists() ? $msgObj->text() : $msg ); ?>
+ if ( is_array( $content ) ) { ?>
$val ): ?>
+ foreach ( $content as $key => $val ) { ?>
makeListItem( $key, $val ); ?>
+ } else { ?>
+ } ?>
$element ) {
echo "\n\n";
- switch ( $element ) {
+ switch( $element ) {
case 'NAMESPACES':
?>
-
+
msg( 'namespaces' ) ?>
html( 'userlangattributes' ) ?>>
- data['namespace_urls'] as $link ): ?>
+ data['namespace_urls'] as $link ) { ?>
- >>
-
+
-