function widget($args, $instance) { // $args is an array of strings which help your widget // conform to the active theme: before_widget, before_title, // after_widget, and after_title are the array keys. extract($args); extract($args, EXTR_SKIP); $title = apply_filters('widget_title', $instance['widget_title']); $text = $instance['widget_text']; echo $before_widget; echo !empty($title) ? $before_title . $title . $after_title : ''; echo !empty($text) ? '<div class="textwidget"><p>' . $text . '</p></div>' : ''; wp_email_capture_form(); echo $after_widget; }
function widget($args, $instance) { // $args is an array of strings which help your widget // conform to the active theme: before_widget, before_title, // after_widget, and after_title are the array keys. extract($args); extract($args, EXTR_SKIP); $title = empty($instance['widget_title']) ? __('Subscribe!', 'WPEC') : apply_filters('widget_title', $instance['widget_title']); $text = empty($instance['widget_text']) ? __('Subscribe to my blog for updates', 'WPEC') : $instance['widget_text']; echo $before_widget; echo $before_title . $title . $after_title; echo '<div class="textwidget">' . $text . '</div>'; wp_email_capture_form(); echo $after_widget; }