function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); if (empty($title)) { $title = false; } $description = $instance['description']; echo $before_widget; if ($title) { echo $before_title; echo $title; echo $after_title; } if ($description != "") { echo '<p>' . stripslashes($description) . '</p>'; } else { } dt_contact_form_display(); echo $after_widget; }
function dt_contact_form_shortcode($atts, $content = null) { return dt_contact_form_display(false); }