•  » Extensions
  •  » Switch theme for mobile automatically?

#1 2017-10-29 19:57:59

TheDoc
Member
Munich / Germany
2015-10-18
173

Switch theme for mobile automatically?

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

 

#2 2017-11-18 15:20:57

TheDoc
Member
Munich / Germany
2015-10-18
173

Re: Switch theme for mobile automatically?

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

 

#3 2017-11-19 23:59:12

erAck
Only trying to help
2015-09-06
2180

Re: Switch theme for mobile automatically?

[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)


Running Piwigo at https://erack.net/gallery/

Offline

 

#4 2017-11-21 21:33:44

TheDoc
Member
Munich / Germany
2015-10-18
173

Re: Switch theme for mobile automatically?

Thanks for the hint!

Now I only need to understand how this works. Obviously, bootstrap isn't considered a mobile theme :-(

Offline

 

#5 2017-11-25 02:00:34

erAck
Only trying to help
2015-09-06
2180

Re: Switch theme for mobile automatically?

Search the theme extensions for mobile or responsive.


Running Piwigo at https://erack.net/gallery/

Offline

 

#6 2017-11-25 13:16:17

TheDoc
Member
Munich / Germany
2015-10-18
173

Re: Switch theme for mobile automatically?

I have made bootstrap-darkroom a mobile theme by adding 'mobile' => true in its themeconf :-) Seems to work now.

Offline

 
  •  » Extensions
  •  » Switch theme for mobile automatically?

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact