Announcement

#1 2018-07-14 10:44:32

Zentalquabula
Member
2014-05-10
217

Two different themes for desktop and mobile

Bon jour, 你好, hola, guten Morgen, bongiorno, привет, ciao, hej etc!

How do I accomplish this:

Desktop: use Sylvia
Mobile: use Stripped repsonsive (desktop version)

Automatically.

==

Smart Pocket will be the mobile theme, but deactivated. All mobile themes are useless, as they do not show my menus (AAM) and information that NEEDS to be shown, and instead show crap that is not needed.

Stripped responsive desktop works excellent on phones, but it will never be default.

If I use Theme switcher, it will not remember settings between sessions, no cookies.

Offline

 

#2 2018-07-14 12:50:56

Zentalquabula
Member
2014-05-10
217

Re: Two different themes for desktop and mobile

Answering mi own question…

In themes/stripped_responsive/themeconf.inc.php add
  'mobile' => true
to
  $themeconf = array(


In plugins/AMenuManager/main.inc.php change
  if(CommonPlugin::checkGPCRelease(AMM_GPC_NEEDED) and !mobile_theme())
to
if(CommonPlugin::checkGPCRelease(AMM_GPC_NEEDED))


Turns out that AMM is deactivated for mobile themes. No user control at all.


To activate AdditionalPages for mobile theme, uncomment the following in plugins/AdditionalPages/main.inc.php

if (mobile_theme())
{
  return;
}


Note to self: have to change this with every new update.

Last edited by Zentalquabula (2018-07-14 12:53:06)

Offline

 

Board footer

Powered by FluxBB

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