Added parameter onclick in anchors
This commit is contained in:
parent
4e45885de3
commit
1d468987d3
|
@ -2365,12 +2365,13 @@ function html_print_div(
|
||||||
/**
|
/**
|
||||||
* Render an anchor <a> html element.
|
* Render an anchor <a> html element.
|
||||||
*
|
*
|
||||||
* @param array $options Parameters
|
* @param array $options Parameters.
|
||||||
* - id: string.
|
* - id: string.
|
||||||
* - style: string.
|
* - style: string.
|
||||||
* - title: string.
|
* - title: string.
|
||||||
* - href: string.
|
* - href: string.
|
||||||
* - content: string.
|
* - content: string.
|
||||||
|
* - onClick: string.
|
||||||
* @param boolean $return Return or echo flag.
|
* @param boolean $return Return or echo flag.
|
||||||
*
|
*
|
||||||
* @return string HTML code if return parameter is true.
|
* @return string HTML code if return parameter is true.
|
||||||
|
@ -2387,6 +2388,7 @@ function html_print_anchor(
|
||||||
'style',
|
'style',
|
||||||
'class',
|
'class',
|
||||||
'title',
|
'title',
|
||||||
|
'onClick',
|
||||||
];
|
];
|
||||||
|
|
||||||
$output .= (isset($options['href']) === true) ? 'href="'.io_safe_input_html($options['href']).'"' : ui_get_full_url();
|
$output .= (isset($options['href']) === true) ? 'href="'.io_safe_input_html($options['href']).'"' : ui_get_full_url();
|
||||||
|
|
Loading…
Reference in New Issue