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

Validator messages

Messages the validator shows while loading a theme (lang/en/themes.php). Placeholders (:file, :code …) are filled with the real value. The rules are in §8.

Message

KeyMessage
legacyThe theme does not use the contract (old structure: views/ folder).
missing_fileRequired file missing: :file (:mode).
language_not_arraylanguage.php must return a plain array only: :reason
language_bad_keylanguage.php: key or text ":key" is invalid (keys use lowercase letters, digits, underscores and dots; text cannot be empty).
server_configServer configuration files are not allowed: :file
executableExecutable files are not allowed: :file
unknown_templateTemplate not in the contract is never used: :file
template_locationTemplates are used only in the theme root or under includes/: :file
head_required:file: {!! $page['head'] !!} is required (SEO, security and theme files are printed from here).
hook_required:file: @hook(':hook') is required (cookie consent, maintenance and impersonation strips).
forbiddenforbidden construct ":code" — :reason
rawraw output is allowed only for permitted expressions: :code
include_target:directive may only call the theme's includes/ templates: :target
inline_scriptinline <script> is forbidden (load scripts from assets/js with theme_asset())
inline_handlerinline event handlers are forbidden (:attr=)
javascript_urljavascript: URLs are forbidden

Kinds of forbidden constructs

KeyMessage
php_blockPHP blocks cannot run in templates
php_tagPHP tags cannot be used in templates
directivethis Blade directive is disabled in themes
facadecore services (database, session, files…) are not reachable from themes
classthemes cannot use classes or create objects
functionthis function is disabled in themes; data comes from the presenter layer
includePHP files cannot be included
superglobalrequest data cannot be accessed directly
internalview engine internals cannot be accessed
backtickshell commands (backticks) are forbidden

Expressions allowed in raw output

  • {!! $page['head'] !!}
  • {!! site_component('…') !!}
  • {!! $x['…_html'] !!}
  • {!! theme_icon('…') !!}

Extensions treated as executable

.php .phtml .phar .php3 .php4 .php5 .php7 .php8 .pht .phps .cgi .pl .py .sh .asp .aspx .jsp

Generated together with WIACP 0.2.0-alpha.92 and the default theme 1.22.0.

Scope: site and client panel themes. The admin panel is not themeable.