For anyone interested in an personal change of the menu
edit includes/skins/SkinMinerva.php
- find
protected function getDiscoveryTools()
- find the line
// Nearby link (if supported)
- add above this line
$menu->insert( 'Upload' ) ->addComponent( $this->msg( 'mobile-frontend-upload-button' )->escaped(), SpecialPage::getTitleFor( 'Upload', MWNamespace::getCanonicalName( $config->get( 'MFContentNamespace' ) ) )->getLocalUrl() . '#/test', MobileUI::iconClass( 'mf-upload-invert', 'before' ), [ 'id' => 'uploadButton', 'data-event-name' => 'upload', ] ); $menu->insert( 'ListImages' ) ->addComponent( $this->msg( 'mobile-frontend-listimages-button' )->escaped(), SpecialPage::getTitleFor( 'ListFiles', MWNamespace::getCanonicalName( $config->get( 'MFContentNamespace' ) ) )->getLocalUrl() . '#/test', MobileUI::iconClass( 'mf-listimages-invert', 'before' ), [ 'id' => 'listimagesButton', 'data-event-name' => 'ListImages', ] );
edit i18n/en.json
- find the line
"mobile-frontend-random-button": "Random",
- add below
"mobile-frontend-upload-button": "Upload", "mobile-frontend-listimages-button": "List Images",
edit extension.json
- find the line "mobile.mainMenu.icons": {
- find section
"images": { "anonymous": "resources/mobile.mainMenu.icons/anonymous.svg",
- add below this line
"upload": "resources/mobile.mainMenu.icons/upload.svg", "listimages": "resources/mobile.mainMenu.icons/listimages.svg",
allocate the folder resources/mobile.mainMenu.icons
- add in
resources/mobile.mainMenu.icons
the required 2 new svg files with the desired icon - upload.svg
- listimages.svg
i have tested this modification at twh4u.ddns.net