WIACPSite theme 0.2.0-alpha.92
Türkçe

§4

Required parts

header.wcp (and clientheader.wcp in separate mode):

blade
<!doctype html>
<html lang="{{ $page['lang'] }}" dir="{{ $page['dir'] }}" data-theme="{{ $colorMode }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{!! $page['head'] !!}
<link rel="stylesheet" href="{{ theme_asset('css/style.css') }}">
</head>
<body class="{{ $page['classes'] }}">
@hook('SiteBodyStart')

footer.wcp (and clientfooter.wcp):

blade
@hook('SiteBodyEnd')
</body>
</html>
  • {!! $page['head'] !!}: title, description, canonical, hreflang, Open Graph, favicon, CSRF meta and additions from extensions.
  • @hook('SiteBodyStart'): maintenance strip, impersonation strip, preview strip.
  • @hook('SiteBodyEnd'): cookie consent and extension scripts.

A theme cannot be activated without these. The "Powered by WIACP" line at the very bottom of the page is not printed by the theme and cannot be removed; the core adds it to every page.