Hi!
1.) Create a new Folder ../templates/mobile
2.) search in global.php:
define('TEMPLATE_PATH', ROOT_PATH.TEMPLATE_DIR."/".$config['template_dir']);
insert above:
$agent = array(
"Android",
"webOS",
"iPhone",
"iPod",
"Android",
"Blackberry",
"OperaMobi",
"Opera Mini",
"IEMobile",
"Jasmine",
"Fennec",
"Blazer",
"Minimo",
"MOT-",
"Nokia",
"SAMSUNG",
"Polaris",
"LG-",
"SonyEricsson",
"SIE-",
"AUDIOVOX",
"mobile",
);
foreach($agent AS $name){
if( strstr($_SERVER['HTTP_USER_AGENT'],$name)){
$config['template_dir'] = "mobile";
}else{
$config['template_dir'] = $config['template_dir'];
}
}
Now create a new template only for mobile Devices in the new Folder "mobile".
mfg Andi