X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSkinTemplate.php;h=50739138b0d867626a78480bbf1ac4829bbd6eaf;hb=0929a1fba8ce5914848b7516bcf1dfb44c853e11;hp=780b228e32500880fa7aa2edc43fed367af98736;hpb=968f3cd2d801c6358ad2da54968d77e11f6bc6b5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 780b228e32..50739138b0 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -402,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 ); @@ -1200,7 +1202,8 @@ class SkinTemplate extends Skin { } if ( isset( $content_actions[$key] ) ) { - wfDebug( __METHOD__ . ": Found a duplicate key for $key while flattening content_navigation into content_actions." ); + wfDebug( __METHOD__ . ": Found a duplicate key for $key while flattening " . + "content_navigation into content_actions.\n" ); continue; } @@ -1738,6 +1741,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...