14 if (!isset(
$vars[
'text']) && isset(
$vars[
'value'])) {
21 if (!empty(
$vars[
'confirm'])) {
25 if (
$vars[
'data-confirm'] ===
true) {
37 elgg_log(
'An input/button should have a discernible text (text, title, aria-label or aria-labelledby)',
'NOTICE');
42 'class' =>
'elgg-button-label',
51 'class' =>
'elgg-button-icon',
56 unset(
$vars[
'icon_alt']);
60 'class' =>
'elgg-button-icon-alt',
66 $vars[
'class'][] =
'elgg-button-submit';
70 $vars[
'class'][] =
'elgg-button-cancel';
elgg_deprecated_notice(string $msg, string $dep_version)
Log a notice about deprecated use of a function, view, etc.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_log($message, $level=\Psr\Log\LogLevel::NOTICE)
Log a message.
elgg_view_icon(string $name, array $vars=[])
View an icon glyph.
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
elgg_strip_tags(string $string, string $allowable_tags=null)
Strip tags and offer plugins the chance.