Displays a link, or a button if the link's URL is too large, to
accommodate some browsers' limitations
public static linkOrButton ( string $url, string $message, mixed $tag_params = [], boolean $new_form = true, boolean $strip_img = false, string $target = '', boolean $force_button = false ) : string | ||
$url | string | the URL |
$message | string | the link message |
$tag_params | mixed | string: js confirmation array: additional tag params (f.e. style="") |
$new_form | boolean | we set this to false when we are already in a form, to avoid generating nested forms |
$strip_img | boolean | whether to strip the image |
$target | string | target |
$force_button | boolean | use a button even when the URL is not too long |
return | string | the results to be echoed or saved in an array |