Elgg  Version master
datetime-local.php
Go to the documentation of this file.
1 <?php
7 $vars['class'] = elgg_extract_class($vars, 'elgg-input-datetime-local');
8 
10  'type' => 'datetime-local'
11 ];
12 
13 $vars = array_merge($defaults, $vars);
14 
15 echo elgg_view('input/text', $vars);
$vars['class']
Elgg datetime-local input Displays a datetime-local input field.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$defaults
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:277