增加get_button_link

This commit is contained in:
hyzboy 2017-03-20 18:47:00 +08:00
parent 28ff30a3b7
commit 58d78b760e

View File

@ -143,8 +143,13 @@
echo '<div class="alert alert-'.$style.'" role="alert">'.$text.'</div>';
}
function get_button_link($text,$style,$link)
{
return '<a href="'.$link.'" class="btn btn-'.$style.'" role="button">'.$text.'</a>';
}
function echo_button_link($text,$style,$link)
{
echo '<a href="'.$link.'" class="btn btn-'.$style.'" role="button">'.$text.'</a>';
echo get_button_link($text,$style,$link);
}
?>