diff --git a/.gitignore b/.gitignore index 3484c6c..8b02888 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /vendor /composer.lock /.eslintcache +.DS_Store diff --git a/includes/TimelessTemplate.php b/includes/TimelessTemplate.php index 63d67c5..1302b51 100644 --- a/includes/TimelessTemplate.php +++ b/includes/TimelessTemplate.php @@ -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; }