46cl / wp-boilerplate

[unstable] A Wordpress boilerplate created by 46cl
MIT License
3 stars 1 forks source link

Server side mobile detection for RESS #2

Closed jvelo closed 9 years ago

jvelo commented 9 years ago

I propose we add standard Twig variables for doing RESS easily (http://www.lukew.com/ff/entry.asp?1392) ; using mobiledetect as the server-side detection lib.

jvelo commented 9 years ago

@nesk I've added a PoC on branch ress-detection, feel free to comment.

Maybe it should be implemented as a plugin for Timber ?

jvelo commented 9 years ago

Note: that would make composer not optional any longer

nesk commented 9 years ago

Seems ok, however I don't know what you're talking about with “a plugin for Timber”?

jvelo commented 9 years ago

I mean a WP plugin with an (implicit) dependency on Timber

nesk commented 9 years ago

Ah! That would avoid the Composer dependency, well, I think we will need Composer as a strong dependency in the future, I prefer to avoid creating a new plugin with a new repo…

In your branch, modify the README to remove Composer from the optional dependencies.