Learning with Texts - Fork 2.9.0-fork
Learn foreign languages with texts
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
do_text.php File Reference

Start Reading a text (frameset) More...

Namespaces

namespace  Lwt
 

Functions

 get_text_id ()
 
 do_text_mobile_content ($textid, $audio=null)
 
 do_text_desktop_content ($textid, $audio=null)
 
 do_text_page ($textid)
 

Variables

if(get_text_id() !==null) else
 

Detailed Description

Start Reading a text (frameset)

Call: do_text.php?text=[textid] Create the main window when reading texts.

PHP version 8.1

Function Documentation

◆ do_text_desktop_content()

do_text_desktop_content (   $textid,
  $audio = null 
)

Echo the page content for the desktop version of do_text.

Parameters
int$textidText ID
mixed$audioAudio URI, unnused, null by default
Returns
void

◆ do_text_mobile_content()

do_text_mobile_content (   $textid,
  $audio = null 
)

Echo the page content for the mobile version of do_text.

Parameters
int$textidText ID
mixed$audioAudio URI, unnused, null by default
Returns
void
Since
2.2.1 It also calls do_frameset_mobile_css and do_frameset_mobile_js
2.6.0-fork Rewrote to match the desktop version (between 2.2.1 and 2.6.0)

◆ do_text_page()

do_text_page (   $textid)

Echo the text page.

Parameters
int$textitText ID
bool$mobileSet to true if you want the mobile version of the page.
Since
2.2.1 The $mobile parameter is no longer required.
2.7.0 Adds a CSS rule to auto-enlarge the body.
Returns
void

◆ get_text_id()

get_text_id ( )

Get text ID (if possible).

Text ID if first looked at int the 'text' parameter. If not found, then look at 'start'.

Returns
int|null Text ID or null

Variable Documentation

◆ else

if (get_text_id() !==null) else
Initial value:
{
header("Location: edit_texts.php")