Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hm_Button( $atts, $content = null ) {
- extract( shortcode_atts( array(
- 'link' => '#',
- 'target' => '',
- 'type' => 'yellow'
- ), $atts ) );
- if ($rounded=="yes") { $rounded = "rounded"; } else { $rounded = " "; }
- if ($target=="_blank") { $target=' target="_blank"'; }
- $color_button = '<a class="button' .$rounded. ' ' . $type . '" href="'.$link.'"' . $target . '>' . trim($content) . '</a>';
- return $color_button;
- }
- add_shortcode('cbutton', 'hmButton');
Add Comment
Please, Sign In to add comment