§5
Data passed to templates
Shared data on every page:
| Variable | Content |
|---|---|
$site |
name, legal_name, description, address, logo, favicon, email, support_email, phone, support_phone, social (platform, label, url, icon), support (open, summary, availability), home, year |
$menus |
header, footer, sidebar, mobile — each item: title, url, description, icon, new_tab, rel, active, badge, children |
$locale, $languages |
active language; list of languages (code, name, flag_url, dir, active) |
$currency, $currencies |
active currency; list (code, symbol, name, active) |
$switch |
action_language, action_currency, return, csrf for the language / currency forms |
$account |
signed-in client or null: name, first_name, number, initials, email, badges (invoices, tickets) |
$page |
key, region, title, classes, breadcrumbs, dir, lang, head |
$flash |
session messages (success, error, warning, status) |
$colorMode |
light, dark or system (as supported by the manifest) |
$theme |
values of the theme settings |
$urls |
login, register, logout, account, services, invoices, tickets, ticket_new, profile, security, balance, contact, agreements, cookies, cart |
The home page also receives $sections (§6). Other view variables of the controller are not passed to the theme.
- 5.0Contract index (all pages)
- 5.1Pages and their dataPhase 10.1
- 5.2Login, registration and recoveryPhase 10.3
- 5.3Client panelPhase 10.4
- 5.4Finance screensPhase 10.5, theme 1.4.0
- 5.5My services and product detailPhase 10.6, theme 1.5.0
- 5.6Support and remaining client screensPhase 10.7a, theme 1.6.0
- 5.7Affiliates and campaignsPhase 10.7b, theme 1.7.0
- 5.8Tracking codes, custom CSS and performancePhase 10.8a, theme 1.8.0
- 5.9Revisions: notice placement, slider appearance, contact, conversationsPhase 10.8c, theme 1.10.0
- 5.10Product wizard and cartPhase 11.1, theme 1.11.0
- 5.11Domain cart, products with files and suggestionsPhase 11.2, theme 1.12.0
- 5.12Checkout and order resultPhase 11.3, theme 1.13.0
- 5.13Order flow without page reloads, badge and billing profilePhase 11.4, theme 1.14.0
- 5.14Closing Phase 11: order contract summary, compatibility and required rulesPhase 11.5, theme 1.15.0
- 5.15Order page and the agent on a ticketalpha.86, theme 1.16.0
- 5.16My pointsPhase 12.1, theme 1.17.0
- 5.17Gift wheelPhase 12.2, theme 1.18.0
- 5.18FAQ, announcement bar and campaign packagesPhase 12.3, theme 1.19.0
- 5.19Status pagePhase 12.4, theme 1.20.0
- 5.20Client reviews, accessibility tool, Whois and IP lookupPhase 12.5, theme 1.21.0
- 5.21Showing ID numbers with a password and partial balancePhase 12.6, theme 1.22.0