/** * A method to display the widget on the front end. */ function widget($args, $instance) { extract($args); echo $before_widget; $title = apply_filters('widget_title', $instance['title']); if (!empty($title)) { echo $before_title . $title . $after_title; } // Display the widget form. echo lidd_mc_display_form(); echo $after_widget; }
/** * Callback function for the shortcode. */ function lidd_mc_shortcode($attr) { // Get the form and return it for display. return lidd_mc_display_form($attr); }