'widget_text', 'description' => __('A widget that displays download links to a document of your choosing.')); $control_ops = array('width' => 400, 'height' => 350); $this->WP_Widget('PMG_Single_Doc', 'Single Document Widget', $widget_ops, $control_ops ); } function widget( $args, $instance ) { extract($args); $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); $url = apply_filters( 'widget_url', empty( $instance['url'] ) ? '' : $instance['url'], $instance ); $desc = apply_filters( 'widget_text', empty( $instance['desc'] ) ? '' : $instance['desc'], $instance ); $before_widget = preg_replace('/class="(.*?)"/i', 'class="$1 downloadsWidget"', $before_widget); echo $before_widget; if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ?>

"; ?>

Download

'', 'numposts' => '', 'desc' => '', 'url' => '' ) ); $title = strip_tags($instance['title']); $url = strip_tags($instance['url']); $desc = esc_textarea($instance['desc']); ?>