'widget_video', 'description' => __( 'Popster - Latest video', 'popster') ); // Create the widget. parent::__construct('video_popster', __('Popster - Latest video', 'popster'), $widget_ops); } function widget($args, $instance) { extract( $args ); $default = array('widget_title'=>__('Latest Videos','popster'), 'id'=> '', 'qty'=>1 ); $instance = wp_parse_args($instance, $default); $widget_title = apply_filters('widget_title', $instance['widget_title']); $id = $instance['id']; $qty = $instance['qty']; // WIDGET OUTPUT echo $before_widget; ?>
Widget title:
Quantity: