index.php
Home Page View
Variables expected:
- $dashboardData: array Dashboard data from HomeFacade
- $homeFacade: HomeFacade instance
- $languages: array Languages data for select dropdown
PHP version 8.1
Tags
Table of Contents
Functions
- renderWordPressLogout() : void
- When on a WordPress server, make a logout button.
- renderHomeConfig() : void
- Load the content of warnings and initial data for visual display.
- renderSuggestionsGrid() : void
- Render the suggestions card grid (reused for onboarding and main page).
Functions
renderWordPressLogout()
When on a WordPress server, make a logout button.
renderWordPressLogout(bool $isWordPress, string $base) : void
Parameters
- $isWordPress : bool
-
Whether WordPress session is active
- $base : string
-
The application base path
renderHomeConfig()
Load the content of warnings and initial data for visual display.
renderHomeConfig(array<string|int, mixed>|null $lastTextInfo, string $base, int $textCount, int $currentlang) : void
Outputs a JSON config element that is read by home_app.ts.
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.