'corpo_contact_widget', 'description' => __('Displays conatct info with icons', 'corpo') ); /* Widget control settings. */ $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => 'corpo_contact_widget' ); /* Create the widget. */ $this->WP_Widget( 'corpo_contact_widget', __('Corpo: Contact widget', 'corpo'), $widget_ops, $control_ops ); } /** * How to display the widget on the screen. */ function widget( $args, $instance ) { extract( $args ); /* Our variables from the widget settings. */ $title = $instance['title']; $address = $instance['address']; $phone = $instance['phone']; $email = $instance['email']; /* Before widget (defined by themes). */ echo $before_widget; ?>

__('Contact','corpo'), 'address' => '', 'phone' => '', 'email' => '' ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>