27 'autocomplete' =>
'off',
35 unset(
$vars[
'timestamp']);
38 unset(
$vars[
'format']);
58 if (!isset(
$vars[
'id'])) {
67 $vars[
'class'][] =
'elgg-input-timestamp';
74 unset(
$vars[
'datepicker_options']);
84 if (isset(
$vars[
'id'])) {
87 $selector =
".elgg-input-date[name='{$name}']";
91 import(
'input/date').then((datepicker) => {
92 datepicker.default.init(<?= json_encode(
$selector) ?>);
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
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_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
static normalizeTime($time)
Returns DateTime object based on time representation.
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.