Hello @Dylsss I search and search and don't find what to wrap in the following code.
I know only Bash and JavaScript syntax, but barely any PHP syntax.
Please help me by guiding me what to wrap with the wrapper we discussed above.
protected function getContentBlock() {
$html = Html::rawElement(
'div',
[ 'id' => 'content', 'class' => 'mw-body', 'role' => 'main' ],
$this->getSiteNotices() .
$this->getIndicators() .
Html::rawElement(
'h1',
[
'id' => 'firstHeading',
'class' => 'firstHeading',
'lang' => $this->get( 'pageLanguage' )
],
$this->get( 'title' )
) .
Html::rawElement( 'div', [ 'id' => 'bodyContentOuter' ],
Html::rawElement( 'div', [ 'id' => 'siteSub' ], $this->getMsg( 'tagline' )->parse() ) .
Html::rawElement( 'div', [ 'id' => 'mw-page-header-links' ],
// @phan-suppress-next-line SecurityCheck-DoubleEscaped
$this->getPortlet(
'namespaces',
$this->pileOfTools['namespaces'],
'timeless-namespaces',
[ 'extra-classes' => 'tools-inline' ]
) .
// @phan-suppress-next-line SecurityCheck-DoubleEscaped
$this->getPortlet(
'more',
$this->pileOfTools['more'],
'timeless-more',
[ 'extra-classes' => 'tools-inline' ]
) .
$this->getVariants() .
// @phan-suppress-next-line SecurityCheck-DoubleEscaped
$this->getPortlet(
'views',
$this->pileOfTools['page-primary'],
'timeless-pagetools',
[ 'extra-classes' => 'tools-inline' ]
)
) .
$this->getClear() .
Html::rawElement( 'div', [ 'id' => 'bodyContent' ],
$this->getContentSub() .
$this->get( 'bodytext' ) .
$this->getClear()
)
)
);
return Html::rawElement( 'div', [ 'id' => 'mw-content' ], $html );
}