Hi,
I'm quite happy with my theme for desktop usage but would like to have bootstrap darkroom for mobile.
Is there any way to:
a) change theme for each request based on e.g. is_mobile()?
b) in case of bootstrap darkroom: switch of advanced menu manager and rv tree menu for that theme?
Thanks for any hints!
Thomas
Piwigo 2.9.2
Operating system: Linux
PHP: 5.6.31 (Show info) [2017-10-29 19:56:55]
MySQL: 5.5.57-0+deb7u1-log [2017-10-29 19:56:55]
Graphics Library: External ImageMagick 6.8.9-9
Offline
So if I would want to have a go at this myself: any pointers where I could start?
I would need to:
- intercept requests early to toggle themes
- be able to switch off plugins "on the fly" or build some kind of wrapper that disables them as required
Maybe something similar has been done elsewhere?
Offline
[extension by julien1311] Mobile Theme for Tablets automatically switches to an installed and activated mobile theme, at least it works with [extension by P@t] Smart Pocket (mobile theme)
Offline
Thanks for the hint!
Now I only need to understand how this works. Obviously, bootstrap isn't considered a mobile theme :-(
Offline
Search the theme extensions for mobile or responsive.
Offline
I have made bootstrap-darkroom a mobile theme by adding 'mobile' => true in its themeconf :-) Seems to work now.
Offline