$translators
$translators : array
Html Parts Renderer Helper Class
$translators : array
renderFlashMessages(\App\Base\Abstracts\Controllers\BasePage $controller) : \Degami\Basics\Html\TagList
returns flash message html
\App\Base\Abstracts\Controllers\BasePage | $controller |
renderBlocks(string $region, string|null $locale = null, \App\Base\Abstracts\Controllers\BasePage|null $current_page = null) : mixed|string|null
render region blocks
string | $region | |
string|null | $locale | |
\App\Base\Abstracts\Controllers\BasePage|null | $current_page |
renderPaginator(int $current_page, int $total, \App\Base\Abstracts\Controllers\BasePage $controller, int $page_size = BaseModel::ITEMS_PER_PAGE, int $visible_links = 2) : string
renders paginator
int | $current_page | |
int | $total | |
\App\Base\Abstracts\Controllers\BasePage | $controller | |
int | $page_size | |
int | $visible_links |
renderAdminTable(array $elements, array|null $header = null, \App\Base\Abstracts\Controllers\BasePage|null $current_page = null) : string
renders admin table
array | $elements | |
array|null | $header | |
\App\Base\Abstracts\Controllers\BasePage|null | $current_page |
getGravatar(string $email, int $s = 80, string $d = 'mp', string $r = 'g', string $class = 'rounded-circle') : string
Get either a Gravatar image tag for a specified email address.
string | The email address |
|
int | $s | Size in pixels, defaults to 80px [ 1 - 2048 ] |
string | $d | Default imageset to use [ 404 | mp | identicon | monsterid | wavatar ] |
string | $r | Maximum rating (inclusive) [ g | pg | r | x ] |
string | $class | html class |
containing a complete image tag
renderFlag( $country_code, string $class = 'flag-icon', int $width = 20) : string
renders a flag icon
$country_code | ||
string | $class | |
int | $width |