Use Skin:getAfterPortlet instead of deprecated BaseTemplate:getAfterPortlet

Additional change:
* Add .DS_Store to gitignore

Change-Id: I15ed3c820823782d28f11f3724d56736db0ca3e0
This commit is contained in:
bwang 2021-06-11 10:40:20 -05:00 committed by Jdlrobson
parent 40eb3dad15
commit 954929e27e
2 changed files with 11 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/vendor
/composer.lock
/.eslintcache
.DS_Store

View File

@ -283,7 +283,16 @@ class TimelessTemplate extends BaseTemplate {
$bodyDivOptions['id'] = $options['body-id'];
}
$afterPortlet = $this->getAfterPortlet( $name );
$afterPortlet = '';
$content = $this->getSkin()->getAfterPortlet( $name );
if ( $content !== '' ) {
$afterPortlet = Html::rawElement(
'div',
[ 'class' => [ 'after-portlet', 'after-portlet-' . $name ] ],
$content
);
}
if ( $name === 'lang' ) {
$this->afterLangPortlet = $afterPortlet;
}