Elgg
Version 6.1
|
Go to the source code of this file.
Variables | |
$vars ['class'] = elgg_extract_class($vars, 'elgg-input-date') | |
$defaults | |
$timestamp = elgg_extract('timestamp', $vars) | |
$format = elgg_extract('format', $vars, $defaults['format'], false) | |
$name = elgg_extract('name', $vars) | |
$value = elgg_extract('value', $vars) | |
$value_date = '' | |
$value_timestamp = '' | |
if($value) if($timestamp) | $vars ['value'] = $value_date |
$datepicker_options = (array) elgg_extract('datepicker_options', $vars, []) | |
if(empty($datepicker_options['dateFormat'])) | $vars ['data-datepicker-opts'] = $datepicker_options ? json_encode($datepicker_options) : '' |
if(isset($vars['id'])) | else |
$datepicker_options = (array) elgg_extract('datepicker_options', $vars, []) |
$format = elgg_extract('format', $vars, $defaults['format'], false) |
$name = elgg_extract('name', $vars) |
$timestamp = elgg_extract('timestamp', $vars) |
$value = elgg_extract('value', $vars) |
$vars = elgg_extract_class($vars, 'elgg-input-date') |
if (empty($datepicker_options['dateFormat'])) $vars['data-datepicker-opts'] = $datepicker_options ? json_encode($datepicker_options) : '' |