Jump to content

PS 1.6.1 Is there a "If ismobile" smarty variable available ?


Ray UK

Recommended Posts

Is there a mobile detection script within PS 1.6.1 ?

 

Im thinking there must be for mobile display, but I cant find it anywhere.

 

I want to do something like

 

{if isset ismobile}

do this

{else}

do this

{/if}

 

Cheers

 

Or is there a basic mobile theme (not the bootstrap) available for PS 1.6.1 as there isn't one included with the default theme.

Edited by MerseyRay (see edit history)
Link to comment
Share on other sites

  • 3 months later...

Bonjour avant la version 1.6.13 j'utilisais la variable $isMobile avec une modif dans le FrontController pour la detection des appareils mobiles.

Désormais $isMobile ne marche plus alors afin d'éviter de repasser partout ou j'ai fais des conditions

je cherche à affecter 'mobile' à mon ancienne variable $isMobile dès que $mobile_device == 1

 

Avec le code ci-dessous mais sans sucés:

 

{if isset($mobile_device) && $mobile_device}

{assign var='isMobile' value='mobile'}

{/if}

 

Avez vous une piste ?

Link to comment
Share on other sites

  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...