The function below creates a button when used like so [btn]Button Text[/btn]
function btn($atts, $content = null) {
extract(shortcode_atts(array('link' => '#'), $atts));
return '<a class="btn" href="'.$link.'"><span>' . do_shortcode($content) . '</span></a>';
}
I'd like to be able to add two variations to this, color and size which would allow the button to be called with variations, like this: [button color="teal" size="large"]Button Text[/button]
But I can't figure out how to do this. Anybody have a code?