Ticket #696: wifidog-iphone.patch
| File wifidog-iphone.patch, 2.8 KB (added by wlach, 23 months ago) |
|---|
-
wifidog/media/base_theme/stylesheet-mobile.css
1 #left_area { 2 width: 100%; 3 position: static; 4 float: none; 5 } 6 7 #left_area_top { 8 position: static; 9 float: none; 10 } 11 12 #left_area_middle { 13 position: static; 14 float: none; 15 } 16 17 form.language { 18 text-align: center; 19 } 20 21 #main_area { 22 width: 100%; 23 float: none; 24 } 25 26 #main_area_top { 27 float: left; 28 } 29 30 #main_area_middle { 31 position: relative; 32 float: left; 33 } 34 35 #login_form { 36 float: none; 37 } 38 -
wifidog/config.php
212 212 // Filenames and directories 213 213 define('NETWORK_THEME_PACKS_DIR', 'media/network_theme_packs/'); 214 214 define('STYLESHEET_NAME', 'stylesheet.css'); 215 define('STYLESHEET_MOBILE_NAME', 'stylesheet-mobile.css'); 215 216 define('PRINT_STYLESHEET_NAME', 'printer.css'); 216 217 define('LOGIN_PAGE_NAME', 'login.html'); 217 218 define('HOTSPOT_STATUS_PAGE', 'hotspot_status.php'); -
wifidog/classes/MainUI.php
575 575 if ($networkThemePack) { 576 576 $this->appendStylesheetURL($networkThemePack->getStylesheetUrl()); 577 577 } 578 // if we're an iPhone... 579 if(empty($agent)) $agent = $_SERVER['HTTP_USER_AGENT']; 580 if(stristr($agent,'iphone') or stristr($agent,'ipod')) { 581 $this->smarty->assign('iPhoneUI', true); 582 $this->appendStylesheetURL(BASE_THEME_URL . STYLESHEET_MOBILE_NAME); 583 } 578 584 // Checks to see if the theme file exists and if so, checks whether it should always show the page header. 579 585 if (defined('ALWAYS_SHOW_HEADER') && ALWAYS_SHOW_HEADER == true) { 580 586 $this->smarty->assign('alwaysShowHeader', true); -
wifidog/templates/classes/MainUI_Display.tpl
51 51 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 52 52 <meta http-equiv="Pragma" content="no-cache"> 53 53 <meta http-equiv="Expires" content="-1"> 54 {if $iPhoneUI} 55 <meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=no; width=device-width" /> 56 {/if} 54 57 {$htmlHeaders} 55 58 <title>{$title}</title> 56 59 {foreach from=$stylesheetUrlArray item=stylesheetUrl}
