From 4aabe17e712f2cc401fb4853cb9ef85069fa9f3e Mon Sep 17 00:00:00 2001 From: jrobson Date: Fri, 7 Mar 2014 17:14:01 -0800 Subject: [PATCH] Add prebodyhtml template variable Allows the VectorBeta BetaFeature to add HTML underneath the heading Change-Id: I6d9326d9e84a92b01dee2a29028208ef3f875767 --- includes/SkinTemplate.php | 2 ++ skins/Vector.php | 1 + 2 files changed, 3 insertions(+) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 066411de4b..62d4853e3d 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -398,6 +398,8 @@ class SkinTemplate extends Skin { // that interface elements are in a different language. $tpl->set( 'userlangattributes', '' ); $tpl->set( 'specialpageattributes', '' ); # obsolete + // Used by VectorBeta to insert HTML before content but after the heading for the page title. Defaults to empty string. + $tpl->set( 'prebodyhtml', '' ); if ( $userLangCode !== $wgContLang->getHtmlCode() || $userLangDir !== $wgContLang->getDir() ) { $escUserlang = htmlspecialchars( $userLangCode ); diff --git a/skins/Vector.php b/skins/Vector.php index 899a27220d..fb2d9adfbf 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -167,6 +167,7 @@ class VectorTemplate extends BaseTemplate { $this->data['pageLanguage'] = $this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode(); $this->text( 'pageLanguage' ); ?>">html( 'title' ) ?> + html( 'prebodyhtml' ) ?>
data['isarticle'] ) { ?>
msg( 'tagline' ) ?>
-- 2.20.1