'icon-widget', 'title' => 'Icon Widget', 'content' => 'Add a short description.', // Keep sub filters for backwards compat. 'icon' => apply_filters( 'icon_widget_default_shortcode_icon', 'fa-star' ), 'size' => apply_filters( 'icon_widget_default_size', '2x' ), 'align' => apply_filters( 'icon_widget_default_align', 'left' ), 'color' => apply_filters( 'icon_widget_default_color','#333333' ), 'heading' => 'h4', 'break' => '
', 'bg' => '', 'padding' => '', 'radius' => '', ) ), $atts, 'icon_widget' ); // Store variables. $classes = $atts['classes']; $title = $atts['title']; $content = $atts['content']; $icon = $atts['icon']; $size = $atts['size']; $align = $atts['align']; $color = $atts['color']; $heading = $atts['heading']; $break = $atts['break']; $bg = $atts['bg']; $padding = $atts['padding']; $radius = $atts['radius']; // Build HTML. $html = ''; $html .= '
'; $html .= ''; $html .= apply_filters( 'icon_widget_line_break', $break ); $html .= '<' . $heading . ' class="widget-title">' . $title . ''; $html .= apply_filters( 'icon_widget_wpautop', true ) ? wp_kses_post( wpautop( $content ) ) : wp_kses_post( $content ); $html .= '
'; return $html; }