You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Sean Gilligan <se...@msgilligan.com> on 2006/08/24 22:43:04 UTC

Getting User Agent in a template?

Is there a way to get access to the user agent string in a template?  I 
don't see any.  (I know that templates probably shouldn't be doing this, 
but I want to anyway...)

Re: Getting User Agent in a template?

Posted by Sean Gilligan <se...@msgilligan.com>.
I'm trying to port a WordPress template that changes the stylesheet 
based on user agent.

Allen Gilliland wrote:
> no, there is no way to get access to http headers like that in templates.
> 
> -- Allen
> 
> 
> Sean Gilligan wrote:
>> Is there a way to get access to the user agent string in a template?  
>> I don't see any.  (I know that templates probably shouldn't be doing 
>> this, but I want to anyway...)
> 
> 


Re: Getting User Agent in a template?

Posted by Allen Gilliland <al...@sun.com>.
no, there is no way to get access to http headers like that in templates.

-- Allen


Sean Gilligan wrote:
> Is there a way to get access to the user agent string in a template?  I 
> don't see any.  (I know that templates probably shouldn't be doing this, 
> but I want to anyway...)