§7
Directives and helpers
| Usage | Description |
|---|---|
@t('key'), @t('key', ['name' => $x]) |
the theme's text (§9) |
@hook('Name') |
output point (§10) |
@layout('none' | 'public' | 'client' | 'auth') |
wrapper choice |
{{ theme_asset('css/style.css') }} |
address of a theme file (with a version parameter) |
{!! theme_icon('check', 'class') !!} |
an icon from assets/icons.svg (<symbol id="check">) |
site_product_groups(['groups' => [1, 2], 'limit' => 3]) |
product groups: name, description, icon, starting price, features, categories |
site_products(['group' => 1, 'limit' => 6]) |
products and their cycle prices |
site_posts(['type' => 'news', 'limit' => 3]) |
published news / blog posts (with language and visibility rules) |
site_tlds(6) |
domain extensions and registration prices (in the active currency) |
references([...]), testimonials([...]), slides('home') |
showcase records |
{!! site_component('newsletter') !!} |
ready component: newsletter, language-switcher, currency-switcher, slider, references, testimonials, captcha, flash |
Core texts are printed with {{ __('file.key') }} (for example __('checkout.complete.wallet_rest', [...])); @t() is only for the theme's own texts.