"", "active_color" => "", "noactive_color" => "", "line_width" => "", "icon" => "", "icon_size" => "", "icon_color" => "", "title" => "", "title_color" => "", "title_tag" => "h3", "text" => "", "text_color" => "" ); extract(shortcode_atts($args, $atts)); $headings_array = array('h2', 'h3', 'h4', 'h5', 'h6'); //get correct heading value. If provided heading isn't valid get the default one $title_tag = (in_array($title_tag, $headings_array)) ? $title_tag : $args['title_tag']; $html = ''; $html .= '
'; $html .= ''; } if ($text != "") { $html .= '

'; } $html .= "

"; return $html; } add_shortcode('pie_chart_with_icon', 'pie_chart_with_icon'); }