Documentation

Views

Table of Contents

Functions

renderWordPressLogout()  : void
When on a WordPress server, render a logout button.
renderHomeConfig()  : void
Output the JSON config element read by home_app.ts.
renderSuggestionsGrid()  : void
Render the suggestions card grid (reused for onboarding and main page).
renderGdlSuggestionsGrid()  : void
Render the Global Digital Library suggestions grid for the home page.

Functions

renderWordPressLogout()

When on a WordPress server, render a logout button.

renderWordPressLogout(bool $isWordPress, string $base) : void
Parameters
$isWordPress : bool

Whether WordPress session is active

$base : string

The application base path

renderHomeConfig()

Output the JSON config element read by home_app.ts.

renderHomeConfig(array<string|int, mixed>|null $lastTextInfo, string $base, int $textCount, int $currentlang) : void
Parameters
$lastTextInfo : array<string|int, mixed>|null

Current text info for Alpine.js initial state

$base : string

The application base path

$textCount : int

Number of texts for current language

$currentlang : int

Current language ID

renderSuggestionsGrid()

Render the suggestions card grid (reused for onboarding and main page).

renderSuggestionsGrid() : void

Must be called inside a gutenbergSuggestions Alpine scope.

renderGdlSuggestionsGrid()

Render the Global Digital Library suggestions grid for the home page.

renderGdlSuggestionsGrid() : void

Must be called inside a gdlSuggestions Alpine scope. Unlike the Gutenberg grid it shows a cover and reading level instead of authors and has no coverage preview (GDL books are ePUB, not analyzable by URL).


        
On this page

Search results