Add _data_ _time_ macros for visual console - #1233

This commit is contained in:
enriquecd 2017-08-24 12:50:55 +02:00
parent 1bf7d8278a
commit c64d0bb082
1 changed files with 8 additions and 0 deletions

View File

@ -2645,6 +2645,8 @@ function visual_map_print_visual_map ($id_layout, $show_links = true,
'proportion_width' => $proportion_width); 'proportion_width' => $proportion_width);
} }
$layout_data['label'] = visual_map_macro($layout_data['label']);
switch ($layout_data['type']) { switch ($layout_data['type']) {
case LINE_ITEM: case LINE_ITEM:
visual_map_print_user_lines($layout_data, $proportion); visual_map_print_user_lines($layout_data, $proportion);
@ -3008,4 +3010,10 @@ function visual_map_type_in_js($type) {
} }
} }
function visual_map_macro($label){
$label = str_replace('_date_',strftime("%x"),$label);
$label = str_replace('_time_',strftime("%T"),$label);
return $label;
}
?> ?>