WET Footer Issue in Mobile View

This page demonstrates an issue where links become undefined in the footer navigation menus in mobile view if there are no submenus.

Environment

  • WET version: WET 3.1.2 - Distribution and PHP Variant (as downloaded July 30, 2013). It has not been tested in earlier versions or other variants.
  • Theme: Tested with theme-wet-boew and theme-gcwu-fegc. Did not test theme-gcwu-intranet or theme-base as these themes are missing more default settings than those listed below.
  • Browsers: Tested using all major browsers, both on desktop (Windows based) and smartphones (Android and iOS based)

Reproducing the Issue

The following instructions assume that the downloaded files have not been altered except as described below.

  1. In the root of your web server, extract and copy the following 3 folders from the appropriate ZIP files available on the WET-BOEW download site:
    dist, dist-php and demos-php.
  2. Edit the /demos-php/config/config-path.php ensuring that the two variables, $_SITE['wb_php_root'] and $_SITE['wb_core_root'] are both set to an empty string. Example:
    $_SITE['wb_php_root'] = "";
    $_SITE['wb_core_root'] = "";
  3. Add the following lines to the config-path.php file (you get lots of errors without them but that is a different issue):
    $_PAGE['issplash'] = (!isset($_PAGE['issplash']) ? 0 : $_PAGE['issplash']);
    $_PAGE['isapp'] = (!isset($_PAGE['isapp']) ? 0 : $_PAGE['isapp']);
    $_PAGE['isserv'] = (!isset($_PAGE['isserv']) ? 0 : $_PAGE['isserv']);
    $_PAGE['signin'] = (!isset($_PAGE['signin']) ? 0 : $_PAGE['signin']);
    $_PAGE['signout'] = (!isset($_PAGE['signout']) ? 0 : $_PAGE['signout']);
    $_META_LANG = (!isset($_META_LANG) ? '' : $_META_LANG); // for head-end.php
    $_META_LANG_ = (!isset($_META_LANG_) ? '' : $_META_LANG_); // for head-doc.php
    $_PAGE['nolang'] = (!isset($_PAGE['nolang']) ? 0 : $_PAGE['nolang']);
    $_PAGE['nosearch'] = (!isset($_PAGE['nosearch']) ? 0 : $_PAGE['nosearch']);
    $_PAGE['nositemenu'] = (!isset($_PAGE['nositemenu']) ? 0 : $_PAGE['nositemenu']);
    $_PAGE['nobcrumb'] = (!isset($_PAGE['nobcrumb']) ? 0 : $_PAGE['nobcrumb']);
  4. Ensure that you can access the splash page by going to: http://[yourdomain.tld]/demos-php/index.php
  5. Delete (or rename) the following four footer menu files located in the /demos-php/menu/ directory: trail-1-eng.php, trail-2-eng.php, trail-3-eng.php and trail-4-eng.php. Don't get rid of the French versions as you can use these for comparison.
  6. Click on the English button to load the English Home page.

See a Working Example of the Issue

  1. Resize the width of this page (or the English Home page above) to the width of a mobile device - or just use a smartphone.
  2. Click the gear in the upper-right corner to display the pop-up menu.
  3. Click About

In mobile view, the About us, News, Contact us and Stay Connected links all point to a page called undefined yet in the desktop view, the links look (view source) and work click properly.

According to the PHP source code found in /dist-php/theme-gcwu-fegc/cont/foot-nav.php, removal of the footer sub-menu files should produce the desired results.

It might be interesting to note that the Terms and Conditions and the Transparency links work correctly.