Mobile View: Limit Page list to one level

This mod ensures that mobile devices only see the top or current level of page links rather than all levels, including sub-pages. The default display can quickly clutter the mobile view if there’s a lot of sub-pages.

Open: /includes/display/PagesMenu.php


if(isset($pages[$page['pageid']])) {

Replace with:

if(isset($pages[$page['pageid']]) && !$GLOBALS['ISC_CLASS_TEMPLATE']->getIsMobileDevice()) {