§5.3
Client panel
- Phase 10.4
These pages are in the client region. With layout_mode separate they are wrapped with clientheader.wcp / clientfooter.wcp, otherwise with header / footer. All panel pages are drawn in the same shell: core pages the theme has no template for (services, invoices, balance, support, communication preferences, verification, re-authentication…) are also placed between clientheader / clientfooter inside <div class="wi-core-page">, so two different designs never appear side by side. If the theme has no shell at all, the core's own panel skeleton is used.
Shared variables available in the shell:
$panel(menu— groups:key,label,items[key,label,url,icon,active,badge] —,notifications,new_ticket,profile,security). On a restricted account and while a password change is required, the menu is narrowed in the core; the theme adds no links. The bell only links to the notification history; there is no counter.$client_assets(css,js): core form script and style.clientheadermust load them.$page_heading,$page_lead(optional): instead of / under the page title.- The main area
id="nv-main"is the live update region.
| File | Page | Main variables |
|---|---|---|
clientarea.wcp |
dashboard | $stats (services, unpaid_count, unpaid_total, overdue, tickets, answered, balance), $services, $invoices, $tickets (last 5), $alerts, $announcements, $links (a section not in the menu is null), $verifications, $restricted |
clientprofile.wcp |
profile | $contact (email / phone, verified, verify_url), $incomplete, $pending_email, $blocks['email_change_html'], $blocks['form_html'] |
clientsecurity.wcp |
security | $summary (two_factor, sessions, password_set), $blocks: alerts_html, password_html, two_factor_html, verifications_html, sessions_html, logins_html, ip_lock_html, social_html (empty block = no section) |
clientconsents.wcp |
consents | $rows (id, title, url, mode, mode_label, version, date, status, status_label, tone, action — grant / withdraw / null —, locked_note), $action |
notifications.wcp |
notification history | $rows (id, channel, channel_label, subject, to, date, status, status_label, tone, has_content, url), $filters, $filtered, $options, $action, $blocks['pagination_html'] |
notification.wcp |
notification detail | $item (row + text, html_url, plain), $back |
clientcontacts.wcp |
additional contacts | $contacts (id, name, title, email, phone, active, notify, edit_url, delete_url), $count, $max, $needs_password, $blocks['form_html'] |
All of them have $blocks['notices_html'] (restricted account, marketing consent question, 2FA reminder) and $csrf.
Rules
- Forms arrive as core blocks; the theme does not change field names, addresses or the sensitive action verification (
contact_password,ip_password…). - The notification history contains only the client's own records. Security codes, password / recovery links and the content of security / system notifications are not passed (
has_contentfalse,text/html_url/plainnull); the template name is shown instead of the subject. Email content is served at a separate address with a strict CSP; the theme shows it only inside an<iframe>with thesandboxattribute. - In a mandatory agreement
actionis neverwithdraw; the theme must not create a withdraw button. - Additional contacts cannot sign in to the panel; no login details are passed to the theme.