2010-03-16, 10:07:11
I changed my code, now it will only display the iPhone theme on the iPhone if the theme exists. But if it doesn't exist, it just generates a blank page...
does any one know how I could just tell it to set $TEMPLATE == (current theme)???
Thanks.
here is my current code:
does any one know how I could just tell it to set $TEMPLATE == (current theme)???
Thanks.
here is my current code:
Code:
// Check browser, and change theme
function sic_change_theme() {
global $TEMPLATE;
$file = '../theme/iPhone/template.php';
if (file_exists($file) !== FALSE){
}
else
{
if (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== FALSE) {
$TEMPLATE = 'iPhone';
}
}
}
JWH Technologies
Have any marketing ideas for Get-Simple? Let me hear them!
Have any marketing ideas for Get-Simple? Let me hear them!