I inserted the code lines
} elseif ( $boxName == 'TOOLBOX' ) {
$html .= $this->getToolboxBox();
} elseif ( $boxName == 'AD1' ) {
$tmp_name = isset($wgAdSidebarTopType) ? $wgAdSidebarTopType : 'advertising';
$html .= $this->getBox( $tmp_name, $wgAdSidebarTopCode );
} elseif ( $boxName == 'AD2' ) {
$tmp_name = isset($wgAdSidebarBottomType) ? $wgAdSidebarBottomType : 'advertising';
$html .= $this->getBox( $tmp_name, $wgAdSidebarBottomCode );
} elseif ( $boxName == 'LANGUAGES' ) {
$html .= $this->getLanguageBox();
}
into function getRenderedSidebar() of the skin MonoBook.
With the placement of the AD1 and AD2 in MediaWiki:Sidebar can be specified the appearance of the advertisement in the sidebar.
This works so far. But in mobile mode it is lost.
What happens there and how to deal with it?