From 9bd09ce773a47a69bda37dee1ede0ad400a9f440 Mon Sep 17 00:00:00 2001 From: Jack Phoenix Date: Tue, 9 Jun 2015 00:12:40 +0300 Subject: [PATCH] Trying to clean this up a bit No functional changes are intended. Change-Id: Icec2df9744d13a4bdea632cad00422e3105ef43b --- VectorTemplate.php | 111 +++++++++++---------------------------------- 1 file changed, 26 insertions(+), 85 deletions(-) diff --git a/VectorTemplate.php b/VectorTemplate.php index fbf1efebf..d080d0f6f 100644 --- a/VectorTemplate.php +++ b/VectorTemplate.php @@ -87,6 +87,10 @@ class VectorTemplate extends BaseTemplate { $this->data['personal_urls'] = array_reverse( $this->data['personal_urls'] ); } + + $this->data['pageLanguage'] = + $this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode(); + // Output HTML Page $this->html( 'headelement' ); ?> @@ -108,11 +112,7 @@ class VectorTemplate extends BaseTemplate { } if ( !empty( $this->data['title'] ) ) { ?> -

html( 'title' ) ?>

+

html( 'title' ) ?>

html( 'prebodyhtml' ) ?>
@@ -123,9 +123,7 @@ class VectorTemplate extends BaseTemplate { -
html( 'userlangattributes' ) - ?>>html( 'subtitle' ) ?>
+
html( 'userlangattributes' ) ?>>html( 'subtitle' ) ?>
data['undelete'] ) { ?> @@ -142,15 +140,12 @@ class VectorTemplate extends BaseTemplate { ?>
msg( 'jumpto' ) ?> - msg( 'jumptonavigation' ) - ?>msg( 'comma-separator' ) - ?> + msg( 'jumptonavigation' ) ?>msg( 'comma-separator' ) ?> msg( 'jumptosearch' ) ?>
- html( 'bodycontent' ) ?> html( 'bodycontent' ); + if ( $this->data['printfooter'] ) { ?>
@@ -158,23 +153,13 @@ class VectorTemplate extends BaseTemplate {
- data['catlinks'] ) { - ?> - html( 'catlinks' ); - ?> - - data['dataAfterContent'] ) { - ?> - html( 'dataAfterContent' ); - ?> -
@@ -206,19 +191,9 @@ class VectorTemplate extends BaseTemplate { getFooterLinks() as $category => $links ) { ?> -