diff --git a/_includes/2020/templates/Menu.php b/_includes/2020/templates/Menu.php index 8002d3a5..bf491486 100644 --- a/_includes/2020/templates/Menu.php +++ b/_includes/2020/templates/Menu.php @@ -52,19 +52,54 @@ private static function change_ui_language($language): string { } /** - * Render the globe dropdown for changing the UI language + * Generate links that correspond to the UI options * As UI languages get added, we'll need to update this. + */ + private static function render_ui_list() { + echo ""; + } + + /** + * Render the globe dropdown for changing the UI language * Limitation: Currently only visible on pages that use localized strings - * @param number - Div number, default 0. + * @param divID -
ID to handle 3 cases: + * ui-language (default) Desktop globe hover + * ui-language1 - Desktop globe hover + * phone - Mobile list */ - private static function render_globe_dropdown($number = 0): void { + private static function render_globe_dropdown($divID = "ui-language"): void { global $page_is_using_locale; if (!isset($page_is_using_locale) || !$page_is_using_locale) { // only render on pages that use localized strings return; } - $divID = ($number == 1) ? "ui-language1" : "ui-language"; + // Phone layout + if ($divID === "phone") { +?> +
+

" alt="UI globe dropdown" /> Keyboard Search UI

+ +
+ @@ -100,7 +128,8 @@ private static function render_phone_menu(object $fields): void { " alt="search button" value="Search" onclick="if(document.getElementById('language-search2').value==''){return false;}">
-
+ +

Products