X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSkinTemplate.php;h=32f0ed3e37d8cd90a6cabd42aa536447c64b3c6f;hb=8574e44352e093a248612057f15ca4eef12ab77e;hp=066411de4b5866cd41721a27c6311009605ebe33;hpb=1d9f6037e6bc4cce634b18623e555040968f3f2a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 066411de4b..32f0ed3e37 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -104,7 +104,11 @@ class SkinTemplate extends Skin { * @param $out OutputPage */ function setupSkinUserCss( OutputPage $out ) { - $out->addModuleStyles( array( 'mediawiki.legacy.shared', 'mediawiki.legacy.commonPrint', 'mediawiki.ui.button' ) ); + $out->addModuleStyles( array( + 'mediawiki.legacy.shared', + 'mediawiki.legacy.commonPrint', + 'mediawiki.ui.button' + ) ); } /** @@ -398,6 +402,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 ); @@ -1734,6 +1740,19 @@ abstract class BaseTemplate extends QuickTemplate { return $boxes; } + /** + * @param string $name + */ + protected function renderAfterPortlet( $name ) { + $content = ''; + wfRunHooks( 'BaseTemplateAfterPortlet', array( $this, $name, &$content ) ); + + if ( $content !== '' ) { + echo "
$content
"; + } + + } + /** * Makes a link, usually used by makeListItem to generate a link for an item * in a list used in navigation lists, portlets, portals, sidebars, etc...