false, 'class' => false, 'size' => 'small', 'font' => '', 'link' => '', 'linktarget' => '', 'color' => '', 'bgcolor' => '', 'align' => false, ), $atts)); $id = $id ? ' id="' . $id . '"' : ''; $class = $class ? ' '.$class : ' button'; $link = $link ? ' href="' . $link . '"' : ''; $linktarget = $linktarget ? ' target="' . $linktarget . '"' : ''; // inline styles for the button $color = $color ? "color: $color;" : ''; $font = $font ? "font-size: {$font}px;" : ''; $style = ($color != '' || $font != '')? " style='$color $font'" : ''; $aligncss = ($align != 'center') ? ' align'.$align : ''; $content = '' . trim($content) . ''; $content = "[raw]".$content."[/raw]"; if($align === 'center') return '

'.$content.'

'; else return $content; } add_shortcode('button', 'wpv_shortcode_button');