I'm looking for a way to add body class depending on the User Agent of the client with php.
I'm looking to implement it this way:
page.php:
<body id="front" <?php ( function_exists ( 'body_class' ) : body_class($classes) ? NULL ); ?> >
Or by using adding it to the functions.php file
FYI: The whole purpose of this is to sniff out particular mobile styles and disable javascript for the some mobile user-agents.
p.s. I'm not looking for a mobile plugin.
p.p.s. no, i'm not interested in using a mobile theme.