增加get_button_link
This commit is contained in:
parent
28ff30a3b7
commit
58d78b760e
@ -143,8 +143,13 @@
|
|||||||
echo '<div class="alert alert-'.$style.'" role="alert">'.$text.'</div>';
|
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)
|
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);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user