Documentation

mobile_interactions.php

\file \brief Handle interactions with mobile platforms

PHP version 8.1

Tags
author

LWT Project lwt-project@hotmail.com

license

Unlicense http://unlicense.org/

link
https://hugofara.github.io/lwt/docs/php/files/inc-mobile-interactions.html
since
2.2.0
since
2.2.1

You should not longer use this library as mobile detect is removed. However, this interface is unchanged for backward compatibility.

since
2.6.0

Mobile detect is back and does no longer use external libraries.

Table of Contents

Functions

is_mobile()  : bool
Return false. Before 2.2.1, return true if we should use mobile mode.
do_frameset_mobile_page_content()  : void
Echo frameset content for a mobile page.
do_frameset_mobile_css()  : void
Echo the CSS content for mobile frameset page.
do_frameset_mobile_js()  : void
Echo the JS code for the mobile version of a frameset page.

Functions

is_mobile()

Return false. Before 2.2.1, return true if we should use mobile mode.

is_mobile() : bool
Tags
since
2.2.1

You should not use this function since mobiledetect is no longer used.

since
2.6.0-fork

No longer deprecated and use no external library.

Return values
bool

Mobile mode shoud be activated or not

do_frameset_mobile_page_content()

Echo frameset content for a mobile page.

do_frameset_mobile_page_content(string $frame_h_uri, string $frame_l_uri, bool $right_frames) : void
Parameters
$frame_h_uri : string

URI for the frame-h-2 iframe.

$frame_l_uri : string

URI for the frame-l-2 iframe.

$right_frames : bool

Create or not a space for right frames.

Tags
deprecated

Since 2.2.1-fork, Do not use frames

do_frameset_mobile_css()

Echo the CSS content for mobile frameset page.

do_frameset_mobile_css() : void
Tags
deprecated

Since 2.6.0-fork, the display for mobile changed, making this code useless

do_frameset_mobile_js()

Echo the JS code for the mobile version of a frameset page.

do_frameset_mobile_js([string|null $audio = null ]) : void
Parameters
$audio : string|null = null

Audio URI

Tags
deprecated

Since 2.2.1-fork, we do no longer use frameset


        
On this page

Search results